Lines Matching refs:cdb
137 unsigned char cdb[MAX_COMMAND_SIZE], *buf; in pscsi_tape_read_blocksize() local
144 memset(cdb, 0, MAX_COMMAND_SIZE); in pscsi_tape_read_blocksize()
145 cdb[0] = MODE_SENSE; in pscsi_tape_read_blocksize()
146 cdb[4] = 0x0c; /* 12 bytes */ in pscsi_tape_read_blocksize()
148 ret = scsi_execute_req(sdev, cdb, DMA_FROM_DEVICE, buf, 12, NULL, in pscsi_tape_read_blocksize()
186 unsigned char cdb[MAX_COMMAND_SIZE], *buf; in pscsi_get_inquiry_vpd_serial() local
193 memset(cdb, 0, MAX_COMMAND_SIZE); in pscsi_get_inquiry_vpd_serial()
194 cdb[0] = INQUIRY; in pscsi_get_inquiry_vpd_serial()
195 cdb[1] = 0x01; /* Query VPD */ in pscsi_get_inquiry_vpd_serial()
196 cdb[2] = 0x80; /* Unit Serial Number */ in pscsi_get_inquiry_vpd_serial()
197 put_unaligned_be16(INQUIRY_VPD_SERIAL_LEN, &cdb[3]); in pscsi_get_inquiry_vpd_serial()
199 ret = scsi_execute_req(sdev, cdb, DMA_FROM_DEVICE, buf, in pscsi_get_inquiry_vpd_serial()
220 unsigned char cdb[MAX_COMMAND_SIZE], *buf, *page_83; in pscsi_get_inquiry_vpd_device_ident() local
228 memset(cdb, 0, MAX_COMMAND_SIZE); in pscsi_get_inquiry_vpd_device_ident()
229 cdb[0] = INQUIRY; in pscsi_get_inquiry_vpd_device_ident()
230 cdb[1] = 0x01; /* Query VPD */ in pscsi_get_inquiry_vpd_device_ident()
231 cdb[2] = 0x83; /* Device Identifier */ in pscsi_get_inquiry_vpd_device_ident()
232 put_unaligned_be16(INQUIRY_VPD_DEVICE_IDENTIFIER_LEN, &cdb[3]); in pscsi_get_inquiry_vpd_device_ident()
234 ret = scsi_execute_req(sdev, cdb, DMA_FROM_DEVICE, buf, in pscsi_get_inquiry_vpd_device_ident()
597 unsigned char *cdb; in pscsi_complete_cmd() local
605 cdb = &pt->pscsi_cdb[0]; in pscsi_complete_cmd()
613 if (((cdb[0] == MODE_SENSE) || (cdb[0] == MODE_SENSE_10)) && in pscsi_complete_cmd()
624 if (cdb[0] == MODE_SENSE_10) { in pscsi_complete_cmd()
649 if (((cdb[0] == MODE_SELECT) || (cdb[0] == MODE_SELECT_10)) && in pscsi_complete_cmd()
661 if (cdb[0] == MODE_SELECT) in pscsi_complete_cmd()
669 if (cdb[0] == MODE_SELECT) in pscsi_complete_cmd()