Lines Matching refs:biter
2949 void __rdma_block_iter_start(struct ib_block_iter *biter, in __rdma_block_iter_start() argument
2953 memset(biter, 0, sizeof(struct ib_block_iter)); in __rdma_block_iter_start()
2954 biter->__sg = sglist; in __rdma_block_iter_start()
2955 biter->__sg_nents = nents; in __rdma_block_iter_start()
2958 biter->__pg_bit = __fls(pgsz); in __rdma_block_iter_start()
2962 bool __rdma_block_iter_next(struct ib_block_iter *biter) in __rdma_block_iter_next() argument
2966 if (!biter->__sg_nents || !biter->__sg) in __rdma_block_iter_next()
2969 biter->__dma_addr = sg_dma_address(biter->__sg) + biter->__sg_advance; in __rdma_block_iter_next()
2970 block_offset = biter->__dma_addr & (BIT_ULL(biter->__pg_bit) - 1); in __rdma_block_iter_next()
2971 biter->__sg_advance += BIT_ULL(biter->__pg_bit) - block_offset; in __rdma_block_iter_next()
2973 if (biter->__sg_advance >= sg_dma_len(biter->__sg)) { in __rdma_block_iter_next()
2974 biter->__sg_advance = 0; in __rdma_block_iter_next()
2975 biter->__sg = sg_next(biter->__sg); in __rdma_block_iter_next()
2976 biter->__sg_nents--; in __rdma_block_iter_next()