/linux-6.6.21/include/rdma/ |
D | ib_umem.h | 74 static inline void __rdma_umem_block_iter_start(struct ib_block_iter *biter, in __rdma_umem_block_iter_start() argument 78 __rdma_block_iter_start(biter, umem->sgt_append.sgt.sgl, in __rdma_umem_block_iter_start() 80 biter->__sg_advance = ib_umem_offset(umem) & ~(pgsz - 1); in __rdma_umem_block_iter_start() 81 biter->__sg_numblocks = ib_umem_num_dma_blocks(umem, pgsz); in __rdma_umem_block_iter_start() 84 static inline bool __rdma_umem_block_iter_next(struct ib_block_iter *biter) in __rdma_umem_block_iter_next() argument 86 return __rdma_block_iter_next(biter) && biter->__sg_numblocks--; in __rdma_umem_block_iter_next() 100 #define rdma_umem_for_each_dma_block(umem, biter, pgsz) \ argument 101 for (__rdma_umem_block_iter_start(biter, umem, pgsz); \ 102 __rdma_umem_block_iter_next(biter);)
|
D | ib_verbs.h | 2876 void __rdma_block_iter_start(struct ib_block_iter *biter, 2880 bool __rdma_block_iter_next(struct ib_block_iter *biter); 2888 rdma_block_iter_dma_address(struct ib_block_iter *biter) in rdma_block_iter_dma_address() argument 2890 return biter->__dma_addr & ~(BIT_ULL(biter->__pg_bit) - 1); in rdma_block_iter_dma_address() 2903 #define rdma_for_each_block(sglist, biter, nents, pgsz) \ argument 2904 for (__rdma_block_iter_start(biter, sglist, nents, \ 2906 __rdma_block_iter_next(biter);)
|
/linux-6.6.21/drivers/infiniband/hw/hns/ |
D | hns_roce_alloc.c | 160 struct ib_block_iter biter; in hns_roce_get_umem_bufs() local 164 rdma_umem_for_each_dma_block(umem, &biter, 1 << page_shift) { in hns_roce_get_umem_bufs() 165 bufs[total++] = rdma_block_iter_dma_address(&biter); in hns_roce_get_umem_bufs()
|
/linux-6.6.21/drivers/infiniband/core/ |
D | verbs.c | 3013 void __rdma_block_iter_start(struct ib_block_iter *biter, in __rdma_block_iter_start() argument 3017 memset(biter, 0, sizeof(struct ib_block_iter)); in __rdma_block_iter_start() 3018 biter->__sg = sglist; in __rdma_block_iter_start() 3019 biter->__sg_nents = nents; in __rdma_block_iter_start() 3022 biter->__pg_bit = __fls(pgsz); in __rdma_block_iter_start() 3026 bool __rdma_block_iter_next(struct ib_block_iter *biter) in __rdma_block_iter_next() argument 3031 if (!biter->__sg_nents || !biter->__sg) in __rdma_block_iter_next() 3034 biter->__dma_addr = sg_dma_address(biter->__sg) + biter->__sg_advance; in __rdma_block_iter_next() 3035 block_offset = biter->__dma_addr & (BIT_ULL(biter->__pg_bit) - 1); in __rdma_block_iter_next() 3036 sg_delta = BIT_ULL(biter->__pg_bit) - block_offset; in __rdma_block_iter_next() [all …]
|
/linux-6.6.21/drivers/infiniband/hw/mlx5/ |
D | mem.c | 44 struct ib_block_iter biter; in mlx5_ib_populate_pas() local 46 rdma_umem_for_each_dma_block (umem, &biter, page_size) { in mlx5_ib_populate_pas() 47 *pas = cpu_to_be64(rdma_block_iter_dma_address(&biter) | in mlx5_ib_populate_pas()
|
D | umr.c | 616 struct ib_block_iter biter; in mlx5r_umr_update_mr_pas() local 642 rdma_umem_for_each_dma_block(mr->umem, &biter, BIT(mr->page_shift)) { in mlx5r_umr_update_mr_pas() 660 cpu_to_be64(rdma_block_iter_dma_address(&biter) | in mlx5r_umr_update_mr_pas()
|
/linux-6.6.21/drivers/infiniband/hw/vmw_pvrdma/ |
D | pvrdma_misc.c | 185 struct ib_block_iter biter; in pvrdma_page_dir_insert_umem() local 192 rdma_umem_for_each_dma_block (umem, &biter, PAGE_SIZE) { in pvrdma_page_dir_insert_umem() 194 pdir, i, rdma_block_iter_dma_address(&biter)); in pvrdma_page_dir_insert_umem()
|
/linux-6.6.21/drivers/dma/ |
D | fsl-edma-common.c | 364 len += nbytes * le16_to_cpu(edesc->tcd[i].vtcd->biter); in fsl_edma_desc_residue() 381 size = nbytes * le16_to_cpu(edesc->tcd[i].vtcd->biter); in fsl_edma_desc_residue() 452 edma_write_tcdreg(fsl_chan, tcd->biter, biter); in fsl_edma_set_tcd_regs() 483 u16 biter, u16 doff, u32 dlast_sga, bool major_int, in fsl_edma_fill_tcd() argument 526 tcd->biter = cpu_to_le16(EDMA_TCD_BITER_BITER(biter)); in fsl_edma_fill_tcd()
|
D | mpc512x_dma.c | 165 u32 biter:9; /* Beginning "major" iteration count */ member 663 tcd->biter = 1; in mpc_dma_prep_memcpy() 770 tcd->biter = 1; in mpc_dma_prep_slave_sg() 784 tcd->biter = iter & 0x1ff; in mpc_dma_prep_slave_sg() 786 tcd->citer = tcd->biter; in mpc_dma_prep_slave_sg()
|
D | fsl-edma-common.h | 87 __le16 biter; member
|
/linux-6.6.21/drivers/infiniband/hw/mana/ |
D | main.c | 320 struct ib_block_iter biter; in mana_ib_gd_create_dma_region() local 375 rdma_umem_for_each_dma_block(umem, &biter, page_sz) { in mana_ib_gd_create_dma_region() 378 page_addr_list[tail++] = rdma_block_iter_dma_address(&biter); in mana_ib_gd_create_dma_region()
|
/linux-6.6.21/fs/erofs/ |
D | zdata.c | 523 struct z_erofs_bvec_iter biter; member 754 ret = z_erofs_bvec_enqueue(&fe->biter, bvec, &fe->candidate_bvpage, in z_erofs_attach_page() 879 z_erofs_bvec_iter_begin(&fe->biter, &fe->pcl->bvset, in z_erofs_pcluster_begin() 928 z_erofs_bvec_iter_end(&fe->biter); in z_erofs_pcluster_end() 1175 struct z_erofs_bvec_iter biter; in z_erofs_parse_out_bvecs() local 1179 z_erofs_bvec_iter_begin(&biter, &pcl->bvset, Z_EROFS_INLINE_BVECS, 0); in z_erofs_parse_out_bvecs() 1183 z_erofs_bvec_dequeue(&biter, &bvec, &old_bvpage); in z_erofs_parse_out_bvecs() 1192 old_bvpage = z_erofs_bvec_iter_end(&biter); in z_erofs_parse_out_bvecs()
|
/linux-6.6.21/drivers/infiniband/hw/cxgb4/ |
D | mem.c | 497 struct ib_block_iter biter; in c4iw_reg_user_mr() local 548 rdma_umem_for_each_dma_block(mhp->umem, &biter, 1 << shift) { in c4iw_reg_user_mr() 549 pages[i++] = cpu_to_be64(rdma_block_iter_dma_address(&biter)); in c4iw_reg_user_mr()
|
/linux-6.6.21/drivers/infiniband/hw/bnxt_re/ |
D | qplib_res.c | 94 struct ib_block_iter biter; in bnxt_qplib_fill_user_dma_pages() local 97 rdma_umem_for_each_dma_block(sginfo->umem, &biter, sginfo->pgsize) { in bnxt_qplib_fill_user_dma_pages() 98 pbl->pg_map_arr[i] = rdma_block_iter_dma_address(&biter); in bnxt_qplib_fill_user_dma_pages()
|
/linux-6.6.21/drivers/infiniband/hw/efa/ |
D | efa_verbs.c | 1228 struct ib_block_iter biter; in umem_to_page_list() local 1234 rdma_umem_for_each_dma_block(umem, &biter, BIT(hp_shift)) in umem_to_page_list() 1235 page_list[hp_idx++] = rdma_block_iter_dma_address(&biter); in umem_to_page_list() 1277 struct ib_block_iter biter; in pbl_chunk_list_create() local 1311 rdma_for_each_block(pages_sgl, &biter, sg_dma_cnt, in pbl_chunk_list_create() 1314 rdma_block_iter_dma_address(&biter); in pbl_chunk_list_create()
|
/linux-6.6.21/drivers/infiniband/hw/mthca/ |
D | mthca_provider.c | 830 struct ib_block_iter biter; in mthca_reg_user_mr() local 879 rdma_umem_for_each_dma_block(mr->umem, &biter, PAGE_SIZE) { in mthca_reg_user_mr() 880 pages[i++] = rdma_block_iter_dma_address(&biter); in mthca_reg_user_mr()
|
/linux-6.6.21/drivers/infiniband/hw/erdma/ |
D | erdma_verbs.c | 544 struct ib_block_iter biter; in erdma_fill_bottom_mtt() local 550 rdma_umem_for_each_dma_block(mem->umem, &biter, mem->page_size) in erdma_fill_bottom_mtt() 551 mtt->buf[idx++] = rdma_block_iter_dma_address(&biter); in erdma_fill_bottom_mtt()
|
/linux-6.6.21/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_verbs.c | 819 struct ib_block_iter biter; in build_user_pbes() local 830 rdma_umem_for_each_dma_block (mr->umem, &biter, PAGE_SIZE) { in build_user_pbes() 832 pg_addr = rdma_block_iter_dma_address(&biter); in build_user_pbes()
|
/linux-6.6.21/drivers/infiniband/hw/qedr/ |
D | verbs.c | 627 struct ib_block_iter biter; in qedr_populate_pbls() local 649 rdma_umem_for_each_dma_block (umem, &biter, BIT(pg_shift)) { in qedr_populate_pbls() 650 u64 pg_addr = rdma_block_iter_dma_address(&biter); in qedr_populate_pbls()
|
/linux-6.6.21/drivers/infiniband/hw/irdma/ |
D | verbs.c | 2340 struct ib_block_iter biter; in irdma_copy_user_pgaddrs() local 2349 rdma_umem_for_each_dma_block(region, &biter, iwmr->page_size) { in irdma_copy_user_pgaddrs() 2350 *pbl = rdma_block_iter_dma_address(&biter); in irdma_copy_user_pgaddrs()
|