Lines Matching refs:cdb
149 static int twa_scsiop_execute_scsi(TW_Device_Extension *tw_dev, int request_id, char *cdb, int use_…
284 char cdb[TW_MAX_CDB_LEN]; in twa_aen_drain_queue() local
301 memset(&cdb, 0, TW_MAX_CDB_LEN); in twa_aen_drain_queue()
302 cdb[0] = REQUEST_SENSE; /* opcode */ in twa_aen_drain_queue()
303 cdb[4] = TW_ALLOCATION_LENGTH; /* allocation length */ in twa_aen_drain_queue()
320 if (twa_scsiop_execute_scsi(tw_dev, request_id, cdb, 1, sglist)) { in twa_aen_drain_queue()
430 char cdb[TW_MAX_CDB_LEN]; in twa_aen_read_queue() local
439 memset(&cdb, 0, TW_MAX_CDB_LEN); in twa_aen_read_queue()
440 cdb[0] = REQUEST_SENSE; /* opcode */ in twa_aen_read_queue()
441 cdb[4] = TW_ALLOCATION_LENGTH; /* allocation length */ in twa_aen_read_queue()
452 if (twa_scsiop_execute_scsi(tw_dev, request_id, cdb, 1, sglist)) { in twa_aen_read_queue()
1801 static int twa_scsiop_execute_scsi(TW_Device_Extension *tw_dev, int request_id, char *cdb, int use_… in DEF_SCSI_QCMD()
1828 if (!cdb) in DEF_SCSI_QCMD()
1829 memcpy(command_packet->cdb, srb->cmnd, TW_MAX_CDB_LEN); in DEF_SCSI_QCMD()
1831 memcpy(command_packet->cdb, cdb, TW_MAX_CDB_LEN); in DEF_SCSI_QCMD()