/linux-6.12.1/arch/x86/mm/ |
D | ioremap.c | 185 __ioremap_caller(resource_size_t phys_addr, unsigned long size, in __ioremap_caller() argument 190 const resource_size_t unaligned_phys_addr = phys_addr; in __ioremap_caller() 200 last_addr = phys_addr + size - 1; in __ioremap_caller() 201 if (!size || last_addr < phys_addr) in __ioremap_caller() 204 if (!phys_addr_valid(phys_addr)) { in __ioremap_caller() 206 (unsigned long long)phys_addr); in __ioremap_caller() 211 __ioremap_check_mem(phys_addr, size, &io_desc); in __ioremap_caller() 218 &phys_addr, &last_addr); in __ioremap_caller() 225 offset = phys_addr & ~PAGE_MASK; in __ioremap_caller() 226 phys_addr &= PAGE_MASK; in __ioremap_caller() [all …]
|
/linux-6.12.1/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.12.1/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.12.1/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() 83 pfn = PFN_DOWN(phys_addr); in ioremap_prot() 88 &phys_addr, &last_addr); in ioremap_prot() 95 offset = phys_addr & ~PAGE_MASK; in ioremap_prot() [all …]
|
/linux-6.12.1/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.12.1/arch/mips/alchemy/common/ |
D | setup.c | 80 phys_addr_t fixup_bigphys_addr(phys_addr_t phys_addr, phys_addr_t size) in fixup_bigphys_addr() argument 86 if ((phys_addr >> 32) != 0) in fixup_bigphys_addr() 87 return phys_addr; in fixup_bigphys_addr() 90 if (phys_addr >= start && (phys_addr + size - 1) <= end) in fixup_bigphys_addr() 91 return (phys_addr_t)(AU1500_PCI_MEM_PHYS_ADDR + phys_addr); in fixup_bigphys_addr() 94 return phys_addr; in fixup_bigphys_addr() 100 phys_addr_t phys_addr = fixup_bigphys_addr(pfn << PAGE_SHIFT, size); in io_remap_pfn_range() local 102 return remap_pfn_range(vma, vaddr, phys_addr >> PAGE_SHIFT, size, prot); in io_remap_pfn_range()
|
/linux-6.12.1/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 68 phys_addr = memblock_phys_alloc(PMD_SIZE, PMD_SIZE); in kasan_populate_pmd() 69 if (phys_addr) { in kasan_populate_pmd() 70 set_pmd(pmdp, pfn_pmd(PFN_DOWN(phys_addr), PAGE_KERNEL)); in kasan_populate_pmd() 71 memset(__va(phys_addr), KASAN_SHADOW_INIT, PMD_SIZE); in kasan_populate_pmd() 83 phys_addr_t phys_addr; in kasan_populate_pud() local [all …]
|
/linux-6.12.1/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.12.1/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)); 91 TP_PROTO(struct device *dev, u64 phys_addr, u64 dma_addr, size_t len, [all …]
|
/linux-6.12.1/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.12.1/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.12.1/arch/x86/platform/efi/ |
D | memmap.c | 128 start = md->phys_addr; in efi_memmap_split_count() 193 start = md->phys_addr; in efi_memmap_insert() 194 end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT) - 1; in efi_memmap_insert() 203 md->num_pages = (m_end - md->phys_addr + 1) >> in efi_memmap_insert() 209 md->phys_addr = m_end + 1; in efi_memmap_insert() 210 md->num_pages = (end - md->phys_addr + 1) >> in efi_memmap_insert() 216 md->num_pages = (m_start - md->phys_addr) >> in efi_memmap_insert() 223 md->phys_addr = m_start; in efi_memmap_insert() 230 md->phys_addr = m_end + 1; in efi_memmap_insert() 238 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.12.1/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.12.1/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.12.1/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.12.1/arch/arm64/mm/ |
D | ioremap.c | 17 void __iomem *ioremap_prot(phys_addr_t phys_addr, size_t size, in ioremap_prot() argument 20 unsigned long last_addr = phys_addr + size - 1; in ioremap_prot() 28 if (WARN_ON(pfn_is_map_memory(__phys_to_pfn(phys_addr)))) in ioremap_prot() 36 WARN_ON(ioremap_prot_hook(phys_addr, size, &pgprot))) { in ioremap_prot() 40 return generic_ioremap_prot(phys_addr, size, pgprot); in ioremap_prot()
|
/linux-6.12.1/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.12.1/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_ctx.c | 267 u64 phys_addr; in nx_fw_cmd_create_rx_ctx() local 328 prq_rds[i].host_phys_addr = cpu_to_le64(rds_ring->phys_addr); in nx_fw_cmd_create_rx_ctx() 341 prq_sds[i].host_phys_addr = cpu_to_le64(sds_ring->phys_addr); in nx_fw_cmd_create_rx_ctx() 346 phys_addr = hostrq_phys_addr; in nx_fw_cmd_create_rx_ctx() 348 cmd.req.arg1 = (u32)(phys_addr >> 32); in nx_fw_cmd_create_rx_ctx() 349 cmd.req.arg2 = (u32)(phys_addr & 0xffffffff); in nx_fw_cmd_create_rx_ctx() 427 u64 offset, phys_addr; in nx_fw_cmd_create_tx_ctx() local 462 prq->dummy_dma_addr = cpu_to_le64(adapter->dummy_dma.phys_addr); in nx_fw_cmd_create_tx_ctx() 464 offset = recv_ctx->phys_addr + sizeof(struct netxen_ring_ctx); in nx_fw_cmd_create_tx_ctx() 469 prq_cds->host_phys_addr = cpu_to_le64(tx_ring->phys_addr); in nx_fw_cmd_create_tx_ctx() [all …]
|
/linux-6.12.1/drivers/input/serio/ |
D | xilinx_ps2.c | 235 resource_size_t remap_size, phys_addr; in xps2_of_probe() local 267 phys_addr = r_mem.start; in xps2_of_probe() 269 if (!request_mem_region(phys_addr, remap_size, DRIVER_NAME)) { in xps2_of_probe() 271 (unsigned long long)phys_addr); in xps2_of_probe() 277 drvdata->base_address = ioremap(phys_addr, remap_size); in xps2_of_probe() 280 (unsigned long long)phys_addr); in xps2_of_probe() 295 (unsigned long long)phys_addr, drvdata->base_address, in xps2_of_probe() 305 "Xilinx XPS PS/2 at %08llX", (unsigned long long)phys_addr); in xps2_of_probe() 307 "xilinxps2/serio at %08llX", (unsigned long long)phys_addr); in xps2_of_probe() 315 release_mem_region(phys_addr, remap_size); in xps2_of_probe()
|
/linux-6.12.1/drivers/pci/endpoint/ |
D | pci-epc-mem.c | 179 phys_addr_t *phys_addr, size_t size) in pci_epc_mem_alloc_addr() argument 199 *phys_addr = mem->window.phys_base + in pci_epc_mem_alloc_addr() 201 virt_addr = ioremap(*phys_addr, align_size); in pci_epc_mem_alloc_addr() 219 phys_addr_t phys_addr) in pci_epc_get_matching_window() argument 227 if (phys_addr >= mem->window.phys_base && in pci_epc_get_matching_window() 228 phys_addr < (mem->window.phys_base + mem->window.size)) in pci_epc_get_matching_window() 244 void pci_epc_mem_free_addr(struct pci_epc *epc, phys_addr_t phys_addr, in pci_epc_mem_free_addr() argument 253 mem = pci_epc_get_matching_window(epc, phys_addr); in pci_epc_mem_free_addr() 262 pageno = (phys_addr - mem->window.phys_base) >> page_shift; in pci_epc_mem_free_addr()
|
/linux-6.12.1/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,
|
/linux-6.12.1/drivers/accel/habanalabs/common/mmu/ |
D | mmu.c | 293 int hl_mmu_map_page(struct hl_ctx *ctx, u64 virt_addr, u64 phys_addr, u32 page_size, in hl_mmu_map_page() argument 325 ((hdev->asic_funcs->scramble_addr(hdev, phys_addr) & in hl_mmu_map_page() 329 (!is_dram_addr && ((phys_addr & (real_page_size - 1)) || in hl_mmu_map_page() 333 phys_addr, virt_addr, real_page_size); in hl_mmu_map_page() 337 real_phys_addr = phys_addr; in hl_mmu_map_page() 353 trace_habanalabs_mmu_map(&hdev->pdev->dev, virt_addr, phys_addr, page_size, flush_pte); in hl_mmu_map_page() 383 u64 phys_addr, u32 size) in hl_mmu_map_contiguous() argument 406 curr_pa = phys_addr + off; in hl_mmu_map_contiguous() 478 u64 *phys_addr) in hl_mmu_pa_page_with_offset() argument 517 *phys_addr = page_start + page_off + dram_base; in hl_mmu_pa_page_with_offset() [all …]
|