Home
last modified time | relevance | path

Searched refs:order (Results 1 – 25 of 112) sorted by relevance

12345

/arch/arm/lib/
Dlib1funcs.S106 .macro ARM_DIV2_ORDER divisor, order argument
110 clz \order, \divisor
111 rsb \order, \order, #31
117 movhs \order, #16
118 movlo \order, #0
122 addhs \order, \order, #8
126 addhs \order, \order, #4
129 addhi \order, \order, #3
130 addls \order, \order, \divisor, lsr #1
137 .macro ARM_MOD_BODY dividend, divisor, order, spare
[all …]
/arch/ia64/xen/
Dgrant-table.c35 int order; in xen_alloc_vm_area() local
40 order = get_order(size); in xen_alloc_vm_area()
41 virt = __get_free_pages(GFP_KERNEL, order); in xen_alloc_vm_area()
44 nr_pages = 1 << order; in xen_alloc_vm_area()
61 free_pages(virt, order); in xen_alloc_vm_area()
69 unsigned int order = get_order(area->size); in xen_free_vm_area() local
75 for (i = 0; i < (1 << order); i++) { in xen_free_vm_area()
89 free_pages((unsigned long)area->addr, order); in xen_free_vm_area()
/arch/cris/arch-v32/drivers/pci/
Ddma.c22 int order = get_order(size); in dma_alloc_coherent() local
32 ret = (void *)__get_free_pages(gfp, order); in dma_alloc_coherent()
44 int order = get_order(size); in dma_free_coherent() local
46 if (!dma_release_from_coherent(dev, order, vaddr)) in dma_free_coherent()
47 free_pages((unsigned long)vaddr, order); in dma_free_coherent()
/arch/ia64/include/asm/
Dagp.h25 #define alloc_gatt_pages(order) \ argument
26 ((char *)__get_free_pages(GFP_KERNEL, (order)))
27 #define free_gatt_pages(table, order) \ argument
28 free_pages((unsigned long)(table), (order))
Dpage.h159 long order; in get_order() local
161 order = ia64_getf_exp(d); in get_order()
162 order = order - PAGE_SHIFT - 0xffff + 1; in get_order()
163 if (order < 0) in get_order()
164 order = 0; in get_order()
165 return order; in get_order()
/arch/alpha/include/asm/
Dagp.h17 #define alloc_gatt_pages(order) \ argument
18 ((char *)__get_free_pages(GFP_KERNEL, (order)))
19 #define free_gatt_pages(table, order) \ argument
20 free_pages((unsigned long)(table), (order))
/arch/parisc/include/asm/
Dagp.h19 #define alloc_gatt_pages(order) \ argument
20 ((char *)__get_free_pages(GFP_KERNEL, (order)))
21 #define free_gatt_pages(table, order) \ argument
22 free_pages((unsigned long)(table), (order))
/arch/sparc/include/asm/
Dagp.h15 #define alloc_gatt_pages(order) \ argument
16 ((char *)__get_free_pages(GFP_KERNEL, (order)))
17 #define free_gatt_pages(table, order) \ argument
18 free_pages((unsigned long)(table), (order))
/arch/powerpc/include/asm/
Dagp.h16 #define alloc_gatt_pages(order) \ argument
17 ((char *)__get_free_pages(GFP_KERNEL, (order)))
18 #define free_gatt_pages(table, order) \ argument
19 free_pages((unsigned long)(table), (order))
/arch/m68k/kernel/
Ddma.c23 int i, order; in dma_alloc_coherent() local
28 order = get_order(size); in dma_alloc_coherent()
30 page = alloc_pages(flag, order); in dma_alloc_coherent()
35 map = kmalloc(sizeof(struct page *) << order, flag & ~__GFP_DMA); in dma_alloc_coherent()
37 __free_pages(page, order); in dma_alloc_coherent()
40 split_page(page, order); in dma_alloc_coherent()
42 order = 1 << order; in dma_alloc_coherent()
47 for (; i < order; i++) in dma_alloc_coherent()
/arch/x86/include/asm/
Dagp.h30 #define alloc_gatt_pages(order) \ argument
31 ((char *)__get_free_pages(GFP_KERNEL, (order)))
32 #define free_gatt_pages(table, order) \ argument
33 free_pages((unsigned long)(table), (order))
/arch/powerpc/platforms/cell/
Dras.c102 int order; member
110 static int __init cbe_ptcal_enable_on_node(int nid, int order) in cbe_ptcal_enable_on_node() argument
124 area->order = order; in cbe_ptcal_enable_on_node()
125 area->pages = alloc_pages_node(area->nid, GFP_KERNEL, area->order); in cbe_ptcal_enable_on_node()
146 __free_pages(area->pages, area->order); in cbe_ptcal_enable_on_node()
157 int order, found_mic = 0; in cbe_ptcal_enable() local
168 order = get_order(*size); in cbe_ptcal_enable()
173 cbe_ptcal_enable_on_node(of_node_to_nid(np), order); in cbe_ptcal_enable()
188 cbe_ptcal_enable_on_node(*nid, order); in cbe_ptcal_enable()
214 1 << (area->order + PAGE_SHIFT)); in cbe_ptcal_disable()
[all …]
/arch/frv/mm/
Ddma-alloc.c85 int order, err, i; in consistent_alloc() local
92 order = get_order(size); in consistent_alloc()
94 page = __get_free_pages(gfp, order); in consistent_alloc()
103 free_pages(page, order); in consistent_alloc()
115 if (order > 0) { in consistent_alloc()
117 split_page(rpage, order); in consistent_alloc()
/arch/sh/mm/
Dconsistent.c23 int order = get_order(size); in dma_alloc_coherent() local
28 ret = (void *)__get_free_pages(gfp, order); in dma_alloc_coherent()
41 free_pages((unsigned long)ret, order); in dma_alloc_coherent()
45 split_page(pfn_to_page(virt_to_phys(ret) >> PAGE_SHIFT), order); in dma_alloc_coherent()
55 int order = get_order(size); in dma_free_coherent() local
59 if (!dma_release_from_coherent(dev, order, vaddr)) { in dma_free_coherent()
61 for (k = 0; k < (1 << order); k++) in dma_free_coherent()
/arch/s390/mm/
Dpage-states.c55 void arch_free_page(struct page *page, int order) in arch_free_page() argument
61 for (i = 0; i < (1 << order); i++) in arch_free_page()
68 void arch_alloc_page(struct page *page, int order) in arch_alloc_page() argument
74 for (i = 0; i < (1 << order); i++) in arch_alloc_page()
/arch/x86/kernel/
Daperture_64.c142 static u32 __init read_agp(int bus, int slot, int func, int cap, u32 *order) in read_agp() argument
159 old_order = *order; in read_agp()
166 *order = 7 - nbits; in read_agp()
167 if ((int)*order < 0) /* < 32MB */ in read_agp()
168 *order = 0; in read_agp()
180 if (aper + (32ULL<<(20 + *order)) > 0x100000000ULL) { in read_agp()
182 32 << *order, apsizereg); in read_agp()
183 *order = old_order; in read_agp()
187 aper, 32 << *order, apsizereg); in read_agp()
189 if (!aperture_valid(aper, (32*1024*1024) << *order, 32<<20)) in read_agp()
[all …]
/arch/avr32/mm/
Ddma-coherent.c42 int order; in __dma_alloc() local
52 order = get_order(size); in __dma_alloc()
54 page = alloc_pages(gfp, order); in __dma_alloc()
57 split_page(page, order); in __dma_alloc()
72 end = page + (1 << order); in __dma_alloc()
/arch/powerpc/sysdev/
Dmsi_bitmap.c18 int offset, order = get_count_order(num); in msi_bitmap_alloc_hwirqs() local
25 offset = bitmap_find_free_region(bmp->bitmap, bmp->irq_count, order); in msi_bitmap_alloc_hwirqs()
29 num, order, offset); in msi_bitmap_alloc_hwirqs()
38 int order = get_count_order(num); in msi_bitmap_free_hwirqs() local
41 num, order, offset); in msi_bitmap_free_hwirqs()
44 bitmap_release_region(bmp->bitmap, offset, order); in msi_bitmap_free_hwirqs()
/arch/mips/mm/
Dinit.c81 unsigned int order; in setup_zero_pages() local
86 order = 3; in setup_zero_pages()
88 order = 0; in setup_zero_pages()
90 empty_zero_page = __get_free_pages(GFP_KERNEL | __GFP_ZERO, order); in setup_zero_pages()
95 split_page(page, order); in setup_zero_pages()
96 while (page < virt_to_page((void *)(empty_zero_page + (PAGE_SIZE << order)))) { in setup_zero_pages()
101 size = PAGE_SIZE << order; in setup_zero_pages()
104 return 1UL << order; in setup_zero_pages()
495 #define __page_aligned(order) __attribute__((__aligned__(PAGE_SIZE<<order))) argument
/arch/sparc/kernel/
Dpci_sun4v.c132 unsigned long flags, order, first_page, npages, n; in dma_4v_alloc_coherent() local
140 order = get_order(size); in dma_4v_alloc_coherent()
141 if (unlikely(order >= MAX_ORDER)) in dma_4v_alloc_coherent()
147 page = alloc_pages_node(nid, gfp, order); in dma_4v_alloc_coherent()
152 memset((char *)first_page, 0, PAGE_SIZE << order); in dma_4v_alloc_coherent()
195 free_pages(first_page, order); in dma_4v_alloc_coherent()
204 unsigned long flags, order, npages, entry; in dma_4v_free_coherent() local
228 order = get_order(size); in dma_4v_free_coherent()
229 if (order < 10) in dma_4v_free_coherent()
230 free_pages((unsigned long)cpu, order); in dma_4v_free_coherent()
[all …]
Dpci_fire.c232 unsigned long pages, order, i; in pci_fire_msiq_alloc() local
234 order = get_order(512 * 1024); in pci_fire_msiq_alloc()
235 pages = __get_free_pages(GFP_KERNEL | __GFP_COMP, order); in pci_fire_msiq_alloc()
238 order); in pci_fire_msiq_alloc()
241 memset((char *)pages, 0, PAGE_SIZE << order); in pci_fire_msiq_alloc()
264 unsigned long pages, order; in pci_fire_msiq_free() local
266 order = get_order(512 * 1024); in pci_fire_msiq_free()
269 free_pages(pages, order); in pci_fire_msiq_free()
Dioport.c255 int order; in sbus_alloc_consistent() local
266 order = get_order(len_total); in sbus_alloc_consistent()
267 if ((va = __get_free_pages(GFP_KERNEL|__GFP_COMP, order)) == 0) in sbus_alloc_consistent()
295 free_pages(va, order); in sbus_alloc_consistent()
403 int order; in pci_alloc_consistent() local
412 order = get_order(len_total); in pci_alloc_consistent()
413 va = __get_free_pages(GFP_KERNEL, order); in pci_alloc_consistent()
420 free_pages(va, order); in pci_alloc_consistent()
428 free_pages(va, order); in pci_alloc_consistent()
/arch/powerpc/lib/
Ddma-noncoherent.c155 unsigned long order; in __dma_alloc_coherent() local
172 order = get_order(size); in __dma_alloc_coherent()
177 page = alloc_pages(gfp, order); in __dma_alloc_coherent()
199 struct page *end = page + (1 << order); in __dma_alloc_coherent()
201 split_page(page, order); in __dma_alloc_coherent()
231 __free_pages(page, order); in __dma_alloc_coherent()
/arch/um/include/shared/
Dkern_util.h20 extern unsigned long alloc_stack(int order, int atomic);
21 extern void free_stack(unsigned long stack, int order);
/arch/m68k/ifpsp060/src/
DREADME-SRC6 assembler, however it is being included in order to comply with the
9 You don't need to actually assemble these files in order to compile a

12345