Home
last modified time | relevance | path

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

123456

/arch/x86/xen/
Dgrant-table.c26 struct vm_struct *area; member
40 *__shared = shared = gnttab_shared_vm_area.area->addr; in arch_gnttab_map_shared()
62 *__shared = shared = gnttab_status_vm_area.area->addr; in arch_gnttab_map_status()
81 if (shared == gnttab_status_vm_area.area->addr) in arch_gnttab_unmap()
96 struct gnttab_vm_area *area = data; in gnttab_apply() local
98 area->ptes[area->idx++] = pte; in gnttab_apply()
102 static int arch_gnttab_valloc(struct gnttab_vm_area *area, unsigned nr_frames) in arch_gnttab_valloc() argument
104 area->ptes = kmalloc_array(nr_frames, sizeof(*area->ptes), GFP_KERNEL); in arch_gnttab_valloc()
105 if (area->ptes == NULL) in arch_gnttab_valloc()
107 area->area = get_vm_area(PAGE_SIZE * nr_frames, VM_IOREMAP); in arch_gnttab_valloc()
[all …]
/arch/powerpc/platforms/cell/
Dras.c109 struct ptcal_area *area; in cbe_ptcal_enable_on_node() local
116 area = kmalloc(sizeof(*area), GFP_KERNEL); in cbe_ptcal_enable_on_node()
117 if (!area) in cbe_ptcal_enable_on_node()
120 area->nid = nid; in cbe_ptcal_enable_on_node()
121 area->order = order; in cbe_ptcal_enable_on_node()
122 area->pages = __alloc_pages_node(area->nid, in cbe_ptcal_enable_on_node()
124 area->order); in cbe_ptcal_enable_on_node()
126 if (!area->pages) { in cbe_ptcal_enable_on_node()
128 __func__, area->nid); in cbe_ptcal_enable_on_node()
137 addr = __pa(page_address(area->pages)) + (PAGE_SIZE >> 1); in cbe_ptcal_enable_on_node()
[all …]
/arch/powerpc/include/asm/
Drtas-work-area.h68 void rtas_work_area_free(struct rtas_work_area *area);
70 static inline char *rtas_work_area_raw_buf(const struct rtas_work_area *area) in rtas_work_area_raw_buf() argument
72 return area->buf; in rtas_work_area_raw_buf()
75 static inline size_t rtas_work_area_size(const struct rtas_work_area *area) in rtas_work_area_size() argument
77 return area->size; in rtas_work_area_size()
80 static inline phys_addr_t rtas_work_area_phys(const struct rtas_work_area *area) in rtas_work_area_phys() argument
82 return __pa(area->buf); in rtas_work_area_phys()
/arch/um/kernel/
Ddtb.c16 void *area; in uml_dtb_init() local
18 area = uml_load_file(dtb, &size); in uml_dtb_init()
19 if (!area) in uml_dtb_init()
22 if (!early_init_dt_scan(area)) { in uml_dtb_init()
24 memblock_free(area, size); in uml_dtb_init()
Dload_file.c34 void *area; in uml_load_file() local
51 area = memblock_alloc(*size, SMP_CACHE_BYTES); in uml_load_file()
52 if (!area) in uml_load_file()
55 if (__uml_load_file(filename, area, *size)) { in uml_load_file()
56 memblock_free(area, *size); in uml_load_file()
60 return area; in uml_load_file()
Dinitrd.c21 void *area; in read_initrd() local
26 area = uml_load_file(initrd, &size); in read_initrd()
27 if (!area) in read_initrd()
30 initrd_start = (unsigned long) area; in read_initrd()
/arch/powerpc/platforms/pseries/
Drtas-work-area.c83 struct rtas_work_area *area; in __rtas_work_area_alloc() local
107 area = mempool_alloc(&rwa_state.descriptor_pool, GFP_KERNEL); in __rtas_work_area_alloc()
108 area->buf = (char *)addr; in __rtas_work_area_alloc()
109 area->size = size; in __rtas_work_area_alloc()
111 return area; in __rtas_work_area_alloc()
114 void __ref rtas_work_area_free(struct rtas_work_area *area) in rtas_work_area_free() argument
117 rtas_work_area_free_early(area); in rtas_work_area_free()
121 gen_pool_free(rwa_state.gen_pool, (unsigned long)area->buf, area->size); in rtas_work_area_free()
122 mempool_free(area, &rwa_state.descriptor_pool); in rtas_work_area_free()
/arch/sh/boards/mach-sdk7786/
Dfpga.c26 unsigned long area; in sdk7786_fpga_probe() local
34 for (area = PA_AREA0; area < PA_AREA7; area += SZ_64M) { in sdk7786_fpga_probe()
35 base = ioremap(area + FPGA_REGS_OFFSET, FPGA_REGS_SIZE); in sdk7786_fpga_probe()
Dsram.c21 unsigned int area; in fpga_sram_init() local
34 area = (data & LCLASR_FPGA_SEL_MASK) >> LCLASR_FPGA_SEL_SHIFT; in fpga_sram_init()
35 if (unlikely(area == LCLASR_AREA_MASK)) { in fpga_sram_init()
44 phys = (area << 26) + SZ_64M - SZ_4K; in fpga_sram_init()
58 SZ_2K >> 10, phys, phys + SZ_2K - 1, area); in fpga_sram_init()
/arch/loongarch/include/asm/
Dkfence.h20 struct vm_struct *area; in arch_kfence_init_pool() local
22 area = __get_vm_area_caller(KFENCE_POOL_SIZE, VM_IOREMAP, in arch_kfence_init_pool()
25 if (!area) in arch_kfence_init_pool()
28 __kfence_pool = (char *)area->addr; in arch_kfence_init_pool()
33 free_vm_area(area); in arch_kfence_init_pool()
/arch/m68k/mm/
Dkmap.c111 struct vm_struct **p, *tmp, *area; in get_io_area() local
113 area = kmalloc(sizeof(*area), GFP_KERNEL); in get_io_area()
114 if (!area) in get_io_area()
121 kfree(area); in get_io_area()
126 area->addr = (void *)addr; in get_io_area()
127 area->size = size + IO_SIZE; in get_io_area()
128 area->next = *p; in get_io_area()
129 *p = area; in get_io_area()
130 return area; in get_io_area()
160 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()
83 pr_info("ioremap: got virt %p size %lx(%lx)\n", area->addr, size, in sun3_ioremap()
84 area->size); in sun3_ioremap()
88 virt = (unsigned long)area->addr; in sun3_ioremap()
/arch/arm64/mm/
Dpageattr.c73 struct vm_struct *area; in change_memory_common() local
95 area = find_vm_area((void *)addr); in change_memory_common()
96 if (!area || in change_memory_common()
97 end > (unsigned long)kasan_reset_tag(area->addr) + area->size || in change_memory_common()
98 !(area->flags & VM_ALLOC)) in change_memory_common()
110 for (i = 0; i < area->nr_pages; i++) { in change_memory_common()
111 __change_memory_common((u64)page_address(area->pages[i]), in change_memory_common()
/arch/mips/mm/
Dioremap.c51 struct vm_struct *area; in ioremap_prot() local
98 area = get_vm_area(size, VM_IOREMAP); in ioremap_prot()
99 if (!area) in ioremap_prot()
101 vaddr = (unsigned long)area->addr; in ioremap_prot()
106 free_vm_area(area); in ioremap_prot()
/arch/arm/mm/
Dproc-arm740.S64 mcr p15, 0, r0, c6, c3 @ disable area 3~7
71 mcr p15, 0, r0, c6, c0 @ set area 0, default
76 1: add r4, r4, #1 @ area size *= 2
79 orr r0, r0, r4, lsl #1 @ the area register value
81 mcr p15, 0, r0, c6, c1 @ set area 1, RAM
89 1: add r4, r4, #1 @ area size *= 2
92 orr r0, r0, r4, lsl #1 @ the area register value
94 2: mcr p15, 0, r0, c6, c2 @ set area 2, ROM/FLASH
Dioremap.c255 struct vm_struct *area; in __arm_ioremap_pfn_caller() local
297 area = get_vm_area_caller(size, VM_IOREMAP, caller); in __arm_ioremap_pfn_caller()
298 if (!area) in __arm_ioremap_pfn_caller()
300 addr = (unsigned long)area->addr; in __arm_ioremap_pfn_caller()
301 area->phys_addr = paddr; in __arm_ioremap_pfn_caller()
308 area->flags |= VM_ARM_SECTION_MAPPING; in __arm_ioremap_pfn_caller()
311 area->flags |= VM_ARM_SECTION_MAPPING; in __arm_ioremap_pfn_caller()
/arch/sh/drivers/pci/
Dpci-sh7751.c20 unsigned int area) in __area_sdram_check() argument
26 if (((word >> area) & 1) == 0) { in __area_sdram_check()
28 area, word); in __area_sdram_check()
35 if (((word >> (area << 1)) & 0x3) != 0x3) { in __area_sdram_check()
37 area, word); in __area_sdram_check()
/arch/powerpc/lib/
Dcode-patching.c51 struct vm_struct *area; member
104 struct vm_struct *area; in text_area_cpu_up() local
108 area = get_vm_area(PAGE_SIZE, VM_ALLOC); in text_area_cpu_up()
109 if (!area) { in text_area_cpu_up()
116 addr = (unsigned long)area->addr; in text_area_cpu_up()
123 this_cpu_write(cpu_patching_context.area, area); in text_area_cpu_up()
132 free_vm_area(this_cpu_read(cpu_patching_context.area)); in text_area_cpu_down()
133 this_cpu_write(cpu_patching_context.area, NULL); in text_area_cpu_down()
/arch/alpha/kernel/
Dcore_irongate.c315 struct vm_struct *area; in irongate_ioremap() local
379 area = get_vm_area(size, VM_IOREMAP); in irongate_ioremap()
380 if (!area) return NULL; in irongate_ioremap()
382 for(baddr = addr, vaddr = (unsigned long)area->addr; in irongate_ioremap()
392 vfree(area->addr); in irongate_ioremap()
399 vaddr = (unsigned long)area->addr + (addr & ~PAGE_MASK); in irongate_ioremap()
/arch/s390/mm/
Dpageattr.c344 struct vm_struct *area; in change_page_attr_alias() local
356 area = NULL; in change_page_attr_alias()
358 if (!area) in change_page_attr_alias()
359 area = find_vm_area((void *)addr); in change_page_attr_alias()
360 if (!area || !(area->flags & VM_ALLOC)) in change_page_attr_alias()
362 va_start = (unsigned long)area->addr; in change_page_attr_alias()
363 va_end = va_start + area->nr_pages * PAGE_SIZE; in change_page_attr_alias()
365 alias = (unsigned long)page_address(area->pages[offset]); in change_page_attr_alias()
371 area = NULL; in change_page_attr_alias()
/arch/nios2/mm/
Dioremap.c121 struct vm_struct *area; in ioremap() local
159 area = get_vm_area(size, VM_IOREMAP); in ioremap()
160 if (!area) in ioremap()
162 addr = area->addr; in ioremap()
/arch/microblaze/mm/
Dpgtable.c96 struct vm_struct *area; in __ioremap() local
97 area = get_vm_area(size, VM_IOREMAP); in __ioremap()
98 if (area == NULL) in __ioremap()
100 v = (unsigned long) area->addr; in __ioremap()
/arch/powerpc/kernel/
Dpci_64.c122 struct vm_struct *area; in ioremap_phb() local
135 area = __get_vm_area_caller(size, VM_IOREMAP, PHB_IO_BASE, PHB_IO_END, in ioremap_phb()
137 if (!area) in ioremap_phb()
140 addr = (unsigned long)area->addr; in ioremap_phb()
/arch/sh/lib/
D__clear_user.S21 ! Clear area 0
50 ! Clear area 1
75 ! Clear area 2
/arch/arm/kernel/
Diwmmxt.S85 add r0, r10, #TI_IWMMXT_STATE @ get task Concan save area
196 add r2, r0, #TI_IWMMXT_STATE @ get task Concan save area
243 add r2, r0, #TI_IWMMXT_STATE @ get task Concan save area
248 @ current Concan values are in the task save area
281 add r2, r0, #TI_IWMMXT_STATE @ get task Concan save area
318 add r3, r0, #TI_IWMMXT_STATE @ get next task Concan save area
343 add r0, r0, #TI_IWMMXT_STATE @ get task Concan save area

123456