Home
last modified time | relevance | path

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

12

/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.c1257 int data_dir, bool fast_promote) in should_promote() argument
1259 if (data_dir == WRITE) { in should_promote()
1342 int data_dir, bool fast_copy, in __lookup() argument
1366 pr = should_promote(mq, hs_e, data_dir, fast_copy); in __lookup()
1377 int data_dir, bool fast_copy, in smq_lookup() argument
1386 data_dir, fast_copy, in smq_lookup()
1395 int data_dir, bool fast_copy, in smq_lookup_with_work() argument
1404 r = __lookup(mq, oblock, cblock, data_dir, fast_copy, work, &background_queued); in smq_lookup_with_work()
/drivers/scsi/aic94xx/
Daic94xx_task.c63 if (task->data_dir == PCI_DMA_NONE) in asd_map_scatterlist()
70 task->data_dir); in asd_map_scatterlist()
83 task->num_scatter, task->data_dir); in asd_map_scatterlist()
130 task->data_dir); in asd_map_scatterlist()
139 if (task->data_dir == PCI_DMA_NONE) in asd_unmap_scatterlist()
146 task->data_dir); in asd_unmap_scatterlist()
153 task->data_dir); in asd_unmap_scatterlist()
404 flags |= data_dir_flags[task->data_dir]; in asd_build_ata_ascb()
514 scb->ssp_task.data_dir = data_dir_flags[task->data_dir]; in asd_build_ssp_ascb()
Daic94xx_sas.h344 u8 data_dir; /* :1,0 */ member
581 u8 data_dir; /* 01b */ member
/drivers/scsi/aacraid/
Dcommctrl.c491 u32 data_dir; in aac_send_raw_srb() local
546 data_dir = DMA_TO_DEVICE; in aac_send_raw_srb()
549 data_dir = DMA_BIDIRECTIONAL; in aac_send_raw_srb()
552 data_dir = DMA_FROM_DEVICE; in aac_send_raw_srb()
555 data_dir = DMA_NONE; in aac_send_raw_srb()
563 if ((data_dir == DMA_NONE) && user_srbcmd->sg.count) { in aac_send_raw_srb()
594 switch (data_dir) { in aac_send_raw_srb()
696 data_dir); in aac_send_raw_srb()
758 sg_count[i], data_dir); in aac_send_raw_srb()
814 sg_count[i], data_dir); in aac_send_raw_srb()
[all …]
/drivers/mmc/host/
Ddavinci_mmc.c195 unsigned char data_dir; member
259 if (host->data_dir == DAVINCI_MMC_DATADIR_WRITE) { in davinci_fifo_data_trans()
341 host->data_dir == DAVINCI_MMC_DATADIR_READ) in mmc_davinci_start_command()
349 if (host->data_dir == DAVINCI_MMC_DATADIR_WRITE) in mmc_davinci_start_command()
360 if (host->data_dir == DAVINCI_MMC_DATADIR_WRITE) { in mmc_davinci_start_command()
365 } else if (host->data_dir == DAVINCI_MMC_DATADIR_READ) { in mmc_davinci_start_command()
376 if (!host->do_dma && (host->data_dir == DAVINCI_MMC_DATADIR_WRITE)) in mmc_davinci_start_command()
405 if (host->data_dir == DAVINCI_MMC_DATADIR_READ) in davinci_abort_dma()
420 if (host->data_dir == DAVINCI_MMC_DATADIR_WRITE) { in mmc_davinci_send_dma_request()
541 host->data_dir = DAVINCI_MMC_DATADIR_NONE; in mmc_davinci_prepare_data()
[all …]
/drivers/target/tcm_fc/
Dtfc_cmd.c515 int data_dir = 0; in ft_send_work() local
535 data_dir = DMA_NONE; in ft_send_work()
538 data_dir = DMA_FROM_DEVICE; in ft_send_work()
541 data_dir = DMA_TO_DEVICE; in ft_send_work()
572 ntohl(fcp->fc_dl), task_attr, data_dir, in ft_send_work()
/drivers/memstick/host/
Djmb38x_ms.c334 if (host->req->data_dir == WRITE) in jmb38x_ms_transfer_data()
355 if (!length && host->req->data_dir == WRITE) { in jmb38x_ms_transfer_data()
392 if (host->req->data_dir == READ) in jmb38x_ms_issue_cmd()
423 host->req->data_dir == READ in jmb38x_ms_issue_cmd()
441 t_val |= host->req->data_dir == READ in jmb38x_ms_issue_cmd()
452 if (host->req->data_dir == WRITE) { in jmb38x_ms_issue_cmd()
491 host->req->data_dir == READ in jmb38x_ms_complete_cmd()
495 if (host->req->data_dir == READ) in jmb38x_ms_complete_cmd()
561 if (host->req->data_dir == READ) { in jmb38x_ms_isr()
Drtsx_pci_ms.c140 static int ms_transfer_data(struct realtek_pci_ms *host, unsigned char data_dir, in ms_transfer_data() argument
152 __func__, tpc, (data_dir == READ) ? "READ" : "WRITE", in ms_transfer_data()
155 if (data_dir == READ) { in ms_transfer_data()
192 err = rtsx_pci_transfer_data(pcr, sg, 1, data_dir == READ, 10000); in ms_transfer_data()
364 err = ms_transfer_data(host, req->data_dir, in rtsx_pci_ms_issue_cmd()
367 if (req->data_dir == READ) { in rtsx_pci_ms_issue_cmd()
Dtifm_ms.c219 t_size = host->req->data_dir == WRITE in tifm_ms_transfer_data()
236 if (!length && (host->req->data_dir == WRITE)) { in tifm_ms_transfer_data()
286 host->req->data_dir == READ in tifm_ms_issue_cmd()
299 if (host->req->data_dir == WRITE) in tifm_ms_issue_cmd()
357 host->req->data_dir == READ in tifm_ms_complete_cmd()
614 host->req->data_dir == READ in tifm_ms_remove()
Drtsx_usb_ms.c242 static int ms_transfer_data(struct rtsx_usb_ms *host, unsigned char data_dir, in ms_transfer_data() argument
254 __func__, tpc, (data_dir == READ) ? "READ" : "WRITE", in ms_transfer_data()
257 if (data_dir == READ) { in ms_transfer_data()
482 err = ms_transfer_data(host, req->data_dir, in rtsx_usb_ms_issue_cmd()
485 if (req->data_dir == READ) in rtsx_usb_ms_issue_cmd()
/drivers/scsi/megaraid/
Dmegaraid_mm.c400 kioc->data_dir = UIOC_RD; in mimd_to_kioc()
424 if (mimd.outlen) kioc->data_dir = UIOC_RD; in mimd_to_kioc()
425 if (mimd.inlen) kioc->data_dir |= UIOC_WR; in mimd_to_kioc()
440 if (mimd.outlen) kioc->data_dir = UIOC_RD; in mimd_to_kioc()
441 if (mimd.inlen) kioc->data_dir |= UIOC_WR; in mimd_to_kioc()
466 if (kioc->data_dir & UIOC_WR) { in mimd_to_kioc()
492 if (kioc->data_dir & UIOC_WR) { in mimd_to_kioc()
Dmegaraid_ioctl.h128 uint32_t data_dir; member
/drivers/memstick/core/
Dmemstick.c274 mrq->data_dir = WRITE; in memstick_init_req_sg()
276 mrq->data_dir = READ; in memstick_init_req_sg()
304 mrq->data_dir = WRITE; in memstick_init_req()
306 mrq->data_dir = READ; in memstick_init_req()
309 if (mrq->data_dir == WRITE) in memstick_init_req()
Dmspro_block.c156 data_dir:1, member
643 memstick_init_req_sg(*mrq, msb->data_dir == READ in h_mspro_block_transfer_data()
723 msb->data_dir = rq_data_dir(msb->block_req); in mspro_block_issue_req()
724 msb->transfer_cmd = msb->data_dir == READ in mspro_block_issue_req()
761 if (msb->data_dir == READ) { in mspro_block_complete_req()
990 msb->data_dir = READ; in mspro_block_read_attributes()
1091 msb->data_dir = READ; in mspro_block_read_attributes()
/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 …]
/drivers/usb/gadget/function/
Df_mass_storage.c295 enum data_direction data_dir; member
1502 switch (common->data_dir) { in finish_reply()
1660 enum data_direction data_dir, unsigned int mask, in check_command() argument
1670 if (common->data_dir != DATA_DIR_UNKNOWN) in check_command()
1671 sprintf(hdlen, ", H%c=%u", dirletter[(int) common->data_dir], in check_command()
1674 name, cmnd_size, dirletter[(int) data_dir], in check_command()
1682 data_dir = DATA_DIR_NONE; in check_command()
1696 if (common->data_dir != data_dir && common->data_size_from_cmnd > 0) { in check_command()
1789 int cmnd_size, enum data_direction data_dir, in check_command_size_in_blocks() argument
1794 return check_command(common, cmnd_size, data_dir, in check_command_size_in_blocks()
[all …]
/drivers/block/
Dskd_main.c174 enum dma_data_direction data_dir; member
404 int data_dir, unsigned lba, in skd_prep_rw_cdb() argument
407 if (data_dir == READ) in skd_prep_rw_cdb()
493 const int data_dir = rq_data_dir(req); in skd_mq_queue_rq() local
507 lba, count, count, data_dir); in skd_mq_queue_rq()
516 skreq->data_dir = data_dir == READ ? DMA_FROM_DEVICE : DMA_TO_DEVICE; in skd_mq_queue_rq()
563 skd_prep_rw_cdb(scsi_req, data_dir, lba, count); in skd_mq_queue_rq()
625 WARN_ON_ONCE(skreq->data_dir != DMA_TO_DEVICE && in skd_preop_sg_list()
626 skreq->data_dir != DMA_FROM_DEVICE); in skd_preop_sg_list()
636 n_sg = pci_map_sg(skdev->pdev, sgl, n_sg, skreq->data_dir); in skd_preop_sg_list()
[all …]
/drivers/s390/scsi/
Dzfcp_fsf.c2174 static int zfcp_fsf_set_data_dir(struct scsi_cmnd *scsi_cmnd, u32 *data_dir) in zfcp_fsf_set_data_dir() argument
2180 *data_dir = FSF_DATADIR_CMND; in zfcp_fsf_set_data_dir()
2183 *data_dir = FSF_DATADIR_READ; in zfcp_fsf_set_data_dir()
2186 *data_dir = FSF_DATADIR_WRITE; in zfcp_fsf_set_data_dir()
2194 *data_dir = FSF_DATADIR_DIF_READ_STRIP; in zfcp_fsf_set_data_dir()
2197 *data_dir = FSF_DATADIR_DIF_WRITE_INSERT; in zfcp_fsf_set_data_dir()
2200 *data_dir = FSF_DATADIR_DIF_READ_CONVERT; in zfcp_fsf_set_data_dir()
2203 *data_dir = FSF_DATADIR_DIF_WRITE_CONVERT; in zfcp_fsf_set_data_dir()
/drivers/parport/
Dparport_atari.c187 st_mfp.data_dir &= ~1; in parport_atari_init()
/drivers/target/sbp/
Dsbp_target.c1180 u32 *data_len, enum dma_data_direction *data_dir) in sbp_calc_data_length_direction() argument
1189 *data_dir = DMA_NONE; in sbp_calc_data_length_direction()
1193 *data_dir = direction ? DMA_FROM_DEVICE : DMA_TO_DEVICE; in sbp_calc_data_length_direction()
1212 enum dma_data_direction data_dir; in sbp_handle_command() local
1228 sbp_calc_data_length_direction(req, &data_length, &data_dir); in sbp_handle_command()
1231 req->orb_pointer, unpacked_lun, data_length, data_dir); in sbp_handle_command()
1237 TCM_SIMPLE_TAG, data_dir, TARGET_SCF_ACK_KREF)) in sbp_handle_command()
/drivers/staging/unisys/include/
Diochannel.h228 u32 data_dir; member
/drivers/scsi/pm8001/
Dpm8001_sas.c418 t->data_dir); in pm8001_task_exec()
477 t->data_dir); in pm8001_task_exec()
509 task->num_scatter, task->data_dir); in pm8001_ccb_task_free()
/drivers/scsi/mvsas/
Dmv_sas.c475 if (task->data_dir == DMA_FROM_DEVICE) in mvs_task_prep_ata()
563 if (task->data_dir == DMA_FROM_DEVICE) in mvs_task_prep_ata()
773 task->data_dir); in mvs_task_prep()
852 task->data_dir); in mvs_task_prep()
902 slot->n_elem, task->data_dir); in mvs_slot_task_free()

12