Home
last modified time | relevance | path

Searched refs:cdb (Results 1 – 25 of 168) sorted by relevance

1234567

/linux/tools/lib/traceevent/plugins/
A Dplugin_scsi.c150 #define SERVICE_ACTION16(cdb) (cdb[1] & 0x1f) argument
151 #define SERVICE_ACTION32(cdb) ((cdb[8] << 8) | cdb[9]) argument
164 lba |= cdb[3]; in scsi_trace_rw6()
165 txlen = cdb[4]; in scsi_trace_rw6()
182 lba |= cdb[5]; in scsi_trace_rw10()
188 cdb[1] >> 5); in scsi_trace_rw10()
206 lba |= cdb[5]; in scsi_trace_rw12()
214 cdb[1] >> 5); in scsi_trace_rw12()
232 lba |= cdb[9]; in scsi_trace_rw16()
307 unsigned int regions = cdb[7] << 8 | cdb[8]; in scsi_trace_unmap()
[all …]
/linux/drivers/scsi/
A Dscsi_trace.c11 #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 …]
A Dscsi_debugfs.c38 const u8 *const cdb = READ_ONCE(cmd->cmnd); in scsi_show_rq() local
41 if (cdb) in scsi_show_rq()
42 __scsi_format_command(buf, sizeof(buf), cdb, cmd->cmd_len); in scsi_show_rq()
A Dpmcraid.c691 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()
2750 ioarcb->cdb[1] = modifier; in pmcraid_reset_device()
2809 cmd->ioa_cb->ioarcb.cdb[0], in _pmcraid_io_done()
2869 cmd->ioa_cb->ioarcb.cdb[0], in pmcraid_abort_cmd()
[all …]
A D3w-sas.c293 unsigned char *cdb, int use_sg, in twl_scsiop_execute_scsi() argument
317 if (!cdb) in twl_scsiop_execute_scsi()
320 memcpy(command_packet->cdb, cdb, TW_MAX_CDB_LEN); in twl_scsiop_execute_scsi()
376 unsigned char cdb[TW_MAX_CDB_LEN]; in twl_aen_read_queue() local
385 memset(&cdb, 0, TW_MAX_CDB_LEN); in twl_aen_read_queue()
386 cdb[0] = REQUEST_SENSE; /* opcode */ in twl_aen_read_queue()
387 cdb[4] = TW_ALLOCATION_LENGTH; /* allocation length */ in twl_aen_read_queue()
558 unsigned char cdb[TW_MAX_CDB_LEN]; in twl_aen_drain_queue() local
575 memset(&cdb, 0, TW_MAX_CDB_LEN); in twl_aen_drain_queue()
576 cdb[0] = REQUEST_SENSE; /* opcode */ in twl_aen_drain_queue()
[all …]
A Dhpsa.c4705 cdb[3]); in fixup_ioaccel_cdb()
4718 cdb[1] = 0; in fixup_ioaccel_cdb()
4723 cdb[6] = 0; in fixup_ioaccel_cdb()
4726 cdb[9] = 0; in fixup_ioaccel_cdb()
5015 memcpy(cp->cdb, cdb, sizeof(cp->cdb)); in hpsa_scsi_ioaccel2_queue_command()
5131 u8 cdb[16]; in hpsa_scsi_ioaccel_raid_map() local
5419 cdb[1] = 0; in hpsa_scsi_ioaccel_raid_map()
5432 cdb[14] = 0; in hpsa_scsi_ioaccel_raid_map()
5437 cdb[1] = 0; in hpsa_scsi_ioaccel_raid_map()
5442 cdb[6] = 0; in hpsa_scsi_ioaccel_raid_map()
[all …]
/linux/drivers/isdn/capi/
A Dcapiutil.c393 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 …]
A Dkcapi.c307 _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 …]
/linux/drivers/target/
A Dtarget_core_sbc.c53 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()
800 if (cdb[1] & 0x10) { in sbc_check_dpofua()
808 if (cdb[1] & 0x8) { in sbc_check_dpofua()
812 cdb[0]); in sbc_check_dpofua()
831 switch (cdb[0]) { in sbc_parse_cdb()
1001 sectors = cdb[13]; in sbc_parse_cdb()
[all …]
A Dtarget_core_spc.c751 if (cdb[2]) { in spc_emulate_inquiry()
753 cdb[2]); in spc_emulate_inquiry()
765 buf[1] = cdb[2]; in spc_emulate_inquiry()
1026 u8 pc = cdb[2] >> 6; in spc_emulate_modesense()
1028 u8 subpage = cdb[3]; in spc_emulate_modesense()
1320 (cdb[0] == RELEASE || cdb[0] == RELEASE_10) || in spc_parse_cdb()
1321 (cdb[0] == RESERVE || cdb[0] == RESERVE_10))) { in spc_parse_cdb()
1325 switch (cdb[0]) { in spc_parse_cdb()
1327 *size = cdb[4]; in spc_parse_cdb()
1335 *size = cdb[4]; in spc_parse_cdb()
[all …]
A Dtarget_core_pscsi.c145 cdb[0] = MODE_SENSE; in pscsi_tape_read_blocksize()
146 cdb[4] = 0x0c; /* 12 bytes */ in pscsi_tape_read_blocksize()
194 cdb[0] = INQUIRY; in pscsi_get_inquiry_vpd_serial()
195 cdb[1] = 0x01; /* Query VPD */ in pscsi_get_inquiry_vpd_serial()
229 cdb[0] = INQUIRY; 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()
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()
[all …]
A Dtarget_core_xcopy.c525 unsigned char *cdb, in target_xcopy_setup_pt_cmd() argument
591 unsigned char cdb[16]; in target_xcopy_read_source() local
597 memset(&cdb[0], 0, 16); in target_xcopy_read_source()
598 cdb[0] = READ_16; in target_xcopy_read_source()
599 put_unaligned_be64(src_lba, &cdb[2]); in target_xcopy_read_source()
600 put_unaligned_be32(src_sectors, &cdb[10]); in target_xcopy_read_source()
636 unsigned char cdb[16]; in target_xcopy_write_destination() local
642 memset(&cdb[0], 0, 16); in target_xcopy_write_destination()
643 cdb[0] = WRITE_16; in target_xcopy_write_destination()
644 put_unaligned_be64(dst_lba, &cdb[2]); in target_xcopy_write_destination()
[all …]
A Dtarget_core_device.c1095 unsigned char *cdb = cmd->t_task_cdb; in passthrough_parse_cdb() local
1103 if (cdb[0] == REPORT_LUNS) { in passthrough_parse_cdb()
1115 (cdb[0] == RELEASE || cdb[0] == RELEASE_10) || in passthrough_parse_cdb()
1116 (cdb[0] == RESERVE || cdb[0] == RESERVE_10))) { in passthrough_parse_cdb()
1129 size = get_unaligned_be16(&cdb[7]); in passthrough_parse_cdb()
1134 size = get_unaligned_be32(&cdb[5]); in passthrough_parse_cdb()
1138 if (cdb[0] == RELEASE || cdb[0] == RELEASE_10) { in passthrough_parse_cdb()
1140 if (cdb[0] == RELEASE_10) in passthrough_parse_cdb()
1146 if (cdb[0] == RESERVE || cdb[0] == RESERVE_10) { in passthrough_parse_cdb()
1148 if (cdb[0] == RESERVE_10) in passthrough_parse_cdb()
[all …]
A Dtarget_core_alua.c433 unsigned char *cdb, in core_alua_state_nonoptimized() argument
517 unsigned char *cdb) in core_alua_state_standby() argument
523 switch (cdb[0]) { in core_alua_state_standby()
535 switch (cdb[1] & 0x1f) { in core_alua_state_standby()
542 switch (cdb[1] & 0x1f) { in core_alua_state_standby()
549 switch (cdb[1]) { in core_alua_state_standby()
570 unsigned char *cdb) in core_alua_state_unavailable() argument
576 switch (cdb[0]) { in core_alua_state_unavailable()
588 switch (cdb[1]) { in core_alua_state_unavailable()
607 unsigned char *cdb) in core_alua_state_transition() argument
[all …]
/linux/drivers/ata/
A Dlibata-scsi.c1190 if (cdb[1] & 0x1) { in ata_scsi_start_stop_xlat()
1193 if (cdb[4] & 0x2) { in ata_scsi_start_stop_xlat()
1204 if (cdb[4] & 0x1) { in ata_scsi_start_stop_xlat()
1308 len = cdb[4]; in scsi_6_lba_len()
1551 if (cdb[0] == WRITE_10 || cdb[0] == WRITE_6 || cdb[0] == WRITE_16) in ata_scsi_rw_xlat()
1555 switch (cdb[0]) { in ata_scsi_rw_xlat()
1664 if (((cdb[0] == ATA_16) || (cdb[0] == ATA_12)) && in ata_scsi_qc_complete()
3286 switch (cdb[3]) { in ata_scsiop_maint_in()
3710 len = cdb[4]; in ata_scsi_mode_select_xlat()
3718 len = (cdb[7] << 8) + cdb[8]; in ata_scsi_mode_select_xlat()
[all …]
A Dlibata-zpodd.c38 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()
/linux/drivers/dma/
A Dfsl_raid.c323 u32 cdb; in fsl_re_prep_dma_genq() local
346 cdb |= (src_cnt - 1) << FSL_RE_CDB_NRCS_SHIFT; in fsl_re_prep_dma_genq()
349 cdb |= FSL_RE_DATA_DEP << FSL_RE_CDB_DEPEND_SHIFT; in fsl_re_prep_dma_genq()
351 xor->cdb32 = cdb; in fsl_re_prep_dma_genq()
410 u32 cdb; in fsl_re_prep_dma_pq() local
464 cdb = FSL_RE_PQ_OPCODE << FSL_RE_CDB_OPCODE_SHIFT; in fsl_re_prep_dma_pq()
465 cdb |= (src_cnt - 1) << FSL_RE_CDB_NRCS_SHIFT; in fsl_re_prep_dma_pq()
468 cdb |= FSL_RE_DATA_DEP << FSL_RE_CDB_DEPEND_SHIFT; in fsl_re_prep_dma_pq()
471 pq->cdb32 = cdb; in fsl_re_prep_dma_pq()
533 u32 cdb; in fsl_re_prep_dma_memcpy() local
[all …]
/linux/drivers/scsi/esas2r/
A Desas2r_io.c533 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 …]
/linux/drivers/scsi/megaraid/
A Dmegaraid_sas_fusion.c2453 flagvals = cdb[1]; in megasas_set_pd_lba()
2455 control = cdb[15]; in megasas_set_pd_lba()
2465 cdb[0] = opcode; in megasas_set_pd_lba()
2466 cdb[1] = flagvals; in megasas_set_pd_lba()
2467 cdb[6] = groupnum; in megasas_set_pd_lba()
2468 cdb[9] = control; in megasas_set_pd_lba()
2481 control = cdb[5]; in megasas_set_pd_lba()
2488 control = cdb[9]; in megasas_set_pd_lba()
2501 cdb[0] = opcode; in megasas_set_pd_lba()
2502 cdb[1] = flagvals; in megasas_set_pd_lba()
[all …]
/linux/include/trace/events/
A Dtarget.h145 __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),
/linux/drivers/scsi/device_handler/
A Dscsi_dh_emc.c239 unsigned char cdb[MAX_COMMAND_SIZE]; in send_trespass_cmd() local
251 cdb[0] = MODE_SELECT; in send_trespass_cmd()
252 cdb[1] = 0x10; in send_trespass_cmd()
253 cdb[4] = len; in send_trespass_cmd()
260 cdb[0] = MODE_SELECT_10; in send_trespass_cmd()
261 cdb[8] = len; in send_trespass_cmd()
266 err = scsi_execute(sdev, cdb, DMA_TO_DEVICE, csdev->buffer, len, NULL, in send_trespass_cmd()
A Dscsi_dh_rdac.c266 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
549 memset(cdb, 0, sizeof(cdb)); in send_mode_select()
551 data_size = rdac_failover_get(ctlr, &list, cdb); in send_mode_select()
558 if (scsi_execute(sdev, cdb, DMA_TO_DEVICE, &h->ctlr->mode_select, in send_mode_select()
A Dscsi_dh_alua.c129 u8 cdb[MAX_COMMAND_SIZE]; in submit_rtpg() local
134 memset(cdb, 0x0, MAX_COMMAND_SIZE); in submit_rtpg()
135 cdb[0] = MAINTENANCE_IN; in submit_rtpg()
137 cdb[1] = MI_REPORT_TARGET_PGS | MI_EXT_HDR_PARAM_FMT; in submit_rtpg()
139 cdb[1] = MI_REPORT_TARGET_PGS; in submit_rtpg()
140 put_unaligned_be32(bufflen, &cdb[6]); in submit_rtpg()
157 u8 cdb[MAX_COMMAND_SIZE]; in submit_stpg() local
169 memset(cdb, 0x0, MAX_COMMAND_SIZE); in submit_stpg()
170 cdb[0] = MAINTENANCE_OUT; in submit_stpg()
171 cdb[1] = MO_SET_TARGET_PGS; in submit_stpg()
[all …]
/linux/drivers/scsi/ibmvscsi_tgt/
A Dibmvscsi_tgt.h337 #define READ_CMD(cdb) (((cdb)[0] & 0x1F) == 8) argument
338 #define WRITE_CMD(cdb) (((cdb)[0] & 0x1F) == 0xA) argument
/linux/drivers/usb/storage/
A Dene_ub6250.c677 unsigned char *cdb = srb->cmnd; in sd_scsi_read() local
681 u32 bn = ((cdb[2] << 24) & 0xff000000) | ((cdb[3] << 16) & 0x00ff0000) | in sd_scsi_read()
682 ((cdb[4] << 8) & 0x0000ff00) | ((cdb[5] << 0) & 0x000000ff); in sd_scsi_read()
683 u16 blen = ((cdb[7] << 8) & 0xff00) | ((cdb[8] << 0) & 0x00ff); in sd_scsi_read()
721 u32 bn = ((cdb[2] << 24) & 0xff000000) | ((cdb[3] << 16) & 0x00ff0000) | in sd_scsi_write()
722 ((cdb[4] << 8) & 0x0000ff00) | ((cdb[5] << 0) & 0x000000ff); in sd_scsi_write()
723 u16 blen = ((cdb[7] << 8) & 0xff00) | ((cdb[8] << 0) & 0x00ff); in sd_scsi_write()
1645 u32 bn = ((cdb[2] << 24) & 0xff000000) | ((cdb[3] << 16) & 0x00ff0000) | in ms_scsi_read()
1646 ((cdb[4] << 8) & 0x0000ff00) | ((cdb[5] << 0) & 0x000000ff); in ms_scsi_read()
1647 u16 blen = ((cdb[7] << 8) & 0xff00) | ((cdb[8] << 0) & 0x00ff); in ms_scsi_read()
[all …]

Completed in 85 milliseconds

1234567