Home
last modified time | relevance | path

Searched refs:area (Results 1 – 25 of 126) sorted by relevance

123456

/arch/powerpc/platforms/cell/
Dras.c113 struct ptcal_area *area; in cbe_ptcal_enable_on_node() local
120 area = kmalloc(sizeof(*area), GFP_KERNEL); in cbe_ptcal_enable_on_node()
121 if (!area) in cbe_ptcal_enable_on_node()
124 area->nid = nid; in cbe_ptcal_enable_on_node()
125 area->order = order; in cbe_ptcal_enable_on_node()
126 area->pages = __alloc_pages_node(area->nid, in cbe_ptcal_enable_on_node()
128 area->order); in cbe_ptcal_enable_on_node()
130 if (!area->pages) { in cbe_ptcal_enable_on_node()
132 __func__, area->nid); in cbe_ptcal_enable_on_node()
141 addr = __pa(page_address(area->pages)) + (PAGE_SIZE >> 1); in cbe_ptcal_enable_on_node()
[all …]
/arch/x86/xen/
Dgrant-table.c50 struct vm_struct *area; member
63 *__shared = shared = gnttab_shared_vm_area.area->addr; in arch_gnttab_map_shared()
90 static int arch_gnttab_valloc(struct gnttab_vm_area *area, unsigned nr_frames) in arch_gnttab_valloc() argument
92 area->ptes = kmalloc_array(nr_frames, sizeof(*area->ptes), GFP_KERNEL); in arch_gnttab_valloc()
93 if (area->ptes == NULL) in arch_gnttab_valloc()
96 area->area = alloc_vm_area(PAGE_SIZE * nr_frames, area->ptes); in arch_gnttab_valloc()
97 if (area->area == NULL) { in arch_gnttab_valloc()
98 kfree(area->ptes); in arch_gnttab_valloc()
/arch/powerpc/include/asm/
Dexception-64s.h179 #define EXCEPTION_RELON_PROLOG_PSERIES(area, label, h, extra, vec) \ argument
180 EXCEPTION_PROLOG_0(area); \
181 EXCEPTION_PROLOG_1(area, extra, vec); \
218 #define SAVE_CTR(reg, area) mfctr reg ; std reg,area+EX_CTR(r13) argument
219 #define GET_CTR(reg, area) ld reg,area+EX_CTR(r13) argument
220 #define RESTORE_CTR(reg, area) ld reg,area+EX_CTR(r13) ; mtctr reg argument
223 #define SAVE_CTR(reg, area) argument
224 #define GET_CTR(reg, area) mfctr reg argument
225 #define RESTORE_CTR(reg, area) argument
232 #define SAVE_PPR(area, ra, rb) \ argument
[all …]
/arch/sh/boards/mach-sdk7786/
Dfpga.c29 unsigned long area; in sdk7786_fpga_probe() local
37 for (area = PA_AREA0; area < PA_AREA7; area += SZ_64M) { in sdk7786_fpga_probe()
38 base = ioremap_nocache(area + FPGA_REGS_OFFSET, FPGA_REGS_SIZE); in sdk7786_fpga_probe()
Dsram.c24 unsigned int area; in fpga_sram_init() local
37 area = (data & LCLASR_FPGA_SEL_MASK) >> LCLASR_FPGA_SEL_SHIFT; in fpga_sram_init()
38 if (unlikely(area == LCLASR_AREA_MASK)) { in fpga_sram_init()
47 phys = (area << 26) + SZ_64M - SZ_4K; in fpga_sram_init()
61 SZ_2K >> 10, phys, phys + SZ_2K - 1, area); in fpga_sram_init()
/arch/m68k/mm/
Dkmap.c60 struct vm_struct **p, *tmp, *area; in get_io_area() local
62 area = kmalloc(sizeof(*area), GFP_KERNEL); in get_io_area()
63 if (!area) in get_io_area()
70 kfree(area); in get_io_area()
75 area->addr = (void *)addr; in get_io_area()
76 area->size = size + IO_SIZE; in get_io_area()
77 area->next = *p; in get_io_area()
78 *p = area; in get_io_area()
79 return area; in get_io_area()
109 struct vm_struct *area; in __ioremap() local
[all …]
Dsun3kmap.c67 struct vm_struct *area; in sun3_ioremap() local
80 if((area = get_vm_area(size, VM_IOREMAP)) == NULL) in sun3_ioremap()
84 pr_info("ioremap: got virt %p size %lx(%lx)\n", area->addr, size, in sun3_ioremap()
85 area->size); in sun3_ioremap()
89 virt = (unsigned long)area->addr; in sun3_ioremap()
/arch/xtensa/mm/
Dioremap.c22 struct vm_struct *area; in xtensa_ioremap() local
32 area = get_vm_area(size, VM_IOREMAP); in xtensa_ioremap()
33 if (!area) in xtensa_ioremap()
36 vaddr = (unsigned long)area->addr; in xtensa_ioremap()
37 area->phys_addr = paddr; in xtensa_ioremap()
/arch/metag/mm/
Dioremap.c33 struct vm_struct *area; in __ioremap() local
60 area = get_vm_area(size, VM_IOREMAP); in __ioremap()
61 if (!area) in __ioremap()
63 area->phys_addr = phys_addr; in __ioremap()
64 addr = (unsigned long) area->addr; in __ioremap()
/arch/sh/mm/
Dioremap.c41 struct vm_struct *area; in __ioremap_caller() local
74 area = get_vm_area_caller(size, VM_IOREMAP, caller); in __ioremap_caller()
75 if (!area) in __ioremap_caller()
77 area->phys_addr = phys_addr; in __ioremap_caller()
78 orig_addr = addr = (unsigned long)area->addr; in __ioremap_caller()
/arch/m32r/mm/
Dioremap.c46 struct vm_struct * area; in __ioremap() local
90 area = get_vm_area(size, VM_IOREMAP); in __ioremap()
91 if (!area) in __ioremap()
93 area->phys_addr = phys_addr; in __ioremap()
94 addr = (void __iomem *) area->addr; in __ioremap()
/arch/arc/mm/
Dioremap.c60 struct vm_struct *area; in ioremap_prot() local
84 area = get_vm_area(size, VM_IOREMAP); in ioremap_prot()
85 if (!area) in ioremap_prot()
87 area->phys_addr = paddr; in ioremap_prot()
88 vaddr = (unsigned long)area->addr; in ioremap_prot()
/arch/openrisc/mm/
Dioremap.c47 struct vm_struct *area = NULL; in __ioremap() local
62 area = get_vm_area(size, VM_IOREMAP); in __ioremap()
63 if (!area) in __ioremap()
65 v = (unsigned long)area->addr; in __ioremap()
75 vfree(area->addr); in __ioremap()
/arch/arm64/mm/
Dioremap.c39 struct vm_struct *area; in __ioremap_caller() local
61 area = get_vm_area_caller(size, VM_IOREMAP, caller); in __ioremap_caller()
62 if (!area) in __ioremap_caller()
64 addr = (unsigned long)area->addr; in __ioremap_caller()
65 area->phys_addr = phys_addr; in __ioremap_caller()
Dpageattr.c66 struct vm_struct *area; in change_memory_common() local
87 area = find_vm_area((void *)addr); in change_memory_common()
88 if (!area || in change_memory_common()
89 end > (unsigned long)area->addr + area->size || in change_memory_common()
90 !(area->flags & VM_ALLOC)) in change_memory_common()
/arch/um/kernel/
Dinitrd.c19 void *area; in read_initrd() local
39 area = alloc_bootmem(size); in read_initrd()
41 if (load_initrd(initrd, area, size) == -1) in read_initrd()
44 initrd_start = (unsigned long) area; in read_initrd()
/arch/tile/kernel/
Dmodule.c41 struct vm_struct *area; in module_alloc() local
55 area = __get_vm_area(size, VM_ALLOC, MEM_MODULE_START, MEM_MODULE_END); in module_alloc()
56 if (!area) in module_alloc()
58 area->nr_pages = npages; in module_alloc()
59 area->pages = pages; in module_alloc()
61 if (map_vm_area(area, prot_rwx, pages)) { in module_alloc()
62 vunmap(area->addr); in module_alloc()
66 return area->addr; in module_alloc()
/arch/cris/mm/
Dioremap.c34 struct vm_struct * area; in __ioremap_prot() local
52 area = get_vm_area(size, VM_IOREMAP); in __ioremap_prot()
53 if (!area) in __ioremap_prot()
55 addr = (void __iomem *)area->addr; in __ioremap_prot()
/arch/ia64/mm/
Dioremap.c38 struct vm_struct *area; in ioremap() local
85 area = get_vm_area(size, VM_IOREMAP); in ioremap()
86 if (!area) in ioremap()
89 area->phys_addr = phys_addr; in ioremap()
90 addr = (void __iomem *) area->addr; in ioremap()
/arch/parisc/mm/
Dioremap.c31 struct vm_struct *area; in __ioremap() local
80 area = get_vm_area(size, VM_IOREMAP); in __ioremap()
81 if (!area) in __ioremap()
84 addr = (void __iomem *) area->addr; in __ioremap()
/arch/hexagon/mm/
Dioremap.c29 struct vm_struct *area; in ioremap_nocache() local
43 area = get_vm_area(size, VM_IOREMAP); in ioremap_nocache()
44 addr = (unsigned long)area->addr; in ioremap_nocache()
/arch/arm/mm/
Dproc-arm740.S68 mcr p15, 0, r0, c6, c3 @ disable area 3~7
75 mcr p15, 0, r0, c6, c0 @ set area 0, default
80 1: add r4, r4, #1 @ area size *= 2
83 orr r0, r0, r4, lsl #1 @ the area register value
85 mcr p15, 0, r0, c6, c1 @ set area 1, RAM
93 1: add r4, r4, #1 @ area size *= 2
96 orr r0, r0, r4, lsl #1 @ the area register value
98 2: mcr p15, 0, r0, c6, c2 @ set area 2, ROM/FLASH
/arch/mn10300/mm/
Dcache-flush-by-reg.S60 # wait for busy bit of area purge
70 # area purge
77 # wait for busy bit of area purge
138 # wait for busy bit of area purge
153 # area purge
158 # wait for busy bit of area purge
196 # wait for busy bit of area purge & invalidate
206 # area purge & invalidate
210 # wait for busy bit of area purge & invalidate
271 # wait for busy bit of area purge & invalidate
[all …]
/arch/powerpc/kernel/
Dpci_64.c126 struct vm_struct *area; in pcibios_map_phb_io_space() local
147 area = __get_vm_area(size_page, 0, PHB_IO_BASE, PHB_IO_END); in pcibios_map_phb_io_space()
148 if (area == NULL) in pcibios_map_phb_io_space()
150 hose->io_base_alloc = area->addr; in pcibios_map_phb_io_space()
151 hose->io_base_virt = (void __iomem *)(area->addr + in pcibios_map_phb_io_space()
161 if (__ioremap_at(phys_page, area->addr, size_page, in pcibios_map_phb_io_space()
/arch/frv/mm/
Ddma-alloc.c83 struct vm_struct *area; in consistent_alloc() local
102 area = get_vm_area(size, VM_ALLOC); in consistent_alloc()
103 if (area == 0) { in consistent_alloc()
107 va = VMALLOC_VMADDR(area->addr); in consistent_alloc()

123456