/Linux-v5.10/block/ |
D | mq-deadline.c | 98 const int data_dir = rq_data_dir(rq); in deadline_del_rq_rb() local 100 if (dd->next_rq[data_dir] == rq) in deadline_del_rq_rb() 101 dd->next_rq[data_dir] = deadline_latter_request(rq); in deadline_del_rq_rb() 167 const int data_dir = rq_data_dir(rq); in deadline_move_request() local 171 dd->next_rq[data_dir] = deadline_latter_request(rq); in deadline_move_request() 201 deadline_fifo_request(struct deadline_data *dd, int data_dir) in deadline_fifo_request() argument 206 if (WARN_ON_ONCE(data_dir != READ && data_dir != WRITE)) in deadline_fifo_request() 209 if (list_empty(&dd->fifo_list[data_dir])) in deadline_fifo_request() 212 rq = rq_entry_fifo(dd->fifo_list[data_dir].next); in deadline_fifo_request() 213 if (data_dir == READ || !blk_queue_is_zoned(rq->q)) in deadline_fifo_request() [all …]
|
/Linux-v5.10/drivers/md/ |
D | dm-cache-policy-internal.h | 16 int data_dir, bool fast_copy, bool *background_queued) in policy_lookup() argument 18 return p->lookup(p, oblock, cblock, data_dir, fast_copy, background_queued); in policy_lookup() 23 int data_dir, bool fast_copy, in policy_lookup_with_work() argument 28 return p->lookup(p, oblock, cblock, data_dir, fast_copy, NULL); in policy_lookup_with_work() 31 return p->lookup_with_work(p, oblock, cblock, data_dir, fast_copy, work); in policy_lookup_with_work()
|
D | dm-cache-policy.h | 57 int data_dir, bool fast_copy, bool *background_queued); 70 int data_dir, bool fast_copy,
|
D | dm-cache-policy-smq.c | 1281 int data_dir, bool fast_promote) in should_promote() argument 1283 if (data_dir == WRITE) { in should_promote() 1366 int data_dir, bool fast_copy, in __lookup() argument 1390 pr = should_promote(mq, hs_e, data_dir, fast_copy); in __lookup() 1401 int data_dir, bool fast_copy, in smq_lookup() argument 1410 data_dir, fast_copy, in smq_lookup() 1419 int data_dir, bool fast_copy, in smq_lookup_with_work() argument 1428 r = __lookup(mq, oblock, cblock, data_dir, fast_copy, work, &background_queued); in smq_lookup_with_work()
|
/Linux-v5.10/drivers/scsi/aic94xx/ |
D | aic94xx_task.c | 45 if (task->data_dir == DMA_NONE) in asd_map_scatterlist() 52 task->data_dir); in asd_map_scatterlist() 65 task->num_scatter, task->data_dir); in asd_map_scatterlist() 112 task->num_scatter, task->data_dir); in asd_map_scatterlist() 121 if (task->data_dir == DMA_NONE) in asd_unmap_scatterlist() 128 task->total_xfer_len, task->data_dir); in asd_unmap_scatterlist() 135 task->num_scatter, task->data_dir); in asd_unmap_scatterlist() 386 flags |= data_dir_flags[task->data_dir]; in asd_build_ata_ascb() 496 scb->ssp_task.data_dir = data_dir_flags[task->data_dir]; in asd_build_ssp_ascb()
|
D | aic94xx_sas.h | 326 u8 data_dir; /* :1,0 */ member 563 u8 data_dir; /* 01b */ member
|
/Linux-v5.10/drivers/scsi/aacraid/ |
D | commctrl.c | 474 u32 data_dir; in aac_send_raw_srb() local 524 data_dir = DMA_TO_DEVICE; in aac_send_raw_srb() 527 data_dir = DMA_BIDIRECTIONAL; in aac_send_raw_srb() 530 data_dir = DMA_FROM_DEVICE; in aac_send_raw_srb() 533 data_dir = DMA_NONE; in aac_send_raw_srb() 541 if ((data_dir == DMA_NONE) && user_srbcmd->sg.count) { in aac_send_raw_srb() 572 switch (data_dir) { in aac_send_raw_srb() 674 data_dir); in aac_send_raw_srb() 736 sg_count[i], data_dir); in aac_send_raw_srb() 792 sg_count[i], data_dir); in aac_send_raw_srb() [all …]
|
/Linux-v5.10/drivers/mmc/host/ |
D | davinci_mmc.c | 182 unsigned char data_dir; member 246 if (host->data_dir == DAVINCI_MMC_DATADIR_WRITE) { in davinci_fifo_data_trans() 328 host->data_dir == DAVINCI_MMC_DATADIR_READ) in mmc_davinci_start_command() 336 if (host->data_dir == DAVINCI_MMC_DATADIR_WRITE) in mmc_davinci_start_command() 347 if (host->data_dir == DAVINCI_MMC_DATADIR_WRITE) { in mmc_davinci_start_command() 352 } else if (host->data_dir == DAVINCI_MMC_DATADIR_READ) { in mmc_davinci_start_command() 363 if (!host->do_dma && (host->data_dir == DAVINCI_MMC_DATADIR_WRITE)) in mmc_davinci_start_command() 392 if (host->data_dir == DAVINCI_MMC_DATADIR_READ) in davinci_abort_dma() 407 if (host->data_dir == DAVINCI_MMC_DATADIR_WRITE) { in mmc_davinci_send_dma_request() 527 host->data_dir = DAVINCI_MMC_DATADIR_NONE; in mmc_davinci_prepare_data() [all …]
|
/Linux-v5.10/drivers/target/tcm_fc/ |
D | tfc_cmd.c | 496 int data_dir = 0; in ft_send_work() local 516 data_dir = DMA_NONE; in ft_send_work() 519 data_dir = DMA_FROM_DEVICE; in ft_send_work() 522 data_dir = DMA_TO_DEVICE; in ft_send_work() 553 ntohl(fcp->fc_dl), task_attr, data_dir, in ft_send_work()
|
/Linux-v5.10/drivers/memstick/host/ |
D | tifm_ms.c | 217 t_size = host->req->data_dir == WRITE in tifm_ms_transfer_data() 234 if (!length && (host->req->data_dir == WRITE)) { in tifm_ms_transfer_data() 281 host->req->data_dir == READ in tifm_ms_issue_cmd() 294 if (host->req->data_dir == WRITE) in tifm_ms_issue_cmd() 352 host->req->data_dir == READ in tifm_ms_complete_cmd() 609 host->req->data_dir == READ in tifm_ms_remove()
|
D | rtsx_pci_ms.c | 128 static int ms_transfer_data(struct realtek_pci_ms *host, unsigned char data_dir, in ms_transfer_data() argument 140 __func__, tpc, (data_dir == READ) ? "READ" : "WRITE", in ms_transfer_data() 143 if (data_dir == READ) { in ms_transfer_data() 180 err = rtsx_pci_transfer_data(pcr, sg, 1, data_dir == READ, 10000); in ms_transfer_data() 352 err = ms_transfer_data(host, req->data_dir, in rtsx_pci_ms_issue_cmd() 355 if (req->data_dir == READ) { in rtsx_pci_ms_issue_cmd()
|
D | jmb38x_ms.c | 333 if (host->req->data_dir == WRITE) in jmb38x_ms_transfer_data() 354 if (!length && host->req->data_dir == WRITE) { in jmb38x_ms_transfer_data() 390 if (host->req->data_dir == READ) in jmb38x_ms_issue_cmd() 419 host->req->data_dir == READ in jmb38x_ms_issue_cmd() 437 t_val |= host->req->data_dir == READ in jmb38x_ms_issue_cmd() 448 if (host->req->data_dir == WRITE) { in jmb38x_ms_issue_cmd() 487 host->req->data_dir == READ in jmb38x_ms_complete_cmd() 491 if (host->req->data_dir == READ) in jmb38x_ms_complete_cmd() 557 if (host->req->data_dir == READ) { in jmb38x_ms_isr()
|
D | rtsx_usb_ms.c | 230 static int ms_transfer_data(struct rtsx_usb_ms *host, unsigned char data_dir, in ms_transfer_data() argument 242 __func__, tpc, (data_dir == READ) ? "READ" : "WRITE", in ms_transfer_data() 245 if (data_dir == READ) { in ms_transfer_data() 470 err = ms_transfer_data(host, req->data_dir, in rtsx_usb_ms_issue_cmd() 473 if (req->data_dir == READ) in rtsx_usb_ms_issue_cmd()
|
/Linux-v5.10/drivers/scsi/megaraid/ |
D | megaraid_mm.c | 388 kioc->data_dir = UIOC_RD; in mimd_to_kioc() 412 if (mimd.outlen) kioc->data_dir = UIOC_RD; in mimd_to_kioc() 413 if (mimd.inlen) kioc->data_dir |= UIOC_WR; in mimd_to_kioc() 428 if (mimd.outlen) kioc->data_dir = UIOC_RD; in mimd_to_kioc() 429 if (mimd.inlen) kioc->data_dir |= UIOC_WR; in mimd_to_kioc() 454 if (kioc->data_dir & UIOC_WR) { in mimd_to_kioc() 480 if (kioc->data_dir & UIOC_WR) { in mimd_to_kioc()
|
D | megaraid_ioctl.h | 125 uint32_t data_dir; member
|
/Linux-v5.10/drivers/hwmon/ |
D | drivetemp.c | 167 int data_dir; in drivetemp_scsi_command() local 178 data_dir = DMA_TO_DEVICE; in drivetemp_scsi_command() 186 data_dir = DMA_FROM_DEVICE; in drivetemp_scsi_command() 195 return scsi_execute_req(st->sdev, scsi_cmd, data_dir, in drivetemp_scsi_command()
|
/Linux-v5.10/drivers/memstick/core/ |
D | memstick.c | 270 mrq->data_dir = WRITE; in memstick_init_req_sg() 272 mrq->data_dir = READ; in memstick_init_req_sg() 300 mrq->data_dir = WRITE; in memstick_init_req() 302 mrq->data_dir = READ; in memstick_init_req() 305 if (mrq->data_dir == WRITE) in memstick_init_req()
|
D | mspro_block.c | 152 data_dir:1, member 639 memstick_init_req_sg(*mrq, msb->data_dir == READ in h_mspro_block_transfer_data() 727 msb->data_dir = rq_data_dir(msb->block_req); in mspro_block_issue_req() 728 msb->transfer_cmd = msb->data_dir == READ in mspro_block_issue_req() 755 if (msb->data_dir == READ) { in mspro_block_complete_req() 991 msb->data_dir = READ; in mspro_block_read_attributes() 1092 msb->data_dir = READ; in mspro_block_read_attributes()
|
/Linux-v5.10/drivers/scsi/isci/ |
D | request.c | 156 task->data_dir); in sci_request_build_sgl() 656 if (task->data_dir == DMA_NONE) in sci_atapi_construct() 704 if (task->data_dir == DMA_NONE) { in sci_io_request_construct_sata() 736 task->data_dir, in sci_io_request_construct_basic_ssp() 768 copy = (task->data_dir == DMA_NONE) ? false : true; in sci_io_request_construct_basic_sata() 772 task->data_dir, in sci_io_request_construct_basic_sata() 1643 if (task->data_dir == DMA_NONE) in atapi_d2h_reg_frame_handler() 1676 if (task->data_dir == DMA_TO_DEVICE) { in scu_atapi_construct_task_context() 1939 if (task->data_dir == DMA_FROM_DEVICE) { in sci_io_request_frame_handler() 1941 } else if (task->data_dir == DMA_TO_DEVICE) { in sci_io_request_frame_handler() [all …]
|
/Linux-v5.10/drivers/usb/gadget/function/ |
D | f_mass_storage.c | 296 enum data_direction data_dir; member 1501 switch (common->data_dir) { in finish_reply() 1659 enum data_direction data_dir, unsigned int mask, in check_command() argument 1669 if (common->data_dir != DATA_DIR_UNKNOWN) in check_command() 1670 sprintf(hdlen, ", H%c=%u", dirletter[(int) common->data_dir], in check_command() 1673 name, cmnd_size, dirletter[(int) data_dir], in check_command() 1681 data_dir = DATA_DIR_NONE; in check_command() 1695 if (common->data_dir != data_dir && common->data_size_from_cmnd > 0) { in check_command() 1788 int cmnd_size, enum data_direction data_dir, in check_command_size_in_blocks() argument 1793 return check_command(common, cmnd_size, data_dir, in check_command_size_in_blocks() [all …]
|
/Linux-v5.10/drivers/block/ |
D | skd_main.c | 170 enum dma_data_direction data_dir; member 402 int data_dir, unsigned lba, in skd_prep_rw_cdb() argument 405 if (data_dir == READ) in skd_prep_rw_cdb() 491 const int data_dir = rq_data_dir(req); in skd_mq_queue_rq() local 510 lba, count, count, data_dir); in skd_mq_queue_rq() 519 skreq->data_dir = data_dir == READ ? DMA_FROM_DEVICE : DMA_TO_DEVICE; in skd_mq_queue_rq() 566 skd_prep_rw_cdb(scsi_req, data_dir, lba, count); in skd_mq_queue_rq() 628 WARN_ON_ONCE(skreq->data_dir != DMA_TO_DEVICE && in skd_preop_sg_list() 629 skreq->data_dir != DMA_FROM_DEVICE); in skd_preop_sg_list() 639 n_sg = dma_map_sg(&skdev->pdev->dev, sgl, n_sg, skreq->data_dir); in skd_preop_sg_list() [all …]
|
/Linux-v5.10/drivers/parport/ |
D | parport_atari.c | 188 st_mfp.data_dir &= ~1; in parport_atari_init()
|
/Linux-v5.10/drivers/staging/unisys/include/ |
D | iochannel.h | 217 u32 data_dir; member
|
/Linux-v5.10/drivers/s390/scsi/ |
D | zfcp_fsf.c | 2497 static int zfcp_fsf_set_data_dir(struct scsi_cmnd *scsi_cmnd, u32 *data_dir) in zfcp_fsf_set_data_dir() argument 2503 *data_dir = FSF_DATADIR_CMND; in zfcp_fsf_set_data_dir() 2506 *data_dir = FSF_DATADIR_READ; in zfcp_fsf_set_data_dir() 2509 *data_dir = FSF_DATADIR_WRITE; in zfcp_fsf_set_data_dir() 2517 *data_dir = FSF_DATADIR_DIF_READ_STRIP; in zfcp_fsf_set_data_dir() 2520 *data_dir = FSF_DATADIR_DIF_WRITE_INSERT; in zfcp_fsf_set_data_dir() 2523 *data_dir = FSF_DATADIR_DIF_READ_CONVERT; in zfcp_fsf_set_data_dir() 2526 *data_dir = FSF_DATADIR_DIF_WRITE_CONVERT; in zfcp_fsf_set_data_dir()
|
/Linux-v5.10/drivers/target/sbp/ |
D | sbp_target.c | 1166 u32 *data_len, enum dma_data_direction *data_dir) in sbp_calc_data_length_direction() argument 1175 *data_dir = DMA_NONE; in sbp_calc_data_length_direction() 1179 *data_dir = direction ? DMA_FROM_DEVICE : DMA_TO_DEVICE; in sbp_calc_data_length_direction() 1198 enum dma_data_direction data_dir; in sbp_handle_command() local 1214 sbp_calc_data_length_direction(req, &data_length, &data_dir); in sbp_handle_command() 1217 req->orb_pointer, unpacked_lun, data_length, data_dir); in sbp_handle_command() 1223 TCM_SIMPLE_TAG, data_dir, TARGET_SCF_ACK_KREF)) in sbp_handle_command()
|