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()
315 scatterwalk_map_and_copy(dm_wa->address, sg_wa->sg, sg_wa->sg_used, in ccp_queue_buf()
321 nbytes = min(sg_dma_len(sg_wa->dma_sg) - sg_wa->sg_used, in ccp_queue_buf()
353 sg_src_len = sg_dma_len(src->sg_wa.dma_sg) - src->sg_wa.sg_used; in ccp_prepare_data()
357 sg_dst_len = sg_dma_len(dst->sg_wa.dma_sg) - dst->sg_wa.sg_used; in ccp_prepare_data()
388 op->src.u.dma.offset = src->sg_wa.sg_used; in ccp_prepare_data()
409 op->dst.u.dma.offset = dst->sg_wa.sg_used; in ccp_prepare_data()
2047 dst.sg_wa.sg_used = 0; in ccp_run_passthru_cmd()
2067 op.dst.u.dma.offset = dst.sg_wa.sg_used; in ccp_run_passthru_cmd()
2076 dst.sg_wa.sg_used += sg_dma_len(src.sg_wa.sg); in ccp_run_passthru_cmd()
2077 if (dst.sg_wa.sg_used == sg_dma_len(dst.sg_wa.sg)) { in ccp_run_passthru_cmd()
2079 dst.sg_wa.sg_used = 0; in ccp_run_passthru_cmd()