Home
last modified time | relevance | path

Searched refs:phys (Results 1 – 25 of 564) sorted by relevance

12345678910>>...23

/arch/xtensa/mm/
Dcache.c140 unsigned long phys = folio_pfn(folio) * PAGE_SIZE; in flush_dcache_folio() local
143 unsigned long alias = !(DCACHE_ALIAS_EQ(temp, phys)); in flush_dcache_folio()
158 virt = TLBTEMP_BASE_1 + (phys & DCACHE_ALIAS_MASK); in flush_dcache_folio()
159 __flush_invalidate_dcache_page_alias(virt, phys); in flush_dcache_folio()
164 __flush_invalidate_dcache_page_alias(virt, phys); in flush_dcache_folio()
167 __invalidate_icache_page_alias(virt, phys); in flush_dcache_folio()
168 phys += PAGE_SIZE; in flush_dcache_folio()
202 unsigned long phys = page_to_phys(pfn_to_page(pfn)); in local_flush_cache_page() local
206 __flush_invalidate_dcache_page_alias(virt, phys); in local_flush_cache_page()
207 __invalidate_icache_page_alias(virt, phys); in local_flush_cache_page()
[all …]
/arch/m68k/mm/
Dsun3kmap.c29 static inline void do_page_mapin(unsigned long phys, unsigned long virt, in do_page_mapin() argument
35 ptep = pfn_pte(phys >> PAGE_SHIFT, PAGE_KERNEL); in do_page_mapin()
48 static inline void do_pmeg_mapin(unsigned long phys, unsigned long virt, in do_pmeg_mapin() argument
56 do_page_mapin(phys, virt, type); in do_pmeg_mapin()
57 phys += PAGE_SIZE; in do_pmeg_mapin()
63 void __iomem *sun3_ioremap(unsigned long phys, unsigned long size, in sun3_ioremap() argument
74 offset = phys & (PAGE_SIZE-1); in sun3_ioremap()
75 phys &= ~(PAGE_SIZE-1); in sun3_ioremap()
98 do_pmeg_mapin(phys, virt, type, seg_pages); in sun3_ioremap()
101 phys += seg_pages * PAGE_SIZE; in sun3_ioremap()
[all …]
/arch/um/kernel/
Dphysmem.c41 void map_memory(unsigned long virt, unsigned long phys, unsigned long len, in map_memory() argument
47 fd = phys_mapping(phys, &offset); in map_memory()
118 int phys_mapping(unsigned long phys, unsigned long long *offset_out) in phys_mapping() argument
122 if (phys < physmem_size) { in phys_mapping()
124 *offset_out = phys; in phys_mapping()
126 else if (phys < __pa(end_iomem)) { in phys_mapping()
130 if ((phys >= region->phys) && in phys_mapping()
131 (phys < region->phys + region->size)) { in phys_mapping()
133 *offset_out = phys - region->phys; in phys_mapping()
139 else if (phys < __pa(end_iomem) + highmem) { in phys_mapping()
[all …]
/arch/arm64/boot/dts/microchip/
Dsparx5_pcb135_board.dtsi377 phys = <&serdes 13>;
384 phys = <&serdes 13>;
391 phys = <&serdes 13>;
398 phys = <&serdes 13>;
405 phys = <&serdes 14>;
412 phys = <&serdes 14>;
419 phys = <&serdes 14>;
426 phys = <&serdes 14>;
433 phys = <&serdes 15>;
440 phys = <&serdes 15>;
[all …]
/arch/powerpc/mm/nohash/
De500.c59 phys_addr_t phys; member
71 return tlbcam_addrs[b].phys + (va - tlbcam_addrs[b].start); in v_block_mapped()
82 if (pa >= tlbcam_addrs[b].phys in p_block_mapped()
84 +tlbcam_addrs[b].phys) in p_block_mapped()
85 return tlbcam_addrs[b].start+(pa-tlbcam_addrs[b].phys); in p_block_mapped()
97 static void settlbcam(int index, unsigned long virt, phys_addr_t phys, in settlbcam() argument
119 TLBCAM[index].MAS3 = (phys & MAS3_RPN) | MAS3_SR; in settlbcam()
122 TLBCAM[index].MAS7 = (u64)phys >> 32; in settlbcam()
135 tlbcam_addrs[index].phys = phys; in settlbcam()
139 phys_addr_t phys) in calc_cam_sz() argument
[all …]
/arch/powerpc/mm/kasan/
Dbook3s_32.c15 phys_addr_t phys; in kasan_init_region() local
26 phys = memblock_phys_alloc_range(k_size, k_size, 0, in kasan_init_region()
28 if (!phys) in kasan_init_region()
31 setbat(idx, k_nobat, phys, k_size, PAGE_KERNEL); in kasan_init_region()
38 phys = memblock_phys_alloc_range(k_end - k_nobat, PAGE_SIZE, 0, in kasan_init_region()
40 if (!phys) in kasan_init_region()
52 pte_t pte = pfn_pte(PHYS_PFN(phys + k_cur - k_nobat), PAGE_KERNEL); in kasan_init_region()
/arch/arm64/kvm/hyp/nvhe/
Dmm.c37 unsigned long phys, enum kvm_pgtable_prot prot) in __pkvm_create_mappings() argument
42 err = kvm_pgtable_hyp_map(&pkvm_pgtable, start, size, phys, prot); in __pkvm_create_mappings()
94 int __pkvm_create_private_mapping(phys_addr_t phys, size_t size, in __pkvm_create_private_mapping() argument
101 size = PAGE_ALIGN(size + offset_in_page(phys)); in __pkvm_create_private_mapping()
106 err = __pkvm_create_mappings(addr, size, phys, prot); in __pkvm_create_private_mapping()
110 *haddr = addr + offset_in_page(phys); in __pkvm_create_private_mapping()
114 int __hyp_allocator_map(unsigned long va, phys_addr_t phys) in __hyp_allocator_map() argument
116 return __pkvm_create_mappings(va, PAGE_SIZE, phys, PAGE_HYP); in __hyp_allocator_map()
189 phys_addr_t phys; in pkvm_create_mappings_locked() local
199 phys = hyp_virt_to_phys((void *)virt_addr); in pkvm_create_mappings_locked()
[all …]
Dsetup.c90 static int recreate_hyp_mappings(phys_addr_t phys, unsigned long size, in recreate_hyp_mappings() argument
94 void *start, *end, *virt = hyp_phys_to_virt(phys); in recreate_hyp_mappings()
211 phys_addr_t phys; in fix_host_ownership_walker() local
219 phys = kvm_pte_to_phys(ctx->old); in fix_host_ownership_walker()
220 if (!addr_is_memory(phys)) in fix_host_ownership_walker()
230 return host_stage2_set_owner_locked(phys, PAGE_SIZE, PKVM_ID_HYP); in fix_host_ownership_walker()
232 hyp_phys_to_page(phys)->host_state = PKVM_PAGE_SHARED_BORROWED; in fix_host_ownership_walker()
235 hyp_phys_to_page(phys)->host_state = PKVM_PAGE_SHARED_OWNED; in fix_host_ownership_walker()
400 int __pkvm_init(phys_addr_t phys, unsigned long size, unsigned long nr_cpus, in __pkvm_init() argument
404 void *virt = hyp_phys_to_virt(phys); in __pkvm_init()
[all …]
/arch/arm64/kvm/hyp/include/nvhe/
Dmemory.h64 #define __hyp_va(phys) ((void *)((phys_addr_t)(phys) - hyp_physvirt_offset)) argument
66 static inline void *hyp_phys_to_virt(phys_addr_t phys) in hyp_phys_to_virt() argument
68 return __hyp_va(phys); in hyp_phys_to_virt()
76 #define hyp_phys_to_pfn(phys) ((phys) >> PAGE_SHIFT) argument
78 #define hyp_phys_to_page(phys) (&hyp_vmemmap[hyp_phys_to_pfn(phys)]) argument
Dmm.h18 void *hyp_fixmap_map(phys_addr_t phys);
20 void *hyp_fixblock_map(phys_addr_t phys);
22 void hyp_poison_page(phys_addr_t phys);
30 int __pkvm_create_private_mapping(phys_addr_t phys, size_t size,
33 int pkvm_create_stack(phys_addr_t phys, unsigned long *haddr);
37 int __hyp_allocator_map(unsigned long start, phys_addr_t phys);
/arch/arm64/mm/
Dmem_relinquish.c39 phys_addr_t phys, end; in kvm_page_relinquish() local
42 phys = page_to_phys(page); in kvm_page_relinquish()
43 end = phys + PAGE_SIZE; in kvm_page_relinquish()
45 while (phys < end) { in kvm_page_relinquish()
48 arm_smccc_1_1_invoke(func_id, phys, 0, 0, &res); in kvm_page_relinquish()
51 phys += memshare_granule_sz; in kvm_page_relinquish()
Dmmu.c108 phys_addr_t phys; in early_pgtable_alloc() local
111 phys = memblock_phys_alloc_range(PAGE_SIZE, PAGE_SIZE, 0, in early_pgtable_alloc()
113 if (!phys) in early_pgtable_alloc()
121 ptr = pte_set_fixmap(phys); in early_pgtable_alloc()
131 return phys; in early_pgtable_alloc()
173 phys_addr_t phys, pgprot_t prot) in init_pte() argument
181 __set_pte(ptep, pfn_pte(__phys_to_pfn(phys), prot)); in init_pte()
190 phys += PAGE_SIZE; in init_pte()
197 unsigned long end, phys_addr_t phys, in alloc_init_cont_pte() argument
225 if ((((addr | next | phys) & ~CONT_PTE_MASK) == 0) && in alloc_init_cont_pte()
[all …]
/arch/sh/include/asm/
Dmmu.h62 int pmb_bolt_mapping(unsigned long virt, phys_addr_t phys,
64 void __iomem *pmb_remap_caller(phys_addr_t phys, unsigned long size,
71 pmb_bolt_mapping(unsigned long virt, phys_addr_t phys, in pmb_bolt_mapping() argument
78 pmb_remap_caller(phys_addr_t phys, unsigned long size, in pmb_remap_caller() argument
100 pmb_remap(phys_addr_t phys, unsigned long size, pgprot_t prot) in pmb_remap() argument
102 return pmb_remap_caller(phys, size, prot, __builtin_return_address(0)); in pmb_remap()
/arch/sh/boards/mach-sdk7786/
Dsram.c20 unsigned long phys; in fpga_sram_init() local
44 phys = (area << 26) + SZ_64M - SZ_4K; in fpga_sram_init()
50 vaddr = ioremap(phys, SZ_2K); in fpga_sram_init()
58 SZ_2K >> 10, phys, phys + SZ_2K - 1, area); in fpga_sram_init()
/arch/x86/events/intel/
Dbts.c148 struct bts_phys *phys = &buf->buf[buf->cur_buf]; in bts_config_buffer() local
149 unsigned long index, thresh = 0, end = phys->size; in bts_config_buffer()
150 struct page *page = phys->page; in bts_config_buffer()
155 if (buf->end < phys->offset + buf_size(page)) in bts_config_buffer()
156 end = buf->end - phys->offset - phys->displacement; in bts_config_buffer()
158 index -= phys->offset + phys->displacement; in bts_config_buffer()
168 ds->bts_buffer_base = (u64)(long)page_address(page) + phys->displacement; in bts_config_buffer()
176 static void bts_buffer_pad_out(struct bts_phys *phys, unsigned long head) in bts_buffer_pad_out() argument
178 unsigned long index = head - phys->offset; in bts_buffer_pad_out()
180 memset(page_address(phys->page) + index, 0, phys->size - index); in bts_buffer_pad_out()
[all …]
/arch/mips/n64/
Dinit.c89 unsigned long phys; in n64_platform_init() local
125 phys = virt_to_phys(orig); in n64_platform_init()
126 phys += 63; in n64_platform_init()
127 phys &= ~63; in n64_platform_init()
131 n64rdp_write_reg(i, phys); in n64_platform_init()
140 res[0].start = phys; in n64_platform_init()
141 res[0].end = phys + W * H * 2 - 1; in n64_platform_init()
/arch/x86/include/asm/
Dfixmap.h161 phys_addr_t phys, pgprot_t flags);
165 phys_addr_t phys, pgprot_t flags) in __set_fixmap() argument
167 native_set_fixmap(idx, phys, flags); in __set_fixmap()
193 #define __late_set_fixmap(idx, phys, flags) __set_fixmap(idx, phys, flags) argument
197 phys_addr_t phys, pgprot_t flags);
/arch/um/include/shared/
Dmem.h9 extern int phys_mapping(unsigned long phys, unsigned long long *offset_out);
17 static inline void *uml_to_virt(unsigned long phys) in uml_to_virt() argument
19 return((void *) uml_physmem + phys); in uml_to_virt()
/arch/arm64/kernel/
Dacpi.c89 void __init __iomem *__acpi_map_table(unsigned long phys, unsigned long size) in __acpi_map_table() argument
94 return early_memremap(phys, size); in __acpi_map_table()
270 void __iomem *acpi_os_ioremap(acpi_physical_address phys, acpi_size size) in acpi_os_ioremap() argument
281 if (phys < md->phys_addr || phys >= end) in acpi_os_ioremap()
284 if (phys + size > end) { in acpi_os_ioremap()
307 if (memblock_is_map_memory(phys) || in acpi_os_ioremap()
308 !memblock_is_region_memory(phys, size)) { in acpi_os_ioremap()
309 pr_warn(FW_BUG "requested region covers kernel memory @ %pa\n", &phys); in acpi_os_ioremap()
342 if (memblock_is_map_memory(phys)) in acpi_os_ioremap()
343 return (void __iomem *)__phys_to_virt(phys); in acpi_os_ioremap()
[all …]
/arch/arm64/boot/dts/marvell/
Dcn9130-crb-B.dts17 phys = <&cp0_comphy0 0>;
30 phys = <&cp0_comphy2 0>;
38 phys = <&cp0_comphy1 0>;
45 phys = <&cp0_comphy3 1>;
Darmada-8040-db.dts106 phys = <&cp0_comphy0 0>;
113 phys = <&cp0_comphy5 2>;
147 phys = <&cp0_comphy1 0>;
151 phys = <&cp0_comphy3 1>;
163 phys = <&cp0_utmi0>;
178 phys = <&cp0_comphy4 1>, <&cp0_utmi1>;
214 phys = <&cp1_comphy0 0>;
221 phys = <&cp1_comphy4 1>;
228 phys = <&cp1_comphy5 2>;
308 phys = <&cp1_comphy1 0>;
[all …]
/arch/powerpc/mm/book3s32/
Dmmu.c45 phys_addr_t phys; member
60 return bat_addrs[b].phys + (va - bat_addrs[b].start); in v_block_mapped()
71 if (pa >= bat_addrs[b].phys in p_block_mapped()
73 +bat_addrs[b].phys) in p_block_mapped()
74 return bat_addrs[b].start+(pa-bat_addrs[b].phys); in p_block_mapped()
116 static void setibat(int index, unsigned long virt, phys_addr_t phys, in setibat() argument
129 bat[0].batl = BAT_PHYS_ADDR(phys) | wimgxpp; in setibat()
255 void __init setbat(int index, unsigned long virt, phys_addr_t phys, in setbat() argument
267 (unsigned long long)phys); in setbat()
282 bat[1].batl = BAT_PHYS_ADDR(phys) | wimgxpp; in setbat()
[all …]
/arch/um/include/asm/
Dpage.h47 #define pte_set_val(p, phys, prot) \ argument
48 ({ (p).pte = (phys) | pgprot_val(prot); })
74 #define pte_set_val(p, phys, prot) (p).pte = (phys | pgprot_val(prot)) argument
106 #define __va(phys) uml_to_virt((unsigned long) (phys)) argument
/arch/parisc/kernel/
Dkexec.c14 unsigned long phys);
78 unsigned long phys); in machine_kexec()
80 unsigned long phys = page_to_phys(image->control_code_page); in machine_kexec() local
84 set_fixmap(FIX_TEXT_KEXEC, phys); in machine_kexec()
107 reloc(image->head & PAGE_MASK, image->start, phys); in machine_kexec()
/arch/arm/boot/dts/microchip/
Dlan966x-pcb8290.dts120 phys = <&serdes 0 SERDES6G(1)>;
128 phys = <&serdes 1 SERDES6G(1)>;
136 phys = <&serdes 2 SERDES6G(1)>;
144 phys = <&serdes 3 SERDES6G(1)>;
152 phys = <&serdes 4 SERDES6G(2)>;
160 phys = <&serdes 5 SERDES6G(2)>;
168 phys = <&serdes 6 SERDES6G(2)>;
176 phys = <&serdes 7 SERDES6G(2)>;

12345678910>>...23