/openbmc/qemu/contrib/vhost-user-scsi/ |
H A D | vhost-user-scsi.c | 92 static struct scsi_task *scsi_task_new(int cdb_len, uint8_t *cdb, int dir, in scsi_task_new() argument 97 assert(cdb_len > 0); in scsi_task_new() 101 memcpy(task->cdb, cdb, cdb_len); in scsi_task_new() 102 task->cdb_size = cdb_len; in scsi_task_new() 133 int cdb_len; in handle_cmd_sync() local 155 cdb_len = get_cdb_len(req->cdb); in handle_cmd_sync() 156 if (cdb_len == -1) { in handle_cmd_sync() 175 task = scsi_task_new(cdb_len, req->cdb, dir, len); in handle_cmd_sync() 186 cdb_len, dir, task); in handle_cmd_sync()
|
/openbmc/linux/drivers/scsi/snic/ |
H A D | snic_res.h | 15 u16 flags, u64 tgt_id, u8 *lun, u8 *scsi_cdb, u8 cdb_len, in snic_icmnd_init() argument 25 req->u.icmnd.cdb_len = cdb_len; in snic_icmnd_init() 27 memcpy(req->u.icmnd.cdb, scsi_cdb, cdb_len); in snic_icmnd_init()
|
H A D | snic_fwint.h | 259 u8 cdb_len; member
|
/openbmc/qemu/scsi/ |
H A D | utils.c | 73 int cdb_len; in scsi_cdb_length() local 77 cdb_len = 6; in scsi_cdb_length() 81 cdb_len = 10; in scsi_cdb_length() 84 cdb_len = 16; in scsi_cdb_length() 87 cdb_len = 12; in scsi_cdb_length() 90 cdb_len = -1; in scsi_cdb_length() 92 return cdb_len; in scsi_cdb_length()
|
/openbmc/linux/drivers/ata/ |
H A D | sata_inic162x.c | 489 unsigned int cdb_len = 0; in inic_qc_prep() local 492 cdb_len = qc->dev->cdb_len; in inic_qc_prep() 501 cpb->len = cpu_to_le32(qc->nbytes + cdb_len); in inic_qc_prep() 527 prd->len = cpu_to_le16(cdb_len); in inic_qc_prep()
|
H A D | sata_promise.c | 483 unsigned int cdb_len = qc->dev->cdb_len; in pdc_atapi_pkt() local 548 BUG_ON(cdb_len & ~0x1E); in pdc_atapi_pkt() 551 buf[30] = (((cdb_len >> 1) & 7) << 5) | ATA_REG_DATA | PDC_LAST_REG; in pdc_atapi_pkt() 552 memcpy(buf+31, cdb, cdb_len); in pdc_atapi_pkt()
|
H A D | acard-ahci.c | 229 memcpy(cmd_tbl + AHCI_CMD_TBL_CDB, qc->cdb, qc->dev->cdb_len); in acard_ahci_qc_prep()
|
H A D | sata_sil24.c | 476 if (dev->cdb_len == 16) in sil24_dev_config() 862 memcpy(cb->atapi.cdb, qc->cdb, qc->dev->cdb_len); in sil24_qc_prep()
|
/openbmc/linux/drivers/scsi/ |
H A D | scsi_logging.c | 158 const unsigned char *cdb, size_t cdb_len) in __scsi_format_command() argument 167 if (cdb_len < len) in __scsi_format_command() 168 len = cdb_len; in __scsi_format_command()
|
H A D | qla1280.h | 515 __le16 cdb_len; /* SCSI command length. */ member 622 __le16 cdb_len; /* SCSI command length. */ member 642 __le16 cdb_len; /* SCSI command length. */ member 788 uint8_t cdb_len; member
|
H A D | a100u2w.c | 889 scb->cdb_len = cmd->cmd_len; in inia100_build_scb() 890 if (scb->cdb_len >= IMAX_CDB) { in inia100_build_scb() 892 scb->cdb_len = IMAX_CDB; in inia100_build_scb() 900 memcpy(scb->cdb, cmd->cmnd, scb->cdb_len); in inia100_build_scb()
|
H A D | a100u2w.h | 162 u8 cdb_len; /*21 CDB Length */ member
|
H A D | myrs.h | 710 unsigned char cdb_len; /* Byte 21 */ member 723 unsigned char cdb_len; /* Byte 21 */ member
|
H A D | hpsa.c | 320 struct CommandList *c, u32 ioaccel_handle, u8 *cdb, int cdb_len, 4646 u8 *cdb, int cdb_len, in warn_zero_length_transfer() argument 4651 func, cdb_len, cdb); in warn_zero_length_transfer() 4686 static int fixup_ioaccel_cdb(u8 *cdb, int *cdb_len) in fixup_ioaccel_cdb() argument 4700 if (*cdb_len == 6) { in fixup_ioaccel_cdb() 4708 BUG_ON(*cdb_len != 12); in fixup_ioaccel_cdb() 4725 *cdb_len = 10; in fixup_ioaccel_cdb() 4732 struct CommandList *c, u32 ioaccel_handle, u8 *cdb, int cdb_len, in hpsa_scsi_ioaccel1_queue_command() argument 4754 warn_zero_length_transfer(h, cdb, cdb_len, __func__); in hpsa_scsi_ioaccel1_queue_command() 4759 if (fixup_ioaccel_cdb(cdb, &cdb_len)) { in hpsa_scsi_ioaccel1_queue_command() [all …]
|
H A D | myrb.h | 551 unsigned char cdb_len:4; /* Byte 8 Bits 0-3 */ member
|
/openbmc/linux/drivers/scsi/fnic/ |
H A D | fnic_res.h | 74 u8 cdb_len, in fnic_queue_wq_copy_desc_icmnd_16() argument 100 memcpy(desc->u.icmnd_16.scsi_cdb, scsi_cdb, cdb_len); /* SCSI CDB */ in fnic_queue_wq_copy_desc_icmnd_16()
|
/openbmc/ipmitool/src/plugins/usb/ |
H A D | usb.c | 174 sendscsicmd_SGIO(int cd_desc, unsigned char *cdb_buf, unsigned char cdb_len, in sendscsicmd_SGIO() argument 183 io_hdr.cmd_len = cdb_len; in sendscsicmd_SGIO()
|
/openbmc/linux/drivers/scsi/elx/efct/ |
H A D | efct_scsi.h | 164 efct_scsi_recv_cmd(struct efct_io *io, uint64_t lun, u8 *cdb, u32 cdb_len,
|
/openbmc/qemu/hw/scsi/ |
H A D | mfi.h | 481 uint8_t cdb_len; member 896 uint8_t cdb_len; member
|
H A D | megasas.c | 1706 int target_id, lun_id, cdb_len; in megasas_handle_scsi() local 1714 cdb_len = cmd->frame->header.cdb_len; in megasas_handle_scsi() 1735 if (cdb_len > 16) { in megasas_handle_scsi() 1738 target_id, lun_id, cdb_len); in megasas_handle_scsi() 1752 cmd->req = scsi_req_new(sdev, cmd->index, lun_id, cdb, cdb_len, cmd); in megasas_handle_scsi()
|
/openbmc/linux/drivers/scsi/aic7xxx/ |
H A D | aic7xxx_osm.c | 1489 hscb->cdb_len = cmd->cmd_len; in ahc_linux_run_command() 1490 if (hscb->cdb_len <= 12) { in ahc_linux_run_command() 1491 memcpy(hscb->shared_data.cdb, cmd->cmnd, hscb->cdb_len); in ahc_linux_run_command() 1493 memcpy(hscb->cdb32, cmd->cmnd, hscb->cdb_len); in ahc_linux_run_command()
|
H A D | aic79xx_osm.c | 823 reset_scb->hscb->cdb_len = 0; in ahd_linux_dev_reset() 1606 hscb->cdb_len = cmd->cmd_len; in ahd_linux_run_command() 1607 memcpy(hscb->shared_data.idata.cdb, cmd->cmnd, hscb->cdb_len); in ahd_linux_run_command() 2267 pending_scb->hscb->cdb_len = 0; in ahd_linux_queue_abort_cmd()
|
/openbmc/linux/drivers/scsi/megaraid/ |
H A D | megaraid_sas_fusion.c | 2385 megasas_set_pd_lba(struct MPI2_RAID_SCSI_IO_REQUEST *io_request, u8 cdb_len, in megasas_set_pd_lba() argument 2450 if (((cdb_len == 12) || (cdb_len == 16)) && in megasas_set_pd_lba() 2452 if (cdb_len == 16) { in megasas_set_pd_lba() 2476 cdb_len = 10; in megasas_set_pd_lba() 2477 } else if ((cdb_len < 16) && (start_blk > 0xffffffff)) { in megasas_set_pd_lba() 2479 switch (cdb_len) { in megasas_set_pd_lba() 2514 cdb_len = 16; in megasas_set_pd_lba() 2518 switch (cdb_len) { in megasas_set_pd_lba()
|
/openbmc/qemu/hw/usb/ |
H A D | dev-uas.c | 702 size_t cdb_len = sizeof(iu->command.cdb) + iu->command.add_cdb_length; in usb_uas_command() local 733 iu->command.cdb, cdb_len, req); in usb_uas_command()
|
/openbmc/linux/drivers/scsi/isci/ |
H A D | request.c | 1657 task_context->transfer_length_bytes = dev->cdb_len; in scu_atapi_reconstruct_raw_frame_task_context() 1665 int cdb_len = dev->cdb_len; in scu_atapi_construct_task_context() local 1683 memcpy(&ireq->stp.cmd.lbal, task->ata_task.atapi_packet, cdb_len); in scu_atapi_construct_task_context() 1684 task_context->ssp_command_iu_length = cdb_len / sizeof(u32); in scu_atapi_construct_task_context()
|