Lines Matching defs:cdb
43 static struct scsi_cdb6 cdb = { CMD_TEST_UNIT_READY };
45 return wd33c93_go(sc, (uint8_t *)&cdb, sizeof(cdb), NULL, NULL);
55 static struct scsi_cdb10 cdb = { CMD_READ_CAPACITY };
57 return wd33c93_go(sc, (uint8_t *)&cdb, sizeof(cdb), buf, lenp);
67 struct scsi_cdb10 cdb;
69 memset(&cdb, 0, sizeof(cdb));
70 cdb.cmd = CMD_READ_EXT;
71 cdb.lbah = blk >> 24;
72 cdb.lbahm = blk >> 16;
73 cdb.lbalm = blk >> 8;
74 cdb.lbal = blk;
75 cdb.lenh = nblk >> (8 + DEV_BSHIFT);
76 cdb.lenl = nblk >> DEV_BSHIFT;
77 wd33c93_go(sc, (uint8_t *)&cdb, sizeof(cdb), buf, lenp);
93 struct scsi_cdb10 cdb;
95 memset(&cdb, 0, sizeof(cdb));
96 cdb.cmd = CMD_WRITE_EXT;
97 cdb.lbah = blk >> 24;
98 cdb.lbahm = blk >> 16;
99 cdb.lbalm = blk >> 8;
100 cdb.lbal = blk;
101 cdb.lenh = nblk >> (8 + DEV_BSHIFT);
102 cdb.lenl = nblk >> DEV_BSHIFT;
103 wd33c93_go(sc, (uint8_t *)&cdb, sizeof(cdb), buf, lenp);