Lines Matching refs:sg_used
87 wa->sg_used = 0; in ccp_init_sg_workarea()
114 wa->sg_used += nbytes; in ccp_update_sg_workarea()
116 if (wa->sg_used == sg_dma_len(wa->dma_sg)) { in ccp_update_sg_workarea()
129 } while (wa->sg_used > sg_combined_len); in ccp_update_sg_workarea()
131 wa->sg_used = 0; in ccp_update_sg_workarea()
312 scatterwalk_map_and_copy(dm_wa->address, sg_wa->sg, sg_wa->sg_used, in ccp_queue_buf()
318 nbytes = min(sg_dma_len(sg_wa->dma_sg) - sg_wa->sg_used, in ccp_queue_buf()
350 sg_src_len = sg_dma_len(src->sg_wa.dma_sg) - src->sg_wa.sg_used; in ccp_prepare_data()
354 sg_dst_len = sg_dma_len(dst->sg_wa.dma_sg) - dst->sg_wa.sg_used; in ccp_prepare_data()
385 op->src.u.dma.offset = src->sg_wa.sg_used; in ccp_prepare_data()
406 op->dst.u.dma.offset = dst->sg_wa.sg_used; in ccp_prepare_data()
2044 dst.sg_wa.sg_used = 0; in ccp_run_passthru_cmd()
2064 op.dst.u.dma.offset = dst.sg_wa.sg_used; in ccp_run_passthru_cmd()
2073 dst.sg_wa.sg_used += sg_dma_len(src.sg_wa.sg); in ccp_run_passthru_cmd()
2074 if (dst.sg_wa.sg_used == sg_dma_len(dst.sg_wa.sg)) { in ccp_run_passthru_cmd()
2076 dst.sg_wa.sg_used = 0; in ccp_run_passthru_cmd()