Home
last modified time | relevance | path

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

123456

/linux-2.4.37.9/arch/i386/mm/
Dioremap.c16 unsigned long phys_addr, unsigned long flags) in remap_area_pte() argument
31 set_pte(pte, mk_pte_phys(phys_addr, __pgprot(_PAGE_PRESENT | _PAGE_RW | in remap_area_pte()
34 phys_addr += PAGE_SIZE; in remap_area_pte()
40 unsigned long phys_addr, unsigned long flags) in remap_area_pmd() argument
48 phys_addr -= address; in remap_area_pmd()
55 remap_area_pte(pte, address, end - address, address + phys_addr, flags); in remap_area_pmd()
62 static int remap_area_pages(unsigned long address, unsigned long phys_addr, in remap_area_pages() argument
69 phys_addr -= address; in remap_area_pages()
82 phys_addr + address, flags)) in remap_area_pages()
106 void * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags) in __ioremap() argument
[all …]
/linux-2.4.37.9/arch/parisc/mm/
Dioremap.c17 unsigned long phys_addr, unsigned long flags) in remap_area_pte() argument
32 set_pte(pte, mk_pte_phys(phys_addr, __pgprot(_PAGE_PRESENT | _PAGE_RW | in remap_area_pte()
35 phys_addr += PAGE_SIZE; in remap_area_pte()
41 unsigned long phys_addr, unsigned long flags) in remap_area_pmd() argument
49 phys_addr -= address; in remap_area_pmd()
56 remap_area_pte(pte, address, end - address, address + phys_addr, flags); in remap_area_pmd()
64 static int remap_area_pages(unsigned long address, unsigned long phys_addr, in remap_area_pages() argument
71 phys_addr -= address; in remap_area_pages()
84 phys_addr + address, flags)) in remap_area_pages()
109 void * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags) in __ioremap() argument
[all …]
/linux-2.4.37.9/arch/mips/mm/
Dioremap.c18 phys_t size, phys_t phys_addr, unsigned long flags) in remap_area_pte() argument
35 set_pte(pte, mk_pte_phys(phys_addr, pgprot)); in remap_area_pte()
37 phys_addr += PAGE_SIZE; in remap_area_pte()
43 phys_t size, phys_t phys_addr, unsigned long flags) in remap_area_pmd() argument
51 phys_addr -= address; in remap_area_pmd()
58 remap_area_pte(pte, address, end - address, address + phys_addr, flags); in remap_area_pmd()
65 static int remap_area_pages(unsigned long address, phys_t phys_addr, in remap_area_pages() argument
72 phys_addr -= address; in remap_area_pages()
85 phys_addr + address, flags)) in remap_area_pages()
100 static phys_t def_fixup_bigphys_addr(phys_t phys_addr, phys_t size) in def_fixup_bigphys_addr() argument
[all …]
Dremap.c39 phys_t phys_addr, pgprot_t prot) in remap_pte_range() argument
52 page = virt_to_page(__va(phys_addr)); in remap_pte_range()
54 set_pte(pte, mk_pte_phys(phys_addr, prot)); in remap_pte_range()
57 phys_addr += PAGE_SIZE; in remap_pte_range()
63 phys_t phys_addr, pgprot_t prot) in remap_pmd_range() argument
71 phys_addr -= address; in remap_pmd_range()
76 remap_pte_range(pte, address, end - address, address + phys_addr, prot); in remap_pmd_range()
83 extern phys_t (*fixup_bigphys_addr)(phys_t phys_addr, phys_t size);
85 int remap_page_range_high(unsigned long from, phys_t phys_addr, unsigned long size, pgprot_t prot) in remap_page_range_high() argument
93 phys_addr = fixup_bigphys_addr(phys_addr, size); in remap_page_range_high()
[all …]
/linux-2.4.37.9/arch/x86_64/mm/
Dioremap.c16 unsigned long phys_addr, unsigned long flags) in remap_area_pte() argument
31 set_pte(pte, mk_pte_phys(phys_addr, __pgprot(_PAGE_PRESENT | _PAGE_RW | in remap_area_pte()
34 phys_addr += PAGE_SIZE; in remap_area_pte()
40 unsigned long phys_addr, unsigned long flags) in remap_area_pmd() argument
48 phys_addr -= address; in remap_area_pmd()
55 remap_area_pte(pte, address, end - address, address + phys_addr, flags); in remap_area_pmd()
62 static int remap_area_pages(unsigned long address, unsigned long phys_addr, in remap_area_pages() argument
69 phys_addr -= address; in remap_area_pages()
82 phys_addr + address, flags)) in remap_area_pages()
106 void * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags) in __ioremap() argument
[all …]
/linux-2.4.37.9/arch/cris/mm/
Dioremap.c17 unsigned long phys_addr, unsigned long flags) in remap_area_pte() argument
32 set_pte(pte, mk_pte_phys(phys_addr, __pgprot(_PAGE_PRESENT | __READABLE | in remap_area_pte()
36 phys_addr += PAGE_SIZE; in remap_area_pte()
42 unsigned long phys_addr, unsigned long flags) in remap_area_pmd() argument
50 phys_addr -= address; in remap_area_pmd()
57 remap_area_pte(pte, address, end - address, address + phys_addr, flags); in remap_area_pmd()
64 static int remap_area_pages(unsigned long address, unsigned long phys_addr, in remap_area_pages() argument
71 phys_addr -= address; in remap_area_pages()
84 phys_addr + address, flags)) in remap_area_pages()
108 void * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags) in __ioremap() argument
[all …]
/linux-2.4.37.9/arch/sh/mm/
Dioremap.c17 unsigned long size, unsigned long phys_addr, unsigned long flags) in remap_area_pte() argument
35 set_pte(pte, mk_pte_phys(phys_addr, pgprot)); in remap_area_pte()
37 phys_addr += PAGE_SIZE; in remap_area_pte()
43 unsigned long size, unsigned long phys_addr, unsigned long flags) in remap_area_pmd() argument
51 phys_addr -= address; in remap_area_pmd()
58 remap_area_pte(pte, address, end - address, address + phys_addr, flags); in remap_area_pmd()
65 int remap_area_pages(unsigned long address, unsigned long phys_addr, in remap_area_pages() argument
72 phys_addr -= address; in remap_area_pages()
85 phys_addr + address, flags)) in remap_area_pages()
109 void * p3_ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags) in p3_ioremap() argument
[all …]
/linux-2.4.37.9/arch/s390x/mm/
Dioremap.c21 unsigned long phys_addr, unsigned long flags) in remap_area_pte() argument
36 set_pte(pte, mk_pte_phys(phys_addr, in remap_area_pte()
39 phys_addr += PAGE_SIZE; in remap_area_pte()
45 unsigned long phys_addr, unsigned long flags) in remap_area_pmd() argument
53 phys_addr -= address; in remap_area_pmd()
60 remap_area_pte(pte, address, end - address, address + phys_addr, flags); in remap_area_pmd()
67 static int remap_area_pages(unsigned long address, unsigned long phys_addr, in remap_area_pages() argument
74 phys_addr -= address; in remap_area_pages()
87 phys_addr + address, flags)) in remap_area_pages()
107 void * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags) in __ioremap() argument
[all …]
/linux-2.4.37.9/arch/s390/mm/
Dioremap.c21 unsigned long phys_addr, unsigned long flags) in remap_area_pte() argument
36 set_pte(pte, mk_pte_phys(phys_addr, in remap_area_pte()
39 phys_addr += PAGE_SIZE; in remap_area_pte()
45 unsigned long phys_addr, unsigned long flags) in remap_area_pmd() argument
53 phys_addr -= address; in remap_area_pmd()
60 remap_area_pte(pte, address, end - address, address + phys_addr, flags); in remap_area_pmd()
67 static int remap_area_pages(unsigned long address, unsigned long phys_addr, in remap_area_pages() argument
74 phys_addr -= address; in remap_area_pages()
87 phys_addr + address, flags)) in remap_area_pages()
107 void * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags) in __ioremap() argument
[all …]
/linux-2.4.37.9/arch/ia64/kernel/
Defi.c246 if (md->phys_addr >= start_addr || !md->num_pages) in trim_bottom()
249 num_skipped_pages = (start_addr - md->phys_addr) >> EFI_PAGE_SHIFT; in trim_bottom()
257 md->phys_addr, start_addr - IA64_GRANULE_SIZE); in trim_bottom()
263 md->phys_addr += num_skipped_pages << EFI_PAGE_SHIFT; in trim_bottom()
272 md_end_addr = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT); in trim_top()
285 md->phys_addr, end_addr); in trim_top()
321 granule_addr = md->phys_addr & ~(IA64_GRANULE_SIZE - 1); in efi_memmap_walk()
324 if (first_non_wb_addr < md->phys_addr) { in efi_memmap_walk()
326 granule_addr = md->phys_addr & ~(IA64_GRANULE_SIZE - 1); in efi_memmap_walk()
334 (check_md->phys_addr == first_non_wb_addr)) in efi_memmap_walk()
[all …]
/linux-2.4.37.9/arch/alpha/mm/
Dremap.c7 unsigned long phys_addr, unsigned long flags) in remap_area_pte() argument
23 mk_pte_phys(phys_addr, in remap_area_pte()
27 phys_addr += PAGE_SIZE; in remap_area_pte()
35 unsigned long phys_addr, unsigned long flags) in remap_area_pmd() argument
43 phys_addr -= address; in remap_area_pmd()
51 address + phys_addr, flags); in remap_area_pmd()
59 __alpha_remap_area_pages(unsigned long address, unsigned long phys_addr, in __alpha_remap_area_pages() argument
66 phys_addr -= address; in __alpha_remap_area_pages()
79 phys_addr + address, flags)) in __alpha_remap_area_pages()
/linux-2.4.37.9/arch/sh64/mm/
Dioremap.c32 unsigned long phys_addr, unsigned long flags) in remap_area_pte() argument
42 __FUNCTION__,pte,address,size,phys_addr)); in remap_area_pte()
47 set_pte(pte, mk_pte_phys(phys_addr, __pgprot(_PAGE_PRESENT | in remap_area_pte()
51 phys_addr += PAGE_SIZE; in remap_area_pte()
57 unsigned long phys_addr, unsigned long flags) in remap_area_pmd() argument
68 pmd, address, phys_addr, end)); in remap_area_pmd()
70 phys_addr -= address; in remap_area_pmd()
74 __FUNCTION__, pmd, address, phys_addr, end)); in remap_area_pmd()
80 remap_area_pte(pte, address, end - address, address + phys_addr, flags); in remap_area_pmd()
85 …EMAP(("remap_area_pmd address is 0x%08x phys_addr is 0x%08x end 0x%08x\n", address,phys_addr,end)); in remap_area_pmd()
[all …]
/linux-2.4.37.9/arch/ia64/sn/io/machvec/
Dpci_dma.c150 unsigned long phys_addr; in sn_pci_alloc_consistent() local
176 phys_addr = __pa(cpuaddr); in sn_pci_alloc_consistent()
184 *dma_handle = pciio_dmatrans_addr(vhdl, NULL, phys_addr, size, in sn_pci_alloc_consistent()
209 *dma_handle = (dma_addr_t) pciio_dmamap_addr(dma_map,phys_addr, in sn_pci_alloc_consistent()
266 unsigned long phys_addr; in sn_pci_map_sg() local
287 phys_addr = __pa(sg->address ? sg->address : in sn_pci_map_sg()
295 sg->dma_address = pciio_dmatrans_addr(vhdl, NULL, phys_addr, in sn_pci_map_sg()
305 sg->dma_address = pciio_dmatrans_addr(vhdl, NULL, phys_addr, in sn_pci_map_sg()
334 sg->dma_address = pciio_dmamap_addr(dma_map, phys_addr, sg->length); in sn_pci_map_sg()
407 unsigned long phys_addr; in sn_pci_map_single() local
[all …]
/linux-2.4.37.9/arch/mips/au1000/common/
Dsetup.c69 extern phys_t (*fixup_bigphys_addr)(phys_t phys_addr, phys_t size);
70 static phys_t au1500_fixup_bigphys_addr(phys_t phys_addr, phys_t size);
227 static phys_t au1500_fixup_bigphys_addr(phys_t phys_addr, phys_t size) in au1500_fixup_bigphys_addr() argument
233 if ((phys_addr >> 32) != 0) return phys_addr; in au1500_fixup_bigphys_addr()
236 if ((phys_addr >= pci_start) && ((phys_addr + size) < pci_end)) { in au1500_fixup_bigphys_addr()
237 return (phys_t)((phys_addr - pci_start) + in au1500_fixup_bigphys_addr()
241 return phys_addr; in au1500_fixup_bigphys_addr()
/linux-2.4.37.9/arch/x86_64/kernel/
Dacpi.c79 unsigned long phys_addr, in __acpi_map_table() argument
84 unsigned long mapped_phys = phys_addr; in __acpi_map_table()
85 unsigned long offset = phys_addr & (PAGE_SIZE - 1); in __acpi_map_table()
93 if (!phys_addr || !size) in __acpi_map_table()
96 if (phys_addr < (end_pfn_map << PAGE_SHIFT)) in __acpi_map_table()
97 return __va(phys_addr); in __acpi_map_table()
99 panic("acpi mapping beyond end_pfn: %lx > %lx\n", phys_addr, end_pfn_map<<PAGE_SHIFT); in __acpi_map_table()
131 acpi_parse_mcfg(unsigned long phys_addr, in acpi_parse_mcfg() argument
136 if (!phys_addr || !size) in acpi_parse_mcfg()
139 mcfg = (struct acpi_table_mcfg *) __acpi_map_table(phys_addr, size); in acpi_parse_mcfg()
[all …]
/linux-2.4.37.9/arch/sparc64/kernel/
Dcentral.c70 regp[regc].phys_addr -= rangep[rngc].ot_child_base; in adjust_regs()
71 regp[regc].phys_addr += rangep[rngc].ot_parent_base; in adjust_regs()
149 fhc->fhc_regs.pregs = fpregs[0].phys_addr; in probe_other_fhcs()
150 fhc->fhc_regs.ireg = fpregs[1].phys_addr; in probe_other_fhcs()
151 fhc->fhc_regs.ffregs = fpregs[2].phys_addr; in probe_other_fhcs()
152 fhc->fhc_regs.sregs = fpregs[3].phys_addr; in probe_other_fhcs()
153 fhc->fhc_regs.uregs = fpregs[4].phys_addr; in probe_other_fhcs()
154 fhc->fhc_regs.tregs = fpregs[5].phys_addr; in probe_other_fhcs()
212 ((unsigned long)cregs[0].phys_addr)); in probe_clock_board()
214 ((unsigned long)cregs[1].phys_addr)); in probe_clock_board()
[all …]
Dchmc.c85 static int bank_match(struct bank_info *bp, unsigned long phys_addr) in bank_match() argument
87 unsigned long upper_bits = (phys_addr & PA_UPPER_BITS) >> PA_UPPER_BITS_SHIFT; in bank_match()
88 unsigned long lower_bits = (phys_addr & PA_LOWER_BITS) >> PA_LOWER_BITS_SHIFT; in bank_match()
117 static struct bank_info *find_bank(unsigned long phys_addr) in find_bank() argument
135 if (bank_match(bp, phys_addr)) in find_bank()
147 unsigned long phys_addr, in chmc_getunumber() argument
154 bp = find_bank(phys_addr); in chmc_getunumber()
208 qword = (phys_addr & LINE_ADDR_MSK) / QW_BYTES; in chmc_getunumber()
366 mp->regs = ioremap(p_reg_prop.phys_addr, p_reg_prop.reg_size); in init_one_mctrl()
/linux-2.4.37.9/arch/arm/mm/
Dioremap.c131 void * __ioremap(unsigned long phys_addr, size_t size, unsigned long flags) in __ioremap() argument
138 last_addr = phys_addr + size - 1; in __ioremap()
139 if (!size || last_addr < phys_addr) in __ioremap()
145 offset = phys_addr & ~PAGE_MASK; in __ioremap()
146 phys_addr &= PAGE_MASK; in __ioremap()
147 size = PAGE_ALIGN(last_addr) - phys_addr; in __ioremap()
156 if (remap_area_pages(VMALLOC_VMADDR(addr), phys_addr >> PAGE_SHIFT, size, flags)) { in __ioremap()
/linux-2.4.37.9/arch/sparc/kernel/
Dsun4m_irq.c260 cnt_regs[4].phys_addr = cnt_regs[reg_count-1].phys_addr; in sun4m_init_timers()
264 cnt_regs[obio_node].phys_addr = in sun4m_init_timers()
265 cnt_regs[obio_node-1].phys_addr + PAGE_SIZE; in sun4m_init_timers()
273 r.start = cnt_regs[0].phys_addr; in sun4m_init_timers()
279 r.start = cnt_regs[4].phys_addr; in sun4m_init_timers()
344 int_regs[4].phys_addr = int_regs[num_regs-1].phys_addr; in sun4m_init_IRQ()
348 int_regs[ie_node].phys_addr = int_regs[ie_node-1].phys_addr + PAGE_SIZE; in sun4m_init_IRQ()
356 r.start = int_regs[0].phys_addr; in sun4m_init_IRQ()
362 r.start = int_regs[4].phys_addr; in sun4m_init_IRQ()
Dauxio.c60 r.start = auxregs[0].phys_addr; in auxio_probe()
61 r.end = auxregs[0].phys_addr + auxregs[0].reg_size - 1; in auxio_probe()
64 if((((unsigned long) auxregs[0].phys_addr) & 3) == 3 || in auxio_probe()
128 r.start = regs.phys_addr; in auxio_power_probe()
129 r.end = regs.phys_addr + regs.reg_size - 1; in auxio_power_probe()
/linux-2.4.37.9/drivers/acpi/
Dnuma.c77 acpi_parse_slit (unsigned long phys_addr, unsigned long size) in acpi_parse_slit() argument
82 if (!phys_addr || !size) in acpi_parse_slit()
85 slit = (struct acpi_table_slit *) __va(phys_addr); in acpi_parse_slit()
135 acpi_parse_srat (unsigned long phys_addr, unsigned long size) in acpi_parse_srat() argument
139 if (!phys_addr || !size) in acpi_parse_srat()
142 srat = (struct acpi_table_srat *) __va(phys_addr); in acpi_parse_srat()
/linux-2.4.37.9/arch/m68k/apollo/
Ddma.c19 unsigned short dma_map_page(unsigned long phys_addr,int count,int type) { in dma_map_page() argument
21 unsigned long page_aligned_addr=phys_addr & (~((1<<12)-1)); in dma_map_page()
29 …printk("phys_addr: %x, page_aligned_addr: %x, start_map_addr: %x\n",phys_addr,page_aligned_addr,st… in dma_map_page()
/linux-2.4.37.9/include/asm-sh64/
Dio.h133 extern void * __ioremap(unsigned long phys_addr, unsigned long size,
136 extern __inline__ void * ioremap(unsigned long phys_addr, unsigned long size) in ioremap() argument
138 return __ioremap(phys_addr, size, 1); in ioremap()
141 extern __inline__ void * ioremap_nocache (unsigned long phys_addr, unsigned long size) in ioremap_nocache() argument
143 return __ioremap(phys_addr, size, 0); in ioremap_nocache()
/linux-2.4.37.9/arch/sh/kernel/
Dpci-sd0001.c50 int remap_area_pages(unsigned long address, unsigned long phys_addr,
553 void *sd0001_ioremap(unsigned long phys_addr, unsigned long size) in sd0001_ioremap() argument
557 if ((phys_addr & 0xFFF00000) == ((phys_addr+size) & 0xFFF00000)) { in sd0001_ioremap()
560 return (void *)(SD0001_MEM_BASE-(PCIBIOS_MIN_MEM&0xfc000000)+unmunge(phys_addr)); in sd0001_ioremap()
571 offset = phys_addr & ~PAGE_MASK; in sd0001_ioremap()
572 phys_addr &= PAGE_MASK; in sd0001_ioremap()
573 size = PAGE_ALIGN(phys_addr + size - 1) - phys_addr; in sd0001_ioremap()
580 phys_addr += SD0001_MEM_BASE; in sd0001_ioremap()
584 this_size = 0x100000 - (phys_addr & 0xfffff); in sd0001_ioremap()
588 unmunge(phys_addr), this_size, in sd0001_ioremap()
[all …]
/linux-2.4.37.9/drivers/acpi/tables/
Dtbxfroot.c410 u64 phys_addr; in acpi_tb_find_rsdp() local
438 phys_addr = ACPI_LO_RSDP_WINDOW_BASE; in acpi_tb_find_rsdp()
439 phys_addr += ACPI_PTR_DIFF (mem_rover,table_ptr); in acpi_tb_find_rsdp()
441 table_info->physical_address = phys_addr; in acpi_tb_find_rsdp()
462 phys_addr = ACPI_HI_RSDP_WINDOW_BASE; in acpi_tb_find_rsdp()
463 phys_addr += ACPI_PTR_DIFF (mem_rover, table_ptr); in acpi_tb_find_rsdp()
465 table_info->physical_address = phys_addr; in acpi_tb_find_rsdp()

123456