Home
last modified time | relevance | path

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

1234567

/linux-3.4.99/lib/
Dswiotlb.c222 order = get_order(io_tlb_nslabs << IO_TLB_SHIFT); in swiotlb_late_init_with_default_size()
237 if (order != get_order(bytes)) { in swiotlb_late_init_with_default_size()
252 get_order(io_tlb_nslabs * sizeof(int))); in swiotlb_late_init_with_default_size()
262 get_order(io_tlb_nslabs * in swiotlb_late_init_with_default_size()
273 get_order(io_tlb_overflow)); in swiotlb_late_init_with_default_size()
285 get_order(io_tlb_nslabs * sizeof(phys_addr_t))); in swiotlb_late_init_with_default_size()
288 free_pages((unsigned long)io_tlb_list, get_order(io_tlb_nslabs * in swiotlb_late_init_with_default_size()
307 get_order(io_tlb_overflow)); in swiotlb_free()
309 get_order(io_tlb_nslabs * sizeof(phys_addr_t))); in swiotlb_free()
310 free_pages((unsigned long)io_tlb_list, get_order(io_tlb_nslabs * in swiotlb_free()
[all …]
/linux-3.4.99/net/sctp/
Dssnmap.c72 __get_free_pages(gfp, get_order(size)); in sctp_ssnmap_new()
88 free_pages((unsigned long)retval, get_order(size)); in sctp_ssnmap_new()
130 free_pages((unsigned long)map, get_order(size)); in sctp_ssnmap_free()
/linux-3.4.99/net/xfrm/
Dxfrm_hash.c26 get_order(sz)); in xfrm_hash_alloc()
38 free_pages((unsigned long)n, get_order(sz)); in xfrm_hash_free()
/linux-3.4.99/drivers/s390/char/
Dvmcp.c54 free_pages((unsigned long)session->response, get_order(session->bufsize)); in vmcp_release()
107 get_order(session->bufsize)); in vmcp_write()
155 get_order(session->bufsize)); in vmcp_ioctl()
158 if (get_order(session->bufsize) > 8) { in vmcp_ioctl()
/linux-3.4.99/arch/cris/arch-v32/drivers/pci/
Ddma.c23 int order = get_order(size); in dma_alloc_coherent()
45 int order = get_order(size); in dma_free_coherent()
/linux-3.4.99/arch/mn10300/mm/
Ddma-alloc.c45 addr = __get_free_pages(gfp, get_order(size)); in dma_alloc_coherent()
73 free_pages(addr, get_order(size)); in dma_free_coherent()
/linux-3.4.99/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()
/linux-3.4.99/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()
/linux-3.4.99/arch/xtensa/kernel/
Dpci-dma.c44 ret = (unsigned long)__get_free_pages(flag, get_order(size)); in dma_alloc_coherent()
74 free_pages(addr, get_order(size)); in dma_free_coherent()
/linux-3.4.99/arch/mips/mm/
Ddma-default.c93 ret = (void *) __get_free_pages(gfp, get_order(size)); in dma_alloc_noncoherent()
114 ret = (void *) __get_free_pages(gfp, get_order(size)); in mips_dma_alloc_coherent()
134 free_pages((unsigned long) vaddr, get_order(size)); in dma_free_noncoherent()
142 int order = get_order(size); in mips_dma_free_coherent()
152 free_pages(addr, get_order(size)); in mips_dma_free_coherent()
/linux-3.4.99/drivers/iommu/
Damd_iommu_init.c210 get_order(((int)amd_iommu_last_bdf + 1) * entry_size); in tbl_size()
508 get_order(CMD_BUFFER_SIZE)); in alloc_command_buffer()
555 get_order(iommu->cmd_buf_size & ~(CMD_BUFFER_UNINITIALIZED))); in free_command_buffer()
562 get_order(EVT_BUFFER_SIZE)); in alloc_event_buffer()
592 free_pages((unsigned long)iommu->evt_buf, get_order(EVT_BUFFER_SIZE)); in free_event_buffer()
599 get_order(PPR_LOG_SIZE)); in alloc_ppr_log()
632 free_pages((unsigned long)iommu->ppr_log, get_order(PPR_LOG_SIZE)); in free_ppr_log()
1468 get_order(MAX_DOMAIN_ID/8)); in free_on_init_error()
1471 get_order(rlookup_table_size)); in free_on_init_error()
1474 get_order(alias_table_size)); in free_on_init_error()
[all …]
/linux-3.4.99/arch/m68k/kernel/
Ddma_no.c25 ret = (void *)__get_free_pages(gfp, get_order(size)); in dma_alloc_coherent()
37 free_pages((unsigned long)vaddr, get_order(size)); in dma_free_coherent()
/linux-3.4.99/sound/core/
Dmemalloc.c96 pg = get_order(size); in snd_malloc_pages()
115 pg = get_order(size); in snd_free_pages()
136 pg = get_order(size); in snd_malloc_dev_pages()
156 pg = get_order(size); in snd_free_dev_pages()
247 aligned_size = PAGE_SIZE << get_order(size); in snd_dma_alloc_pages_fallback()
/linux-3.4.99/arch/mn10300/include/asm/
Dpage.h77 static inline int get_order(unsigned long size) __attribute__((const));
78 static inline int get_order(unsigned long size) in get_order() function
/linux-3.4.99/arch/ia64/sn/pci/
Dpci_dma.c96 flags, get_order(size)); in sn_dma_alloc_coherent()
103 cpuaddr = (void *)__get_free_pages(flags, get_order(size)); in sn_dma_alloc_coherent()
123 free_pages((unsigned long)cpuaddr, get_order(size)); in sn_dma_alloc_coherent()
149 free_pages((unsigned long)cpu_addr, get_order(size)); in sn_dma_free_coherent()
/linux-3.4.99/drivers/parisc/
Dccio-rm-dma.c87 ret = (void *)__get_free_pages(GFP_ATOMIC, get_order(size)); in ccio_alloc_consistent()
99 free_pages((unsigned long)vaddr, get_order(size)); in ccio_free_consistent()
/linux-3.4.99/arch/sh/mm/
Dconsistent.c40 int order = get_order(size); in dma_generic_alloc_coherent()
71 int order = get_order(size); in dma_generic_free_coherent()
/linux-3.4.99/drivers/infiniband/hw/ipath/
Dipath_dma.c164 p = alloc_pages(flag, get_order(size)); in ipath_dma_alloc_coherent()
175 free_pages((unsigned long) cpu_addr, get_order(size)); in ipath_dma_free_coherent()
/linux-3.4.99/drivers/infiniband/hw/qib/
Dqib_dma.c154 p = alloc_pages(flag, get_order(size)); in qib_dma_alloc_coherent()
165 free_pages((unsigned long) cpu_addr, get_order(size)); in qib_dma_free_coherent()
/linux-3.4.99/arch/parisc/kernel/
Dpci-dma.c397 get_order(pcxl_res_size)); in pcxl_dma_init()
422 order = get_order(size); in pa11_dma_alloc_consistent()
446 order = get_order(size); in pa11_dma_free_consistent()
569 addr = (void *)__get_free_pages(flag, get_order(size)); in pa11_dma_alloc_noncoherent()
579 free_pages((unsigned long)vaddr, get_order(size)); in pa11_dma_free_noncoherent()
/linux-3.4.99/arch/m68k/sun3/
Dsun3dvma.c349 if((kaddr = __get_free_pages(GFP_ATOMIC, get_order(len))) == 0) in dvma_malloc_align()
353 free_pages(kaddr, get_order(len)); in dvma_malloc_align()
361 free_pages(kaddr, get_order(len)); in dvma_malloc_align()
/linux-3.4.99/drivers/base/
Ddma-coherent.c89 err = bitmap_allocate_region(mem->bitmap, pos, get_order(size)); in dma_mark_declared_memory_occupied()
115 int order = get_order(size); in dma_alloc_from_coherent()
/linux-3.4.99/arch/alpha/kernel/
Dpci-noop.c118 ret = (void *)__get_free_pages(gfp, get_order(size)); in alpha_noop_alloc_coherent()
130 free_pages((unsigned long)cpu_addr, get_order(size)); in alpha_noop_free_coherent()
/linux-3.4.99/drivers/xen/
Dswiotlb-xen.c128 dma_bits = get_order(IO_TLB_SEGSIZE << IO_TLB_SHIFT) + PAGE_SHIFT; in xen_swiotlb_fixup()
137 get_order(slabs << IO_TLB_SHIFT), in xen_swiotlb_fixup()
211 int order = get_order(size); in xen_swiotlb_alloc_coherent()
259 int order = get_order(size); in xen_swiotlb_free_coherent()
/linux-3.4.99/arch/x86/kernel/
Damd_gart_64.c488 page = alloc_pages(flag | __GFP_ZERO, get_order(size)); in gart_alloc_coherent()
492 align_mask = (1UL << get_order(size)) - 1; in gart_alloc_coherent()
501 __free_pages(page, get_order(size)); in gart_alloc_coherent()
515 free_pages((unsigned long)vaddr, get_order(size)); in gart_free_coherent()
675 get_order(gatt_size)); in init_amd_gatt()
781 get_order(iommu_pages/8)); in gart_iommu_init()

1234567