Lines Matching refs:icb
577 typedef union icb { union
584 IcbAny icb; /* generic format */ member
1005 IcbAny *icb; /* for host commands */ in wd7000_intr() local
1058 icb = (IcbAny *) scb; in wd7000_intr()
1059 icb->status = icmb_status; in wd7000_intr()
1060 icb->phase = 0; in wd7000_intr()
1145 static IcbDiag icb = { ICB_OP_DIAGNOSTICS }; in DEF_SCSI_QCMD() local
1149 icb.type = code; in DEF_SCSI_QCMD()
1150 any2scsi(icb.len, sizeof(buf)); in DEF_SCSI_QCMD()
1151 any2scsi(icb.ptr, (int) &buf); in DEF_SCSI_QCMD()
1152 icb.phase = 1; in DEF_SCSI_QCMD()
1158 mail_out(host, (struct scb *) &icb); in DEF_SCSI_QCMD()
1160 while (icb.phase && time_before(jiffies, timeout)) { in DEF_SCSI_QCMD()
1165 if (icb.phase) { in DEF_SCSI_QCMD()
1169 if (make_code(icb.vue | (icb.status << 8), 0)) { in DEF_SCSI_QCMD()
1170 printk("wd7000_diagnostics: failed (0x%02x,0x%02x)\n", icb.vue, icb.status); in DEF_SCSI_QCMD()
1279 static IcbRevLvl icb = { ICB_OP_GET_REVISION }; in wd7000_revision() local
1281 icb.phase = 1; in wd7000_revision()
1288 mail_out(host, (struct scb *) &icb); in wd7000_revision()
1289 while (icb.phase) { in wd7000_revision()
1293 host->rev1 = icb.primary; in wd7000_revision()
1294 host->rev2 = icb.secondary; in wd7000_revision()