Home
last modified time | relevance | path

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

12345678910>>...15

/Linux-v4.19/arch/x86/mm/
Dioremap.c133 static void __iomem *__ioremap_caller(resource_size_t phys_addr, in __ioremap_caller() argument
138 const resource_size_t unaligned_phys_addr = phys_addr; in __ioremap_caller()
148 last_addr = phys_addr + size - 1; in __ioremap_caller()
149 if (!size || last_addr < phys_addr) in __ioremap_caller()
152 if (!phys_addr_valid(phys_addr)) { in __ioremap_caller()
154 (unsigned long long)phys_addr); in __ioremap_caller()
159 __ioremap_check_mem(phys_addr, size, &mem_flags); in __ioremap_caller()
166 &phys_addr, &last_addr); in __ioremap_caller()
173 offset = phys_addr & ~PAGE_MASK; in __ioremap_caller()
174 phys_addr &= PHYSICAL_PAGE_MASK; in __ioremap_caller()
[all …]
/Linux-v4.19/arch/ia64/mm/
Dioremap.c19 __ioremap_uc(unsigned long phys_addr) in __ioremap_uc() argument
21 return (void __iomem *) (__IA64_UNCACHED_OFFSET | phys_addr); in __ioremap_uc()
25 early_ioremap (unsigned long phys_addr, unsigned long size) in early_ioremap() argument
28 attr = kern_mem_attribute(phys_addr, size); in early_ioremap()
30 return (void __iomem *) phys_to_virt(phys_addr); in early_ioremap()
31 return __ioremap_uc(phys_addr); in early_ioremap()
35 ioremap (unsigned long phys_addr, unsigned long size) in ioremap() argument
50 attr = kern_mem_attribute(phys_addr, size); in ioremap()
52 return (void __iomem *) phys_to_virt(phys_addr); in ioremap()
54 return __ioremap_uc(phys_addr); in ioremap()
[all …]
/Linux-v4.19/mm/
Dearly_ioremap.c34 pgprot_t __init __weak early_memremap_pgprot_adjust(resource_size_t phys_addr, in early_memremap_pgprot_adjust() argument
106 __early_ioremap(resource_size_t phys_addr, unsigned long size, pgprot_t prot) in __early_ioremap() argument
125 __func__, (u64)phys_addr, size)) in __early_ioremap()
129 last_addr = phys_addr + size - 1; in __early_ioremap()
130 if (WARN_ON(!size || last_addr < phys_addr)) in __early_ioremap()
137 offset = offset_in_page(phys_addr); in __early_ioremap()
138 phys_addr &= PAGE_MASK; in __early_ioremap()
139 size = PAGE_ALIGN(last_addr + 1) - phys_addr; in __early_ioremap()
154 __late_set_fixmap(idx, phys_addr, prot); in __early_ioremap()
156 __early_set_fixmap(idx, phys_addr, prot); in __early_ioremap()
[all …]
/Linux-v4.19/drivers/media/cec/
Dcec-edid.c86 void cec_set_edid_phys_addr(u8 *edid, unsigned int size, u16 phys_addr) in cec_set_edid_phys_addr() argument
94 edid[loc] = phys_addr >> 8; in cec_set_edid_phys_addr()
95 edid[loc + 1] = phys_addr & 0xff; in cec_set_edid_phys_addr()
105 u16 cec_phys_addr_for_input(u16 phys_addr, u8 input) in cec_phys_addr_for_input() argument
111 if (phys_addr == 0) in cec_phys_addr_for_input()
114 if ((phys_addr & 0x0fff) == 0) in cec_phys_addr_for_input()
115 return phys_addr | (input << 8); in cec_phys_addr_for_input()
117 if ((phys_addr & 0x00ff) == 0) in cec_phys_addr_for_input()
118 return phys_addr | (input << 4); in cec_phys_addr_for_input()
120 if ((phys_addr & 0x000f) == 0) in cec_phys_addr_for_input()
[all …]
/Linux-v4.19/arch/arm64/mm/
Dioremap.c32 static void __iomem *__ioremap_caller(phys_addr_t phys_addr, size_t size, in __ioremap_caller() argument
36 unsigned long offset = phys_addr & ~PAGE_MASK; in __ioremap_caller()
45 phys_addr &= PAGE_MASK; in __ioremap_caller()
51 last_addr = phys_addr + size - 1; in __ioremap_caller()
52 if (!size || last_addr < phys_addr || (last_addr & ~PHYS_MASK)) in __ioremap_caller()
58 if (WARN_ON(pfn_valid(__phys_to_pfn(phys_addr)))) in __ioremap_caller()
65 area->phys_addr = phys_addr; in __ioremap_caller()
67 err = ioremap_page_range(addr, addr + size, phys_addr, prot); in __ioremap_caller()
76 void __iomem *__ioremap(phys_addr_t phys_addr, size_t size, pgprot_t prot) in __ioremap() argument
78 return __ioremap_caller(phys_addr, size, prot, in __ioremap()
[all …]
/Linux-v4.19/arch/nios2/mm/
Dioremap.c23 unsigned long size, unsigned long phys_addr, in remap_area_pte() argument
37 pfn = PFN_DOWN(phys_addr); in remap_area_pte()
51 unsigned long size, unsigned long phys_addr, in remap_area_pmd() argument
60 phys_addr -= address; in remap_area_pmd()
68 remap_area_pte(pte, address, end - address, address + phys_addr, in remap_area_pmd()
76 static int remap_area_pages(unsigned long address, unsigned long phys_addr, in remap_area_pages() argument
83 phys_addr -= address; in remap_area_pages()
100 phys_addr + address, flags)) in remap_area_pages()
115 void __iomem *__ioremap(unsigned long phys_addr, unsigned long size, in __ioremap() argument
124 last_addr = phys_addr + size - 1; in __ioremap()
[all …]
/Linux-v4.19/arch/mips/mm/
Dioremap.c22 phys_addr_t size, phys_addr_t phys_addr, unsigned long flags) in remap_area_pte() argument
34 pfn = phys_addr >> PAGE_SHIFT; in remap_area_pte()
48 phys_addr_t size, phys_addr_t phys_addr, unsigned long flags) in remap_area_pmd() argument
56 phys_addr -= address; in remap_area_pmd()
62 remap_area_pte(pte, address, end - address, address + phys_addr, flags); in remap_area_pmd()
69 static int remap_area_pages(unsigned long address, phys_addr_t phys_addr, in remap_area_pages() argument
76 phys_addr -= address; in remap_area_pages()
92 phys_addr + address, flags)) in remap_area_pages()
132 void __iomem * __ioremap(phys_addr_t phys_addr, phys_addr_t size, unsigned long flags) in __ioremap() argument
139 phys_addr = fixup_bigphys_addr(phys_addr, size); in __ioremap()
[all …]
/Linux-v4.19/lib/
Dioremap.c62 unsigned long end, phys_addr_t phys_addr, pgprot_t prot) in ioremap_pte_range() argument
67 pfn = phys_addr >> PAGE_SHIFT; in ioremap_pte_range()
80 unsigned long end, phys_addr_t phys_addr, pgprot_t prot) in ioremap_pmd_range() argument
85 phys_addr -= addr; in ioremap_pmd_range()
94 IS_ALIGNED(phys_addr + addr, PMD_SIZE) && in ioremap_pmd_range()
96 if (pmd_set_huge(pmd, phys_addr + addr, prot)) in ioremap_pmd_range()
100 if (ioremap_pte_range(pmd, addr, next, phys_addr + addr, prot)) in ioremap_pmd_range()
107 unsigned long end, phys_addr_t phys_addr, pgprot_t prot) in ioremap_pud_range() argument
112 phys_addr -= addr; in ioremap_pud_range()
121 IS_ALIGNED(phys_addr + addr, PUD_SIZE) && in ioremap_pud_range()
[all …]
/Linux-v4.19/arch/parisc/mm/
Dioremap.c28 void __iomem * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags) in __ioremap() argument
36 unsigned long end = phys_addr + size - 1; in __ioremap()
38 if ((phys_addr >= 0x00080000 && end < 0x000fffff) || in __ioremap()
39 (phys_addr >= 0x00500000 && end < 0x03bfffff)) { in __ioremap()
40 phys_addr |= F_EXTEND(0xfc000000); in __ioremap()
46 last_addr = phys_addr + size - 1; in __ioremap()
47 if (!size || last_addr < phys_addr) in __ioremap()
53 if (phys_addr < virt_to_phys(high_memory)) { in __ioremap()
57 t_addr = __va(phys_addr); in __ioremap()
73 offset = phys_addr & ~PAGE_MASK; in __ioremap()
[all …]
/Linux-v4.19/arch/nds32/mm/
Dioremap.c9 void __iomem *ioremap(phys_addr_t phys_addr, size_t size);
11 static void __iomem *__ioremap_caller(phys_addr_t phys_addr, size_t size, in __ioremap_caller() argument
19 last_addr = phys_addr + size - 1; in __ioremap_caller()
20 if (!size || last_addr < phys_addr) in __ioremap_caller()
26 offset = phys_addr & ~PAGE_MASK; in __ioremap_caller()
27 phys_addr &= PAGE_MASK; in __ioremap_caller()
28 size = PAGE_ALIGN(last_addr + 1) - phys_addr; in __ioremap_caller()
37 area->phys_addr = phys_addr; in __ioremap_caller()
41 if (ioremap_page_range(addr, addr + size, phys_addr, prot)) { in __ioremap_caller()
49 void __iomem *ioremap(phys_addr_t phys_addr, size_t size) in ioremap() argument
[all …]
/Linux-v4.19/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.c48 ioremap_fixed(phys_addr_t phys_addr, unsigned long size, pgprot_t prot) in ioremap_fixed() argument
59 offset = phys_addr & ~PAGE_MASK; in ioremap_fixed()
60 phys_addr &= PAGE_MASK; in ioremap_fixed()
61 size = PAGE_ALIGN(phys_addr + size) - phys_addr; in ioremap_fixed()
90 __set_fixmap(idx, phys_addr, prot); in ioremap_fixed()
91 phys_addr += PAGE_SIZE; in ioremap_fixed()
/Linux-v4.19/tools/perf/scripts/python/
Dmem-phys-addr.py57 def is_system_ram(phys_addr): argument
59 position = bisect.bisect(system_ram, phys_addr)
64 def is_persistent_mem(phys_addr): argument
65 position = bisect.bisect(pmem, phys_addr)
70 def find_memory_type(phys_addr): argument
71 if phys_addr == 0:
73 if is_system_ram(phys_addr):
76 if is_persistent_mem(phys_addr):
83 if long(m[0], 16) <= phys_addr <= long(m[1], 16):
90 phys_addr = sample["phys_addr"]
[all …]
/Linux-v4.19/arch/ia64/kernel/
Defi.c290 return (md->phys_addr + efi_md_size(md)); in efi_md_end()
368 "dropped @ %llx\n", md->phys_addr); in efi_get_pal_addr()
376 vaddr = PAGE_OFFSET + md->phys_addr; in efi_get_pal_addr()
405 smp_processor_id(), md->phys_addr, in efi_get_pal_addr()
406 md->phys_addr + efi_md_size(md), in efi_get_pal_addr()
409 return __va(md->phys_addr); in efi_get_pal_addr()
432 static void __init handle_palo(unsigned long phys_addr) in handle_palo() argument
434 struct palo_table *palo = __va(phys_addr); in handle_palo()
591 md->phys_addr, in efi_init()
592 md->phys_addr + efi_md_size(md), size, unit); in efi_init()
[all …]
/Linux-v4.19/arch/mips/alchemy/common/
Dsetup.c77 phys_addr_t __fixup_bigphys_addr(phys_addr_t phys_addr, phys_addr_t size) in __fixup_bigphys_addr() argument
83 if ((phys_addr >> 32) != 0) in __fixup_bigphys_addr()
84 return phys_addr; in __fixup_bigphys_addr()
87 if (phys_addr >= start && (phys_addr + size - 1) <= end) in __fixup_bigphys_addr()
88 return (phys_addr_t)(AU1500_PCI_MEM_PHYS_ADDR + phys_addr); in __fixup_bigphys_addr()
91 return phys_addr; in __fixup_bigphys_addr()
/Linux-v4.19/include/uapi/linux/
Dcec-funcs.h14 static inline void cec_msg_active_source(struct cec_msg *msg, __u16 phys_addr) in cec_msg_active_source() argument
19 msg->msg[2] = phys_addr >> 8; in cec_msg_active_source()
20 msg->msg[3] = phys_addr & 0xff; in cec_msg_active_source()
24 __u16 *phys_addr) in cec_ops_active_source() argument
26 *phys_addr = (msg->msg[2] << 8) | msg->msg[3]; in cec_ops_active_source()
44 __u16 phys_addr) in cec_msg_inactive_source() argument
48 msg->msg[2] = phys_addr >> 8; in cec_msg_inactive_source()
49 msg->msg[3] = phys_addr & 0xff; in cec_msg_inactive_source()
53 __u16 *phys_addr) in cec_ops_inactive_source() argument
55 *phys_addr = (msg->msg[2] << 8) | msg->msg[3]; in cec_ops_inactive_source()
[all …]
/Linux-v4.19/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-v4.19/arch/hexagon/mm/
Dioremap.c25 void __iomem *ioremap_nocache(unsigned long phys_addr, unsigned long size) in ioremap_nocache() argument
28 unsigned long offset = phys_addr & ~PAGE_MASK; in ioremap_nocache()
34 last_addr = phys_addr + size - 1; in ioremap_nocache()
37 if (!size || (last_addr < phys_addr)) in ioremap_nocache()
46 if (ioremap_page_range(addr, addr+size, phys_addr, prot)) { in ioremap_nocache()
/Linux-v4.19/drivers/firmware/efi/
Dmemmap.c220 start = md->phys_addr; in efi_memmap_split_count()
285 start = md->phys_addr; in efi_memmap_insert()
286 end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT) - 1; in efi_memmap_insert()
295 md->num_pages = (m_end - md->phys_addr + 1) >> in efi_memmap_insert()
301 md->phys_addr = m_end + 1; in efi_memmap_insert()
302 md->num_pages = (end - md->phys_addr + 1) >> in efi_memmap_insert()
308 md->num_pages = (m_start - md->phys_addr) >> in efi_memmap_insert()
315 md->phys_addr = m_start; in efi_memmap_insert()
322 md->phys_addr = m_end + 1; in efi_memmap_insert()
330 md->num_pages = (m_start - md->phys_addr) >> in efi_memmap_insert()
[all …]
/Linux-v4.19/arch/arm/mm/
Dioremap.c59 if (vm->phys_addr > paddr || in find_static_vm_paddr()
60 paddr + size - 1 > vm->phys_addr + vm->size - 1) in find_static_vm_paddr()
294 addr += paddr - svm->vm.phys_addr; in __arm_ioremap_pfn_caller()
310 area->phys_addr = paddr; in __arm_ioremap_pfn_caller()
336 void __iomem *__arm_ioremap_caller(phys_addr_t phys_addr, size_t size, in __arm_ioremap_caller() argument
340 unsigned long offset = phys_addr & ~PAGE_MASK; in __arm_ioremap_caller()
341 unsigned long pfn = __phys_to_pfn(phys_addr); in __arm_ioremap_caller()
346 last_addr = phys_addr + size - 1; in __arm_ioremap_caller()
347 if (!size || last_addr < phys_addr) in __arm_ioremap_caller()
409 __arm_ioremap_exec(phys_addr_t phys_addr, size_t size, bool cached) in __arm_ioremap_exec() argument
[all …]
/Linux-v4.19/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-v4.19/include/media/
Dcec.h172 u16 phys_addr; member
218 return adap->phys_addr == 0; in cec_is_sink()
247 void cec_s_phys_addr(struct cec_adapter *adap, u16 phys_addr,
347 void cec_set_edid_phys_addr(u8 *edid, unsigned int size, u16 phys_addr);
368 u16 cec_phys_addr_for_input(u16 phys_addr, u8 input);
394 int cec_phys_addr_validate(u16 phys_addr, u16 *parent, u16 *port);
412 static inline void cec_s_phys_addr(struct cec_adapter *adap, u16 phys_addr, in cec_s_phys_addr() argument
431 u16 phys_addr) in cec_set_edid_phys_addr() argument
435 static inline u16 cec_phys_addr_for_input(u16 phys_addr, u8 input) in cec_phys_addr_for_input() argument
440 static inline int cec_phys_addr_validate(u16 phys_addr, u16 *parent, u16 *port) in cec_phys_addr_validate() argument
[all …]
/Linux-v4.19/arch/mips/include/asm/mach-au1x00/
Dioremap.h17 static inline phys_addr_t __fixup_bigphys_addr(phys_addr_t phys_addr, phys_addr_t size) in __fixup_bigphys_addr() argument
19 return phys_addr; in __fixup_bigphys_addr()
26 static inline phys_addr_t fixup_bigphys_addr(phys_addr_t phys_addr, phys_addr_t size) in fixup_bigphys_addr() argument
28 return __fixup_bigphys_addr(phys_addr, size); in fixup_bigphys_addr()
/Linux-v4.19/drivers/input/serio/
Dxilinx_ps2.c244 resource_size_t remap_size, phys_addr; in xps2_of_probe() local
276 phys_addr = r_mem.start; in xps2_of_probe()
278 if (!request_mem_region(phys_addr, remap_size, DRIVER_NAME)) { in xps2_of_probe()
280 (unsigned long long)phys_addr); in xps2_of_probe()
286 drvdata->base_address = ioremap(phys_addr, remap_size); in xps2_of_probe()
289 (unsigned long long)phys_addr); in xps2_of_probe()
304 (unsigned long long)phys_addr, drvdata->base_address, in xps2_of_probe()
314 "Xilinx XPS PS/2 at %08llX", (unsigned long long)phys_addr); in xps2_of_probe()
316 "xilinxps2/serio at %08llX", (unsigned long long)phys_addr); in xps2_of_probe()
324 release_mem_region(phys_addr, remap_size); in xps2_of_probe()
/Linux-v4.19/include/asm-generic/
Dearly_ioremap.h11 extern void __iomem *early_ioremap(resource_size_t phys_addr,
13 extern void *early_memremap(resource_size_t phys_addr,
15 extern void *early_memremap_ro(resource_size_t phys_addr,
17 extern void *early_memremap_prot(resource_size_t phys_addr,

12345678910>>...15