Home
last modified time | relevance | path

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

/freebsd/sys/dev/aic7xxx/
H A Daic79xx_inline.h364 bus_addr_t sg_offset; in ahd_sg_bus_to_virt() local
367 sg_offset = sg_busaddr - (scb->sg_list_busaddr - ahd_sg_size(ahd)); in ahd_sg_bus_to_virt()
368 return ((uint8_t *)scb->sg_list + sg_offset); in ahd_sg_bus_to_virt()
374 bus_addr_t sg_offset; in ahd_sg_virt_to_bus() local
377 sg_offset = ((uint8_t *)sg - (uint8_t *)scb->sg_list) in ahd_sg_virt_to_bus()
380 return (scb->sg_list_busaddr + sg_offset); in ahd_sg_virt_to_bus()
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_verbs.c2030 unsigned int *sg_offset, unsigned int page_size) in ib_map_mr_sg() argument
2037 return mr->device->map_mr_sg(mr, sg, sg_nents, sg_offset); in ib_map_mr_sg()
2066 unsigned int sg_offset = sg_offset_p ? *sg_offset_p : 0; in ib_sg_to_pages() local
2071 if (unlikely(sg_nents <= 0 || sg_offset > sg_dma_len(&sgl[0]))) in ib_sg_to_pages()
2074 mr->iova = sg_dma_address(&sgl[0]) + sg_offset; in ib_sg_to_pages()
2078 u64 dma_addr = sg_dma_address(sg) + sg_offset; in ib_sg_to_pages()
2080 unsigned int dma_len = sg_dma_len(sg) - sg_offset; in ib_sg_to_pages()
2105 sg_offset = prev_addr - sg_dma_address(sg); in ib_sg_to_pages()
2108 *sg_offset_p = sg_offset; in ib_sg_to_pages()
2109 return i || sg_offset ? i : ret; in ib_sg_to_pages()
[all …]
/freebsd/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_mr.c1593 unsigned int sg_offset = sg_offset_p ? *sg_offset_p : 0; in mlx5_ib_sg_to_klms() local
1597 mr->ibmr.iova = sg_dma_address(sg) + sg_offset; in mlx5_ib_sg_to_klms()
1604 klms[i].va = cpu_to_be64(sg_dma_address(sg) + sg_offset); in mlx5_ib_sg_to_klms()
1605 klms[i].bcount = cpu_to_be32(sg_dma_len(sg) - sg_offset); in mlx5_ib_sg_to_klms()
1609 sg_offset = 0; in mlx5_ib_sg_to_klms()
1613 *sg_offset_p = sg_offset; in mlx5_ib_sg_to_klms()
1633 unsigned int *sg_offset) in mlx5_ib_map_mr_sg() argument
1645 n = mlx5_ib_sg_to_klms(mr, sg, sg_nents, sg_offset); in mlx5_ib_map_mr_sg()
1647 n = ib_sg_to_pages(ibmr, sg, sg_nents, sg_offset, in mlx5_ib_map_mr_sg()
H A Dmlx5_ib.h955 unsigned int *sg_offset);
/freebsd/sys/dev/qlnx/qlnxr/
H A Dqlnxr_verbs.h167 int sg_nents, unsigned int *sg_offset);
H A Dqlnxr_verbs.c5500 int sg_nents, unsigned int *sg_offset) in qlnxr_map_mr_sg() argument
/freebsd/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_mr.c536 unsigned int *sg_offset) in mlx4_ib_map_mr_sg() argument
546 rc = ib_sg_to_pages(ibmr, sg, sg_nents, sg_offset, mlx4_set_page); in mlx4_ib_map_mr_sg()
H A Dmlx4_ib.h731 unsigned int *sg_offset);
/freebsd/sys/ofed/include/rdma/
H A Dib_verbs.h2308 unsigned int *sg_offset);
3948 unsigned int *sg_offset, unsigned int page_size);
3952 unsigned int *sg_offset, unsigned int page_size) in ib_map_mr_sg_zbva() argument
3956 n = ib_map_mr_sg(mr, sg, sg_nents, sg_offset, page_size); in ib_map_mr_sg_zbva()
3963 unsigned int *sg_offset, int (*set_page)(struct ib_mr *, u64));
/freebsd/sys/dev/cxgbe/iw_cxgbe/
H A Dmem.c694 int sg_nents, unsigned int *sg_offset) in c4iw_map_mr_sg() argument
700 return ib_sg_to_pages(ibmr, sg, sg_nents, sg_offset, c4iw_set_page); in c4iw_map_mr_sg()
H A Diw_cxgbe.h938 int sg_nents, unsigned int *sg_offset);
/freebsd/sys/dev/cxgbe/tom/
H A Dt4_ddp.c1983 u_int ppod_addr, offset, sg_offset = 0; in t4_write_page_pods_for_buf()
2035 pa = pmap_kextract(pva + sg_offset); in t4_write_page_pods_for_sgl()
2062 sg_offset += ddp_pgsz; in t4_write_page_pods_for_sgl()
2063 if (sg_offset == sgl->len) { in t4_write_page_pods_for_sgl()
2070 sg_offset = 0; in t4_write_page_pods_for_sgl()
2015 u_int ppod_addr, offset, sg_offset = 0; t4_write_page_pods_for_sgl() local
/freebsd/sys/dev/bnxt/bnxt_re/
H A Dib_verbs.h330 int sg_nents, unsigned int *sg_offset);
H A Dib_verbs.c4877 int sg_nents, unsigned int *sg_offset) in bnxt_re_map_mr_sg() argument
4883 sg_offset, bnxt_re_set_page); in bnxt_re_map_mr_sg()
/freebsd/sys/dev/irdma/
H A Dirdma_verbs.c1917 int sg_nents, unsigned int *sg_offset) in irdma_map_mr_sg() argument
1923 return ib_sg_to_pages(ibmr, sg, sg_nents, sg_offset, irdma_set_page); in irdma_map_mr_sg()