Home
last modified time | relevance | path

Searched refs:sg_offset (Results 1 – 25 of 43) sorted by relevance

12

/openbmc/linux/drivers/infiniband/sw/rdmavt/
H A Dtrace_mr.h144 TP_PROTO(struct ib_mr *ibmr, int sg_nents, unsigned int *sg_offset),
145 TP_ARGS(ibmr, sg_nents, sg_offset),
153 __field(uint, sg_offset)
162 __entry->sg_offset = sg_offset ? *sg_offset : 0;
172 __entry->sg_offset
H A Dmr.h34 int sg_nents, unsigned int *sg_offset);
H A Dmr.c589 int sg_nents, unsigned int *sg_offset) in rvt_map_mr_sg() argument
596 ret = ib_sg_to_pages(ibmr, sg, sg_nents, sg_offset, rvt_set_page); in rvt_map_mr_sg()
601 trace_rvt_map_mr_sg(ibmr, sg_nents, sg_offset); in rvt_map_mr_sg()
/openbmc/linux/drivers/infiniband/hw/mlx5/
H A Dmr.c2340 unsigned int sg_offset = 0; in mlx5_ib_map_pa_mr_sg_pi() local
2348 sg_offset = *data_sg_offset; in mlx5_ib_map_pa_mr_sg_pi()
2349 mr->data_length = sg_dma_len(data_sg) - sg_offset; in mlx5_ib_map_pa_mr_sg_pi()
2350 mr->data_iova = sg_dma_address(data_sg) + sg_offset; in mlx5_ib_map_pa_mr_sg_pi()
2355 sg_offset = *meta_sg_offset; in mlx5_ib_map_pa_mr_sg_pi()
2357 sg_offset = 0; in mlx5_ib_map_pa_mr_sg_pi()
2358 mr->meta_length = sg_dma_len(meta_sg) - sg_offset; in mlx5_ib_map_pa_mr_sg_pi()
2359 mr->pi_iova = sg_dma_address(meta_sg) + sg_offset; in mlx5_ib_map_pa_mr_sg_pi()
2378 unsigned int sg_offset = sg_offset_p ? *sg_offset_p : 0; in mlx5_ib_sg_to_klms() local
2382 mr->ibmr.iova = sg_dma_address(sg) + sg_offset; in mlx5_ib_sg_to_klms()
[all …]
/openbmc/linux/drivers/infiniband/core/
H A Drw.c293 struct scatterlist *sg, u32 sg_cnt, u32 sg_offset, in rdma_rw_ctx_init() argument
314 if (sg_offset < len) in rdma_rw_ctx_init()
318 sg_offset -= len; in rdma_rw_ctx_init()
328 sg_offset, remote_addr, rkey, dir); in rdma_rw_ctx_init()
330 ret = rdma_rw_init_map_wrs(ctx, qp, sg, sg_cnt, sg_offset, in rdma_rw_ctx_init()
333 ret = rdma_rw_init_single_wr(ctx, qp, sg, sg_offset, in rdma_rw_ctx_init()
H A Dverbs.c2697 unsigned int *sg_offset, unsigned int page_size) in ib_map_mr_sg() argument
2704 return mr->device->ops.map_mr_sg(mr, sg, sg_nents, sg_offset); in ib_map_mr_sg()
2735 unsigned int sg_offset = sg_offset_p ? *sg_offset_p : 0; in ib_sg_to_pages() local
2740 if (unlikely(sg_nents <= 0 || sg_offset > sg_dma_len(&sgl[0]))) in ib_sg_to_pages()
2743 mr->iova = sg_dma_address(&sgl[0]) + sg_offset; in ib_sg_to_pages()
2747 u64 dma_addr = sg_dma_address(sg) + sg_offset; in ib_sg_to_pages()
2749 unsigned int dma_len = sg_dma_len(sg) - sg_offset; in ib_sg_to_pages()
2774 sg_offset = prev_addr - sg_dma_address(sg); in ib_sg_to_pages()
2777 *sg_offset_p = sg_offset; in ib_sg_to_pages()
2778 return i || sg_offset ? i : ret; in ib_sg_to_pages()
[all …]
/openbmc/linux/drivers/usb/storage/
H A Djumpshot.c163 unsigned int sg_offset = 0; in jumpshot_read_data() local
215 &sg, &sg_offset, TO_XFER_BUF); in jumpshot_read_data()
240 unsigned int sg_offset = 0; in jumpshot_write_data() local
271 &sg, &sg_offset, FROM_XFER_BUF); in jumpshot_write_data()
H A Ddatafab.c145 unsigned int sg_offset = 0; in datafab_read_data() local
203 &sg, &sg_offset, TO_XFER_BUF); in datafab_read_data()
229 unsigned int sg_offset = 0; in datafab_write_data() local
266 &sg, &sg_offset, FROM_XFER_BUF); in datafab_write_data()
H A Dshuttle_usbat.c1126 unsigned int sg_offset = 0; in usbat_flash_read_data() local
1181 &sg, &sg_offset, TO_XFER_BUF); in usbat_flash_read_data()
1217 unsigned int sg_offset = 0; in usbat_flash_write_data() local
1257 &sg, &sg_offset, FROM_XFER_BUF); in usbat_flash_write_data()
1297 unsigned int sg_offset = 0; in usbat_hp8200e_handle_read10() local
1386 &sg, &sg_offset, TO_XFER_BUF); in usbat_hp8200e_handle_read10()
/openbmc/linux/drivers/infiniband/hw/vmw_pvrdma/
H A Dpvrdma_mr.c314 unsigned int *sg_offset) in pvrdma_map_mr_sg() argument
322 ret = ib_sg_to_pages(ibmr, sg, sg_nents, sg_offset, pvrdma_set_page); in pvrdma_map_mr_sg()
H A Dpvrdma_verbs.h376 int sg_nents, unsigned int *sg_offset);
/openbmc/linux/include/rdma/
H A Drw.h46 struct scatterlist *sg, u32 sg_cnt, u32 sg_offset,
/openbmc/linux/include/scsi/
H A Dlibiscsi_tcp.h38 unsigned int sg_offset; member
/openbmc/linux/drivers/infiniband/hw/ocrdma/
H A Docrdma_verbs.h105 unsigned int *sg_offset);
/openbmc/linux/drivers/target/iscsi/cxgbit/
H A Dcxgbit_ddp.c178 unsigned int sg_offset = sgl->offset; in cxgbit_ddp_reserve() local
205 sgl->offset = sg_offset; in cxgbit_ddp_reserve()
/openbmc/linux/drivers/infiniband/hw/qedr/
H A Dverbs.h85 int sg_nents, unsigned int *sg_offset);
/openbmc/linux/drivers/crypto/ccp/
H A Dccp-ops.c196 struct scatterlist *sg, unsigned int sg_offset, in ccp_set_dm_area() argument
204 scatterwalk_map_and_copy(wa->address + wa_offset, sg, sg_offset, len, in ccp_set_dm_area()
210 struct scatterlist *sg, unsigned int sg_offset, in ccp_get_dm_area() argument
215 scatterwalk_map_and_copy(wa->address + wa_offset, sg, sg_offset, len, in ccp_get_dm_area()
222 unsigned int sg_offset, in ccp_reverse_set_dm_area() argument
228 rc = ccp_set_dm_area(wa, wa_offset, sg, sg_offset, len); in ccp_reverse_set_dm_area()
247 unsigned int sg_offset, in ccp_reverse_get_dm_area() argument
262 ccp_get_dm_area(wa, wa_offset, sg, sg_offset, len); in ccp_reverse_get_dm_area()
/openbmc/linux/drivers/scsi/
H A Dlibiscsi_tcp.c94 segment->sg_offset = offset; in iscsi_tcp_segment_init_sg()
143 segment->data = segment->sg_mapped + sg->offset + segment->sg_offset; in iscsi_tcp_segment_map()
210 segment->copied + segment->sg_offset + in iscsi_tcp_segment_done()
/openbmc/linux/drivers/infiniband/hw/mlx4/
H A Dmr.c701 unsigned int *sg_offset) in mlx4_ib_map_mr_sg() argument
711 rc = ib_sg_to_pages(ibmr, sg, sg_nents, sg_offset, mlx4_set_page); in mlx4_ib_map_mr_sg()
/openbmc/linux/drivers/infiniband/hw/bnxt_re/
H A Dib_verbs.h229 unsigned int *sg_offset);
/openbmc/linux/drivers/infiniband/sw/rxe/
H A Drxe_mr.c232 int sg_nents, unsigned int *sg_offset) in rxe_map_mr_sg() argument
242 return ib_sg_to_pages(ibmr, sgl, sg_nents, sg_offset, rxe_set_page); in rxe_map_mr_sg()
H A Drxe_loc.h71 int sg_nents, unsigned int *sg_offset);
/openbmc/linux/drivers/nvme/target/
H A Dtcp.c340 u32 length, offset, sg_offset; in nvmet_tcp_build_pdu_iovec() local
347 sg_offset = offset % PAGE_SIZE; in nvmet_tcp_build_pdu_iovec()
351 u32 iov_len = min_t(u32, length, sg->length - sg_offset); in nvmet_tcp_build_pdu_iovec()
354 sg->offset + sg_offset); in nvmet_tcp_build_pdu_iovec()
359 sg_offset = 0; in nvmet_tcp_build_pdu_iovec()
/openbmc/linux/drivers/infiniband/hw/erdma/
H A Derdma_verbs.h361 unsigned int *sg_offset);
/openbmc/linux/drivers/infiniband/hw/cxgb4/
H A Dmem.c691 unsigned int *sg_offset) in c4iw_map_mr_sg() argument
697 return ib_sg_to_pages(ibmr, sg, sg_nents, sg_offset, c4iw_set_page); in c4iw_map_mr_sg()

12