Lines Matching refs:dst_sg
596 struct scatterlist *src_sg = msg->spu.src, *dst_sg = msg->spu.dst; in flexrm_spu_estimate_nonheader_desc_count() local
598 while (src_sg || dst_sg) { in flexrm_spu_estimate_nonheader_desc_count()
606 while (dst_target && dst_sg) { in flexrm_spu_estimate_nonheader_desc_count()
608 if (dst_sg->length < dst_target) in flexrm_spu_estimate_nonheader_desc_count()
609 dst_target -= dst_sg->length; in flexrm_spu_estimate_nonheader_desc_count()
612 dst_sg = sg_next(dst_sg); in flexrm_spu_estimate_nonheader_desc_count()
655 struct scatterlist *src_sg = msg->spu.src, *dst_sg = msg->spu.dst; in flexrm_spu_write_descs() local
657 while (src_sg || dst_sg) { in flexrm_spu_write_descs()
674 while (dst_target && dst_sg) { in flexrm_spu_write_descs()
675 if (sg_dma_len(dst_sg) & 0xf) in flexrm_spu_write_descs()
676 d = flexrm_dst_desc(sg_dma_address(dst_sg), in flexrm_spu_write_descs()
677 sg_dma_len(dst_sg)); in flexrm_spu_write_descs()
679 d = flexrm_mdst_desc(sg_dma_address(dst_sg), in flexrm_spu_write_descs()
680 sg_dma_len(dst_sg)/16); in flexrm_spu_write_descs()
685 if (sg_dma_len(dst_sg) < dst_target) in flexrm_spu_write_descs()
686 dst_target -= sg_dma_len(dst_sg); in flexrm_spu_write_descs()
689 dst_sg = sg_next(dst_sg); in flexrm_spu_write_descs()