Lines Matching refs:sg_dst
69 struct scatterlist *sg_dst, in check_alignment() argument
76 if (!sg_dst) in check_alignment()
78 out = IS_ALIGNED((uint32_t)sg_dst->offset, 4) && in check_alignment()
79 IS_ALIGNED((uint32_t)sg_dst->length, align_mask); in check_alignment()
82 return (align && (sg_src->length == sg_dst->length)); in check_alignment()
87 struct scatterlist *sg_dst) in rk_load_data() argument
92 check_alignment(sg_src, sg_dst, dev->align_size) : in rk_load_data()
105 if (sg_dst) { in rk_load_data()
106 if (!dma_map_sg(dev->dev, sg_dst, 1, DMA_FROM_DEVICE)) { in rk_load_data()
114 dev->addr_out = sg_dma_address(sg_dst); in rk_load_data()
136 if (sg_dst) { in rk_load_data()
160 if (dev->sg_dst) { in rk_unload_data()
161 sg_out = dev->aligned ? dev->sg_dst : &dev->sg_tmp; in rk_unload_data()