Home
last modified time | relevance | path

Searched refs:get_order (Results 1 – 25 of 55) sorted by relevance

123

/arch/m68knommu/kernel/
Ddma.c23 ret = (void *)__get_free_pages(gfp, get_order(size)); in dma_alloc_coherent()
35 free_pages((unsigned long)vaddr, get_order(size)); in dma_free_coherent()
/arch/cris/arch-v32/drivers/pci/
Ddma.c22 int order = get_order(size); in dma_alloc_coherent()
44 int order = get_order(size); in dma_free_coherent()
/arch/mn10300/mm/
Ddma-alloc.c31 addr = __get_free_pages(gfp, get_order(size)); in dma_alloc_coherent()
54 free_pages(addr, get_order(size)); in dma_free_coherent()
/arch/x86/kernel/
Damd_iommu_init.c178 get_order(amd_iommu_last_bdf * entry_size); in tbl_size()
415 get_order(CMD_BUFFER_SIZE)); in alloc_command_buffer()
440 get_order(iommu->cmd_buf_size)); in free_command_buffer()
448 get_order(EVT_BUFFER_SIZE)); in alloc_event_buffer()
464 free_pages((unsigned long)iommu->evt_buf, get_order(EVT_BUFFER_SIZE)); in free_event_buffer()
1065 get_order(dev_table_size)); in amd_iommu_init()
1074 get_order(alias_table_size)); in amd_iommu_init()
1081 get_order(rlookup_table_size)); in amd_iommu_init()
1090 get_order(rlookup_table_size)); in amd_iommu_init()
1096 get_order(MAX_DOMAIN_ID/8)); in amd_iommu_init()
[all …]
Dpci-gart_64.c499 page = alloc_pages(flag | __GFP_ZERO, get_order(size)); in gart_alloc_coherent()
503 align_mask = (1UL << get_order(size)) - 1; in gart_alloc_coherent()
512 __free_pages(page, get_order(size)); in gart_alloc_coherent()
525 free_pages((unsigned long)vaddr, get_order(size)); in gart_free_coherent()
679 get_order(gatt_size)); in init_k8_gatt()
794 get_order(iommu_pages/8)); in gart_iommu_init()
801 get_order(iommu_pages*sizeof(void *))); in gart_iommu_init()
Dpci-dma.c139 page = alloc_pages_node(dev_to_node(dev), flag, get_order(size)); in dma_generic_alloc_coherent()
145 __free_pages(page, get_order(size)); in dma_generic_alloc_coherent()
Dpci-nommu.c78 free_pages((unsigned long)vaddr, get_order(size)); in nommu_free_coherent()
/arch/mips/include/asm/mach-jazz/
Dfloppy.h110 mem = __get_dma_pages(GFP_KERNEL, get_order(size)); in fd_dma_mem_alloc()
121 free_pages(addr, get_order(size)); in fd_dma_mem_free()
/arch/mips/include/asm/mach-generic/
Dfloppy.h121 mem = __get_dma_pages(GFP_KERNEL, get_order(size)); in fd_dma_mem_alloc()
128 free_pages(addr, get_order(size)); in fd_dma_mem_free()
/arch/xtensa/kernel/
Dpci-dma.c43 ret = (unsigned long)__get_free_pages(flag, get_order(size)); in dma_alloc_coherent()
73 free_pages(addr, get_order(size)); in dma_free_coherent()
/arch/m68k/atari/
Dstram.c193 addr = (void *)__get_dma_pages(GFP_KERNEL, get_order(size)); in atari_stram_alloc()
204 free_pages((unsigned long)addr, get_order(size)); in atari_stram_alloc()
233 get_order(block->size)); in atari_stram_free()
234 free_pages((unsigned long)addr, get_order(block->size)); in atari_stram_free()
/arch/ia64/xen/
Dgrant-table.c40 order = get_order(size); in xen_alloc_vm_area()
69 unsigned int order = get_order(area->size); in xen_free_vm_area()
/arch/sh/mm/
Dconsistent.c23 int order = get_order(size); in dma_alloc_coherent()
55 int order = get_order(size); in dma_free_coherent()
/arch/ia64/sn/pci/
Dpci_dma.c94 struct page *p = alloc_pages_node(node, flags, get_order(size)); in sn_dma_alloc_coherent()
101 cpuaddr = (void *)__get_free_pages(flags, get_order(size)); in sn_dma_alloc_coherent()
121 free_pages((unsigned long)cpuaddr, get_order(size)); in sn_dma_alloc_coherent()
148 free_pages((unsigned long)cpu_addr, get_order(size)); in sn_dma_free_coherent()
/arch/mips/mm/
Ddma-default.c75 ret = (void *) __get_free_pages(gfp, get_order(size)); in dma_alloc_noncoherent()
94 ret = (void *) __get_free_pages(gfp, get_order(size)); in dma_alloc_coherent()
115 free_pages((unsigned long) vaddr, get_order(size)); in dma_free_noncoherent()
130 free_pages(addr, get_order(size)); in dma_free_coherent()
/arch/powerpc/kernel/
Ddma.c47 page = alloc_pages_node(node, flag, get_order(size)); in dma_direct_alloc_coherent()
64 free_pages((unsigned long)vaddr, get_order(size)); in dma_direct_free_coherent()
Diommu.c514 page = alloc_pages_node(nid, GFP_ATOMIC, get_order(sz)); in iommu_init_table()
560 order = get_order(bitmap_sz); in iommu_free_table()
639 order = get_order(size); in iommu_alloc_coherent()
684 free_pages((unsigned long)vaddr, get_order(size)); in iommu_free_coherent()
/arch/m68k/sun3/
Dsun3dvma.c348 if((kaddr = __get_free_pages(GFP_ATOMIC, get_order(len))) == 0) in dvma_malloc_align()
352 free_pages(kaddr, get_order(len)); in dvma_malloc_align()
360 free_pages(kaddr, get_order(len)); in dvma_malloc_align()
/arch/parisc/kernel/
Dpci-dma.c392 get_order(pcxl_res_size)); in pcxl_dma_init()
417 order = get_order(size); in pa11_dma_alloc_consistent()
441 order = get_order(size); in pa11_dma_free_consistent()
564 addr = (void *)__get_free_pages(flag, get_order(size)); in pa11_dma_alloc_noncoherent()
574 free_pages((unsigned long)vaddr, get_order(size)); in pa11_dma_free_noncoherent()
/arch/parisc/include/asm/
Dfloppy.h168 return __get_dma_pages(GFP_KERNEL, get_order(size)); in dma_mem_alloc()
185 free_pages(addr, get_order(size)); in _fd_dma_mem_free()
/arch/x86/include/asm/
Dfloppy.h156 return __get_dma_pages(GFP_KERNEL|__GFP_NORETRY, get_order(size)); in dma_mem_alloc()
173 free_pages(addr, get_order(size)); in _fd_dma_mem_free()
/arch/avr32/include/asm/
Dpage.h49 static inline int get_order(unsigned long size) in get_order() function
/arch/sparc/kernel/
Dioport.c266 order = get_order(len_total); in sbus_alloc_consistent()
332 __free_pages(pgv, get_order(n)); in sbus_free_consistent()
412 order = get_order(len_total); in pci_alloc_consistent()
482 free_pages(pgp, get_order(n)); in pci_free_consistent()
/arch/frv/mm/
Ddma-alloc.c92 order = get_order(size); in consistent_alloc()
/arch/xtensa/include/asm/
Dpage.h116 static inline __attribute_const__ int get_order(unsigned long size) in get_order() function

123