Lines Matching refs:dir
162 enum dma_data_direction dir, srp_rdma_t rdma_io, in srp_direct_data() argument
184 err = rdma_io(cmd, sg, nsg, md, 1, dir, len); in srp_direct_data()
194 enum dma_data_direction dir, srp_rdma_t rdma_io, in srp_indirect_data() argument
211 if ((dir == DMA_FROM_DEVICE && nmd == srp_cmd->data_in_desc_cnt) || in srp_indirect_data()
212 (dir == DMA_TO_DEVICE && nmd == srp_cmd->data_out_desc_cnt)) { in srp_indirect_data()
256 err = rdma_io(cmd, sg, nsg, md, nmd, dir, len); in srp_indirect_data()
300 enum dma_data_direction dir; in srp_transfer_data() local
309 dir = srp_cmd_direction(srp_cmd); in srp_transfer_data()
310 if (dir == DMA_FROM_DEVICE) in srp_transfer_data()
313 if (dir == DMA_TO_DEVICE) in srp_transfer_data()
323 err = srp_direct_data(cmd, md, dir, rdma_io, dma_map, ext_desc); in srp_transfer_data()
327 err = srp_indirect_data(cmd, srp_cmd, id, dir, rdma_io, dma_map, in srp_transfer_data()
331 pr_err("Unknown format %d %x\n", dir, format); in srp_transfer_data()
338 u64 srp_data_length(struct srp_cmd *cmd, enum dma_data_direction dir) in srp_data_length() argument
346 if (dir == DMA_TO_DEVICE) { in srp_data_length()
371 int srp_get_desc_table(struct srp_cmd *srp_cmd, enum dma_data_direction *dir, in srp_get_desc_table() argument
387 BUG_ON(!dir); in srp_get_desc_table()
393 *dir = DMA_NONE; in srp_get_desc_table()
396 *dir = DMA_FROM_DEVICE; in srp_get_desc_table()
398 *dir = DMA_TO_DEVICE; in srp_get_desc_table()