Home
last modified time | relevance | path

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

1234

/arch/arm/plat-s5p/
Ddev-mfc.c47 struct s5p_mfc_reserved_mem *area = &s5p_mfc_mem[i]; in s5p_mfc_reserve_mem() local
48 if (memblock_remove(area->base, area->size)) { in s5p_mfc_reserve_mem()
50 area->size, (unsigned long) area->base); in s5p_mfc_reserve_mem()
51 area->base = 0; in s5p_mfc_reserve_mem()
61 struct s5p_mfc_reserved_mem *area = &s5p_mfc_mem[i]; in s5p_mfc_memory_init() local
62 if (!area->base) in s5p_mfc_memory_init()
65 if (dma_declare_coherent_memory(area->dev, area->base, in s5p_mfc_memory_init()
66 area->base, area->size, in s5p_mfc_memory_init()
69 area->size, (unsigned long) area->base); in s5p_mfc_memory_init()
/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_exact_node(area->nid, GFP_KERNEL|GFP_THISNODE, in cbe_ptcal_enable_on_node()
127 area->order); in cbe_ptcal_enable_on_node()
129 if (!area->pages) { in cbe_ptcal_enable_on_node()
131 __func__, area->nid); in cbe_ptcal_enable_on_node()
140 addr = __pa(page_address(area->pages)) + (PAGE_SIZE >> 1); in cbe_ptcal_enable_on_node()
[all …]
/arch/powerpc/include/asm/
Dexception-64s.h64 #define __EXCEPTION_PROLOG_1(area, extra, vec) \ argument
66 std r9,area+EX_R9(r13); /* save r9 - r12 */ \
67 std r10,area+EX_R10(r13); \
70 std r10,area+EX_CFAR(r13); \
74 std r11,area+EX_R11(r13); \
75 std r12,area+EX_R12(r13); \
77 std r10,area+EX_R13(r13)
78 #define EXCEPTION_PROLOG_1(area, extra, vec) \ argument
79 __EXCEPTION_PROLOG_1(area, extra, vec)
94 #define EXCEPTION_PROLOG_PSERIES(area, label, h, extra, vec) \ argument
[all …]
/arch/s390/mm/
Dmmap.c125 unsigned long area; in s390_get_unmapped_area() local
128 area = arch_get_unmapped_area(filp, addr, len, pgoff, flags); in s390_get_unmapped_area()
129 if (!(area & ~PAGE_MASK)) in s390_get_unmapped_area()
130 return area; in s390_get_unmapped_area()
131 if (area == -ENOMEM && !is_compat_task() && TASK_SIZE < (1UL << 53)) { in s390_get_unmapped_area()
137 area = arch_get_unmapped_area(filp, addr, len, pgoff, flags); in s390_get_unmapped_area()
139 return area; in s390_get_unmapped_area()
148 unsigned long area; in s390_get_unmapped_area_topdown() local
151 area = arch_get_unmapped_area_topdown(filp, addr, len, pgoff, flags); in s390_get_unmapped_area_topdown()
152 if (!(area & ~PAGE_MASK)) in s390_get_unmapped_area_topdown()
[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/um/kernel/
Dinitrd.c19 void *area; in read_initrd() local
39 area = alloc_bootmem(size); in read_initrd()
40 if (area == NULL) in read_initrd()
43 if (load_initrd(initrd, area, size) == -1) in read_initrd()
46 initrd_start = (unsigned long) area; in read_initrd()
/arch/arm/mm/
Dioremap.c199 struct vm_struct * area; in __arm_ioremap_pfn_caller() local
222 for (area = vmlist; area; area = area->next) { in __arm_ioremap_pfn_caller()
225 if (!(area->flags & VM_ARM_STATIC_MAPPING)) in __arm_ioremap_pfn_caller()
227 if ((area->flags & VM_ARM_MTYPE_MASK) != VM_ARM_MTYPE(mtype)) in __arm_ioremap_pfn_caller()
229 if (__phys_to_pfn(area->phys_addr) > pfn || in __arm_ioremap_pfn_caller()
230 __pfn_to_phys(pfn) + size-1 > area->phys_addr + area->size-1) in __arm_ioremap_pfn_caller()
234 addr = (unsigned long)area->addr; in __arm_ioremap_pfn_caller()
235 addr += __pfn_to_phys(pfn) - area->phys_addr; in __arm_ioremap_pfn_caller()
246 area = get_vm_area_caller(size, VM_IOREMAP, caller); in __arm_ioremap_pfn_caller()
247 if (!area) in __arm_ioremap_pfn_caller()
[all …]
Dproc-arm740.S70 mcr p15, 0, r0, c6, c3 @ disable area 3~7
77 mcr p15, 0, r0, c6, c0 @ set area 0, default
82 1: add r2, r2, #1 @ area size *= 2
85 orr r0, r0, r2, lsl #1 @ the area register value
87 mcr p15, 0, r0, c6, c1 @ set area 1, RAM
92 1: add r2, r2, #1 @ area size *= 2
95 orr r0, r0, r2, lsl #1 @ the area register value
97 mcr p15, 0, r0, c6, c2 @ set area 2, ROM/FLASH
/arch/x86/xen/
Dgrant-table.c87 struct vm_struct *area = in arch_gnttab_map_shared() local
89 BUG_ON(area == NULL); in arch_gnttab_map_shared()
90 shared = area->addr; in arch_gnttab_map_shared()
110 struct vm_struct *area = in arch_gnttab_map_status() local
112 BUG_ON(area == NULL); in arch_gnttab_map_status()
113 shared = area->addr; in arch_gnttab_map_status()
/arch/m68k/mm/
Dkmap.c59 struct vm_struct **p, *tmp, *area; in get_io_area() local
61 area = kmalloc(sizeof(*area), GFP_KERNEL); in get_io_area()
62 if (!area) in get_io_area()
69 kfree(area); in get_io_area()
74 area->addr = (void *)addr; in get_io_area()
75 area->size = size + IO_SIZE; in get_io_area()
76 area->next = *p; in get_io_area()
77 *p = area; in get_io_area()
78 return area; in get_io_area()
107 struct vm_struct *area; in __ioremap() local
[all …]
Dsun3kmap.c66 struct vm_struct *area; in sun3_ioremap() local
79 if((area = get_vm_area(size, VM_IOREMAP)) == NULL) in sun3_ioremap()
84 area->addr, size, area->size); in sun3_ioremap()
88 virt = (unsigned long)area->addr; in sun3_ioremap()
/arch/avr32/mm/
Dioremap.c26 struct vm_struct *area; in __ioremap() local
62 area = get_vm_area(size, VM_IOREMAP); in __ioremap()
63 if (!area) in __ioremap()
65 area->phys_addr = phys_addr; in __ioremap()
66 addr = (unsigned long )area->addr; in __ioremap()
/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/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/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/cris/mm/
Dioremap.c33 struct vm_struct * area; in __ioremap_prot() local
51 area = get_vm_area(size, VM_IOREMAP); in __ioremap_prot()
52 if (!area) in __ioremap_prot()
54 addr = (void __iomem *)area->addr; in __ioremap_prot()
/arch/ia64/mm/
Dioremap.c34 struct vm_struct *area; in ioremap() local
81 area = get_vm_area(size, VM_IOREMAP); in ioremap()
82 if (!area) in ioremap()
85 area->phys_addr = phys_addr; in ioremap()
86 addr = (void __iomem *) area->addr; in ioremap()
/arch/tile/kernel/
Dmodule.c51 struct vm_struct *area; in module_alloc() local
67 area = __get_vm_area(size, VM_ALLOC, MEM_MODULE_START, MEM_MODULE_END); in module_alloc()
68 if (!area) in module_alloc()
70 area->nr_pages = npages; in module_alloc()
71 area->pages = pages; in module_alloc()
73 if (map_vm_area(area, prot_rwx, &pages)) { in module_alloc()
74 vunmap(area->addr); in module_alloc()
78 return area->addr; in module_alloc()
/arch/hexagon/mm/
Dioremap.c28 struct vm_struct *area; in ioremap_nocache() local
42 area = get_vm_area(size, VM_IOREMAP); in ioremap_nocache()
43 addr = (unsigned long)area->addr; in ioremap_nocache()
/arch/parisc/mm/
Dioremap.c30 struct vm_struct *area; in __ioremap() local
79 area = get_vm_area(size, VM_IOREMAP); in __ioremap()
80 if (!area) in __ioremap()
83 addr = (void __iomem *) area->addr; in __ioremap()
/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/unicore32/kernel/
Dmodule.c27 struct vm_struct *area; in module_alloc() local
33 area = __get_vm_area(size, VM_ALLOC, MODULES_VADDR, MODULES_END); in module_alloc()
34 if (!area) in module_alloc()
37 return __vmalloc_area(area, GFP_KERNEL, PAGE_KERNEL_EXEC); in module_alloc()
/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()
/arch/powerpc/kernel/
Dpci_64.c131 struct vm_struct *area; in pcibios_map_phb_io_space() local
152 area = __get_vm_area(size_page, 0, PHB_IO_BASE, PHB_IO_END); in pcibios_map_phb_io_space()
153 if (area == NULL) in pcibios_map_phb_io_space()
155 hose->io_base_alloc = area->addr; in pcibios_map_phb_io_space()
156 hose->io_base_virt = (void __iomem *)(area->addr + in pcibios_map_phb_io_space()
166 if (__ioremap_at(phys_page, area->addr, size_page, in pcibios_map_phb_io_space()

1234