Home
last modified time | relevance | path

Searched refs:phys_addr (Results 1 – 25 of 84) sorted by relevance

1234

/arch/ia64/mm/
Dioremap.c19 __ioremap (unsigned long phys_addr) in __ioremap() argument
21 return (void __iomem *) (__IA64_UNCACHED_OFFSET | phys_addr); in __ioremap()
25 ioremap (unsigned long phys_addr, unsigned long size) in ioremap() argument
40 attr = kern_mem_attribute(phys_addr, size); in ioremap()
42 return (void __iomem *) phys_to_virt(phys_addr); in ioremap()
44 return __ioremap(phys_addr); in ioremap()
50 gran_base = GRANULEROUNDDOWN(phys_addr); in ioremap()
51 gran_size = GRANULEROUNDUP(phys_addr + size) - gran_base; in ioremap()
53 return (void __iomem *) phys_to_virt(phys_addr); in ioremap()
61 page_base = phys_addr & PAGE_MASK; in ioremap()
[all …]
/arch/avr32/mm/
Dioremap.c21 void __iomem *__ioremap(unsigned long phys_addr, size_t size, in __ioremap() argument
34 if ((phys_addr >= P4SEG) && (flags == 0)) in __ioremap()
35 return (void __iomem *)phys_addr; in __ioremap()
38 last_addr = phys_addr + size - 1; in __ioremap()
39 if (!size || last_addr < phys_addr) in __ioremap()
47 if (PHYSADDR(P2SEGADDR(phys_addr)) == phys_addr) in __ioremap()
48 return (void __iomem *)P2SEGADDR(phys_addr); in __ioremap()
51 offset = phys_addr & ~PAGE_MASK; in __ioremap()
52 phys_addr &= PAGE_MASK; in __ioremap()
53 size = PAGE_ALIGN(last_addr + 1) - phys_addr; in __ioremap()
[all …]
/arch/m32r/mm/
Dioremap.c43 __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags) in __ioremap() argument
51 last_addr = phys_addr + size - 1; in __ioremap()
52 if (!size || last_addr < phys_addr) in __ioremap()
59 if (IS_LOW512(phys_addr) && IS_LOW512(phys_addr + size - 1)) in __ioremap()
60 return (void *) KSEG1ADDR(phys_addr); in __ioremap()
65 if (phys_addr < virt_to_phys(high_memory)) { in __ioremap()
69 t_addr = __va(phys_addr); in __ioremap()
83 offset = phys_addr & ~PAGE_MASK; in __ioremap()
84 phys_addr &= PAGE_MASK; in __ioremap()
85 size = PAGE_ALIGN(last_addr + 1) - phys_addr; in __ioremap()
[all …]
Dioremap-nommu.c42 __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags) in __ioremap() argument
44 return (void *)phys_addr; in __ioremap()
/arch/x86/mm/
Dioremap.c172 static void __iomem *__ioremap_caller(resource_size_t phys_addr, in __ioremap_caller() argument
177 const resource_size_t unaligned_phys_addr = phys_addr; in __ioremap_caller()
186 last_addr = phys_addr + size - 1; in __ioremap_caller()
187 if (!size || last_addr < phys_addr) in __ioremap_caller()
190 if (!phys_addr_valid(phys_addr)) { in __ioremap_caller()
192 (unsigned long long)phys_addr); in __ioremap_caller()
200 if (is_ISA_range(phys_addr, last_addr)) in __ioremap_caller()
201 return (__force void __iomem *)phys_to_virt(phys_addr); in __ioremap_caller()
207 WARN_ONCE(iomem_map_sanity_check(phys_addr, size), in __ioremap_caller()
213 for (pfn = phys_addr >> PAGE_SHIFT; in __ioremap_caller()
[all …]
/arch/sh/mm/
Dioremap_32.c36 void __iomem *__ioremap(unsigned long phys_addr, unsigned long size, in __ioremap() argument
44 last_addr = phys_addr + size - 1; in __ioremap()
45 if (!size || last_addr < phys_addr) in __ioremap()
59 if (is_pci_memaddr(phys_addr) && is_pci_memaddr(last_addr)) in __ioremap()
60 return (void __iomem *)phys_addr; in __ioremap()
65 if (phys_addr < virt_to_phys(high_memory)) in __ioremap()
71 offset = phys_addr & ~PAGE_MASK; in __ioremap()
72 phys_addr &= PAGE_MASK; in __ioremap()
73 size = PAGE_ALIGN(last_addr+1) - phys_addr; in __ioremap()
81 area->phys_addr = phys_addr; in __ioremap()
[all …]
Dioremap_64.c46 void *__ioremap(unsigned long phys_addr, unsigned long size, in __ioremap() argument
55 last_addr = phys_addr + size - 1; in __ioremap()
56 if (!size || last_addr < phys_addr) in __ioremap()
66 offset = phys_addr & ~PAGE_MASK; in __ioremap()
67 phys_addr &= PAGE_MASK; in __ioremap()
68 size = PAGE_ALIGN(last_addr + 1) - phys_addr; in __ioremap()
77 area->phys_addr = phys_addr; in __ioremap()
80 phys_addr, pgprot)) { in __ioremap()
/arch/parisc/mm/
Dioremap.c27 void __iomem * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags) in __ioremap() argument
35 unsigned long end = phys_addr + size - 1; in __ioremap()
37 if ((phys_addr >= 0x00080000 && end < 0x000fffff) || in __ioremap()
38 (phys_addr >= 0x00500000 && end < 0x03bfffff)) { in __ioremap()
39 phys_addr |= F_EXTEND(0xfc000000); in __ioremap()
45 last_addr = phys_addr + size - 1; in __ioremap()
46 if (!size || last_addr < phys_addr) in __ioremap()
52 if (phys_addr < virt_to_phys(high_memory)) { in __ioremap()
56 t_addr = __va(phys_addr); in __ioremap()
72 offset = phys_addr & ~PAGE_MASK; in __ioremap()
[all …]
/arch/mips/mm/
Dioremap.c19 phys_t size, phys_t phys_addr, unsigned long flags) in remap_area_pte() argument
32 pfn = phys_addr >> PAGE_SHIFT; in remap_area_pte()
46 phys_t size, phys_t phys_addr, unsigned long flags) in remap_area_pmd() argument
54 phys_addr -= address; in remap_area_pmd()
61 remap_area_pte(pte, address, end - address, address + phys_addr, flags); in remap_area_pmd()
68 static int remap_area_pages(unsigned long address, phys_t phys_addr, in remap_area_pages() argument
75 phys_addr -= address; in remap_area_pages()
92 phys_addr + address, flags)) in remap_area_pages()
118 void __iomem * __ioremap(phys_t phys_addr, phys_t size, unsigned long flags) in __ioremap() argument
125 phys_addr = fixup_bigphys_addr(phys_addr, size); in __ioremap()
[all …]
/arch/cris/mm/
Dioremap.c30 void __iomem * __ioremap_prot(unsigned long phys_addr, unsigned long size, pgprot_t prot) in __ioremap_prot() argument
37 last_addr = phys_addr + size - 1; in __ioremap_prot()
38 if (!size || last_addr < phys_addr) in __ioremap_prot()
44 offset = phys_addr & ~PAGE_MASK; in __ioremap_prot()
45 phys_addr &= PAGE_MASK; in __ioremap_prot()
46 size = PAGE_ALIGN(last_addr+1) - phys_addr; in __ioremap_prot()
56 phys_addr, prot)) { in __ioremap_prot()
63 void __iomem * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags) in __ioremap() argument
65 return __ioremap_prot(phys_addr, size, in __ioremap()
79 void __iomem *ioremap_nocache (unsigned long phys_addr, unsigned long size) in ioremap_nocache() argument
[all …]
/arch/mips/alchemy/common/
Dsetup.c79 phys_t __fixup_bigphys_addr(phys_t phys_addr, phys_t size) in __fixup_bigphys_addr() argument
82 if ((phys_addr >> 32) != 0) in __fixup_bigphys_addr()
83 return phys_addr; in __fixup_bigphys_addr()
91 if (phys_addr >= start && (phys_addr + size - 1) <= end) in __fixup_bigphys_addr()
93 ((phys_addr - start) + Au1500_PCI_MEM_START); in __fixup_bigphys_addr()
106 if ((phys_addr >= 0xF4000000) && (phys_addr < 0xFFFFFFFF)) in __fixup_bigphys_addr()
107 return (phys_t)(phys_addr << 4); in __fixup_bigphys_addr()
110 return phys_addr; in __fixup_bigphys_addr()
/arch/arm/plat-mxc/include/mach/
Dio.h22 __mx3_ioremap(unsigned long phys_addr, size_t size, unsigned int mtype) in __mx3_ioremap() argument
28 if ((phys_addr < 0x80000000) && ((phys_addr < 0x30000000) || in __mx3_ioremap()
29 (phys_addr >= 0x30000000 + SZ_1M))) in __mx3_ioremap()
33 return __arm_ioremap(phys_addr, size, mtype); in __mx3_ioremap()
/arch/x86/kernel/
Defi_64.c71 end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT); in early_runtime_code_mapping_set_exec()
72 early_mapping_set_exec(md->phys_addr, end, executable); in early_runtime_code_mapping_set_exec()
100 void __iomem *__init efi_ioremap(unsigned long phys_addr, unsigned long size) in efi_ioremap() argument
104 last_map_pfn = init_memory_mapping(phys_addr, phys_addr + size); in efi_ioremap()
105 if ((last_map_pfn << PAGE_SHIFT) < phys_addr + size) in efi_ioremap()
108 return (void __iomem *)__va(phys_addr); in efi_ioremap()
Defi.c239 unsigned long long start = md->phys_addr; in do_add_efi_memmap()
284 i, md->type, md->attribute, md->phys_addr, in print_efi_memmap()
285 md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT), in print_efi_memmap()
480 end = md->phys_addr + size; in efi_enter_virtual_mode()
486 va = __va(md->phys_addr); in efi_enter_virtual_mode()
488 va = efi_ioremap(md->phys_addr, size); in efi_enter_virtual_mode()
494 (unsigned long long)md->phys_addr); in efi_enter_virtual_mode()
506 if (md->phys_addr <= systab && systab < end) { in efi_enter_virtual_mode()
507 systab += md->virt_addr - md->phys_addr; in efi_enter_virtual_mode()
551 u32 efi_mem_type(unsigned long phys_addr) in efi_mem_type() argument
[all …]
/arch/ia64/kernel/
Defi.c281 return (md->phys_addr + efi_md_size(md)); in efi_md_end()
359 "dropped @ %lx\n", md->phys_addr); in efi_get_pal_addr()
367 vaddr = PAGE_OFFSET + md->phys_addr; in efi_get_pal_addr()
396 smp_processor_id(), md->phys_addr, in efi_get_pal_addr()
397 md->phys_addr + efi_md_size(md), in efi_get_pal_addr()
400 return __va(md->phys_addr); in efi_get_pal_addr()
614 i, md->type, md->attribute, md->phys_addr, in efi_init()
615 md->phys_addr + efi_md_size(md), size, unit); in efi_init()
644 md->virt_addr = (u64) __va(md->phys_addr); in efi_enter_virtual_mode()
646 md->virt_addr = (u64) ioremap(md->phys_addr, 0); in efi_enter_virtual_mode()
[all …]
/arch/mips/include/asm/mach-au1x00/
Dioremap.h17 static inline phys_t __fixup_bigphys_addr(phys_t phys_addr, phys_t size) in __fixup_bigphys_addr() argument
19 return phys_addr; in __fixup_bigphys_addr()
26 static inline phys_t fixup_bigphys_addr(phys_t phys_addr, phys_t size) in fixup_bigphys_addr() argument
28 return __fixup_bigphys_addr(phys_addr, size); in fixup_bigphys_addr()
/arch/arm/mm/
Dioremap.c46 unsigned long phys_addr, const struct mem_type *type) in remap_area_pte() argument
59 set_pte_ext(pte, pfn_pte(phys_addr >> PAGE_SHIFT, prot), 0); in remap_area_pte()
60 phys_addr += PAGE_SIZE; in remap_area_pte()
70 unsigned long end, unsigned long phys_addr, in remap_area_pmd() argument
83 ret = remap_area_pte(pmd, addr, next, phys_addr, type); in remap_area_pmd()
86 phys_addr += next - addr; in remap_area_pmd()
96 unsigned long phys_addr = __pfn_to_phys(pfn); in remap_area_pages() local
104 err = remap_area_pmd(pgd, addr, next, phys_addr, type); in remap_area_pages()
107 phys_addr += next - addr; in remap_area_pages()
318 __arm_ioremap(unsigned long phys_addr, size_t size, unsigned int mtype) in __arm_ioremap() argument
[all …]
/arch/arm/mach-msm/
Dio.c65 __msm_ioremap(unsigned long phys_addr, size_t size, unsigned int mtype) in __msm_ioremap() argument
72 if ((phys_addr >= 0x88000000) && (phys_addr < 0xD0000000)) in __msm_ioremap()
76 return __arm_ioremap(phys_addr, size, mtype); in __msm_ioremap()
/arch/powerpc/boot/
Dcuboot-pq2.c36 u32 phys_addr; member
181 if (mem->phys_addr + mem->size[1] == mmio->phys_addr) in fixup_pci()
183 else if (mmio->phys_addr + mmio->size[1] == mem->phys_addr) in fixup_pci()
188 out_be32(&pci_regs[1][0], mem_base->phys_addr | 1); in fixup_pci()
191 out_be32(&pci_regs[1][1], io->phys_addr | 1); in fixup_pci()
195 out_le32(&pci_regs[0][2], mem->phys_addr >> 12); in fixup_pci()
199 out_le32(&pci_regs[0][8], mmio->phys_addr >> 12); in fixup_pci()
203 out_le32(&pci_regs[0][14], io->phys_addr >> 12); in fixup_pci()
/arch/sparc/kernel/
Dauxio_32.c62 r.start = auxregs[0].phys_addr; in auxio_probe()
63 r.end = auxregs[0].phys_addr + auxregs[0].reg_size - 1; in auxio_probe()
66 if((((unsigned long) auxregs[0].phys_addr) & 3) == 3 || in auxio_probe()
132 r.start = regs.phys_addr; in auxio_power_probe()
133 r.end = regs.phys_addr + regs.reg_size - 1; in auxio_power_probe()
Dprom_64.c87 (unsigned int) (regs->phys_addr >> 32UL), in sun4v_path_component()
88 (unsigned int) (regs->phys_addr & 0xffffffffUL)); in sun4v_path_component()
92 type = regs->phys_addr >> 60UL; in sun4v_path_component()
93 high_bits = (regs->phys_addr >> 32UL) & 0x0fffffffUL; in sun4v_path_component()
94 low_bits = (regs->phys_addr & 0xffffffffUL); in sun4v_path_component()
127 (unsigned int) (regs->phys_addr >> 32UL), in sun4u_path_component()
128 (unsigned int) (regs->phys_addr & 0xffffffffUL)); in sun4u_path_component()
144 (unsigned int) (regs->phys_addr & mask)); in sun4u_path_component()
162 regs->phys_addr); in sbus_path_component()
209 (unsigned int) (regs->phys_addr & 0xffffffffUL)); in upa_path_component()
[all …]
/arch/ia64/sn/pci/
Dpci_dma.c82 unsigned long phys_addr; in sn_dma_alloc_coherent() local
109 phys_addr = __pa(cpuaddr); in sn_dma_alloc_coherent()
117 *dma_handle = provider->dma_map_consistent(pdev, phys_addr, size, in sn_dma_alloc_coherent()
181 unsigned long phys_addr; in sn_dma_map_single_attrs() local
190 phys_addr = __pa(cpu_addr); in sn_dma_map_single_attrs()
192 dma_addr = provider->dma_map_consistent(pdev, phys_addr, in sn_dma_map_single_attrs()
195 dma_addr = provider->dma_map(pdev, phys_addr, size, in sn_dma_map_single_attrs()
278 unsigned long phys_addr; in sn_dma_map_sg_attrs() local
294 phys_addr = SG_ENT_PHYS_ADDRESS(sg); in sn_dma_map_sg_attrs()
297 phys_addr, in sn_dma_map_sg_attrs()
[all …]
/arch/powerpc/platforms/ps3/
Dmm.c133 unsigned long ps3_mm_phys_to_lpar(unsigned long phys_addr) in ps3_mm_phys_to_lpar() argument
135 BUG_ON(is_kernel_addr(phys_addr)); in ps3_mm_phys_to_lpar()
136 return (phys_addr < map.rm.size || phys_addr >= map.total) in ps3_mm_phys_to_lpar()
137 ? phys_addr : phys_addr + map.r1.offset; in ps3_mm_phys_to_lpar()
519 static int dma_sb_map_pages(struct ps3_dma_region *r, unsigned long phys_addr, in dma_sb_map_pages() argument
533 c->lpar_addr = ps3_mm_phys_to_lpar(phys_addr); in dma_sb_map_pages()
560 static int dma_ioc0_map_pages(struct ps3_dma_region *r, unsigned long phys_addr, in dma_ioc0_map_pages() argument
570 phys_addr, ps3_mm_phys_to_lpar(phys_addr), len); in dma_ioc0_map_pages()
580 c->lpar_addr = ps3_mm_phys_to_lpar(phys_addr); in dma_ioc0_map_pages()
789 unsigned long phys_addr = is_kernel_addr(virt_addr) ? __pa(virt_addr) in dma_sb_map_area() local
[all …]
/arch/mips/include/asm/mach-generic/
Dioremap.h18 static inline phys_t fixup_bigphys_addr(phys_t phys_addr, phys_t size) in fixup_bigphys_addr() argument
20 return phys_addr; in fixup_bigphys_addr()
/arch/mips/include/asm/mach-tx39xx/
Dioremap.h18 static inline phys_t fixup_bigphys_addr(phys_t phys_addr, phys_t size) in fixup_bigphys_addr() argument
20 return phys_addr; in fixup_bigphys_addr()

1234