Home
last modified time | relevance | path

Searched refs:paddr (Results 1 – 25 of 518) sorted by relevance

12345678910>>...21

/linux/arch/mips/cavium-octeon/
A Ddma-octeon.c40 return paddr; in octeon_hole_phys_to_dma()
53 if (paddr >= 0x410000000ull && paddr < 0x420000000ull) in octeon_gen1_phys_to_dma()
54 paddr -= 0x400000000ull; in octeon_gen1_phys_to_dma()
90 if (paddr >= 0x410000000ull && paddr < 0x420000000ull) in octeon_big_phys_to_dma()
95 paddr = OCTEON_BAR2_PCI_ADDRESS + paddr; in octeon_big_phys_to_dma()
97 return paddr; in octeon_big_phys_to_dma()
118 if (paddr >= 0x410000000ull && paddr < 0x420000000ull) in octeon_small_phys_to_dma()
123 paddr = paddr - octeon_bar1_pci_phys; in octeon_small_phys_to_dma()
125 paddr = OCTEON_BAR2_PCI_ADDRESS + paddr; in octeon_small_phys_to_dma()
127 return paddr; in octeon_small_phys_to_dma()
[all …]
/linux/arch/m68k/mm/
A Dmemory.c31 : : "a" (paddr)); in clear040()
42 : : "a" (paddr)); in cleari040()
54 : : "a" (paddr)); in push040()
64 push040(paddr); in pushcl040()
66 clear040(paddr); in pushcl040()
113 paddr += tmp; in cache_clear()
116 paddr &= PAGE_MASK; in cache_clear()
119 paddr += tmp; in cache_clear()
164 paddr &= PAGE_MASK; in cache_push()
167 push040(paddr); in cache_push()
[all …]
/linux/arch/arc/mm/
A Dioremap.c19 } else if (paddr >= perip_base && paddr <= perip_end) { in arc_uncached_addr_space()
31 end = paddr + size - 1; in ioremap()
32 if (!size || (end < paddr)) in ioremap()
39 if (arc_uncached_addr_space(paddr)) in ioremap()
40 return (void __iomem *)(u32)paddr; in ioremap()
42 return ioremap_prot(paddr, size, in ioremap()
64 end = paddr + size - 1; in ioremap_prot()
65 if ((!size) || (end < paddr)) in ioremap_prot()
76 off = paddr & ~PAGE_MASK; in ioremap_prot()
77 paddr &= PAGE_MASK_PHYS; in ioremap_prot()
[all …]
A Dcache.c248 paddr &= CACHE_LINE_MASK; in __cache_line_loop_v3()
273 paddr += L1_CACHE_BYTES; in __cache_line_loop_v3()
307 paddr &= CACHE_LINE_MASK; in __cache_line_loop_v4()
330 paddr += L1_CACHE_BYTES; in __cache_line_loop_v4()
357 paddr &= CACHE_LINE_MASK; in __cache_line_loop_v4()
376 write_aux_reg(s, paddr); in __cache_line_loop_v4()
552 phys_addr_t paddr, vaddr; member
567 .paddr = paddr, in __ic_line_inv_vaddr()
679 paddr &= SLC_LINE_MASK; in slc_op_line()
685 paddr += l2_line_sz; in slc_op_line()
[all …]
A Ddma.c51 void arch_sync_dma_for_device(phys_addr_t paddr, size_t size, in arch_sync_dma_for_device() argument
56 dma_cache_wback(paddr, size); in arch_sync_dma_for_device()
60 dma_cache_inv(paddr, size); in arch_sync_dma_for_device()
64 dma_cache_wback_inv(paddr, size); in arch_sync_dma_for_device()
72 void arch_sync_dma_for_cpu(phys_addr_t paddr, size_t size, in arch_sync_dma_for_cpu() argument
82 dma_cache_inv(paddr, size); in arch_sync_dma_for_cpu()
/linux/arch/m68k/kernel/
A Dsys_m68k.c70 unsigned long paddr, i; in cache_flush_040() local
135 : : "a" (paddr)); in cache_flush_040()
142 : : "a" (paddr)); in cache_flush_040()
150 : : "a" (paddr)); in cache_flush_040()
174 paddr += 16; in cache_flush_040()
192 : : "a" (paddr)); in cache_flush_040()
199 : : "a" (paddr)); in cache_flush_040()
207 : : "a" (paddr)); in cache_flush_040()
222 : "=a" (paddr) \
230 unsigned long paddr, i; in cache_flush_060() local
[all …]
/linux/include/linux/
A Ddma-direct.h28 phys_addr_t paddr) in translate_phys_to_dma() argument
33 if (paddr >= m->cpu_start && paddr - m->cpu_start < m->size) in translate_phys_to_dma()
34 return (dma_addr_t)paddr - m->offset; in translate_phys_to_dma()
59 phys_addr_t paddr) in phys_to_dma_unencrypted() argument
62 return translate_phys_to_dma(dev, paddr); in phys_to_dma_unencrypted()
63 return paddr; in phys_to_dma_unencrypted()
74 return __sme_set(phys_to_dma_unencrypted(dev, paddr)); in phys_to_dma()
79 phys_addr_t paddr; in dma_to_phys() local
82 paddr = translate_dma_to_phys(dev, dma_addr); in dma_to_phys()
84 paddr = dma_addr; in dma_to_phys()
[all …]
/linux/arch/arm/mm/
A Ddma-mapping-nommu.c16 void arch_sync_dma_for_device(phys_addr_t paddr, size_t size, in arch_sync_dma_for_device() argument
19 dmac_map_area(__va(paddr), size, dir); in arch_sync_dma_for_device()
22 outer_inv_range(paddr, paddr + size); in arch_sync_dma_for_device()
24 outer_clean_range(paddr, paddr + size); in arch_sync_dma_for_device()
27 void arch_sync_dma_for_cpu(phys_addr_t paddr, size_t size, in arch_sync_dma_for_cpu() argument
31 outer_inv_range(paddr, paddr + size); in arch_sync_dma_for_cpu()
32 dmac_unmap_area(__va(paddr), size, dir); in arch_sync_dma_for_cpu()
/linux/arch/microblaze/kernel/
A Ddma.c17 static void __dma_sync(phys_addr_t paddr, size_t size, in __dma_sync() argument
23 flush_dcache_range(paddr, paddr + size); in __dma_sync()
26 invalidate_dcache_range(paddr, paddr + size); in __dma_sync()
33 void arch_sync_dma_for_device(phys_addr_t paddr, size_t size, in arch_sync_dma_for_device() argument
36 __dma_sync(paddr, size, dir); in arch_sync_dma_for_device()
39 void arch_sync_dma_for_cpu(phys_addr_t paddr, size_t size, in arch_sync_dma_for_cpu() argument
42 __dma_sync(paddr, size, dir); in arch_sync_dma_for_cpu()
/linux/drivers/bus/
A Duniphier-system-bus.c45 bank, addr, paddr, size); in uniphier_system_bus_add_bank()
58 if (paddr > U32_MAX) { in uniphier_system_bus_add_bank()
63 end = paddr + size; in uniphier_system_bus_add_bank()
65 if (addr > paddr) { in uniphier_system_bus_add_bank()
68 addr, paddr); in uniphier_system_bus_add_bank()
71 paddr -= addr; in uniphier_system_bus_add_bank()
73 paddr = round_down(paddr, 0x00020000); in uniphier_system_bus_add_bank()
80 mask = paddr ^ (end - 1); in uniphier_system_bus_add_bank()
83 paddr = round_down(paddr, mask); in uniphier_system_bus_add_bank()
181 u64 paddr; in uniphier_system_bus_probe() local
[all …]
/linux/arch/x86/mm/pat/
A Dmemtype.c716 if (x86_platform.is_untracked_pat_range(paddr, paddr + PAGE_SIZE)) in lookup_memtype()
719 if (pat_pagerange_is_ram(paddr, paddr + PAGE_SIZE)) { in lookup_memtype()
921 is_ram = pat_pagerange_is_ram(paddr, paddr + size); in reserve_pfn_range()
947 ret = memtype_reserve(paddr, paddr + size, want_pcm, &pcm); in reserve_pfn_range()
954 memtype_free(paddr, paddr + size); in reserve_pfn_range()
973 memtype_free(paddr, paddr + size); in reserve_pfn_range()
987 is_ram = pat_pagerange_is_ram(paddr, paddr + size); in free_pfn_range()
989 memtype_free(paddr, paddr + size); in free_pfn_range()
1001 resource_size_t paddr; in track_pfn_copy() local
1057 paddr += PAGE_SIZE; in track_pfn_remap()
[all …]
/linux/arch/x86/mm/
A Dioremap.c579 u64 paddr; in memremap_is_efi_data() local
586 paddr <<= 32; in memremap_is_efi_data()
592 paddr <<= 32; in memremap_is_efi_data()
619 u64 paddr, paddr_next; in memremap_is_setup_data() local
622 while (paddr) { in memremap_is_setup_data()
634 if ((phys_addr > paddr) && (phys_addr < (paddr + len))) { in memremap_is_setup_data()
647 if ((phys_addr > paddr) && (phys_addr < (paddr + len))) in memremap_is_setup_data()
650 paddr = paddr_next; in memremap_is_setup_data()
667 while (paddr) { in early_memremap_is_setup_data()
680 if ((phys_addr > paddr) && (phys_addr < (paddr + len))) in early_memremap_is_setup_data()
[all …]
/linux/arch/xtensa/kernel/
A Dpci-dma.c24 static void do_cache_op(phys_addr_t paddr, size_t size, in do_cache_op() argument
27 unsigned long off = paddr & (PAGE_SIZE - 1); in do_cache_op()
28 unsigned long pfn = PFN_DOWN(paddr); in do_cache_op()
32 fn((unsigned long)phys_to_virt(paddr), size); in do_cache_op()
46 void arch_sync_dma_for_cpu(phys_addr_t paddr, size_t size, in arch_sync_dma_for_cpu() argument
52 do_cache_op(paddr, size, __invalidate_dcache_range); in arch_sync_dma_for_cpu()
64 void arch_sync_dma_for_device(phys_addr_t paddr, size_t size, in arch_sync_dma_for_device() argument
71 do_cache_op(paddr, size, __flush_dcache_range); in arch_sync_dma_for_device()
/linux/arch/nds32/kernel/
A Ddma.c13 static inline void cache_op(phys_addr_t paddr, size_t size, in cache_op() argument
16 struct page *page = pfn_to_page(paddr >> PAGE_SHIFT); in cache_op()
17 unsigned offset = paddr & ~PAGE_MASK; in cache_op()
40 start = (unsigned long)phys_to_virt(paddr); in cache_op()
49 void arch_sync_dma_for_device(phys_addr_t paddr, size_t size, in arch_sync_dma_for_device() argument
57 cache_op(paddr, size, cpu_dma_wb_range); in arch_sync_dma_for_device()
64 void arch_sync_dma_for_cpu(phys_addr_t paddr, size_t size, in arch_sync_dma_for_cpu() argument
72 cache_op(paddr, size, cpu_dma_inval_range); in arch_sync_dma_for_cpu()
/linux/arch/csky/mm/
A Ddma-mapping.c15 static inline void cache_op(phys_addr_t paddr, size_t size, in cache_op() argument
18 struct page *page = phys_to_page(paddr); in cache_op()
20 unsigned long offset = offset_in_page(paddr); in cache_op()
59 void arch_sync_dma_for_device(phys_addr_t paddr, size_t size, in arch_sync_dma_for_device() argument
64 cache_op(paddr, size, dma_wb_range); in arch_sync_dma_for_device()
68 cache_op(paddr, size, dma_wbinv_range); in arch_sync_dma_for_device()
75 void arch_sync_dma_for_cpu(phys_addr_t paddr, size_t size, in arch_sync_dma_for_cpu() argument
83 cache_op(paddr, size, dma_inv_range); in arch_sync_dma_for_cpu()
A Dtcm.c29 unsigned long vaddr, paddr; local
32 paddr = CONFIG_ITCM_RAM_BASE;
47 set_pte(tcm_pte, pfn_pte(__phys_to_pfn(paddr), PAGE_KERNEL));
51 paddr = paddr + PAGE_SIZE;
58 paddr = CONFIG_DTCM_RAM_BASE;
66 set_pte(tcm_pte, pfn_pte(__phys_to_pfn(paddr), PAGE_KERNEL));
70 paddr = paddr + PAGE_SIZE;
/linux/arch/x86/include/asm/uv/
A Duv_hub.h421 return uv_gam_range(paddr)->nasid; in uv_soc_phys_ram_to_nasid()
440 paddr |= uv_hub_info->gnode_upper; in uv_soc_phys_ram_to_gpa()
441 paddr = ((paddr << uv_hub_info->m_shift) in uv_soc_phys_ram_to_gpa()
443 ((paddr >> uv_hub_info->m_val) in uv_soc_phys_ram_to_gpa()
446 paddr |= uv_soc_phys_ram_to_nasid(paddr) in uv_soc_phys_ram_to_gpa()
449 return paddr; in uv_soc_phys_ram_to_gpa()
468 unsigned long paddr; in uv_gpa_to_soc_phys_ram() local
477 paddr = gpa & uv_hub_info->gpa_mask; in uv_gpa_to_soc_phys_ram()
478 if (paddr >= remap_base && paddr < remap_base + remap_top) in uv_gpa_to_soc_phys_ram()
479 paddr -= remap_base; in uv_gpa_to_soc_phys_ram()
[all …]
/linux/drivers/net/phy/
A Dbcm87xx.c36 const __be32 *paddr; in bcm87xx_of_reg_init() local
43 paddr = of_get_property(phydev->mdio.dev.of_node, in bcm87xx_of_reg_init()
45 if (!paddr) in bcm87xx_of_reg_init()
48 paddr_end = paddr + (len /= sizeof(*paddr)); in bcm87xx_of_reg_init()
52 while (paddr + 3 < paddr_end) { in bcm87xx_of_reg_init()
53 u16 devid = be32_to_cpup(paddr++); in bcm87xx_of_reg_init()
54 u16 reg = be32_to_cpup(paddr++); in bcm87xx_of_reg_init()
55 u16 mask = be32_to_cpup(paddr++); in bcm87xx_of_reg_init()
56 u16 val_bits = be32_to_cpup(paddr++); in bcm87xx_of_reg_init()
/linux/drivers/media/platform/sti/hva/
A Dhva-mem.c16 dma_addr_t paddr; in hva_mem_alloc() local
25 base = dma_alloc_attrs(dev, size, &paddr, GFP_KERNEL, in hva_mem_alloc()
36 b->paddr = paddr; in hva_mem_alloc()
42 ctx->name, size, b->vaddr, &b->paddr, b->name); in hva_mem_alloc()
56 ctx->name, buf->size, buf->vaddr, &buf->paddr, buf->name); in hva_mem_free()
58 dma_free_attrs(dev, buf->size, buf->vaddr, buf->paddr, in hva_mem_free()
/linux/arch/alpha/kernel/
A Dpci_iommu.c41 mk_iommu_pte(unsigned long paddr) in mk_iommu_pte() argument
43 return (paddr >> (PAGE_SHIFT-1)) | 1; in mk_iommu_pte()
237 unsigned long paddr; in pci_map_single_1() local
242 paddr = __pa(cpu_addr); in pci_map_single_1()
248 ret = paddr + __direct_map_base; in pci_map_single_1()
259 ret = paddr + alpha_mv.pci_dac_offset; in pci_map_single_1()
291 paddr &= PAGE_MASK; in pci_map_single_1()
573 paddr &= ~PAGE_MASK; in sg_fill()
603 paddr = SG_ENT_PHYS_ADDRESS(sg); in sg_fill()
612 paddr &= PAGE_MASK; in sg_fill()
[all …]
/linux/drivers/xen/
A Dswiotlb-xen.c50 unsigned long bfn = pfn_to_bfn(XEN_PFN_DOWN(paddr)); in xen_phys_to_bus()
53 baddr |= paddr & ~XEN_PAGE_MASK; in xen_phys_to_bus()
59 return phys_to_dma(dev, xen_phys_to_bus(dev, paddr)); in xen_phys_to_dma()
66 phys_addr_t paddr = (xen_pfn << XEN_PAGE_SHIFT) | in xen_bus_to_phys() local
69 return paddr; in xen_bus_to_phys()
102 if (pfn_valid(PFN_DOWN(paddr))) in is_xen_swiotlb_buffer()
103 return is_swiotlb_buffer(dev, paddr); in is_xen_swiotlb_buffer()
426 arch_sync_dma_for_cpu(paddr, size, dir); in xen_swiotlb_unmap_page()
440 phys_addr_t paddr = xen_dma_to_phys(dev, dma_addr); in xen_swiotlb_sync_single_for_cpu() local
444 arch_sync_dma_for_cpu(paddr, size, dir); in xen_swiotlb_sync_single_for_cpu()
[all …]
/linux/sound/soc/intel/catpt/
A Dloader.c239 struct dma_chan *chan, dma_addr_t paddr, in catpt_restore_fwimage() argument
251 paddr += sizeof(*blk); in catpt_restore_fwimage()
278 paddr + off, in catpt_restore_fwimage()
290 struct dma_chan *chan, dma_addr_t paddr, in catpt_load_block() argument
317 paddr += sizeof(*blk); in catpt_load_block()
329 struct dma_chan *chan, dma_addr_t paddr, in catpt_restore_basefw() argument
372 struct dma_chan *chan, dma_addr_t paddr, in catpt_restore_module() argument
413 struct dma_chan *chan, dma_addr_t paddr, in catpt_load_module() argument
460 struct dma_chan *chan, dma_addr_t paddr, in catpt_restore_firmware() argument
506 struct dma_chan *chan, dma_addr_t paddr, in catpt_load_firmware() argument
[all …]
/linux/drivers/video/fbdev/omap2/omapfb/
A Dvrfb.c169 void omap_vrfb_setup(struct vrfb *vrfb, unsigned long paddr, in omap_vrfb_setup() argument
211 ctxs[ctx].physical_ba = paddr; in omap_vrfb_setup()
215 omap2_sms_write_rot_physical_ba(paddr, ctx); in omap_vrfb_setup()
235 vrfb->vaddr[rot] = ioremap_wc(vrfb->paddr[rot], size); in omap_vrfb_map_angle()
266 if (vrfb->paddr[rot]) { in omap_vrfb_release_ctx()
267 release_mem_region(vrfb->paddr[rot], OMAP_VRFB_SIZE); in omap_vrfb_release_ctx()
268 vrfb->paddr[rot] = 0; in omap_vrfb_release_ctx()
281 u32 paddr; in omap_vrfb_request_ctx() local
308 paddr = ctxs[ctx].base + SMS_ROT_VIRT_BASE(rot); in omap_vrfb_request_ctx()
318 vrfb->paddr[rot] = paddr; in omap_vrfb_request_ctx()
[all …]
/linux/arch/s390/kernel/
A Duv.c83 static int uv_pin_shared(unsigned long paddr) in uv_pin_shared() argument
88 .paddr = paddr, in uv_pin_shared()
103 static int uv_destroy_page(unsigned long paddr) in uv_destroy_page() argument
108 .paddr = paddr in uv_destroy_page()
126 int uv_destroy_owned_page(unsigned long paddr) in uv_destroy_owned_page() argument
128 struct page *page = phys_to_page(paddr); in uv_destroy_owned_page()
132 rc = uv_destroy_page(paddr); in uv_destroy_owned_page()
145 int uv_convert_from_secure(unsigned long paddr) in uv_convert_from_secure() argument
150 .paddr = paddr in uv_convert_from_secure()
163 struct page *page = phys_to_page(paddr); in uv_convert_owned_from_secure()
[all …]
/linux/arch/sparc/include/asm/
A Dmxcc.h89 static inline void mxcc_set_stream_src(unsigned long *paddr) in mxcc_set_stream_src() argument
91 unsigned long data0 = paddr[0]; in mxcc_set_stream_src()
92 unsigned long data1 = paddr[1]; in mxcc_set_stream_src()
102 static inline void mxcc_set_stream_dst(unsigned long *paddr) in mxcc_set_stream_dst() argument
104 unsigned long data0 = paddr[0]; in mxcc_set_stream_dst()
105 unsigned long data1 = paddr[1]; in mxcc_set_stream_dst()

Completed in 46 milliseconds

12345678910>>...21