Home
last modified time | relevance | path

Searched refs:data_dir (Results 1 – 25 of 49) sorted by relevance

12

/kernel/linux/linux-5.10/block/
Dmq-deadline.c98 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 …]
/kernel/linux/linux-5.10/drivers/md/
Ddm-cache-policy-internal.h16 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()
Ddm-cache-policy.h57 int data_dir, bool fast_copy, bool *background_queued);
70 int data_dir, bool fast_copy,
Ddm-cache-policy-smq.c1281 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()
/kernel/linux/linux-5.10/drivers/scsi/aic94xx/
Daic94xx_task.c45 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()
Daic94xx_sas.h326 u8 data_dir; /* :1,0 */ member
563 u8 data_dir; /* 01b */ member
/kernel/linux/linux-5.10/drivers/scsi/aacraid/
Dcommctrl.c492 u32 data_dir; in aac_send_raw_srb() local
542 data_dir = DMA_TO_DEVICE; in aac_send_raw_srb()
545 data_dir = DMA_BIDIRECTIONAL; in aac_send_raw_srb()
548 data_dir = DMA_FROM_DEVICE; in aac_send_raw_srb()
551 data_dir = DMA_NONE; in aac_send_raw_srb()
559 if ((data_dir == DMA_NONE) && user_srbcmd->sg.count) { in aac_send_raw_srb()
590 switch (data_dir) { in aac_send_raw_srb()
692 data_dir); in aac_send_raw_srb()
754 sg_count[i], data_dir); in aac_send_raw_srb()
810 sg_count[i], data_dir); in aac_send_raw_srb()
[all …]
/kernel/linux/linux-5.10/drivers/mmc/host/
Ddavinci_mmc.c182 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 …]
/kernel/linux/linux-5.10/drivers/target/tcm_fc/
Dtfc_cmd.c496 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()
/kernel/linux/linux-5.10/drivers/memstick/host/
Drtsx_pci_ms.c128 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()
Dtifm_ms.c217 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()
Djmb38x_ms.c333 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()
Drtsx_usb_ms.c230 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()
/kernel/linux/linux-5.10/drivers/scsi/megaraid/
Dmegaraid_mm.c392 kioc->data_dir = UIOC_RD; in mimd_to_kioc()
416 if (mimd.outlen) kioc->data_dir = UIOC_RD; in mimd_to_kioc()
417 if (mimd.inlen) kioc->data_dir |= UIOC_WR; in mimd_to_kioc()
432 if (mimd.outlen) kioc->data_dir = UIOC_RD; in mimd_to_kioc()
433 if (mimd.inlen) kioc->data_dir |= UIOC_WR; in mimd_to_kioc()
458 if (kioc->data_dir & UIOC_WR) { in mimd_to_kioc()
484 if (kioc->data_dir & UIOC_WR) { in mimd_to_kioc()
Dmegaraid_ioctl.h125 uint32_t data_dir; member
/kernel/linux/linux-5.10/drivers/hwmon/
Ddrivetemp.c167 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()
/kernel/linux/linux-5.10/drivers/memstick/core/
Dmemstick.c270 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()
Dmspro_block.c152 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()
/kernel/linux/linux-5.10/drivers/scsi/isci/
Drequest.c156 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 …]
/kernel/linux/linux-5.10/drivers/usb/gadget/function/
Df_mass_storage.c296 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 …]
/kernel/linux/linux-5.10/drivers/block/
Dskd_main.c170 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 …]
/kernel/linux/linux-5.10/drivers/parport/
Dparport_atari.c188 st_mfp.data_dir &= ~1; in parport_atari_init()
/kernel/linux/linux-5.10/drivers/scsi/libsas/
Dsas_ata.c204 task->data_dir = qc->dma_dir; in sas_ata_qc_issue()
206 task->data_dir = DMA_NONE; in sas_ata_qc_issue()
213 task->data_dir = qc->dma_dir; in sas_ata_qc_issue()
/kernel/linux/linux-5.10/drivers/staging/unisys/include/
Diochannel.h217 u32 data_dir; member
/kernel/linux/linux-5.10/drivers/s390/scsi/
Dzfcp_fsf.c2496 static int zfcp_fsf_set_data_dir(struct scsi_cmnd *scsi_cmnd, u32 *data_dir) in zfcp_fsf_set_data_dir() argument
2502 *data_dir = FSF_DATADIR_CMND; in zfcp_fsf_set_data_dir()
2505 *data_dir = FSF_DATADIR_READ; in zfcp_fsf_set_data_dir()
2508 *data_dir = FSF_DATADIR_WRITE; in zfcp_fsf_set_data_dir()
2516 *data_dir = FSF_DATADIR_DIF_READ_STRIP; in zfcp_fsf_set_data_dir()
2519 *data_dir = FSF_DATADIR_DIF_WRITE_INSERT; in zfcp_fsf_set_data_dir()
2522 *data_dir = FSF_DATADIR_DIF_READ_CONVERT; in zfcp_fsf_set_data_dir()
2525 *data_dir = FSF_DATADIR_DIF_WRITE_CONVERT; in zfcp_fsf_set_data_dir()

12