Lines Matching refs:sgiter
16 struct mv_cesa_sg_dma_iter *sgiter, in mv_cesa_req_dma_iter_next_transfer() argument
19 if (!sgiter->sg) in mv_cesa_req_dma_iter_next_transfer()
22 sgiter->op_offset += len; in mv_cesa_req_dma_iter_next_transfer()
23 sgiter->offset += len; in mv_cesa_req_dma_iter_next_transfer()
24 if (sgiter->offset == sg_dma_len(sgiter->sg)) { in mv_cesa_req_dma_iter_next_transfer()
25 if (sg_is_last(sgiter->sg)) in mv_cesa_req_dma_iter_next_transfer()
27 sgiter->offset = 0; in mv_cesa_req_dma_iter_next_transfer()
28 sgiter->sg = sg_next(sgiter->sg); in mv_cesa_req_dma_iter_next_transfer()
31 if (sgiter->op_offset == iter->op_len) in mv_cesa_req_dma_iter_next_transfer()
324 struct mv_cesa_sg_dma_iter *sgiter, in mv_cesa_dma_add_op_transfers() argument
327 u32 flags = sgiter->dir == DMA_TO_DEVICE ? in mv_cesa_dma_add_op_transfers()
335 len = mv_cesa_req_dma_iter_transfer_len(dma_iter, sgiter); in mv_cesa_dma_add_op_transfers()
336 if (sgiter->dir == DMA_TO_DEVICE) { in mv_cesa_dma_add_op_transfers()
337 dst = CESA_SA_DATA_SRAM_OFFSET + sgiter->op_offset; in mv_cesa_dma_add_op_transfers()
338 src = sg_dma_address(sgiter->sg) + sgiter->offset; in mv_cesa_dma_add_op_transfers()
340 dst = sg_dma_address(sgiter->sg) + sgiter->offset; in mv_cesa_dma_add_op_transfers()
341 src = CESA_SA_DATA_SRAM_OFFSET + sgiter->op_offset; in mv_cesa_dma_add_op_transfers()
349 } while (mv_cesa_req_dma_iter_next_transfer(dma_iter, sgiter, len)); in mv_cesa_dma_add_op_transfers()