/openbmc/linux/drivers/scsi/ |
H A D | scsi_trace.c | 11 #define SERVICE_ACTION16(cdb) (cdb[1] & 0x1f) argument 12 #define SERVICE_ACTION32(cdb) (get_unaligned_be16(&cdb[8])) argument 28 txlen = cdb[4] ? cdb[4] : 256; in scsi_trace_rw6() 46 cdb[1] >> 5); in scsi_trace_rw10() 48 if (cdb[0] == WRITE_SAME) in scsi_trace_rw10() 66 cdb[1] >> 5); in scsi_trace_rw12() 83 cdb[1] >> 5); in scsi_trace_rw16() 85 if (cdb[0] == WRITE_SAME_16) in scsi_trace_rw16() 100 switch (SERVICE_ACTION32(cdb)) { in scsi_trace_rw32() 281 options = cdb[14] & 0x3f; in scsi_trace_zbc_in() [all …]
|
H A D | pmcraid.c | 691 cmd->ioa_cb->ioarcb.cdb[0]); in pmcraid_timeout_handler() 1009 ioarcb->cdb[0] = INQUIRY; in pmcraid_get_fwversion() 1010 ioarcb->cdb[1] = 1; in pmcraid_get_fwversion() 1011 ioarcb->cdb[2] = 0xD0; in pmcraid_get_fwversion() 1067 ioarcb->cdb[1] = index; in pmcraid_identify_hrrq() 1164 ioarcb->cdb[1] = type; in pmcraid_init_hcam() 1679 cmd->ioa_cb->ioarcb.cdb[0], in pmcraid_ioasc_logger() 2437 ioarcb->cdb[0] = REQUEST_SENSE; in pmcraid_request_sense() 2750 ioarcb->cdb[1] = modifier; in pmcraid_reset_device() 2809 cmd->ioa_cb->ioarcb.cdb[0], in _pmcraid_io_done() [all …]
|
/openbmc/linux/drivers/isdn/capi/ |
H A D | capiutil.c | 393 r = cdb->size - cdb->pos; in bufprint() 408 memcpy(nb, cdb->buf, cdb->pos); in bufprint() 412 cdb->p = cdb->buf + cdb->pos; in bufprint() 415 r = cdb->size - cdb->pos; in bufprint() 433 cdb = bufprint(cdb, ">"); in printstructlen() 434 cdb = bufprint(cdb, "%c", *m); in printstructlen() 444 cdb = bufprint(cdb, ">"); in printstructlen() 477 cdb = bufprint(cdb, " "); in protocol_message_2_pars() 479 cdb = bufprint(cdb, " "); in protocol_message_2_pars() 500 cdb = bufprint(cdb, "\n"); in protocol_message_2_pars() [all …]
|
H A D | kcapi.c | 307 _cdebbuf *cdb; in capi_ctr_handle_message() local 311 if (cdb) { in capi_ctr_handle_message() 313 ctr->cnr, cdb->buf); in capi_ctr_handle_message() 314 cdebbuf_free(cdb); in capi_ctr_handle_message() 341 if (cdb) { in capi_ctr_handle_message() 344 cdebbuf_free(cdb); in capi_ctr_handle_message() 359 if (cdb) { in capi_ctr_handle_message() 362 cdebbuf_free(cdb); in capi_ctr_handle_message() 703 if (cdb) { in capi20_put_message() 706 cdb->buf); in capi20_put_message() [all …]
|
/openbmc/linux/drivers/target/ |
H A D | target_core_sbc.c | 53 if (!(cdb[8] & 1) && !!(cdb[2] | cdb[3] | cdb[4] | cdb[5])) in sbc_emulate_readcapacity() 147 if (!(cdb[1] & 1) || cdb[2] || cdb[3]) in sbc_emulate_startstop() 154 if (cdb[4] >> 4 & 0xf) in sbc_emulate_startstop() 162 if (!(cdb[4] & 1) || (cdb[4] & 2) || (cdb[4] & 4)) in sbc_emulate_startstop() 231 return cdb[4] ? : 256; in transport_get_sectors_6() 747 if (cdb[1] & 0x10) { in sbc_check_dpofua() 755 if (cdb[1] & 0x8) { in sbc_check_dpofua() 759 cdb[0]); in sbc_check_dpofua() 778 switch (cdb[0]) { in sbc_parse_cdb() 911 sectors = cdb[13]; in sbc_parse_cdb() [all …]
|
H A D | target_core_spc.c | 752 if (cdb[2]) { in spc_emulate_inquiry() 754 cdb[2]); in spc_emulate_inquiry() 766 buf[1] = cdb[2]; in spc_emulate_inquiry() 1027 u8 pc = cdb[2] >> 6; in spc_emulate_modesense() 1029 u8 subpage = cdb[3]; in spc_emulate_modesense() 2124 requested_sa = ((u16)cdb[4]) << 8 | cdb[5]; in spc_rsoc_get_descr() 2269 switch (cdb[0]) { in spc_parse_cdb() 2287 switch (cdb[0]) { in spc_parse_cdb() 2289 *size = cdb[4]; in spc_parse_cdb() 2297 *size = cdb[4]; in spc_parse_cdb() [all …]
|
H A D | target_core_pscsi.c | 144 cdb[0] = MODE_SENSE; in pscsi_tape_read_blocksize() 145 cdb[4] = 0x0c; /* 12 bytes */ in pscsi_tape_read_blocksize() 192 cdb[0] = INQUIRY; in pscsi_get_inquiry_vpd_serial() 193 cdb[1] = 0x01; /* Query VPD */ in pscsi_get_inquiry_vpd_serial() 227 cdb[0] = INQUIRY; in pscsi_get_inquiry_vpd_device_ident() 597 if (!cdb) in pscsi_complete_cmd() 607 if (((cdb[0] == MODE_SENSE) || (cdb[0] == MODE_SENSE_10)) && in pscsi_complete_cmd() 643 if (((cdb[0] == MODE_SELECT) || (cdb[0] == MODE_SELECT_10)) && in pscsi_complete_cmd() 655 if (cdb[0] == MODE_SELECT) in pscsi_complete_cmd() 663 if (cdb[0] == MODE_SELECT) in pscsi_complete_cmd() [all …]
|
H A D | target_core_device.c | 1061 unsigned char *cdb = cmd->t_task_cdb; in passthrough_parse_cdb() local 1069 if (cdb[0] == REPORT_LUNS) { in passthrough_parse_cdb() 1081 (cdb[0] == RELEASE || cdb[0] == RELEASE_10) || in passthrough_parse_cdb() 1082 (cdb[0] == RESERVE || cdb[0] == RESERVE_10))) { in passthrough_parse_cdb() 1095 size = get_unaligned_be16(&cdb[7]); in passthrough_parse_cdb() 1100 size = get_unaligned_be32(&cdb[5]); in passthrough_parse_cdb() 1104 if (cdb[0] == RELEASE || cdb[0] == RELEASE_10) { in passthrough_parse_cdb() 1106 if (cdb[0] == RELEASE_10) in passthrough_parse_cdb() 1112 if (cdb[0] == RESERVE || cdb[0] == RESERVE_10) { in passthrough_parse_cdb() 1114 if (cdb[0] == RESERVE_10) in passthrough_parse_cdb() [all …]
|
H A D | target_core_xcopy.c | 514 unsigned char *cdb, in target_xcopy_setup_pt_cmd() argument 580 unsigned char cdb[16]; in target_xcopy_read_source() local 586 memset(&cdb[0], 0, 16); in target_xcopy_read_source() 587 cdb[0] = READ_16; in target_xcopy_read_source() 588 put_unaligned_be64(src_lba, &cdb[2]); in target_xcopy_read_source() 625 unsigned char cdb[16]; in target_xcopy_write_destination() local 631 memset(&cdb[0], 0, 16); in target_xcopy_write_destination() 632 cdb[0] = WRITE_16; in target_xcopy_write_destination() 633 put_unaligned_be64(dst_lba, &cdb[2]); in target_xcopy_write_destination() 1008 unsigned char *cdb = &se_cmd->t_task_cdb[0]; in target_do_receive_copy_results() local [all …]
|
H A D | target_core_alua.c | 436 unsigned char *cdb, in core_alua_state_nonoptimized() argument 520 unsigned char *cdb) in core_alua_state_standby() argument 526 switch (cdb[0]) { in core_alua_state_standby() 538 switch (cdb[1] & 0x1f) { in core_alua_state_standby() 545 switch (cdb[1] & 0x1f) { in core_alua_state_standby() 552 switch (cdb[1]) { in core_alua_state_standby() 573 unsigned char *cdb) in core_alua_state_unavailable() argument 579 switch (cdb[0]) { in core_alua_state_unavailable() 591 switch (cdb[1]) { in core_alua_state_unavailable() 610 unsigned char *cdb) in core_alua_state_transition() argument [all …]
|
/openbmc/qemu/pc-bios/s390-ccw/ |
H A D | virtio-scsi.c | 69 memcpy(&req.cdb, cdb, cdb_size); in prepare_request() 100 ScsiCdbInquiry cdb = { in scsi_inquiry() local 112 vs_run("inquiry", inquiry, vdev, &cdb, sizeof(cdb), data, data_size); in scsi_inquiry() 119 ScsiCdbTestUnitReady cdb = { in scsi_test_unit_ready() local 127 prepare_request(vdev, &cdb, sizeof(cdb), 0, 0); in scsi_test_unit_ready() 135 ScsiCdbReportLuns cdb = { in scsi_report_luns() local 147 vdev, &cdb, sizeof(cdb), data, data_size); in scsi_report_luns() 156 ScsiCdbRead10 cdb = { in scsi_read_10() local 170 vs_run("read(10)", read_10, vdev, &cdb, sizeof(cdb), data, data_size); in scsi_read_10() 178 ScsiCdbReadCapacity16 cdb = { in scsi_read_capacity() local [all …]
|
/openbmc/linux/drivers/ata/ |
H A D | libata-scsi.c | 1378 len = cdb[4]; in scsi_6_lba_len() 1425 return ((cdb[1] & 0x01) << 2) | ((cdb[14] >> 6) & 0x03); in scsi_dld() 1454 switch (cdb[0]) { in ata_scsi_verify_xlat() 1602 switch (cdb[0]) { in ata_scsi_rw_xlat() 1611 switch (cdb[0]) { in ata_scsi_rw_xlat() 1707 bool is_ata_passthru = cdb[0] == ATA_16 || cdb[0] == ATA_12; in ata_scsi_qc_complete() 2958 switch (cdb[0]) { in ata_scsi_pass_thru() 3360 if (cdb[2] != 1 && cdb[2] != 3) { in ata_scsiop_maint_in() 3366 switch (cdb[3]) { in ata_scsiop_maint_in() 3874 len = cdb[4]; in ata_scsi_mode_select_xlat() [all …]
|
H A D | libata-zpodd.c | 38 static const char cdb[ATAPI_CDB_LEN] = { GPCMD_START_STOP_UNIT, in eject_tray() local 49 return ata_exec_internal(dev, &tf, cdb, DMA_NONE, NULL, 0, 0); in eject_tray() 59 static const char cdb[ATAPI_CDB_LEN] = { GPCMD_GET_CONFIGURATION, in zpodd_get_mech_type() local 78 ret = ata_exec_internal(dev, &tf, cdb, DMA_FROM_DEVICE, in zpodd_get_mech_type()
|
/openbmc/qemu/scsi/ |
H A D | qemu-pr-helper.c | 127 const uint8_t *cdb; member 146 io_hdr.cmdp = (uint8_t *)data->cdb; in do_sgio_worker() 187 .cdb = cdb, in do_sgio() 373 int rq_servact = cdb[1]; in multipath_pr_in() 428 int rq_servact = cdb[1]; in multipath_pr_out() 429 int rq_scope = cdb[2] >> 4; in multipath_pr_out() 430 int rq_type = cdb[2] & 0xf; in multipath_pr_out() 594 uint8_t cdb[PR_HELPER_CDB_SIZE]; member 661 if (prh_read(client, req->cdb, sizeof(req->cdb), NULL) < 0) { in prh_read_request() 671 req->cdb[0] != PERSISTENT_RESERVE_IN) { in prh_read_request() [all …]
|
H A D | pr-manager-helper.c | 161 uint8_t cdb[PR_HELPER_CDB_SIZE] = { 0 }; in pr_manager_helper_run() local 167 memcpy(cdb, io_hdr->cmdp, io_hdr->cmd_len); in pr_manager_helper_run() 168 assert(cdb[0] == PERSISTENT_RESERVE_OUT || cdb[0] == PERSISTENT_RESERVE_IN); in pr_manager_helper_run() 170 (cdb[0] == PERSISTENT_RESERVE_OUT ? SG_DXFER_TO_DEV : SG_DXFER_FROM_DEV); in pr_manager_helper_run() 175 len = scsi_cdb_xfer(cdb); in pr_manager_helper_run() 194 ret = pr_manager_helper_write(pr_mgr, fd, cdb, ARRAY_SIZE(cdb), NULL); in pr_manager_helper_run()
|
/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 98 assert(cdb); in scsi_task_new() 101 memcpy(task->cdb, cdb, cdb_len); in scsi_task_new() 109 static int get_cdb_len(uint8_t *cdb) in get_cdb_len() argument 111 assert(cdb); in get_cdb_len() 113 switch (cdb[0] >> 5) { in get_cdb_len() 120 g_warning("Unable to determine cdb len (0x%02hhX)", (uint8_t)(cdb[0] >> 5)); in get_cdb_len() 155 cdb_len = get_cdb_len(req->cdb); in handle_cmd_sync() 175 task = scsi_task_new(cdb_len, req->cdb, dir, len); in handle_cmd_sync()
|
/openbmc/linux/drivers/dma/ |
H A D | fsl_raid.c | 324 u32 cdb; in fsl_re_prep_dma_genq() local 347 cdb |= (src_cnt - 1) << FSL_RE_CDB_NRCS_SHIFT; in fsl_re_prep_dma_genq() 350 cdb |= FSL_RE_DATA_DEP << FSL_RE_CDB_DEPEND_SHIFT; in fsl_re_prep_dma_genq() 352 xor->cdb32 = cdb; in fsl_re_prep_dma_genq() 411 u32 cdb; in fsl_re_prep_dma_pq() local 465 cdb = FSL_RE_PQ_OPCODE << FSL_RE_CDB_OPCODE_SHIFT; in fsl_re_prep_dma_pq() 466 cdb |= (src_cnt - 1) << FSL_RE_CDB_NRCS_SHIFT; in fsl_re_prep_dma_pq() 469 cdb |= FSL_RE_DATA_DEP << FSL_RE_CDB_DEPEND_SHIFT; in fsl_re_prep_dma_pq() 472 pq->cdb32 = cdb; in fsl_re_prep_dma_pq() 534 u32 cdb; in fsl_re_prep_dma_memcpy() local [all …]
|
/openbmc/linux/drivers/scsi/esas2r/ |
H A D | esas2r_io.c | 533 u8 *cdb = (u8 *)&rq->vrq->scsi.cdb[0]; in esas2r_build_sg_list_prd() local 550 MAKEDWORD(MAKEWORD(cdb[9], in esas2r_build_sg_list_prd() 551 cdb[8]), in esas2r_build_sg_list_prd() 552 MAKEWORD(cdb[7], in esas2r_build_sg_list_prd() 553 cdb[6])); in esas2r_build_sg_list_prd() 564 MAKEDWORD(MAKEWORD(cdb[5], in esas2r_build_sg_list_prd() 565 cdb[4]), in esas2r_build_sg_list_prd() 566 MAKEWORD(cdb[3], in esas2r_build_sg_list_prd() 567 cdb[2])); in esas2r_build_sg_list_prd() 577 cdb[2]), in esas2r_build_sg_list_prd() [all …]
|
/openbmc/linux/include/trace/events/ |
H A D | target.h | 145 __array( unsigned char, cdb, TCM_MAX_COMMAND_SIZE ) 156 memcpy(__entry->cdb, cmd->t_task_cdb, TCM_MAX_COMMAND_SIZE); 163 __entry->data_length, __print_hex(__entry->cdb, 16), 184 __array( unsigned char, cdb, TCM_MAX_COMMAND_SIZE ) 199 memcpy(__entry->cdb, cmd->t_task_cdb, TCM_MAX_COMMAND_SIZE); 211 __entry->data_length, __print_hex(__entry->cdb, 16),
|
/openbmc/linux/drivers/scsi/device_handler/ |
H A D | scsi_dh_emc.c | 239 unsigned char cdb[MAX_COMMAND_SIZE]; in send_trespass_cmd() local 254 cdb[0] = MODE_SELECT; in send_trespass_cmd() 255 cdb[1] = 0x10; in send_trespass_cmd() 256 cdb[4] = len; in send_trespass_cmd() 263 cdb[0] = MODE_SELECT_10; in send_trespass_cmd() 264 cdb[8] = len; in send_trespass_cmd() 269 err = scsi_execute_cmd(sdev, cdb, opf, csdev->buffer, len, in send_trespass_cmd()
|
H A D | scsi_dh_rdac.c | 266 unsigned char *cdb) in rdac_failover_get() argument 306 cdb[0] = MODE_SELECT_10; in rdac_failover_get() 307 cdb[7] = data_size >> 8; in rdac_failover_get() 308 cdb[8] = data_size & 0xff; in rdac_failover_get() 310 cdb[0] = MODE_SELECT; in rdac_failover_get() 311 cdb[4] = data_size; in rdac_failover_get() 536 unsigned char cdb[MAX_COMMAND_SIZE]; in send_mode_select() local 552 memset(cdb, 0, sizeof(cdb)); in send_mode_select() 554 data_size = rdac_failover_get(ctlr, &list, cdb); in send_mode_select() 561 if (scsi_execute_cmd(sdev, cdb, opf, &h->ctlr->mode_select, data_size, in send_mode_select()
|
/openbmc/linux/drivers/scsi/megaraid/ |
H A D | megaraid_sas_fusion.c | 2454 flagvals = cdb[1]; in megasas_set_pd_lba() 2456 control = cdb[15]; in megasas_set_pd_lba() 2466 cdb[0] = opcode; in megasas_set_pd_lba() 2467 cdb[1] = flagvals; in megasas_set_pd_lba() 2468 cdb[6] = groupnum; in megasas_set_pd_lba() 2469 cdb[9] = control; in megasas_set_pd_lba() 2482 control = cdb[5]; in megasas_set_pd_lba() 2489 control = cdb[9]; in megasas_set_pd_lba() 2502 cdb[0] = opcode; in megasas_set_pd_lba() 2503 cdb[1] = flagvals; in megasas_set_pd_lba() [all …]
|
/openbmc/linux/drivers/scsi/ibmvscsi_tgt/ |
H A D | ibmvscsi_tgt.h | 337 #define READ_CMD(cdb) (((cdb)[0] & 0x1F) == 8) argument 338 #define WRITE_CMD(cdb) (((cdb)[0] & 0x1F) == 0xA) argument
|
/openbmc/qemu/hw/ufs/ |
H A D | lu.c | 101 if (req->req_upiu.sc.cdb[2] != 0) { in ufs_emulate_report_luns() 129 uint8_t page_code = req->req_upiu.sc.cdb[2]; in ufs_scsi_emulate_vpd_page() 169 if (req->req_upiu.sc.cdb[1] & 0x1) { in ufs_emulate_wlun_inquiry() 175 if (req->req_upiu.sc.cdb[2] != 0) { in ufs_emulate_wlun_inquiry() 202 switch (req->req_upiu.sc.cdb[0]) { in ufs_emulate_scsi_cmd() 261 if (req->req_upiu.sc.cdb[0] == REPORT_LUNS) { in ufs_process_scsi_cmd() 266 scsi_req_new(lu->scsi_dev, task_tag, lu->lun, req->req_upiu.sc.cdb, in ufs_process_scsi_cmd()
|
/openbmc/linux/drivers/usb/storage/ |
H A D | ene_ub6250.c | 674 unsigned char *cdb = srb->cmnd; in sd_scsi_read() local 678 u32 bn = ((cdb[2] << 24) & 0xff000000) | ((cdb[3] << 16) & 0x00ff0000) | in sd_scsi_read() 679 ((cdb[4] << 8) & 0x0000ff00) | ((cdb[5] << 0) & 0x000000ff); in sd_scsi_read() 680 u16 blen = ((cdb[7] << 8) & 0xff00) | ((cdb[8] << 0) & 0x00ff); in sd_scsi_read() 718 u32 bn = ((cdb[2] << 24) & 0xff000000) | ((cdb[3] << 16) & 0x00ff0000) | in sd_scsi_write() 719 ((cdb[4] << 8) & 0x0000ff00) | ((cdb[5] << 0) & 0x000000ff); in sd_scsi_write() 720 u16 blen = ((cdb[7] << 8) & 0xff00) | ((cdb[8] << 0) & 0x00ff); in sd_scsi_write() 1642 u32 bn = ((cdb[2] << 24) & 0xff000000) | ((cdb[3] << 16) & 0x00ff0000) | in ms_scsi_read() 1643 ((cdb[4] << 8) & 0x0000ff00) | ((cdb[5] << 0) & 0x000000ff); in ms_scsi_read() 1644 u16 blen = ((cdb[7] << 8) & 0xff00) | ((cdb[8] << 0) & 0x00ff); in ms_scsi_read() [all …]
|