Home
last modified time | relevance | path

Searched refs:sg_tmp (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.4/drivers/crypto/rockchip/
Drk3288_crypto.c127 sg_init_one(&dev->sg_tmp, dev->addr_vir, count); in rk_load_data()
128 if (!dma_map_sg(dev->dev, &dev->sg_tmp, 1, DMA_TO_DEVICE)) { in rk_load_data()
133 dev->addr_in = sg_dma_address(&dev->sg_tmp); in rk_load_data()
136 if (!dma_map_sg(dev->dev, &dev->sg_tmp, 1, in rk_load_data()
141 dma_unmap_sg(dev->dev, &dev->sg_tmp, 1, in rk_load_data()
145 dev->addr_out = sg_dma_address(&dev->sg_tmp); in rk_load_data()
156 sg_in = dev->aligned ? dev->sg_src : &dev->sg_tmp; in rk_unload_data()
160 sg_out = dev->aligned ? dev->sg_dst : &dev->sg_tmp; in rk_unload_data()
Drk3288_crypto.h204 struct scatterlist sg_tmp; member
/Linux-v5.4/drivers/mmc/host/
Drenesas_sdhi_sys_dmac.c155 struct scatterlist *sg = host->sg_ptr, *sg_tmp; in renesas_sdhi_sys_dmac_start_dma_rx() local
163 for_each_sg(sg, sg_tmp, host->sg_len, i) { in renesas_sdhi_sys_dmac_start_dma_rx()
164 if (sg_tmp->offset & align) in renesas_sdhi_sys_dmac_start_dma_rx()
166 if (sg_tmp->length & align) { in renesas_sdhi_sys_dmac_start_dma_rx()
227 struct scatterlist *sg = host->sg_ptr, *sg_tmp; in renesas_sdhi_sys_dmac_start_dma_tx() local
235 for_each_sg(sg, sg_tmp, host->sg_len, i) { in renesas_sdhi_sys_dmac_start_dma_tx()
236 if (sg_tmp->offset & align) in renesas_sdhi_sys_dmac_start_dma_tx()
238 if (sg_tmp->length & align) { in renesas_sdhi_sys_dmac_start_dma_tx()
/Linux-v5.4/drivers/memstick/core/
Dms_block.c1603 struct scatterlist sg_tmp[10]; in msb_cache_write() local
1630 sg_init_table(sg_tmp, ARRAY_SIZE(sg_tmp)); in msb_cache_write()
1631 msb_sg_copy(sg, sg_tmp, ARRAY_SIZE(sg_tmp), offset, msb->page_size); in msb_cache_write()
1633 sg_copy_to_buffer(sg_tmp, sg_nents(sg_tmp), in msb_cache_write()
1644 struct scatterlist sg_tmp[10]; in msb_cache_read() local
1653 sg_init_table(sg_tmp, ARRAY_SIZE(sg_tmp)); in msb_cache_read()
1654 msb_sg_copy(sg, sg_tmp, ARRAY_SIZE(sg_tmp), in msb_cache_read()
1656 sg_copy_from_buffer(sg_tmp, sg_nents(sg_tmp), in msb_cache_read()
/Linux-v5.4/drivers/crypto/
Ds5p-sss.c1146 struct scatterlist *sg_tmp = sg; in s5p_hash_prepare_sgs() local
1154 while (nbytes > 0 && sg_tmp) { in s5p_hash_prepare_sgs()
1156 if (skip >= sg_tmp->length) { in s5p_hash_prepare_sgs()
1157 skip -= sg_tmp->length; in s5p_hash_prepare_sgs()
1158 if (!sg_tmp->length) { in s5p_hash_prepare_sgs()
1163 if (!IS_ALIGNED(sg_tmp->length - skip, BUFLEN)) { in s5p_hash_prepare_sgs()
1168 if (nbytes < sg_tmp->length - skip) { in s5p_hash_prepare_sgs()
1173 nbytes -= sg_tmp->length - skip; in s5p_hash_prepare_sgs()
1177 sg_tmp = sg_next(sg_tmp); in s5p_hash_prepare_sgs()
Domap-sham.c737 struct scatterlist *sg_tmp = sg; in omap_sham_align_sgs() local
757 while (nbytes > 0 && sg_tmp) { in omap_sham_align_sgs()
761 if (page_zonenum(sg_page(sg_tmp)) != ZONE_DMA) { in omap_sham_align_sgs()
767 if (offset < sg_tmp->length) { in omap_sham_align_sgs()
768 if (!IS_ALIGNED(offset + sg_tmp->offset, 4)) { in omap_sham_align_sgs()
773 if (!IS_ALIGNED(sg_tmp->length - offset, bs)) { in omap_sham_align_sgs()
780 offset -= sg_tmp->length; in omap_sham_align_sgs()
786 nbytes -= sg_tmp->length; in omap_sham_align_sgs()
789 sg_tmp = sg_next(sg_tmp); in omap_sham_align_sgs()