/linux-6.6.21/arch/x86/mm/ |
D | ioremap.c | 184 __ioremap_caller(resource_size_t phys_addr, unsigned long size, in __ioremap_caller() argument 189 const resource_size_t unaligned_phys_addr = phys_addr; in __ioremap_caller() 199 last_addr = phys_addr + size - 1; in __ioremap_caller() 200 if (!size || last_addr < phys_addr) in __ioremap_caller() 203 if (!phys_addr_valid(phys_addr)) { in __ioremap_caller() 205 (unsigned long long)phys_addr); in __ioremap_caller() 210 __ioremap_check_mem(phys_addr, size, &io_desc); in __ioremap_caller() 217 &phys_addr, &last_addr); in __ioremap_caller() 224 offset = phys_addr & ~PAGE_MASK; in __ioremap_caller() 225 phys_addr &= PAGE_MASK; in __ioremap_caller() [all …]
|
/linux-6.6.21/arch/ia64/mm/ |
D | ioremap.c | 17 __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() 32 void __iomem *ioremap_prot(phys_addr_t phys_addr, size_t size, in ioremap_prot() argument 44 attr = kern_mem_attribute(phys_addr, size); in ioremap_prot() 46 return (void __iomem *) phys_to_virt(phys_addr); in ioremap_prot() 48 return __ioremap_uc(phys_addr); in ioremap_prot() [all …]
|
/linux-6.6.21/mm/ |
D | early_ioremap.c | 35 pgprot_t __init __weak early_memremap_pgprot_adjust(resource_size_t phys_addr, in early_memremap_pgprot_adjust() argument 100 __early_ioremap(resource_size_t phys_addr, unsigned long size, pgprot_t prot) in __early_ioremap() argument 119 __func__, &phys_addr, size)) in __early_ioremap() 123 last_addr = phys_addr + size - 1; in __early_ioremap() 124 if (WARN_ON(!size || last_addr < phys_addr)) in __early_ioremap() 131 offset = offset_in_page(phys_addr); in __early_ioremap() 132 phys_addr &= PAGE_MASK; in __early_ioremap() 133 size = PAGE_ALIGN(last_addr + 1) - phys_addr; in __early_ioremap() 148 __late_set_fixmap(idx, phys_addr, prot); in __early_ioremap() 150 __early_set_fixmap(idx, phys_addr, prot); in __early_ioremap() [all …]
|
D | ioremap.c | 15 void __iomem *generic_ioremap_prot(phys_addr_t phys_addr, size_t size, in generic_ioremap_prot() argument 27 last_addr = phys_addr + size - 1; in generic_ioremap_prot() 28 if (!size || last_addr < phys_addr) in generic_ioremap_prot() 32 offset = phys_addr & (~PAGE_MASK); in generic_ioremap_prot() 33 phys_addr -= offset; in generic_ioremap_prot() 41 area->phys_addr = phys_addr; in generic_ioremap_prot() 43 if (ioremap_page_range(vaddr, vaddr + size, phys_addr, prot)) { in generic_ioremap_prot() 52 void __iomem *ioremap_prot(phys_addr_t phys_addr, size_t size, in ioremap_prot() argument 55 return generic_ioremap_prot(phys_addr, size, __pgprot(prot)); in ioremap_prot()
|
/linux-6.6.21/arch/nios2/mm/ |
D | ioremap.c | 23 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.6.21/arch/mips/mm/ |
D | ioremap.c | 46 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.6.21/tools/perf/scripts/python/ |
D | mem-phys-addr.py | 62 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.6.21/arch/mips/alchemy/common/ |
D | setup.c | 82 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.6.21/arch/parisc/mm/ |
D | ioremap.c | 16 void __iomem *ioremap_prot(phys_addr_t phys_addr, size_t size, in ioremap_prot() argument 20 unsigned long end = phys_addr + size - 1; in ioremap_prot() 22 if ((phys_addr >= 0x00080000 && end < 0x000fffff) || in ioremap_prot() 23 (phys_addr >= 0x00500000 && end < 0x03bfffff)) in ioremap_prot() 24 phys_addr |= F_EXTEND(0xfc000000); in ioremap_prot() 30 if (phys_addr < virt_to_phys(high_memory)) { in ioremap_prot() 34 t_addr = __va(phys_addr); in ioremap_prot() 44 return generic_ioremap_prot(phys_addr, size, __pgprot(prot)); in ioremap_prot()
|
/linux-6.6.21/arch/ia64/kernel/ |
D | efi.c | 304 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.6.21/arch/riscv/mm/ |
D | kasan_init.c | 31 phys_addr_t phys_addr; in kasan_populate_pte() local 43 phys_addr = memblock_phys_alloc(PAGE_SIZE, PAGE_SIZE); in kasan_populate_pte() 44 set_pte(ptep, pfn_pte(PFN_DOWN(phys_addr), PAGE_KERNEL)); in kasan_populate_pte() 45 memset(__va(phys_addr), KASAN_SHADOW_INIT, PAGE_SIZE); in kasan_populate_pte() 52 phys_addr_t phys_addr; in kasan_populate_pmd() local 67 phys_addr = memblock_phys_alloc(PMD_SIZE, PMD_SIZE); in kasan_populate_pmd() 68 if (phys_addr) { in kasan_populate_pmd() 69 set_pmd(pmdp, pfn_pmd(PFN_DOWN(phys_addr), PAGE_KERNEL)); in kasan_populate_pmd() 70 memset(__va(phys_addr), KASAN_SHADOW_INIT, PMD_SIZE); in kasan_populate_pmd() 82 phys_addr_t phys_addr; in kasan_populate_pud() local [all …]
|
/linux-6.6.21/arch/loongarch/mm/ |
D | ioremap.c | 9 void __init __iomem *early_ioremap(u64 phys_addr, unsigned long size) in early_ioremap() argument 11 return ((void __iomem *)TO_CACHE(phys_addr)); in early_ioremap() 19 void *early_memremap_ro(resource_size_t phys_addr, unsigned long size) in early_memremap_ro() argument 21 return early_memremap(phys_addr, size); in early_memremap_ro() 24 void *early_memremap_prot(resource_size_t phys_addr, unsigned long size, in early_memremap_prot() argument 27 return early_memremap(phys_addr, size); in early_memremap_prot()
|
/linux-6.6.21/arch/x86/platform/efi/ |
D | memmap.c | 117 start = md->phys_addr; in efi_memmap_split_count() 182 start = md->phys_addr; in efi_memmap_insert() 183 end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT) - 1; in efi_memmap_insert() 192 md->num_pages = (m_end - md->phys_addr + 1) >> in efi_memmap_insert() 198 md->phys_addr = m_end + 1; in efi_memmap_insert() 199 md->num_pages = (end - md->phys_addr + 1) >> in efi_memmap_insert() 205 md->num_pages = (m_start - md->phys_addr) >> in efi_memmap_insert() 212 md->phys_addr = m_start; in efi_memmap_insert() 219 md->phys_addr = m_end + 1; in efi_memmap_insert() 227 md->num_pages = (m_start - md->phys_addr) >> in efi_memmap_insert() [all …]
|
D | efi_32.c | 42 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.6.21/include/uapi/linux/ |
D | cec-funcs.h | 14 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.6.21/include/linux/ |
D | io-mapping.h | 68 resource_size_t phys_addr; in io_mapping_map_atomic_wc() local 71 phys_addr = mapping->base + offset; in io_mapping_map_atomic_wc() 77 return __iomap_local_pfn_prot(PHYS_PFN(phys_addr), mapping->prot); in io_mapping_map_atomic_wc() 94 resource_size_t phys_addr; in io_mapping_map_local_wc() local 97 phys_addr = mapping->base + offset; in io_mapping_map_local_wc() 98 return __iomap_local_pfn_prot(PHYS_PFN(phys_addr), mapping->prot); in io_mapping_map_local_wc() 111 resource_size_t phys_addr; in io_mapping_map_wc() local 114 phys_addr = mapping->base + offset; in io_mapping_map_wc() 116 return ioremap_wc(phys_addr, size); in io_mapping_map_wc()
|
/linux-6.6.21/arch/sh/mm/ |
D | ioremap_fixed.c | 48 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()
|
D | ioremap.c | 75 void __iomem __ref *ioremap_prot(phys_addr_t phys_addr, size_t size, in ioremap_prot() argument 81 mapped = __ioremap_trapped(phys_addr, size); in ioremap_prot() 85 mapped = __ioremap_29bit(phys_addr, size, pgprot); in ioremap_prot() 93 return ioremap_fixed(phys_addr, size, pgprot); in ioremap_prot() 99 mapped = pmb_remap_caller(phys_addr, size, pgprot, in ioremap_prot() 104 return generic_ioremap_prot(phys_addr, size, pgprot); in ioremap_prot()
|
/linux-6.6.21/arch/arm/mm/ |
D | ioremap.c | 62 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.6.21/include/trace/events/ |
D | habanalabs.h | 17 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.6.21/arch/powerpc/boot/ |
D | cuboot-pq2.c | 33 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.6.21/drivers/input/serio/ |
D | xilinx_ps2.c | 236 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.6.21/drivers/misc/sgi-xp/ |
D | xp_uv.c | 91 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()
|
/linux-6.6.21/arch/arm64/mm/ |
D | ioremap.c | 6 void __iomem *ioremap_prot(phys_addr_t phys_addr, size_t size, in ioremap_prot() argument 9 unsigned long last_addr = phys_addr + size - 1; in ioremap_prot() 16 if (WARN_ON(pfn_is_map_memory(__phys_to_pfn(phys_addr)))) in ioremap_prot() 19 return generic_ioremap_prot(phys_addr, size, __pgprot(prot)); in ioremap_prot()
|
/linux-6.6.21/include/asm-generic/ |
D | early_ioremap.h | 11 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,
|