| /OK3568_Linux_fs/kernel/drivers/parisc/ |
| H A D | iommu-helpers.h | 47 BUG_ON(pdirp && (dma_len != sg_dma_len(dma_sg))); in iommu_fill_pdir() 51 dma_len = sg_dma_len(startsg); in iommu_fill_pdir() 52 sg_dma_len(startsg) = 0; in iommu_fill_pdir() 71 sg_dma_len(dma_sg) += startsg->length; in iommu_fill_pdir() 125 sg_dma_len(startsg) = 0; in iommu_coalesce_chunks() 142 sg_dma_len(startsg) = 0; in iommu_coalesce_chunks() 171 sg_dma_len(contig_sg) = dma_len; in iommu_coalesce_chunks()
|
| /OK3568_Linux_fs/kernel/drivers/media/pci/tw68/ |
| H A D | tw68-risc.c | 57 while (offset && offset >= sg_dma_len(sg)) { in tw68_risc_field() 58 offset -= sg_dma_len(sg); in tw68_risc_field() 61 if (bpl <= sg_dma_len(sg) - offset) { in tw68_risc_field() 76 done = (sg_dma_len(sg) - offset); in tw68_risc_field() 84 while (todo > sg_dma_len(sg)) { in tw68_risc_field() 87 sg_dma_len(sg)); in tw68_risc_field() 89 todo -= sg_dma_len(sg); in tw68_risc_field() 91 done += sg_dma_len(sg); in tw68_risc_field()
|
| /OK3568_Linux_fs/kernel/net/rds/ |
| H A D | ib_frmr.c | 134 ret = ib_map_mr_sg_zbva(frmr->mr, ibmr->sg, ibmr->sg_dma_len, in rds_ib_post_reg_frmr() 136 if (unlikely(ret != ibmr->sg_dma_len)) in rds_ib_post_reg_frmr() 205 ibmr->sg_dma_len = 0; in rds_ib_map_frmr() 207 WARN_ON(ibmr->sg_dma_len); in rds_ib_map_frmr() 208 ibmr->sg_dma_len = ib_dma_map_sg(dev, ibmr->sg, ibmr->sg_len, in rds_ib_map_frmr() 210 if (unlikely(!ibmr->sg_dma_len)) { in rds_ib_map_frmr() 220 for (i = 0; i < ibmr->sg_dma_len; ++i) { in rds_ib_map_frmr() 221 unsigned int dma_len = sg_dma_len(&ibmr->sg[i]); in rds_ib_map_frmr() 233 if (i < ibmr->sg_dma_len - 1) in rds_ib_map_frmr() 262 ibmr->sg_dma_len = 0; in rds_ib_map_frmr() [all …]
|
| H A D | ib.h | 327 unsigned int sg_dma_len, in rds_ib_dma_sync_sg_for_cpu() argument 333 for_each_sg(sglist, sg, sg_dma_len, i) { in rds_ib_dma_sync_sg_for_cpu() 335 sg_dma_len(sg), direction); in rds_ib_dma_sync_sg_for_cpu() 342 unsigned int sg_dma_len, in rds_ib_dma_sync_sg_for_device() argument 348 for_each_sg(sglist, sg, sg_dma_len, i) { in rds_ib_dma_sync_sg_for_device() 350 sg_dma_len(sg), direction); in rds_ib_dma_sync_sg_for_device()
|
| /OK3568_Linux_fs/kernel/lib/ |
| H A D | sg_split.c | 36 sglen = mapped ? sg_dma_len(sg) : sg->length; in sg_calculate_split() 95 sg_dma_len(out_sg) = 0; in sg_split_phys() 114 sg_dma_len(out_sg) = sg_dma_len(in_sg); in sg_split_mapped() 117 sg_dma_len(out_sg) -= split->skip_sg0; in sg_split_mapped() 121 sg_dma_len(--out_sg) = split->length_last_sg; in sg_split_mapped()
|
| /OK3568_Linux_fs/kernel/drivers/media/pci/bt8xx/ |
| H A D | bttv-risc.c | 73 while (offset && offset >= sg_dma_len(sg)) { in bttv_risc_packed() 74 offset -= sg_dma_len(sg); in bttv_risc_packed() 77 if (bpl <= sg_dma_len(sg)-offset) { in bttv_risc_packed() 87 (sg_dma_len(sg)-offset)); in bttv_risc_packed() 89 todo -= (sg_dma_len(sg)-offset); in bttv_risc_packed() 92 while (todo > sg_dma_len(sg)) { in bttv_risc_packed() 94 sg_dma_len(sg)); in bttv_risc_packed() 96 todo -= sg_dma_len(sg); in bttv_risc_packed() 176 while (yoffset && yoffset >= sg_dma_len(ysg)) { in bttv_risc_planar() 177 yoffset -= sg_dma_len(ysg); in bttv_risc_planar() [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm/mm/ |
| H A D | dma-mapping-nommu.c | 127 sg_dma_len(sg) = sg->length; in arm_nommu_dma_map_sg() 128 __dma_page_cpu_to_dev(sg_dma_address(sg), sg_dma_len(sg), dir); in arm_nommu_dma_map_sg() 142 __dma_page_dev_to_cpu(sg_dma_address(sg), sg_dma_len(sg), dir); in arm_nommu_dma_unmap_sg() 164 __dma_page_cpu_to_dev(sg_dma_address(sg), sg_dma_len(sg), dir); in arm_nommu_dma_sync_sg_for_device() 174 __dma_page_dev_to_cpu(sg_dma_address(sg), sg_dma_len(sg), dir); in arm_nommu_dma_sync_sg_for_cpu()
|
| /OK3568_Linux_fs/kernel/drivers/media/pci/cx25821/ |
| H A D | cx25821-core.c | 1016 while (offset && offset >= sg_dma_len(sg)) { in cx25821_risc_field() 1017 offset -= sg_dma_len(sg); in cx25821_risc_field() 1020 if (bpl <= sg_dma_len(sg) - offset) { in cx25821_risc_field() 1031 (sg_dma_len(sg) - offset)); in cx25821_risc_field() 1034 todo -= (sg_dma_len(sg) - offset); in cx25821_risc_field() 1037 while (todo > sg_dma_len(sg)) { in cx25821_risc_field() 1039 sg_dma_len(sg)); in cx25821_risc_field() 1042 todo -= sg_dma_len(sg); in cx25821_risc_field() 1121 while (offset && offset >= sg_dma_len(sg)) { in cx25821_risc_field_audio() 1122 offset -= sg_dma_len(sg); in cx25821_risc_field_audio() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/crypto/allwinner/sun8i-ss/ |
| H A D | sun8i-ss-cipher.c | 39 if ((sg_dma_len(sg) % 16) != 0) in sun8i_ss_need_fallback() 49 if ((sg_dma_len(sg) % 16) != 0) in sun8i_ss_need_fallback() 120 if (sg_dma_len(sg) == 0) { in sun8i_ss_setup_ivs() 137 todo = min(len, sg_dma_len(sg)); in sun8i_ss_setup_ivs() 234 if (sg_dma_len(sg) == 0) in sun8i_ss_cipher() 237 todo = min(len, sg_dma_len(sg)); in sun8i_ss_cipher() 256 if (sg_dma_len(sg) == 0) in sun8i_ss_cipher() 259 todo = min(len, sg_dma_len(sg)); in sun8i_ss_cipher()
|
| /OK3568_Linux_fs/kernel/drivers/crypto/rockchip/ |
| H A D | rk_crypto_utils.c | 279 cur_lli->src_len = sg_dma_len(tmp_src); in rk_crypto_hw_desc_init() 281 cur_lli->dst_len = sg_dma_len(tmp_dst); in rk_crypto_hw_desc_init() 284 data_cnt += sg_dma_len(tmp_src); in rk_crypto_hw_desc_init() 291 cur_lli->src_len = sg_dma_len(tmp_src); in rk_crypto_hw_desc_init() 294 data_cnt += sg_dma_len(tmp_src); in rk_crypto_hw_desc_init()
|
| /OK3568_Linux_fs/kernel/drivers/scsi/qla2xxx/ |
| H A D | qla_dsd.h | 15 put_unaligned_le32(sg_dma_len(sg), &(*dsd)->length); in append_dsd32() 28 put_unaligned_le32(sg_dma_len(sg), &(*dsd)->length); in append_dsd64()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/ |
| H A D | i915_scatterlist.c | 25 sg_dma_len(new_sg) = sg_dma_len(sg); in i915_sg_trim()
|
| /OK3568_Linux_fs/kernel/drivers/spi/ |
| H A D | spi-bcm2835.c | 485 bs->tx_prologue = sg_dma_len(&tfr->tx_sg.sgl[0]) & 3; in bcm2835_spi_transfer_prologue() 488 bs->rx_prologue = sg_dma_len(&tfr->rx_sg.sgl[0]) & 3; in bcm2835_spi_transfer_prologue() 496 !(sg_dma_len(&tfr->tx_sg.sgl[0]) & ~3); in bcm2835_spi_transfer_prologue() 522 sg_dma_len(&tfr->rx_sg.sgl[0]) -= bs->rx_prologue; in bcm2835_spi_transfer_prologue() 545 sg_dma_len(&tfr->tx_sg.sgl[0]) -= bs->tx_prologue; in bcm2835_spi_transfer_prologue() 547 sg_dma_len(&tfr->tx_sg.sgl[0]) = 0; in bcm2835_spi_transfer_prologue() 549 sg_dma_len(&tfr->tx_sg.sgl[1]) -= 4; in bcm2835_spi_transfer_prologue() 570 sg_dma_len(&tfr->rx_sg.sgl[0]) += bs->rx_prologue; in bcm2835_spi_undo_prologue() 578 sg_dma_len(&tfr->tx_sg.sgl[0]) += bs->tx_prologue; in bcm2835_spi_undo_prologue() 580 sg_dma_len(&tfr->tx_sg.sgl[0]) = bs->tx_prologue - 4; in bcm2835_spi_undo_prologue() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/pci/cx88/ |
| H A D | cx88-core.c | 90 while (offset && offset >= sg_dma_len(sg)) { in cx88_risc_field() 91 offset -= sg_dma_len(sg); in cx88_risc_field() 98 if (bpl <= sg_dma_len(sg) - offset) { in cx88_risc_field() 108 (sg_dma_len(sg) - offset)); in cx88_risc_field() 110 todo -= (sg_dma_len(sg) - offset); in cx88_risc_field() 113 while (todo > sg_dma_len(sg)) { in cx88_risc_field() 115 sg_dma_len(sg)); in cx88_risc_field() 117 todo -= sg_dma_len(sg); in cx88_risc_field()
|
| /OK3568_Linux_fs/kernel/drivers/media/pci/ivtv/ |
| H A D | ivtv-udma.c | 68 dma->SGarray[i].size = cpu_to_le32(sg_dma_len(sg)); in ivtv_udma_fill_sg_array() 71 buffer_offset += sg_dma_len(sg); in ivtv_udma_fill_sg_array() 73 split -= sg_dma_len(sg); in ivtv_udma_fill_sg_array()
|
| /OK3568_Linux_fs/kernel/drivers/soc/rockchip/ |
| H A D | rockchip_decompress_user.c | 60 if (sg_phys(sgl) > SZ_4G || sg_phys(sgl) + sg_dma_len(sgl) > SZ_4G) in check_scatter_list() 66 total_len += sg_dma_len(sgl); in check_scatter_list() 68 next_addr = sg_dma_address(sgl) + sg_dma_len(sgl); in check_scatter_list()
|
| /OK3568_Linux_fs/kernel/drivers/crypto/ccp/ |
| H A D | ccp-dmaengine.c | 385 src_len = sg_dma_len(src_sg); in ccp_create_desc() 388 dst_len = sg_dma_len(dst_sg); in ccp_create_desc() 401 src_len = sg_dma_len(src_sg); in ccp_create_desc() 415 dst_len = sg_dma_len(dst_sg); in ccp_create_desc() 494 sg_dma_len(&dst_sg) = len; in ccp_prep_dma_memcpy() 498 sg_dma_len(&src_sg) = len; in ccp_prep_dma_memcpy()
|
| /OK3568_Linux_fs/kernel/drivers/dma/ |
| H A D | ste_dma40_ll.c | 286 unsigned int len = sg_dma_len(current_sg); in d40_phy_sg_to_lli() 289 total_size += sg_dma_len(current_sg); in d40_phy_sg_to_lli() 435 unsigned int len = sg_dma_len(current_sg); in d40_log_sg_to_lli() 438 total_size += sg_dma_len(current_sg); in d40_log_sg_to_lli()
|
| H A D | timb_dma.c | 148 if (sg_dma_len(sg) > USHRT_MAX) { in td_fill_desc() 154 if (sg_dma_len(sg) % sizeof(u32)) { in td_fill_desc() 156 sg_dma_len(sg)); in td_fill_desc() 168 dma_desc[3] = (sg_dma_len(sg) >> 8) & 0xff; in td_fill_desc() 169 dma_desc[2] = (sg_dma_len(sg) >> 0) & 0xff; in td_fill_desc()
|
| H A D | altera-msgdma.c | 404 desc_cnt += DIV_ROUND_UP(sg_dma_len(sg), MSGDMA_MAX_TRANS_LEN); in msgdma_prep_slave_sg() 415 avail = sg_dma_len(sgl); in msgdma_prep_slave_sg() 426 dma_src = sg_dma_address(sgl) + sg_dma_len(sgl) - avail; in msgdma_prep_slave_sg() 431 dma_dst = sg_dma_address(sgl) + sg_dma_len(sgl) - avail; in msgdma_prep_slave_sg() 450 avail = sg_dma_len(sgl); in msgdma_prep_slave_sg()
|
| /OK3568_Linux_fs/kernel/drivers/iommu/ |
| H A D | dma-iommu.c | 844 unsigned int s_length = sg_dma_len(s); in __finalise_sg() 850 sg_dma_len(s) = 0; in __finalise_sg() 873 sg_dma_len(cur) = cur_len; in __finalise_sg() 894 if (sg_dma_len(s)) in __invalidate_sg() 895 s->length = sg_dma_len(s); in __invalidate_sg() 897 sg_dma_len(s) = 0; in __invalidate_sg() 939 sg_dma_len(s) = s_length; in iommu_dma_map_sg() 1002 if (sg_dma_len(tmp) == 0) in iommu_dma_unmap_sg() 1006 end = sg_dma_address(sg) + sg_dma_len(sg); in iommu_dma_unmap_sg()
|
| /OK3568_Linux_fs/kernel/drivers/media/pci/cobalt/ |
| H A D | cobalt-omnitek.c | 193 bytes = min(sg_dma_len(scatter_list) - offset, in descriptor_list_create() 236 bytes = min(sg_dma_len(scatter_list) - offset, in descriptor_list_create() 241 if (sg_dma_len(scatter_list) == offset) { in descriptor_list_create()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/gem/ |
| H A D | i915_gem_region.c | 77 sg_dma_len(sg) = block_size; in i915_gem_object_get_pages_buddy() 84 sg_dma_len(sg) += block_size; in i915_gem_object_get_pages_buddy()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/mali/linux/ |
| H A D | mali_memory_secure.c | 77 u32 size = sg_dma_len(sg); in mali_mem_secure_mali_map() 128 size = sg_dma_len(sg); in mali_mem_secure_cpu_map()
|
| /OK3568_Linux_fs/kernel/drivers/scsi/aic94xx/ |
| H A D | aic94xx_task.c | 83 sg->size = cpu_to_le32((u32)sg_dma_len(sc)); in asd_map_scatterlist() 91 sg_arr[i].size = cpu_to_le32((u32)sg_dma_len(sc)); in asd_map_scatterlist() 103 sg_arr[i].size = cpu_to_le32((u32)sg_dma_len(sc)); in asd_map_scatterlist() 435 cpu_to_le32((u32)sg_dma_len(&task->smp_task.smp_req)-4); in asd_build_smp_ascb() 440 cpu_to_le32((u32)sg_dma_len(&task->smp_task.smp_resp)-4); in asd_build_smp_ascb()
|