/arch/xtensa/mm/ |
D | cache.c | 145 unsigned long phys = page_to_phys(page); in flush_dcache_page() local 147 unsigned long alias = !(DCACHE_ALIAS_EQ(temp, phys)); in flush_dcache_page() 160 virt = TLBTEMP_BASE_1 + (phys & DCACHE_ALIAS_MASK); in flush_dcache_page() 161 __flush_invalidate_dcache_page_alias(virt, phys); in flush_dcache_page() 166 __flush_invalidate_dcache_page_alias(virt, phys); in flush_dcache_page() 169 __invalidate_icache_page_alias(virt, phys); in flush_dcache_page() 200 unsigned long phys = page_to_phys(pfn_to_page(pfn)); in local_flush_cache_page() local 203 __flush_invalidate_dcache_page_alias(virt, phys); in local_flush_cache_page() 204 __invalidate_icache_page_alias(virt, phys); in local_flush_cache_page() 228 unsigned long phys = page_to_phys(page); in update_mmu_cache() local [all …]
|
/arch/m68k/mm/ |
D | sun3kmap.c | 30 static inline void do_page_mapin(unsigned long phys, unsigned long virt, in do_page_mapin() argument 36 ptep = pfn_pte(phys >> PAGE_SHIFT, PAGE_KERNEL); in do_page_mapin() 49 static inline void do_pmeg_mapin(unsigned long phys, unsigned long virt, in do_pmeg_mapin() argument 57 do_page_mapin(phys, virt, type); in do_pmeg_mapin() 58 phys += PAGE_SIZE; in do_pmeg_mapin() 64 void __iomem *sun3_ioremap(unsigned long phys, unsigned long size, in sun3_ioremap() argument 75 offset = phys & (PAGE_SIZE-1); in sun3_ioremap() 76 phys &= ~(PAGE_SIZE-1); in sun3_ioremap() 99 do_pmeg_mapin(phys, virt, type, seg_pages); in sun3_ioremap() 102 phys += seg_pages * PAGE_SIZE; in sun3_ioremap() [all …]
|
/arch/um/kernel/ |
D | physmem.c | 41 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/powerpc/mm/nohash/ |
D | fsl_booke.c | 62 phys_addr_t phys; member 79 return tlbcam_addrs[b].phys + (va - tlbcam_addrs[b].start); in v_block_mapped() 90 if (pa >= tlbcam_addrs[b].phys in p_block_mapped() 92 +tlbcam_addrs[b].phys) in p_block_mapped() 93 return tlbcam_addrs[b].start+(pa-tlbcam_addrs[b].phys); in p_block_mapped() 105 static void settlbcam(int index, unsigned long virt, phys_addr_t phys, in settlbcam() argument 127 TLBCAM[index].MAS3 = (phys & MAS3_RPN) | MAS3_SX | MAS3_SR; in settlbcam() 130 TLBCAM[index].MAS7 = (u64)phys >> 32; in settlbcam() 140 tlbcam_addrs[index].phys = phys; in settlbcam() 144 phys_addr_t phys) in calc_cam_sz() argument [all …]
|
D | 44x.c | 54 static void __init ppc44x_pin_tlb(unsigned int virt, unsigned int phys) in ppc44x_pin_tlb() argument 68 "r" (phys), in ppc44x_pin_tlb() 124 static void ppc47x_pin_tlb(unsigned int virt, unsigned int phys) in ppc47x_pin_tlb() argument 140 virt, phys, bolted); in ppc47x_pin_tlb() 155 "r" (phys), in ppc47x_pin_tlb()
|
/arch/s390/numa/ |
D | mode_emu.c | 220 static void toptree_to_numa_single(struct toptree *numa, struct toptree *phys, in toptree_to_numa_single() argument 225 toptree_for_each_safe(core, tmp, phys, CORE) { in toptree_to_numa_single() 237 static void move_level_to_numa_node(struct toptree *node, struct toptree *phys, in move_level_to_numa_node() argument 243 toptree_for_each_safe(cur, tmp, phys, level) { in move_level_to_numa_node() 260 static void move_level_to_numa(struct toptree *numa, struct toptree *phys, in move_level_to_numa() argument 266 move_level_to_numa_node(node, phys, level, perfect); in move_level_to_numa() 272 static void toptree_to_numa_first(struct toptree *numa, struct toptree *phys) in toptree_to_numa_first() argument 277 move_level_to_numa(numa, phys, DRAWER, true); in toptree_to_numa_first() 278 move_level_to_numa(numa, phys, DRAWER, false); in toptree_to_numa_first() 279 move_level_to_numa(numa, phys, BOOK, true); in toptree_to_numa_first() [all …]
|
/arch/arm64/mm/ |
D | mmu.c | 92 phys_addr_t phys; in early_pgtable_alloc() local 95 phys = memblock_phys_alloc(PAGE_SIZE, PAGE_SIZE); in early_pgtable_alloc() 96 if (!phys) in early_pgtable_alloc() 104 ptr = pte_set_fixmap(phys); in early_pgtable_alloc() 114 return phys; in early_pgtable_alloc() 141 phys_addr_t phys, pgprot_t prot) in init_pte() argument 149 set_pte(ptep, pfn_pte(__phys_to_pfn(phys), prot)); in init_pte() 158 phys += PAGE_SIZE; in init_pte() 165 unsigned long end, phys_addr_t phys, in alloc_init_cont_pte() argument 189 if ((((addr | next | phys) & ~CONT_PTE_MASK) == 0) && in alloc_init_cont_pte() [all …]
|
/arch/sh/boards/mach-sdk7786/ |
D | sram.c | 20 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/sh/include/asm/ |
D | mmu.h | 62 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/x86/events/intel/ |
D | bts.c | 148 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/um/include/shared/ |
D | mem.h | 9 extern int phys_mapping(unsigned long phys, unsigned long long *offset_out); 17 static inline void *to_virt(unsigned long phys) in to_virt() argument 19 return((void *) uml_physmem + phys); in to_virt()
|
D | mem_user.h | 40 unsigned long phys; member 58 extern unsigned long phys_offset(unsigned long phys); 59 extern void map_memory(unsigned long virt, unsigned long phys,
|
/arch/x86/include/asm/ |
D | fixmap.h | 160 phys_addr_t phys, pgprot_t flags); 164 phys_addr_t phys, pgprot_t flags) in __set_fixmap() argument 166 native_set_fixmap(idx, phys, flags); in __set_fixmap() 192 #define __late_set_fixmap(idx, phys, flags) __set_fixmap(idx, phys, flags) argument 196 phys_addr_t phys, pgprot_t flags);
|
/arch/arm/mach-davinci/include/mach/ |
D | uncompress.h | 52 static inline void set_uart_info(u32 phys) in set_uart_info() argument 54 uart = (u32 *)phys; in set_uart_info() 57 #define _DEBUG_LL_ENTRY(machine, phys) \ argument 60 set_uart_info(phys); \
|
/arch/arm64/include/asm/ |
D | acpi.h | 49 static inline void __iomem *acpi_os_ioremap(acpi_physical_address phys, in acpi_os_ioremap() argument 53 if (memblock_is_map_memory(phys)) in acpi_os_ioremap() 54 return (void __iomem *)__phys_to_virt(phys); in acpi_os_ioremap() 61 return __ioremap(phys, size, __acpi_get_mem_attribute(phys)); in acpi_os_ioremap()
|
/arch/parisc/kernel/ |
D | kexec.c | 12 unsigned long phys); 76 unsigned long phys); in machine_kexec() 78 unsigned long phys = page_to_phys(image->control_code_page); in machine_kexec() local 82 set_fixmap(FIX_TEXT_KEXEC, phys); in machine_kexec() 105 reloc(image->head & PAGE_MASK, image->start, phys); in machine_kexec()
|
/arch/um/include/asm/ |
D | page.h | 47 #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) to_virt((unsigned long) (phys)) argument
|
/arch/powerpc/include/asm/ |
D | smp.h | 105 static inline void set_hard_smp_processor_id(int cpu, int phys) in set_hard_smp_processor_id() argument 107 smp_hw_index[cpu] = phys; in set_hard_smp_processor_id() 199 static inline void set_hard_smp_processor_id(int cpu, int phys) in set_hard_smp_processor_id() argument 201 paca_ptrs[cpu]->hw_cpu_id = phys; in set_hard_smp_processor_id() 212 static inline void set_hard_smp_processor_id(int cpu, int phys) in set_hard_smp_processor_id() argument 214 boot_cpuid_phys = phys; in set_hard_smp_processor_id()
|
D | dma.h | 272 static __inline__ void set_dma_addr(unsigned int dmanr, unsigned int phys) in set_dma_addr() argument 275 dma_outb(phys & 0xff, in set_dma_addr() 277 dma_outb((phys >> 8) & 0xff, in set_dma_addr() 280 dma_outb((phys >> 1) & 0xff, in set_dma_addr() 282 dma_outb((phys >> 9) & 0xff, in set_dma_addr() 285 set_dma_page(dmanr, phys >> 16); in set_dma_addr()
|
/arch/powerpc/mm/book3s32/ |
D | mmu.c | 44 phys_addr_t phys; member 55 return bat_addrs[b].phys + (va - bat_addrs[b].start); in v_block_mapped() 66 if (pa >= bat_addrs[b].phys in p_block_mapped() 68 +bat_addrs[b].phys) in p_block_mapped() 69 return bat_addrs[b].start+(pa-bat_addrs[b].phys); in p_block_mapped() 122 static void setibat(int index, unsigned long virt, phys_addr_t phys, in setibat() argument 135 bat[0].batl = BAT_PHYS_ADDR(phys) | wimgxpp; in setibat() 249 void __init setbat(int index, unsigned long virt, phys_addr_t phys, in setbat() argument 269 bat[1].batl = BAT_PHYS_ADDR(phys) | wimgxpp; in setbat() 289 bat->batl = phys | bl | 0x40; /* V=1 */ in setbat() [all …]
|
/arch/sh/mm/ |
D | cache-sh4.c | 31 static void __flush_cache_one(unsigned long addr, unsigned long phys, 89 static inline void flush_cache_one(unsigned long start, unsigned long phys) in flush_cache_one() argument 102 __flush_cache_one(start, phys, exec_offset); in flush_cache_one() 209 unsigned long address, pfn, phys; in sh4_flush_cache_page() local 220 phys = pfn << PAGE_SHIFT; in sh4_flush_cache_page() 254 (address & shm_align_mask), phys); in sh4_flush_cache_page() 316 static void __flush_cache_one(unsigned long addr, unsigned long phys, in __flush_cache_one() argument 355 p = phys; in __flush_cache_one()
|
/arch/arm/mach-davinci/ |
D | sram.c | 51 phys_addr_t phys = davinci_soc_info.sram_dma; in sram_init() local 64 addr = ioremap(phys, len); in sram_init() 68 phys, len, -1); in sram_init()
|
/arch/arm64/boot/dts/broadcom/stingray/ |
D | stingray-usb.dtsi | 23 phys = <&usbphy0 1>, <&usbphy0 0>; 33 phys = <&usbphy0 0>, <&usbphy0 1>; 57 phys = <&usbphy1 1>, <&usbphy2>, <&usbphy1 0>; 67 phys = <&usbphy2>;
|
/arch/mips/boot/dts/mscc/ |
D | ocelot_pcb120.dts | 80 phys = <&serdes 4 SERDES1G(2)>; 86 phys = <&serdes 5 SERDES1G(5)>; 92 phys = <&serdes 6 SERDES1G(3)>; 98 phys = <&serdes 9 SERDES1G(4)>;
|
/arch/mips/cavium-octeon/ |
D | flash_setup.c | 97 flash_map.phys = region_cfg.s.base << 16; in octeon_flash_probe() 98 flash_map.size = 0x1fc00000 - flash_map.phys; in octeon_flash_probe() 101 flash_map.virt = ioremap(flash_map.phys, flash_map.size); in octeon_flash_probe() 103 "0x%08llx\n", flash_map.size >> 20, flash_map.phys); in octeon_flash_probe()
|