Home
last modified time | relevance | path

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

123456789

/linux-2.6.39/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 early_ioremap (unsigned long phys_addr, unsigned long size) in early_ioremap() argument
27 return __ioremap(phys_addr); in early_ioremap()
31 ioremap (unsigned long phys_addr, unsigned long size) in ioremap() argument
46 attr = kern_mem_attribute(phys_addr, size); in ioremap()
48 return (void __iomem *) phys_to_virt(phys_addr); in ioremap()
50 return __ioremap(phys_addr); in ioremap()
56 gran_base = GRANULEROUNDDOWN(phys_addr); in ioremap()
57 gran_size = GRANULEROUNDUP(phys_addr + size) - gran_base; in ioremap()
[all …]
/linux-2.6.39/arch/x86/mm/
Dioremap.c62 static void __iomem *__ioremap_caller(resource_size_t phys_addr, in __ioremap_caller() argument
67 const resource_size_t unaligned_phys_addr = phys_addr; in __ioremap_caller()
76 last_addr = phys_addr + size - 1; in __ioremap_caller()
77 if (!size || last_addr < phys_addr) in __ioremap_caller()
80 if (!phys_addr_valid(phys_addr)) { in __ioremap_caller()
82 (unsigned long long)phys_addr); in __ioremap_caller()
90 if (is_ISA_range(phys_addr, last_addr)) in __ioremap_caller()
91 return (__force void __iomem *)phys_to_virt(phys_addr); in __ioremap_caller()
97 WARN_ONCE(iomem_map_sanity_check(phys_addr, size), in __ioremap_caller()
104 for (pfn = phys_addr >> PAGE_SHIFT; pfn <= last_pfn; pfn++) { in __ioremap_caller()
[all …]
/linux-2.6.39/arch/avr32/mm/
Dioremap.c22 void __iomem *__ioremap(unsigned long phys_addr, size_t size, in __ioremap() argument
35 if ((phys_addr >= P4SEG) && (flags == 0)) in __ioremap()
36 return (void __iomem *)phys_addr; in __ioremap()
39 last_addr = phys_addr + size - 1; in __ioremap()
40 if (!size || last_addr < phys_addr) in __ioremap()
48 if (PHYSADDR(P2SEGADDR(phys_addr)) == phys_addr) in __ioremap()
49 return (void __iomem *)P2SEGADDR(phys_addr); in __ioremap()
52 offset = phys_addr & ~PAGE_MASK; in __ioremap()
53 phys_addr &= PAGE_MASK; in __ioremap()
54 size = PAGE_ALIGN(last_addr + 1) - phys_addr; in __ioremap()
[all …]
/linux-2.6.39/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 …]
/linux-2.6.39/arch/mips/mm/
Dioremap.c20 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()
60 remap_area_pte(pte, address, end - address, address + phys_addr, flags); in remap_area_pmd()
67 static int remap_area_pages(unsigned long address, phys_t phys_addr, in remap_area_pages() argument
74 phys_addr -= address; in remap_area_pages()
90 phys_addr + address, flags)) in remap_area_pages()
116 void __iomem * __ioremap(phys_t phys_addr, phys_t size, unsigned long flags) in __ioremap() argument
123 phys_addr = fixup_bigphys_addr(phys_addr, size); in __ioremap()
[all …]
/linux-2.6.39/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 …]
/linux-2.6.39/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 …]
/linux-2.6.39/arch/sh/mm/
Dioremap.c38 __ioremap_caller(phys_addr_t phys_addr, unsigned long size, in __ioremap_caller() argument
46 last_addr = phys_addr + size - 1; in __ioremap_caller()
47 if (!size || last_addr < phys_addr) in __ioremap_caller()
54 return ioremap_fixed(phys_addr, size, pgprot); in __ioremap_caller()
60 mapped = pmb_remap_caller(phys_addr, size, pgprot, caller); in __ioremap_caller()
67 offset = phys_addr & ~PAGE_MASK; in __ioremap_caller()
68 phys_addr &= PAGE_MASK; in __ioremap_caller()
69 size = PAGE_ALIGN(last_addr+1) - phys_addr; in __ioremap_caller()
77 area->phys_addr = phys_addr; in __ioremap_caller()
80 if (ioremap_page_range(addr, addr + size, phys_addr, pgprot)) { in __ioremap_caller()
Dioremap_fixed.c47 ioremap_fixed(phys_addr_t phys_addr, unsigned long size, pgprot_t prot) in ioremap_fixed() argument
58 offset = phys_addr & ~PAGE_MASK; in ioremap_fixed()
59 phys_addr &= PAGE_MASK; in ioremap_fixed()
60 size = PAGE_ALIGN(phys_addr + size) - phys_addr; in ioremap_fixed()
89 __set_fixmap(idx, phys_addr, prot); in ioremap_fixed()
90 phys_addr += PAGE_SIZE; in ioremap_fixed()
/linux-2.6.39/lib/
Dioremap.c17 unsigned long end, phys_addr_t phys_addr, pgprot_t prot) in ioremap_pte_range() argument
22 pfn = phys_addr >> PAGE_SHIFT; in ioremap_pte_range()
35 unsigned long end, phys_addr_t phys_addr, pgprot_t prot) in ioremap_pmd_range() argument
40 phys_addr -= addr; in ioremap_pmd_range()
46 if (ioremap_pte_range(pmd, addr, next, phys_addr + addr, prot)) in ioremap_pmd_range()
53 unsigned long end, phys_addr_t phys_addr, pgprot_t prot) in ioremap_pud_range() argument
58 phys_addr -= addr; in ioremap_pud_range()
64 if (ioremap_pmd_range(pud, addr, next, phys_addr + addr, prot)) in ioremap_pud_range()
71 unsigned long end, phys_addr_t phys_addr, pgprot_t prot) in ioremap_page_range() argument
81 phys_addr -= addr; in ioremap_page_range()
[all …]
/linux-2.6.39/arch/ia64/kernel/
Defi.c283 return (md->phys_addr + efi_md_size(md)); in efi_md_end()
361 "dropped @ %llx\n", md->phys_addr); in efi_get_pal_addr()
369 vaddr = PAGE_OFFSET + md->phys_addr; in efi_get_pal_addr()
398 smp_processor_id(), md->phys_addr, in efi_get_pal_addr()
399 md->phys_addr + efi_md_size(md), in efi_get_pal_addr()
402 return __va(md->phys_addr); in efi_get_pal_addr()
617 i, md->type, md->attribute, md->phys_addr, in efi_init()
618 md->phys_addr + efi_md_size(md), size, unit); in efi_init()
647 md->virt_addr = (u64) __va(md->phys_addr); in efi_enter_virtual_mode()
649 md->virt_addr = (u64) ioremap(md->phys_addr, 0); in efi_enter_virtual_mode()
[all …]
/linux-2.6.39/arch/mips/alchemy/common/
Dsetup.c74 phys_t __fixup_bigphys_addr(phys_t phys_addr, phys_t size) in __fixup_bigphys_addr() argument
80 if ((phys_addr >> 32) != 0) in __fixup_bigphys_addr()
81 return phys_addr; in __fixup_bigphys_addr()
84 if (phys_addr >= start && (phys_addr + size - 1) <= end) in __fixup_bigphys_addr()
85 return (phys_t)((phys_addr - start) + Au1500_PCI_MEM_START); in __fixup_bigphys_addr()
88 return phys_addr; in __fixup_bigphys_addr()
/linux-2.6.39/arch/x86/platform/efi/
Defi_64.c72 end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT); in early_runtime_code_mapping_set_exec()
73 early_mapping_set_exec(md->phys_addr, end, executable); in early_runtime_code_mapping_set_exec()
101 void __iomem *__init efi_ioremap(unsigned long phys_addr, unsigned long size, in efi_ioremap() argument
107 return ioremap(phys_addr, size); in efi_ioremap()
109 last_map_pfn = init_memory_mapping(phys_addr, phys_addr + size); in efi_ioremap()
110 if ((last_map_pfn << PAGE_SHIFT) < phys_addr + size) in efi_ioremap()
113 return (void __iomem *)__va(phys_addr); in efi_ioremap()
Defi.c241 unsigned long long start = md->phys_addr; in do_add_efi_memmap()
311 i, md->type, md->attribute, md->phys_addr, in print_efi_memmap()
312 md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT), in print_efi_memmap()
514 end = md->phys_addr + size; in efi_enter_virtual_mode()
520 va = __va(md->phys_addr); in efi_enter_virtual_mode()
522 va = efi_ioremap(md->phys_addr, size, md->type); in efi_enter_virtual_mode()
528 (unsigned long long)md->phys_addr); in efi_enter_virtual_mode()
540 if (md->phys_addr <= systab && systab < end) { in efi_enter_virtual_mode()
541 systab += md->virt_addr - md->phys_addr; in efi_enter_virtual_mode()
585 u32 efi_mem_type(unsigned long phys_addr) in efi_mem_type() argument
[all …]
/linux-2.6.39/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()
/linux-2.6.39/drivers/net/netxen/
Dnetxen_nic_ctx.c144 u64 phys_addr; in nx_fw_cmd_create_rx_ctx() local
202 prq_rds[i].host_phys_addr = cpu_to_le64(rds_ring->phys_addr); in nx_fw_cmd_create_rx_ctx()
215 prq_sds[i].host_phys_addr = cpu_to_le64(sds_ring->phys_addr); in nx_fw_cmd_create_rx_ctx()
220 phys_addr = hostrq_phys_addr; in nx_fw_cmd_create_rx_ctx()
224 (u32)(phys_addr >> 32), in nx_fw_cmd_create_rx_ctx()
225 (u32)(phys_addr & 0xffffffff), in nx_fw_cmd_create_rx_ctx()
301 u64 offset, phys_addr; in nx_fw_cmd_create_tx_ctx() local
337 prq->dummy_dma_addr = cpu_to_le64(adapter->dummy_dma.phys_addr); in nx_fw_cmd_create_tx_ctx()
339 offset = recv_ctx->phys_addr + sizeof(struct netxen_ring_ctx); in nx_fw_cmd_create_tx_ctx()
344 prq_cds->host_phys_addr = cpu_to_le64(tx_ring->phys_addr); in nx_fw_cmd_create_tx_ctx()
[all …]
/linux-2.6.39/arch/unicore32/mm/
Dioremap.c184 void __iomem *__uc32_ioremap_caller(unsigned long phys_addr, size_t size, in __uc32_ioremap_caller() argument
188 unsigned long offset = phys_addr & ~PAGE_MASK; in __uc32_ioremap_caller()
189 unsigned long pfn = __phys_to_pfn(phys_addr); in __uc32_ioremap_caller()
194 last_addr = phys_addr + size - 1; in __uc32_ioremap_caller()
195 if (!size || last_addr < phys_addr) in __uc32_ioremap_caller()
220 __uc32_ioremap(unsigned long phys_addr, size_t size) in __uc32_ioremap() argument
222 return __uc32_ioremap_caller(phys_addr, size, MT_DEVICE, in __uc32_ioremap()
228 __uc32_ioremap_cached(unsigned long phys_addr, size_t size) in __uc32_ioremap_cached() argument
230 return __uc32_ioremap_caller(phys_addr, size, MT_DEVICE_CACHED, in __uc32_ioremap_cached()
/linux-2.6.39/include/linux/
Dio-mapping.h86 resource_size_t phys_addr; in io_mapping_map_atomic_wc() local
90 phys_addr = mapping->base + offset; in io_mapping_map_atomic_wc()
91 pfn = (unsigned long) (phys_addr >> PAGE_SHIFT); in io_mapping_map_atomic_wc()
104 resource_size_t phys_addr; in io_mapping_map_wc() local
107 phys_addr = mapping->base + offset; in io_mapping_map_wc()
109 return ioremap_wc(phys_addr, PAGE_SIZE); in io_mapping_map_wc()
/linux-2.6.39/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()
/linux-2.6.39/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()
/linux-2.6.39/drivers/misc/sgi-xp/
Dxp_uv.c90 xp_expand_memprotect_uv(unsigned long phys_addr, unsigned long size) in xp_expand_memprotect_uv() argument
95 ret = uv_bios_change_memprotect(phys_addr, size, UV_MEMPROT_ALLOW_RW); in xp_expand_memprotect_uv()
105 ret = sn_change_memprotect(phys_addr, size, SN_MEMPROT_ACCESS_CLASS_1, in xp_expand_memprotect_uv()
119 xp_restrict_memprotect_uv(unsigned long phys_addr, unsigned long size) in xp_restrict_memprotect_uv() argument
124 ret = uv_bios_change_memprotect(phys_addr, size, in xp_restrict_memprotect_uv()
135 ret = sn_change_memprotect(phys_addr, size, SN_MEMPROT_ACCESS_CLASS_0, in xp_restrict_memprotect_uv()
/linux-2.6.39/drivers/input/serio/
Dxilinx_ps2.c242 resource_size_t remap_size, phys_addr; in xps2_of_probe() local
272 phys_addr = r_mem.start; in xps2_of_probe()
274 if (!request_mem_region(phys_addr, remap_size, DRIVER_NAME)) { in xps2_of_probe()
276 (unsigned long long)phys_addr); in xps2_of_probe()
282 drvdata->base_address = ioremap(phys_addr, remap_size); in xps2_of_probe()
285 (unsigned long long)phys_addr); in xps2_of_probe()
298 (unsigned long long)phys_addr, drvdata->base_address, in xps2_of_probe()
309 "Xilinx XPS PS/2 at %08llX", (unsigned long long)phys_addr); in xps2_of_probe()
311 "xilinxps2/serio at %08llX", (unsigned long long)phys_addr); in xps2_of_probe()
318 release_mem_region(phys_addr, remap_size); in xps2_of_probe()
/linux-2.6.39/arch/ia64/sn/pci/
Dpci_dma.c82 unsigned long phys_addr; in sn_dma_alloc_coherent() local
110 phys_addr = __pa(cpuaddr); in sn_dma_alloc_coherent()
118 *dma_handle = provider->dma_map_consistent(pdev, phys_addr, size, in sn_dma_alloc_coherent()
182 unsigned long phys_addr; in sn_dma_map_page() local
191 phys_addr = __pa(cpu_addr); in sn_dma_map_page()
193 dma_addr = provider->dma_map_consistent(pdev, phys_addr, in sn_dma_map_page()
196 dma_addr = provider->dma_map(pdev, phys_addr, size, in sn_dma_map_page()
277 unsigned long phys_addr; in sn_dma_map_sg() local
293 phys_addr = SG_ENT_PHYS_ADDRESS(sg); in sn_dma_map_sg()
296 phys_addr, in sn_dma_map_sg()
[all …]
/linux-2.6.39/arch/sparc/kernel/
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 …]
/linux-2.6.39/arch/powerpc/platforms/ps3/
Dmm.c135 unsigned long ps3_mm_phys_to_lpar(unsigned long phys_addr) in ps3_mm_phys_to_lpar() argument
137 BUG_ON(is_kernel_addr(phys_addr)); in ps3_mm_phys_to_lpar()
138 return (phys_addr < map.rm.size || phys_addr >= map.total) in ps3_mm_phys_to_lpar()
139 ? phys_addr : phys_addr + map.r1.offset; in ps3_mm_phys_to_lpar()
521 static int dma_sb_map_pages(struct ps3_dma_region *r, unsigned long phys_addr, in dma_sb_map_pages() argument
535 c->lpar_addr = ps3_mm_phys_to_lpar(phys_addr); in dma_sb_map_pages()
562 static int dma_ioc0_map_pages(struct ps3_dma_region *r, unsigned long phys_addr, in dma_ioc0_map_pages() argument
572 phys_addr, ps3_mm_phys_to_lpar(phys_addr), len); in dma_ioc0_map_pages()
582 c->lpar_addr = ps3_mm_phys_to_lpar(phys_addr); in dma_ioc0_map_pages()
790 unsigned long phys_addr = is_kernel_addr(virt_addr) ? __pa(virt_addr) in dma_sb_map_area() local
[all …]

123456789