Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/infiniband/sw/rdmavt/
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
Dmr.h34 int sg_nents, unsigned int *sg_offset);
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()
/linux-6.1.9/drivers/infiniband/hw/mlx5/
Dmr.c2044 unsigned int sg_offset = 0; in mlx5_ib_map_pa_mr_sg_pi() local
2052 sg_offset = *data_sg_offset; in mlx5_ib_map_pa_mr_sg_pi()
2053 mr->data_length = sg_dma_len(data_sg) - sg_offset; in mlx5_ib_map_pa_mr_sg_pi()
2054 mr->data_iova = sg_dma_address(data_sg) + sg_offset; in mlx5_ib_map_pa_mr_sg_pi()
2059 sg_offset = *meta_sg_offset; in mlx5_ib_map_pa_mr_sg_pi()
2061 sg_offset = 0; in mlx5_ib_map_pa_mr_sg_pi()
2062 mr->meta_length = sg_dma_len(meta_sg) - sg_offset; in mlx5_ib_map_pa_mr_sg_pi()
2063 mr->pi_iova = sg_dma_address(meta_sg) + sg_offset; in mlx5_ib_map_pa_mr_sg_pi()
2082 unsigned int sg_offset = sg_offset_p ? *sg_offset_p : 0; in mlx5_ib_sg_to_klms() local
2086 mr->ibmr.iova = sg_dma_address(sg) + sg_offset; in mlx5_ib_sg_to_klms()
[all …]
/linux-6.1.9/drivers/infiniband/core/
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()
Dverbs.c2628 unsigned int *sg_offset, unsigned int page_size) in ib_map_mr_sg() argument
2635 return mr->device->ops.map_mr_sg(mr, sg, sg_nents, sg_offset); in ib_map_mr_sg()
2666 unsigned int sg_offset = sg_offset_p ? *sg_offset_p : 0; in ib_sg_to_pages() local
2671 if (unlikely(sg_nents <= 0 || sg_offset > sg_dma_len(&sgl[0]))) in ib_sg_to_pages()
2674 mr->iova = sg_dma_address(&sgl[0]) + sg_offset; in ib_sg_to_pages()
2678 u64 dma_addr = sg_dma_address(sg) + sg_offset; in ib_sg_to_pages()
2680 unsigned int dma_len = sg_dma_len(sg) - sg_offset; in ib_sg_to_pages()
2705 sg_offset = prev_addr - sg_dma_address(sg); in ib_sg_to_pages()
2708 *sg_offset_p = sg_offset; in ib_sg_to_pages()
2709 return i || sg_offset ? i : ret; in ib_sg_to_pages()
[all …]
/linux-6.1.9/drivers/usb/storage/
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()
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()
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()
/linux-6.1.9/include/rdma/
Drw.h46 struct scatterlist *sg, u32 sg_cnt, u32 sg_offset,
/linux-6.1.9/drivers/infiniband/hw/vmw_pvrdma/
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()
Dpvrdma_verbs.h376 int sg_nents, unsigned int *sg_offset);
/linux-6.1.9/include/scsi/
Dlibiscsi_tcp.h38 unsigned int sg_offset; member
/linux-6.1.9/drivers/infiniband/hw/ocrdma/
Docrdma_verbs.h105 unsigned int *sg_offset);
/linux-6.1.9/drivers/target/iscsi/cxgbit/
Dcxgbit_ddp.c178 unsigned int sg_offset = sgl->offset; in cxgbit_ddp_reserve() local
205 sgl->offset = sg_offset; in cxgbit_ddp_reserve()
/linux-6.1.9/drivers/infiniband/hw/qedr/
Dverbs.h85 int sg_nents, unsigned int *sg_offset);
/linux-6.1.9/drivers/infiniband/hw/bnxt_re/
Dib_verbs.h200 unsigned int *sg_offset);
/linux-6.1.9/drivers/crypto/ccp/
Dccp-ops.c193 struct scatterlist *sg, unsigned int sg_offset, in ccp_set_dm_area() argument
201 scatterwalk_map_and_copy(wa->address + wa_offset, sg, sg_offset, len, in ccp_set_dm_area()
207 struct scatterlist *sg, unsigned int sg_offset, in ccp_get_dm_area() argument
212 scatterwalk_map_and_copy(wa->address + wa_offset, sg, sg_offset, len, in ccp_get_dm_area()
219 unsigned int sg_offset, in ccp_reverse_set_dm_area() argument
225 rc = ccp_set_dm_area(wa, wa_offset, sg, sg_offset, len); in ccp_reverse_set_dm_area()
244 unsigned int sg_offset, in ccp_reverse_get_dm_area() argument
259 ccp_get_dm_area(wa, wa_offset, sg, sg_offset, len); in ccp_reverse_get_dm_area()
/linux-6.1.9/drivers/infiniband/hw/mlx4/
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()
/linux-6.1.9/drivers/scsi/
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()
/linux-6.1.9/drivers/nvme/target/
Dtcp.c311 u32 length, offset, sg_offset; in nvmet_tcp_build_pdu_iovec() local
318 sg_offset = offset % PAGE_SIZE; in nvmet_tcp_build_pdu_iovec()
322 u32 iov_len = min_t(u32, length, sg->length - sg_offset); in nvmet_tcp_build_pdu_iovec()
326 iov->bv_offset = sg->offset + sg_offset; in nvmet_tcp_build_pdu_iovec()
331 sg_offset = 0; in nvmet_tcp_build_pdu_iovec()
/linux-6.1.9/drivers/infiniband/hw/erdma/
Derdma_verbs.h331 unsigned int *sg_offset);
/linux-6.1.9/drivers/infiniband/hw/cxgb4/
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()
/linux-6.1.9/drivers/infiniband/hw/hns/
Dhns_roce_mr.c417 unsigned int *sg_offset) in hns_roce_map_mr_sg() argument
431 ret = ib_sg_to_pages(ibmr, sg, sg_nents, sg_offset, hns_roce_set_page); in hns_roce_map_mr_sg()
/linux-6.1.9/drivers/scsi/lpfc/
Dlpfc_bsg.c215 unsigned int sg_offset, dma_offset; in lpfc_bsg_copy_data() local
225 sg_offset = 0; in lpfc_bsg_copy_data()
239 if (sg_offset) { in lpfc_bsg_copy_data()
241 sg_address = miter.addr + sg_offset; in lpfc_bsg_copy_data()
242 transfer_bytes = miter.length - sg_offset; in lpfc_bsg_copy_data()
256 sg_offset += transfer_bytes; in lpfc_bsg_copy_data()
259 if (sg_offset >= miter.length) { in lpfc_bsg_copy_data()
260 sg_offset = 0; in lpfc_bsg_copy_data()

12