Lines Matching refs:cdb
198 struct scsi_ata_passthru_12 *cdb;
208 cdb = (struct scsi_ata_passthru_12 *)&xs->cmd;
209 cdb->opcode = ATA_PASSTHRU_12;
213 cdb->count_proto = ATA_PASSTHRU_PROTO_PIO_DATAIN;
214 cdb->flags = ATA_PASSTHRU_T_DIR_READ;
216 cdb->count_proto = ATA_PASSTHRU_PROTO_PIO_DATAOUT;
217 cdb->flags = ATA_PASSTHRU_T_DIR_WRITE;
219 SET(cdb->flags, ATA_PASSTHRU_T_LEN_SECTOR_COUNT);
221 cdb->count_proto = ATA_PASSTHRU_PROTO_NON_DATA;
222 cdb->flags = ATA_PASSTHRU_T_LEN_NONE;
224 cdb->features = atareq->features;
225 cdb->sector_count = atareq->sec_count;
226 cdb->lba_low = atareq->sec_num;
227 cdb->lba_mid = atareq->cylinder;
228 cdb->lba_high = atareq->cylinder >> 8;
229 cdb->device = atareq->head & 0x0f;
230 cdb->command = atareq->command;
232 xs->cmdlen = sizeof(*cdb);