/drivers/scsi/ |
D | sr_ioctl.c | 58 cgc.data_direction = DMA_FROM_DEVICE; in sr_read_tochdr() 89 cgc.data_direction = DMA_FROM_DEVICE; in sr_read_tocentry() 152 cgc.data_direction = DMA_NONE; in sr_fake_playtrkind() 172 cgc.data_direction = DMA_NONE; in sr_play_trkind() 209 result = scsi_execute(SDev, cgc->cmd, cgc->data_direction, in sr_do_ioctl() 281 cgc.data_direction = DMA_NONE; in sr_tray_move() 410 cgc.data_direction = DMA_FROM_DEVICE; in sr_get_mcn() 440 cgc.data_direction = DMA_NONE; in sr_select_speed() 515 cgc.data_direction = DMA_FROM_DEVICE; in sr_read_cd() 558 cgc.data_direction = DMA_FROM_DEVICE; in sr_read_sector()
|
D | sr_vendor.c | 140 cgc.data_direction = DMA_TO_DEVICE; in sr_set_blocklength() 188 cgc.data_direction = DMA_FROM_DEVICE; in sr_cd_check() 216 cgc.data_direction = DMA_FROM_DEVICE; in sr_cd_check() 245 cgc.data_direction = DMA_FROM_DEVICE; in sr_cd_check() 273 cgc.data_direction = DMA_FROM_DEVICE; in sr_cd_check() 291 cgc.data_direction = DMA_FROM_DEVICE; in sr_cd_check()
|
/drivers/target/iscsi/ |
D | iscsi_target_seq_pdu_list.c | 223 if (cmd->se_cmd.data_direction == DMA_TO_DEVICE) in iscsit_determine_counts_for_list() 306 if (cmd->se_cmd.data_direction == DMA_TO_DEVICE) in iscsit_do_build_pdu_and_seq_lists() 455 if (bl->data_direction & ISCSI_PDU_WRITE) { in iscsit_do_build_pdu_and_seq_lists() 462 } else if (bl->data_direction & ISCSI_PDU_READ) { in iscsit_do_build_pdu_and_seq_lists() 474 if (bl->data_direction & ISCSI_PDU_WRITE) { in iscsit_do_build_pdu_and_seq_lists() 481 } else if (bl->data_direction & ISCSI_PDU_READ) { in iscsit_do_build_pdu_and_seq_lists() 516 if (cmd->data_direction == DMA_NONE) in iscsit_build_pdu_and_seq_lists() 522 if (cmd->data_direction == DMA_FROM_DEVICE) { in iscsit_build_pdu_and_seq_lists() 523 bl.data_direction = ISCSI_PDU_READ; in iscsit_build_pdu_and_seq_lists() 530 bl.data_direction = ISCSI_PDU_WRITE; in iscsit_build_pdu_and_seq_lists()
|
D | iscsi_target_tmr.c | 403 switch (cmd->data_direction) { in iscsit_task_reassign_complete_scsi_cmnd() 412 cmd->data_direction); in iscsit_task_reassign_complete_scsi_cmnd() 798 if (ref_cmd->data_direction == DMA_NONE) in iscsit_check_task_reassign_expdatasn() 808 if (ref_cmd->data_direction == DMA_FROM_DEVICE) { in iscsit_check_task_reassign_expdatasn() 834 if (ref_cmd->data_direction == DMA_TO_DEVICE) { in iscsit_check_task_reassign_expdatasn() 846 ref_cmd->data_direction); in iscsit_check_task_reassign_expdatasn()
|
D | iscsi_target_seq_pdu_list.h | 45 int data_direction; member
|
D | iscsi_target.c | 1001 int data_direction, payload_length; in iscsit_setup_scsi_cmd() local 1104 data_direction = (hdr->flags & ISCSI_FLAG_CMD_WRITE) ? DMA_TO_DEVICE : in iscsit_setup_scsi_cmd() 1108 cmd->data_direction = data_direction; in iscsit_setup_scsi_cmd() 1147 cmd->data_direction == DMA_FROM_DEVICE) { in iscsit_setup_scsi_cmd() 1163 cmd->data_direction, sam_task_attr, in iscsit_setup_scsi_cmd() 1488 if (cmd->data_direction != DMA_TO_DEVICE) { in iscsit_check_dataout_hdr() 1760 cmd->data_direction = DMA_NONE; in iscsit_setup_nop_out() 1973 cmd->data_direction = DMA_NONE; in iscsit_handle_task_mgt_cmd() 2172 cmd->data_direction = DMA_NONE; in iscsit_setup_text_cmd() 2485 cmd->data_direction = DMA_NONE; in iscsit_handle_logout_cmd() [all …]
|
D | iscsi_target_erl1.c | 482 switch (cmd->data_direction) { in iscsit_handle_recovery_datain_or_r2t() 490 cmd->data_direction); in iscsit_handle_recovery_datain_or_r2t() 996 if ((cmd->data_direction == DMA_TO_DEVICE) && in iscsit_execute_cmd()
|
D | iscsi_target_erl2.c | 391 if (cmd->data_direction == DMA_TO_DEVICE) in iscsit_prepare_cmds_for_realligance()
|
/drivers/target/ |
D | target_core_rd.c | 439 enum dma_data_direction data_direction) in rd_execute_rw() argument 471 data_direction == DMA_FROM_DEVICE ? "Read" : "Write", in rd_execute_rw() 475 data_direction == DMA_TO_DEVICE) { in rd_execute_rw() 483 data_direction == DMA_FROM_DEVICE ? in rd_execute_rw() 507 if (data_direction == DMA_FROM_DEVICE) in rd_execute_rw() 543 data_direction == DMA_FROM_DEVICE) { in rd_execute_rw()
|
D | target_core_device.c | 72 if (se_cmd->data_direction == DMA_TO_DEVICE) in transport_lookup_cmd_lun() 75 else if (se_cmd->data_direction == DMA_FROM_DEVICE) in transport_lookup_cmd_lun() 92 if ((se_cmd->data_direction == DMA_TO_DEVICE) && in transport_lookup_cmd_lun() 131 if ((se_cmd->data_direction != DMA_FROM_DEVICE) && in transport_lookup_cmd_lun() 132 (se_cmd->data_direction != DMA_NONE)) { in transport_lookup_cmd_lun() 147 if (se_cmd->data_direction == DMA_TO_DEVICE) in transport_lookup_cmd_lun() 150 else if (se_cmd->data_direction == DMA_FROM_DEVICE) in transport_lookup_cmd_lun()
|
D | target_core_transport.c | 850 switch (cmd->data_direction) { in transport_dump_cmd_direction() 1202 if (cmd->data_direction == DMA_TO_DEVICE) { in target_cmd_size_check() 1262 int data_direction, in transport_init_se_cmd() argument 1279 cmd->data_direction = data_direction; in transport_init_se_cmd() 1553 se_cmd->data_direction == DMA_FROM_DEVICE) { in target_submit_cmd_map_sgls() 2037 switch (cmd->data_direction) { in transport_complete_qf() 2172 switch (cmd->data_direction) { in target_complete_ok_work() 2232 " data_direction: %d\n", cmd, cmd->data_direction); in target_complete_ok_work() 2477 if (cmd->data_direction != DMA_TO_DEVICE || cmd->data_length == 0) { in transport_generic_new_cmd() 3089 if (cmd->data_direction == DMA_TO_DEVICE) { in transport_send_task_abort()
|
D | target_core_user.c | 538 copy_to_data_area = (se_cmd->data_direction == DMA_TO_DEVICE in tcmu_queue_cmd_ring() 632 } else if (se_cmd->data_direction == DMA_FROM_DEVICE) { in tcmu_handle_completion() 635 } else if (se_cmd->data_direction == DMA_TO_DEVICE) { in tcmu_handle_completion() 637 } else if (se_cmd->data_direction != DMA_NONE) { in tcmu_handle_completion() 639 se_cmd->data_direction); in tcmu_handle_completion()
|
D | target_core_iblock.c | 673 enum dma_data_direction data_direction) in iblock_execute_rw() argument 685 if (data_direction == DMA_TO_DEVICE) { in iblock_execute_rw()
|
D | target_core_sbc.c | 446 cmd->data_direction); in sbc_execute_rw() 943 if (cmd->data_direction != DMA_TO_DEVICE || in sbc_parse_cdb() 1310 (cmd->data_direction == DMA_TO_DEVICE) ? in sbc_dif_generate()
|
D | target_core_file.c | 526 enum dma_data_direction data_direction) in fd_execute_rw() argument 548 if (data_direction == DMA_FROM_DEVICE) { in fd_execute_rw()
|
D | target_core_pscsi.c | 867 int rw = (cmd->data_direction == DMA_TO_DEVICE); in pscsi_map_sg() 990 (cmd->data_direction == DMA_TO_DEVICE), in pscsi_execute_cmd()
|
/drivers/vhost/ |
D | scsi.c | 574 u32 exp_data_len, int data_direction) in vhost_scsi_get_tag() argument 610 cmd->tvc_data_direction = data_direction; in vhost_scsi_get_tag() 846 u32 exp_data_len, data_direction; in vhost_scsi_handle_vq() local 963 data_direction = DMA_TO_DEVICE; in vhost_scsi_handle_vq() 967 data_direction = DMA_FROM_DEVICE; in vhost_scsi_handle_vq() 975 data_direction = DMA_NONE; in vhost_scsi_handle_vq() 985 if (data_direction != DMA_TO_DEVICE) { in vhost_scsi_handle_vq() 993 if (data_direction != DMA_FROM_DEVICE) { in vhost_scsi_handle_vq() 1039 data_direction); in vhost_scsi_handle_vq() 1054 " %d\n", cmd, exp_data_len, prot_bytes, data_direction); in vhost_scsi_handle_vq() [all …]
|
/drivers/scsi/pm8001/ |
D | pm8001_defs.h | 65 enum data_direction { enum
|
/drivers/scsi/smartpqi/ |
D | smartpqi_init.c | 178 size_t buffer_length, int data_direction) in pqi_map_single() argument 182 if (!buffer || buffer_length == 0 || data_direction == PCI_DMA_NONE) in pqi_map_single() 186 data_direction); in pqi_map_single() 199 int data_direction) in pqi_pci_unmap() argument 203 if (data_direction == PCI_DMA_NONE) in pqi_pci_unmap() 210 data_direction); in pqi_pci_unmap() 236 request->data_direction = SOP_READ_FLAG; in pqi_build_raid_path_request() 246 request->data_direction = SOP_READ_FLAG; in pqi_build_raid_path_request() 255 request->data_direction = SOP_READ_FLAG; in pqi_build_raid_path_request() 261 request->data_direction = SOP_WRITE_FLAG; in pqi_build_raid_path_request() [all …]
|
D | smartpqi.h | 257 u8 data_direction : 2; member 280 u8 data_direction : 2; member
|
/drivers/cdrom/ |
D | cdrom.c | 1588 cgc->data_direction = type; in init_cdrom_command() 1616 cgc->data_direction = CGC_DATA_READ; in setup_report_key() 1638 cgc->data_direction = CGC_DATA_WRITE; in setup_send_key() 2006 cgc->data_direction = CGC_DATA_READ; in cdrom_mode_sense() 2021 cgc->data_direction = CGC_DATA_WRITE; in cdrom_mode_select() 2150 cgc.data_direction = CGC_DATA_READ; in cdrom_read_cdda_old() 2782 cgc.data_direction = CGC_DATA_WRITE; in cdrom_switch_blocksize() 2973 cgc->data_direction = CGC_DATA_READ; in mmc_ioctl_cdrom_read_data() 3064 cgc->data_direction = CGC_DATA_NONE; in mmc_ioctl_cdrom_play_msf() 3084 cgc->data_direction = CGC_DATA_NONE; in mmc_ioctl_cdrom_play_blk() [all …]
|
/drivers/usb/gadget/function/ |
D | storage_common.h | 175 enum data_direction { enum
|
/drivers/block/ |
D | cciss_scsi.c | 882 int data_direction) in cciss_unmap_one() argument 888 pci_unmap_single(pdev, (dma_addr_t) addr64.val, buflen, data_direction); in cciss_unmap_one() 896 int data_direction) in cciss_map_one() argument 900 addr64 = (__u64) pci_map_single(pdev, buf, buflen, data_direction); in cciss_map_one()
|
/drivers/s390/scsi/ |
D | zfcp_fsf.h | 305 u32 data_direction; member
|
/drivers/ide/ |
D | ide-cd_ioctl.c | 469 cgc->data_direction == CGC_DATA_WRITE, in ide_cdrom_packet()
|