Home
last modified time | relevance | path

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

12345678910>>...17

/linux-6.1.9/arch/x86/mm/
Dioremap.c179 __ioremap_caller(resource_size_t phys_addr, unsigned long size, in __ioremap_caller() argument
184 const resource_size_t unaligned_phys_addr = phys_addr; in __ioremap_caller()
194 last_addr = phys_addr + size - 1; in __ioremap_caller()
195 if (!size || last_addr < phys_addr) in __ioremap_caller()
198 if (!phys_addr_valid(phys_addr)) { in __ioremap_caller()
200 (unsigned long long)phys_addr); in __ioremap_caller()
205 __ioremap_check_mem(phys_addr, size, &io_desc); in __ioremap_caller()
212 &phys_addr, &last_addr); in __ioremap_caller()
219 offset = phys_addr & ~PAGE_MASK; in __ioremap_caller()
220 phys_addr &= PAGE_MASK; in __ioremap_caller()
[all …]
/linux-6.1.9/arch/ia64/mm/
Dioremap.c17 __ioremap_uc(unsigned long phys_addr) in __ioremap_uc() argument
19 return (void __iomem *) (__IA64_UNCACHED_OFFSET | phys_addr); in __ioremap_uc()
23 early_ioremap (unsigned long phys_addr, unsigned long size) in early_ioremap() argument
26 attr = kern_mem_attribute(phys_addr, size); in early_ioremap()
28 return (void __iomem *) phys_to_virt(phys_addr); in early_ioremap()
29 return __ioremap_uc(phys_addr); in early_ioremap()
33 ioremap (unsigned long phys_addr, unsigned long size) in ioremap() argument
48 attr = kern_mem_attribute(phys_addr, size); in ioremap()
50 return (void __iomem *) phys_to_virt(phys_addr); in ioremap()
52 return __ioremap_uc(phys_addr); in ioremap()
[all …]
/linux-6.1.9/mm/
Dearly_ioremap.c35 pgprot_t __init __weak early_memremap_pgprot_adjust(resource_size_t phys_addr, in early_memremap_pgprot_adjust() argument
102 __early_ioremap(resource_size_t phys_addr, unsigned long size, pgprot_t prot) in __early_ioremap() argument
121 __func__, &phys_addr, size)) in __early_ioremap()
125 last_addr = phys_addr + size - 1; in __early_ioremap()
126 if (WARN_ON(!size || last_addr < phys_addr)) in __early_ioremap()
133 offset = offset_in_page(phys_addr); in __early_ioremap()
134 phys_addr &= PAGE_MASK; in __early_ioremap()
135 size = PAGE_ALIGN(last_addr + 1) - phys_addr; in __early_ioremap()
150 __late_set_fixmap(idx, phys_addr, prot); in __early_ioremap()
152 __early_set_fixmap(idx, phys_addr, prot); in __early_ioremap()
[all …]
Dioremap.c14 void __iomem *ioremap_prot(phys_addr_t phys_addr, size_t size, in ioremap_prot() argument
22 last_addr = phys_addr + size - 1; in ioremap_prot()
23 if (!size || last_addr < phys_addr) in ioremap_prot()
27 offset = phys_addr & (~PAGE_MASK); in ioremap_prot()
28 phys_addr -= offset; in ioremap_prot()
31 if (!ioremap_allowed(phys_addr, size, prot)) in ioremap_prot()
39 area->phys_addr = phys_addr; in ioremap_prot()
41 if (ioremap_page_range(vaddr, vaddr + size, phys_addr, in ioremap_prot()
/linux-6.1.9/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()
104 phys_addr + address, flags)) in remap_area_pages()
119 void __iomem *ioremap(unsigned long phys_addr, unsigned long size) in ioremap() argument
127 last_addr = phys_addr + size - 1; in ioremap()
[all …]
/linux-6.1.9/arch/parisc/mm/
Dioremap.c28 void __iomem *ioremap(unsigned long phys_addr, unsigned long size) 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()
44 last_addr = phys_addr + size - 1; in ioremap()
45 if (!size || last_addr < phys_addr) in ioremap()
51 if (phys_addr < virt_to_phys(high_memory)) { in ioremap()
55 t_addr = __va(phys_addr); in ioremap()
71 offset = phys_addr & ~PAGE_MASK; in ioremap()
[all …]
/linux-6.1.9/arch/mips/mm/
Dioremap.c46 void __iomem *ioremap_prot(phys_addr_t phys_addr, unsigned long size, in ioremap_prot() argument
56 cpu_addr = plat_ioremap(phys_addr, size, flags); in ioremap_prot()
60 phys_addr = fixup_bigphys_addr(phys_addr, size); in ioremap_prot()
63 last_addr = phys_addr + size - 1; in ioremap_prot()
64 if (!size || last_addr < phys_addr) in ioremap_prot()
71 if (IS_LOW512(phys_addr) && IS_LOW512(last_addr) && in ioremap_prot()
73 return (void __iomem *) CKSEG1ADDR(phys_addr); in ioremap_prot()
79 pfn = PFN_DOWN(phys_addr); in ioremap_prot()
84 &phys_addr, &last_addr); in ioremap_prot()
91 offset = phys_addr & ~PAGE_MASK; in ioremap_prot()
[all …]
/linux-6.1.9/arch/sh/mm/
Dioremap.c85 __ioremap_caller(phys_addr_t phys_addr, unsigned long size, in __ioremap_caller() argument
92 mapped = __ioremap_trapped(phys_addr, size); in __ioremap_caller()
96 mapped = __ioremap_29bit(phys_addr, size, pgprot); in __ioremap_caller()
101 last_addr = phys_addr + size - 1; in __ioremap_caller()
102 if (!size || last_addr < phys_addr) in __ioremap_caller()
109 return ioremap_fixed(phys_addr, size, pgprot); in __ioremap_caller()
115 mapped = pmb_remap_caller(phys_addr, size, pgprot, caller); in __ioremap_caller()
122 offset = phys_addr & ~PAGE_MASK; in __ioremap_caller()
123 phys_addr &= PAGE_MASK; in __ioremap_caller()
124 size = PAGE_ALIGN(last_addr+1) - phys_addr; in __ioremap_caller()
[all …]
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-6.1.9/tools/perf/scripts/python/
Dmem-phys-addr.py62 def is_system_ram(phys_addr): argument
64 position = bisect.bisect(system_ram, phys_addr)
69 def is_persistent_mem(phys_addr): argument
70 position = bisect.bisect(pmem, phys_addr)
75 def find_memory_type(phys_addr): argument
76 if phys_addr == 0:
78 if is_system_ram(phys_addr):
81 if is_persistent_mem(phys_addr):
88 if int(m[0], 16) <= phys_addr <= int(m[1], 16):
95 phys_addr = sample["phys_addr"]
[all …]
/linux-6.1.9/arch/mips/alchemy/common/
Dsetup.c82 phys_addr_t fixup_bigphys_addr(phys_addr_t phys_addr, phys_addr_t size) in fixup_bigphys_addr() argument
88 if ((phys_addr >> 32) != 0) in fixup_bigphys_addr()
89 return phys_addr; in fixup_bigphys_addr()
92 if (phys_addr >= start && (phys_addr + size - 1) <= end) in fixup_bigphys_addr()
93 return (phys_addr_t)(AU1500_PCI_MEM_PHYS_ADDR + phys_addr); in fixup_bigphys_addr()
96 return phys_addr; in fixup_bigphys_addr()
102 phys_addr_t phys_addr = fixup_bigphys_addr(pfn << PAGE_SHIFT, size); in io_remap_pfn_range() local
104 return remap_pfn_range(vma, vaddr, phys_addr >> PAGE_SHIFT, size, prot); in io_remap_pfn_range()
/linux-6.1.9/arch/ia64/kernel/
Defi.c304 return (md->phys_addr + efi_md_size(md)); in efi_md_end()
382 "dropped @ %llx\n", md->phys_addr); in efi_get_pal_addr()
390 vaddr = PAGE_OFFSET + md->phys_addr; in efi_get_pal_addr()
419 smp_processor_id(), md->phys_addr, in efi_get_pal_addr()
420 md->phys_addr + efi_md_size(md), in efi_get_pal_addr()
423 return __va(md->phys_addr); in efi_get_pal_addr()
446 static void __init handle_palo(unsigned long phys_addr) in handle_palo() argument
448 struct palo_table *palo = __va(phys_addr); in handle_palo()
592 md->phys_addr, in efi_init()
593 md->phys_addr + efi_md_size(md), size, unit); in efi_init()
[all …]
/linux-6.1.9/arch/riscv/mm/
Dkasan_init.c38 phys_addr_t phys_addr; in kasan_populate_pte() local
50 phys_addr = memblock_phys_alloc(PAGE_SIZE, PAGE_SIZE); in kasan_populate_pte()
51 set_pte(ptep, pfn_pte(PFN_DOWN(phys_addr), PAGE_KERNEL)); in kasan_populate_pte()
60 phys_addr_t phys_addr; in kasan_populate_pmd() local
78 phys_addr = memblock_phys_alloc(PMD_SIZE, PMD_SIZE); in kasan_populate_pmd()
79 if (phys_addr) { in kasan_populate_pmd()
80 set_pmd(pmdp, pfn_pmd(PFN_DOWN(phys_addr), PAGE_KERNEL)); in kasan_populate_pmd()
101 phys_addr_t phys_addr; in kasan_populate_pud() local
134 phys_addr = __pa(((uintptr_t)kasan_early_shadow_pmd)); in kasan_populate_pud()
135 set_pud(pudp, pfn_pud(PFN_DOWN(phys_addr), PAGE_TABLE)); in kasan_populate_pud()
[all …]
/linux-6.1.9/arch/loongarch/mm/
Dioremap.c8 void __init __iomem *early_ioremap(u64 phys_addr, unsigned long size) in early_ioremap() argument
10 return ((void __iomem *)TO_CACHE(phys_addr)); in early_ioremap()
18 void *early_memremap_ro(resource_size_t phys_addr, unsigned long size) in early_memremap_ro() argument
20 return early_memremap(phys_addr, size); in early_memremap_ro()
23 void *early_memremap_prot(resource_size_t phys_addr, unsigned long size, in early_memremap_prot() argument
26 return early_memremap(phys_addr, size); in early_memremap_prot()
/linux-6.1.9/include/trace/events/
Dhabanalabs.h17 TP_PROTO(struct device *dev, u64 virt_addr, u64 phys_addr, u32 page_size, bool flush_pte),
19 TP_ARGS(dev, virt_addr, phys_addr, page_size, flush_pte),
24 __field(u64, phys_addr)
32 __entry->phys_addr = phys_addr;
40 __entry->phys_addr,
46 TP_PROTO(struct device *dev, u64 virt_addr, u64 phys_addr, u32 page_size, bool flush_pte),
47 TP_ARGS(dev, virt_addr, phys_addr, page_size, flush_pte));
50 TP_PROTO(struct device *dev, u64 virt_addr, u64 phys_addr, u32 page_size, bool flush_pte),
51 TP_ARGS(dev, virt_addr, phys_addr, page_size, flush_pte));
/linux-6.1.9/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-6.1.9/include/linux/
Dio-mapping.h68 resource_size_t phys_addr; in io_mapping_map_atomic_wc() local
71 phys_addr = mapping->base + offset; in io_mapping_map_atomic_wc()
74 return __iomap_local_pfn_prot(PHYS_PFN(phys_addr), mapping->prot); in io_mapping_map_atomic_wc()
88 resource_size_t phys_addr; in io_mapping_map_local_wc() local
91 phys_addr = mapping->base + offset; in io_mapping_map_local_wc()
92 return __iomap_local_pfn_prot(PHYS_PFN(phys_addr), mapping->prot); in io_mapping_map_local_wc()
105 resource_size_t phys_addr; in io_mapping_map_wc() local
108 phys_addr = mapping->base + offset; in io_mapping_map_wc()
110 return ioremap_wc(phys_addr, size); in io_mapping_map_wc()
/linux-6.1.9/arch/arm/mm/
Dioremap.c62 if (vm->phys_addr > paddr || in find_static_vm_paddr()
63 paddr + size - 1 > vm->phys_addr + vm->size - 1) in find_static_vm_paddr()
284 addr += paddr - svm->vm.phys_addr; in __arm_ioremap_pfn_caller()
301 area->phys_addr = paddr; in __arm_ioremap_pfn_caller()
327 void __iomem *__arm_ioremap_caller(phys_addr_t phys_addr, size_t size, in __arm_ioremap_caller() argument
331 unsigned long offset = phys_addr & ~PAGE_MASK; in __arm_ioremap_caller()
332 unsigned long pfn = __phys_to_pfn(phys_addr); in __arm_ioremap_caller()
337 last_addr = phys_addr + size - 1; in __arm_ioremap_caller()
338 if (!size || last_addr < phys_addr) in __arm_ioremap_caller()
396 __arm_ioremap_exec(phys_addr_t phys_addr, size_t size, bool cached) in __arm_ioremap_exec() argument
[all …]
/linux-6.1.9/arch/hexagon/mm/
Dioremap.c12 void __iomem *ioremap(unsigned long phys_addr, unsigned long size) in ioremap() argument
15 unsigned long offset = phys_addr & ~PAGE_MASK; in ioremap()
21 last_addr = phys_addr + size - 1; in ioremap()
24 if (!size || (last_addr < phys_addr)) in ioremap()
33 if (ioremap_page_range(addr, addr+size, phys_addr, prot)) { in ioremap()
/linux-6.1.9/arch/powerpc/boot/
Dcuboot-pq2.c33 u32 phys_addr; member
178 if (mem->phys_addr + mem->size[1] == mmio->phys_addr) in fixup_pci()
180 else if (mmio->phys_addr + mmio->size[1] == mem->phys_addr) in fixup_pci()
185 out_be32(&pci_regs[1][0], mem_base->phys_addr | 1); in fixup_pci()
188 out_be32(&pci_regs[1][1], io->phys_addr | 1); in fixup_pci()
192 out_le32(&pci_regs[0][2], mem->phys_addr >> 12); in fixup_pci()
196 out_le32(&pci_regs[0][8], mmio->phys_addr >> 12); in fixup_pci()
200 out_le32(&pci_regs[0][14], io->phys_addr >> 12); in fixup_pci()
/linux-6.1.9/drivers/firmware/efi/
Dmemmap.c255 start = md->phys_addr; in efi_memmap_split_count()
320 start = md->phys_addr; in efi_memmap_insert()
321 end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT) - 1; in efi_memmap_insert()
330 md->num_pages = (m_end - md->phys_addr + 1) >> in efi_memmap_insert()
336 md->phys_addr = m_end + 1; in efi_memmap_insert()
337 md->num_pages = (end - md->phys_addr + 1) >> in efi_memmap_insert()
343 md->num_pages = (m_start - md->phys_addr) >> in efi_memmap_insert()
350 md->phys_addr = m_start; in efi_memmap_insert()
357 md->phys_addr = m_end + 1; in efi_memmap_insert()
365 md->num_pages = (m_start - md->phys_addr) >> in efi_memmap_insert()
[all …]
/linux-6.1.9/arch/x86/platform/efi/
Defi_32.c42 start_pfn = PFN_DOWN(md->phys_addr); in efi_map_region()
44 end = md->phys_addr + size; in efi_map_region()
48 va = __va(md->phys_addr); in efi_map_region()
53 va = ioremap_cache(md->phys_addr, size); in efi_map_region()
58 pr_err("ioremap of 0x%llX failed!\n", md->phys_addr); in efi_map_region()
88 void __init parse_efi_setup(u64 phys_addr, u32 data_len) {} in parse_efi_setup() argument
/linux-6.1.9/drivers/input/serio/
Dxilinx_ps2.c236 resource_size_t remap_size, phys_addr; in xps2_of_probe() local
268 phys_addr = r_mem.start; in xps2_of_probe()
270 if (!request_mem_region(phys_addr, remap_size, DRIVER_NAME)) { in xps2_of_probe()
272 (unsigned long long)phys_addr); in xps2_of_probe()
278 drvdata->base_address = ioremap(phys_addr, remap_size); in xps2_of_probe()
281 (unsigned long long)phys_addr); in xps2_of_probe()
296 (unsigned long long)phys_addr, drvdata->base_address, in xps2_of_probe()
306 "Xilinx XPS PS/2 at %08llX", (unsigned long long)phys_addr); in xps2_of_probe()
308 "xilinxps2/serio at %08llX", (unsigned long long)phys_addr); in xps2_of_probe()
316 release_mem_region(phys_addr, remap_size); in xps2_of_probe()
/linux-6.1.9/drivers/cxl/core/
Dregs.c188 resource_size_t phys_addr; in cxl_map_component_regs() local
191 phys_addr = pci_resource_start(pdev, map->barno); in cxl_map_component_regs()
192 phys_addr += map->block_offset; in cxl_map_component_regs()
194 phys_addr += map->component_map.hdm_decoder.offset; in cxl_map_component_regs()
196 regs->hdm_decoder = devm_cxl_iomap_block(dev, phys_addr, length); in cxl_map_component_regs()
209 resource_size_t phys_addr; in cxl_map_device_regs() local
211 phys_addr = pci_resource_start(pdev, map->barno); in cxl_map_device_regs()
212 phys_addr += map->block_offset; in cxl_map_device_regs()
218 addr = phys_addr + map->device_map.status.offset; in cxl_map_device_regs()
229 addr = phys_addr + map->device_map.mbox.offset; in cxl_map_device_regs()
[all …]
/linux-6.1.9/drivers/misc/sgi-xp/
Dxp_uv.c91 xp_expand_memprotect_uv(unsigned long phys_addr, unsigned long size) in xp_expand_memprotect_uv() argument
96 ret = uv_bios_change_memprotect(phys_addr, size, UV_MEMPROT_ALLOW_RW); in xp_expand_memprotect_uv()
106 ret = sn_change_memprotect(phys_addr, size, SN_MEMPROT_ACCESS_CLASS_1, in xp_expand_memprotect_uv()
120 xp_restrict_memprotect_uv(unsigned long phys_addr, unsigned long size) in xp_restrict_memprotect_uv() argument
125 ret = uv_bios_change_memprotect(phys_addr, size, in xp_restrict_memprotect_uv()
136 ret = sn_change_memprotect(phys_addr, size, SN_MEMPROT_ACCESS_CLASS_0, in xp_restrict_memprotect_uv()

12345678910>>...17