Searched refs:biter (Results 1 – 2 of 2) sorted by relevance
/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 | 2847 void __rdma_block_iter_start(struct ib_block_iter *biter, 2851 bool __rdma_block_iter_next(struct ib_block_iter *biter); 2859 rdma_block_iter_dma_address(struct ib_block_iter *biter) in rdma_block_iter_dma_address() argument 2861 return biter->__dma_addr & ~(BIT_ULL(biter->__pg_bit) - 1); in rdma_block_iter_dma_address() 2874 #define rdma_for_each_block(sglist, biter, nents, pgsz) \ argument 2875 for (__rdma_block_iter_start(biter, sglist, nents, \ 2877 __rdma_block_iter_next(biter);)
|