Lines Matching refs:dst_sg
606 struct scatterlist *src_sg = msg->spu.src, *dst_sg = msg->spu.dst; in flexrm_spu_estimate_nonheader_desc_count() local
608 while (src_sg || dst_sg) { in flexrm_spu_estimate_nonheader_desc_count()
616 while (dst_target && dst_sg) { in flexrm_spu_estimate_nonheader_desc_count()
618 if (dst_sg->length < dst_target) in flexrm_spu_estimate_nonheader_desc_count()
619 dst_target -= dst_sg->length; in flexrm_spu_estimate_nonheader_desc_count()
622 dst_sg = sg_next(dst_sg); in flexrm_spu_estimate_nonheader_desc_count()
665 struct scatterlist *src_sg = msg->spu.src, *dst_sg = msg->spu.dst; in flexrm_spu_write_descs() local
667 while (src_sg || dst_sg) { in flexrm_spu_write_descs()
684 while (dst_target && dst_sg) { in flexrm_spu_write_descs()
685 if (sg_dma_len(dst_sg) & 0xf) in flexrm_spu_write_descs()
686 d = flexrm_dst_desc(sg_dma_address(dst_sg), in flexrm_spu_write_descs()
687 sg_dma_len(dst_sg)); in flexrm_spu_write_descs()
689 d = flexrm_mdst_desc(sg_dma_address(dst_sg), in flexrm_spu_write_descs()
690 sg_dma_len(dst_sg)/16); in flexrm_spu_write_descs()
695 if (sg_dma_len(dst_sg) < dst_target) in flexrm_spu_write_descs()
696 dst_target -= sg_dma_len(dst_sg); in flexrm_spu_write_descs()
699 dst_sg = sg_next(dst_sg); in flexrm_spu_write_descs()