/linux/drivers/crypto/cavium/zip/ |
A D | zip_mem.c | 60 get_order(ZIP_CMD_QBUF_SIZE)); in zip_cmd_qbuf_alloc() 80 free_pages((u64)zip->iq[q].sw_tail, get_order(ZIP_CMD_QBUF_SIZE)); in zip_cmd_qbuf_free() 93 get_order(size)); in zip_data_buf_alloc() 113 free_pages((u64)ptr, get_order(size)); in zip_data_buf_free()
|
/linux/arch/x86/include/asm/xen/ |
A D | page-coherent.h | 12 void *vstart = (void*)__get_free_pages(flags, get_order(size)); in xen_alloc_coherent_pages() 21 free_pages((unsigned long) cpu_addr, get_order(size)); in xen_free_coherent_pages()
|
/linux/net/xfrm/ |
A D | xfrm_hash.c | 27 get_order(sz)); in xfrm_hash_alloc() 39 free_pages((unsigned long)n, get_order(sz)); in xfrm_hash_free()
|
/linux/arch/s390/kvm/ |
A D | pv.c | 33 get_order(uv_info.guest_cpu_stor_len)); in kvm_s390_pv_destroy_cpu() 63 get_order(uv_info.guest_cpu_stor_len)); in kvm_s390_pv_create_cpu() 77 get_order(uv_info.guest_cpu_stor_len)); in kvm_s390_pv_create_cpu() 110 get_order(uv_info.guest_base_stor_len)); in kvm_s390_pv_dealloc_vm() 122 kvm->arch.pv.stor_base = __get_free_pages(GFP_KERNEL_ACCOUNT, get_order(base)); in kvm_s390_pv_alloc_vm()
|
/linux/kernel/dma/ |
A D | direct.c | 115 page = alloc_pages_node(node, gfp, get_order(size)); in __dma_direct_alloc_pages() 221 1 << get_order(size)); in dma_direct_alloc() 243 1 << get_order(size)); in dma_direct_alloc() 264 1 << get_order(size)); in dma_direct_alloc() 277 unsigned int page_order = get_order(size); in dma_direct_free() 346 1 << get_order(size))) in dma_direct_alloc_pages() 361 unsigned int page_order = get_order(size); in dma_direct_free_pages()
|
A D | swiotlb.c | 276 order = get_order(nslabs << IO_TLB_SHIFT); in swiotlb_late_init_with_default_size() 291 if (order != get_order(bytes)) { in swiotlb_late_init_with_default_size() 317 get_order(array_size(sizeof(*mem->slots), nslabs))); in swiotlb_late_init_with_tbl() 345 free_pages(tbl_vaddr, get_order(tbl_size)); in swiotlb_exit() 346 free_pages((unsigned long)mem->slots, get_order(slots_size)); in swiotlb_exit()
|
/linux/arch/mips/include/asm/mach-generic/ |
A D | floppy.h | 117 return __get_dma_pages(GFP_KERNEL, get_order(size)); in fd_dma_mem_alloc() 122 free_pages(addr, get_order(size)); in fd_dma_mem_free()
|
/linux/arch/m68k/kernel/ |
A D | dma.c | 44 ret = (void *)__get_free_pages(gfp, get_order(size)); in arch_dma_alloc() 56 free_pages((unsigned long)vaddr, get_order(size)); in arch_dma_free()
|
/linux/arch/mips/include/asm/mach-jazz/ |
A D | floppy.h | 108 mem = __get_dma_pages(GFP_KERNEL, get_order(size)); in fd_dma_mem_alloc() 119 free_pages(addr, get_order(size)); in fd_dma_mem_free()
|
/linux/drivers/iommu/amd/ |
A D | init.c | 710 int order = get_order(size); in iommu_alloc_4k_pages() 843 get_order(GA_LOG_SIZE)); in iommu_init_ga_log() 848 get_order(8)); in iommu_init_ga_log() 979 get_order(dev_table_size)); in copy_device_table() 2461 get_order(dev_table_size)); in early_enable_iommus() 2470 get_order(dev_table_size)); in early_enable_iommus() 2574 get_order(alias_table_size)); in free_iommu_resources() 2578 get_order(dev_table_size)); in free_iommu_resources() 2639 get_order(MAX_DOMAIN_ID/8)); in free_dma_resources() 2734 get_order(alias_table_size)); in early_amd_iommu_init() [all …]
|
/linux/drivers/tee/amdtee/ |
A D | shm_pool.c | 14 unsigned int order = get_order(size); in pool_op_alloc() 41 free_pages((unsigned long)shm->kaddr, get_order(shm->size)); in pool_op_free()
|
/linux/drivers/xen/ |
A D | swiotlb-xen.c | 110 unsigned int order = get_order(IO_TLB_SEGSIZE << IO_TLB_SHIFT); in xen_swiotlb_fixup() 171 order = get_order(bytes); in xen_swiotlb_init() 186 if (order != get_order(bytes)) { in xen_swiotlb_init() 267 int order = get_order(size); in xen_swiotlb_alloc_coherent() 322 int order = get_order(size); in xen_swiotlb_free_coherent()
|
/linux/drivers/s390/char/ |
A D | vmcp.c | 65 order = get_order(session->bufsize); in vmcp_response_alloc() 89 order = get_order(session->bufsize); in vmcp_response_free() 222 if (!session->bufsize || get_order(session->bufsize) > 8) { in vmcp_ioctl()
|
/linux/drivers/iommu/ |
A D | fsl_pamu.c | 694 (LAW_SIZE_4K + get_order(size)); in create_csd() 822 mem_size = (PAGE_SIZE << get_order(PAACT_SIZE)) + in fsl_pamu_probe() 823 (PAGE_SIZE << get_order(SPAACT_SIZE)) + in fsl_pamu_probe() 824 (PAGE_SIZE << get_order(OMT_SIZE)); in fsl_pamu_probe() 825 order = get_order(mem_size); in fsl_pamu_probe() 844 spaact = (void *)ppaact + (PAGE_SIZE << get_order(PAACT_SIZE)); in fsl_pamu_probe() 845 omt = (void *)spaact + (PAGE_SIZE << get_order(SPAACT_SIZE)); in fsl_pamu_probe()
|
/linux/arch/m68k/sun3/ |
A D | sun3dvma.c | 350 if((kaddr = __get_free_pages(GFP_ATOMIC, get_order(len))) == 0) in dvma_malloc_align() 354 free_pages(kaddr, get_order(len)); in dvma_malloc_align() 362 free_pages(kaddr, get_order(len)); in dvma_malloc_align()
|
/linux/arch/mips/jazz/ |
A D | jazzdma.c | 72 get_order(VDMA_PGTBL_SIZE)); in vdma_init() 501 page = alloc_pages(gfp, get_order(size)); in jazz_dma_alloc() 513 __free_pages(page, get_order(size)); in jazz_dma_alloc() 521 __free_pages(virt_to_page(vaddr), get_order(size)); in jazz_dma_free()
|
/linux/drivers/gpu/drm/i915/gem/ |
A D | i915_gem_internal.c | 26 __free_pages(sg_page(sg), get_order(sg->length)); in internal_free_pages() 110 if (get_order(st->sgl->length)) { in i915_gem_object_get_pages_internal()
|
/linux/drivers/parisc/ |
A D | ccio-dma.c | 859 ret = (void *) __get_free_pages(flag, get_order(size)); in ccio_alloc() 883 free_pages((unsigned long)cpu_addr, get_order(size)); in ccio_free() 1271 iov_order = get_order(iova_space_size << PAGE_SHIFT); in ccio_ioc_init() 1281 BUG_ON((1 << get_order(ioc->pdir_size)) != (ioc->pdir_size >> PAGE_SHIFT)); in ccio_ioc_init() 1290 get_order(ioc->pdir_size)); in ccio_ioc_init() 1304 get_order(ioc->res_size)); in ccio_ioc_init() 1320 ioc->chainid_shift = get_order(iova_space_size) + PAGE_SHIFT - CCIO_CHAINID_SHIFT; in ccio_ioc_init()
|
A D | sba_iommu.c | 378 unsigned long o = 1 << get_order(bits_wanted << PAGE_SHIFT); in sba_search_bitmap() 634 iovp |= get_order(byte_cnt) + PAGE_SHIFT; in sba_mark_invalid() 883 ret = (void *) __get_free_pages(gfp, get_order(size)); in sba_alloc() 908 free_pages((unsigned long) vaddr, get_order(size)); in sba_free() 1125 unsigned long pdir_order = get_order(pdir_size); in sba_alloc_pdir() 1287 iov_order = get_order(iova_space_size >> (IOVP_SHIFT - PAGE_SHIFT)); in sba_ioc_init_pluto() 1295 get_order(ioc->pdir_size)); in sba_ioc_init_pluto() 1417 iov_order = get_order(iova_space_size << PAGE_SHIFT); in sba_ioc_init() 1708 sba_dev->ioc[i].res_map = (char *) __get_free_pages(GFP_KERNEL, get_order(res_size)); in sba_common_init()
|
/linux/arch/parisc/kernel/ |
A D | pci-dma.c | 382 get_order(pcxl_res_size)); in pcxl_dma_init() 411 order = get_order(size); in arch_dma_alloc() 434 int order = get_order(size); in arch_dma_free()
|
/linux/drivers/crypto/ |
A D | omap-crypto.c | 63 pages = get_order(new_len); in omap_crypto_copy_sgs() 211 pages = get_order(len); in omap_crypto_cleanup()
|
/linux/arch/parisc/include/asm/ |
A D | floppy.h | 156 return __get_dma_pages(GFP_KERNEL, get_order(size)); in dma_mem_alloc() 173 free_pages(addr, get_order(size)); in _fd_dma_mem_free()
|
/linux/include/asm-generic/ |
A D | getorder.h | 29 static __always_inline __attribute_const__ int get_order(unsigned long size) in get_order() function
|
/linux/arch/x86/include/asm/ |
A D | floppy.h | 156 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()
|
/linux/mm/ |
A D | slob.c | 510 unsigned int order = get_order(size); in __do_kmalloc_node() 615 b = slob_new_pages(flags, get_order(c->size), node); in slob_alloc_node() 617 PAGE_SIZE << get_order(c->size), in slob_alloc_node() 655 slob_free_pages(b, get_order(size)); in __kmem_cache_free()
|