Home
last modified time | relevance | path

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

12

/linux-4.19.296/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()
Dccio-dma.c866 ret = (void *) __get_free_pages(flag, get_order(size)); in ccio_alloc()
890 free_pages((unsigned long)cpu_addr, get_order(size)); in ccio_free()
1282 iov_order = get_order(iova_space_size << PAGE_SHIFT); in ccio_ioc_init()
1292 BUG_ON((1 << get_order(ioc->pdir_size)) != (ioc->pdir_size >> PAGE_SHIFT)); in ccio_ioc_init()
1301 get_order(ioc->pdir_size)); in ccio_ioc_init()
1315 get_order(ioc->res_size)); in ccio_ioc_init()
1331 ioc->chainid_shift = get_order(iova_space_size) + PAGE_SHIFT - CCIO_CHAINID_SHIFT; in ccio_ioc_init()
Dsba_iommu.c381 unsigned long o = 1 << get_order(bits_wanted << PAGE_SHIFT); in sba_search_bitmap()
638 iovp |= get_order(byte_cnt) + PAGE_SHIFT; in sba_mark_invalid()
898 ret = (void *) __get_free_pages(gfp, get_order(size)); in sba_alloc()
923 free_pages((unsigned long) vaddr, get_order(size)); in sba_free()
1145 unsigned long pdir_order = get_order(pdir_size); in sba_alloc_pdir()
1307 iov_order = get_order(iova_space_size >> (IOVP_SHIFT - PAGE_SHIFT)); in sba_ioc_init_pluto()
1315 get_order(ioc->pdir_size)); in sba_ioc_init_pluto()
1437 iov_order = get_order(iova_space_size << PAGE_SHIFT); in sba_ioc_init()
1728 sba_dev->ioc[i].res_map = (char *) __get_free_pages(GFP_KERNEL, get_order(res_size)); in sba_common_init()
/linux-4.19.296/drivers/xen/
Dswiotlb-xen.c154 dma_bits = get_order(IO_TLB_SEGSIZE << IO_TLB_SHIFT) + PAGE_SHIFT; in xen_swiotlb_fixup()
163 get_order(slabs << IO_TLB_SHIFT), in xen_swiotlb_fixup()
215 order = get_order(xen_io_tlb_nslabs << IO_TLB_SHIFT); in xen_swiotlb_init()
230 if (order != get_order(bytes)) { in xen_swiotlb_init()
293 int order = get_order(size); in xen_swiotlb_alloc_coherent()
346 int order = get_order(size); in xen_swiotlb_free_coherent()
/linux-4.19.296/drivers/s390/char/
Dvmcp.c63 order = get_order(session->bufsize); in vmcp_response_alloc()
87 order = get_order(session->bufsize); in vmcp_response_free()
220 if (!session->bufsize || get_order(session->bufsize) > 8) { in vmcp_ioctl()
Dhmcdrv_cache.c219 hmcdrv_cache_order = get_order(cachesize); in hmcdrv_cache_startup()
Dhmcdrv_ftp.c248 order = get_order(ftp.len); in hmcdrv_ftp_cmd()
/linux-4.19.296/include/asm-generic/
Dgetorder.h29 static inline __attribute_const__ int get_order(unsigned long size) in get_order() function
/linux-4.19.296/drivers/misc/mic/scif/
Dscif_rma.h404 if (align && get_order(align) < MAX_ORDER) in scif_zalloc()
406 get_order(align)); in scif_zalloc()
423 free_pages((unsigned long)addr, get_order(align)); in scif_free()
/linux-4.19.296/drivers/char/
Dmbcs.c411 hostAddr = __get_dma_pages(GFP_KERNEL, get_order(len)); in mbcs_sram_read()
423 free_pages(hostAddr, get_order(len)); in mbcs_sram_read()
436 hostAddr = __get_dma_pages(GFP_KERNEL, get_order(len)); in mbcs_sram_write()
448 free_pages(hostAddr, get_order(len)); in mbcs_sram_write()
/linux-4.19.296/drivers/misc/mic/vop/
Dvop_vringh.c315 get_order(vr_size)); in vop_virtio_add_device()
328 free_pages((unsigned long)vr->va, get_order(vr_size)); in vop_virtio_add_device()
355 get_order(VOP_INT_DMA_BUF_SIZE)); in vop_virtio_add_device()
400 get_order(vvr->vring.len)); in vop_virtio_add_device()
452 get_order(VOP_INT_DMA_BUF_SIZE)); in vop_virtio_del_device()
458 get_order(vvr->vring.len)); in vop_virtio_del_device()
Dvop_main.c255 free_pages((unsigned long)vr->used, get_order(vdev->used_size[n])); in vop_del_vq()
336 get_order(vdev->used_size[index])); in vop_find_vq()
367 get_order(vdev->used_size[index])); in vop_find_vq()
/linux-4.19.296/drivers/misc/sgi-gru/
Dgrufile.c268 int order = get_order(sizeof(struct gru_blade_state)); in gru_init_tables()
316 int order = get_order(sizeof(struct gru_state) * in gru_free_tables()
/linux-4.19.296/fs/ramfs/
Dfile-nommu.c76 order = get_order(newsize); in ramfs_nommu_expand_for_mapping()
/linux-4.19.296/drivers/char/agp/
Dhp-agp.c298 get_order(hp->io_pdir_size)); in hp_zx1_create_gatt_table()
325 get_order(hp->io_pdir_size)); in hp_zx1_free_gatt_table()
/linux-4.19.296/include/linux/
Dmm_types.h210 #define PAGE_FRAG_CACHE_MAX_ORDER get_order(PAGE_FRAG_CACHE_MAX_SIZE)
Dslab.h448 unsigned int order = get_order(size); in kmalloc_large()
Ddma-mapping.h542 if (dma_release_from_dev_coherent(dev, get_order(size), cpu_addr)) in dma_free_attrs()
/linux-4.19.296/drivers/irqchip/
Dirq-gic-v3-its.c1640 prop_page = alloc_pages(gfp_flags, get_order(LPI_PROPBASE_SZ)); in its_allocate_prop_table()
1658 get_order(LPI_PROPBASE_SZ)); in its_free_prop_table()
1723 order = get_order(GITS_BASER_PAGES_MAX * psz); in its_setup_baser()
1870 new_order = max_t(u32, get_order(esz << ids), new_order); in its_parse_indirect_baser()
1912 u32 order = get_order(psz); in its_alloc_tables()
1970 get_order(max_t(u32, LPI_PENDBASE_SZ, SZ_64K))); in its_allocate_pending_table()
1983 get_order(max_t(u32, LPI_PENDBASE_SZ, SZ_64K))); in its_free_pending_table()
2212 page = alloc_pages(GFP_KERNEL | __GFP_ZERO, get_order(baser->psz)); in its_alloc_table_entry()
3502 get_order(ITS_CMD_QUEUE_SZ)); in its_probe_one()
3567 free_pages((unsigned long)its->cmd_base, get_order(ITS_CMD_QUEUE_SZ)); in its_probe_one()
/linux-4.19.296/drivers/s390/cio/
Dcmf.c504 get_order(size)); in alloc_cmb()
509 free_pages((unsigned long)mem, get_order(size)); in alloc_cmb()
553 free_pages((unsigned long)cmb_area.mem, get_order(size)); in free_cmb()
/linux-4.19.296/drivers/virt/vboxguest/
Dvboxguest_utils.c68 int order = get_order(PAGE_ALIGN(len)); in vbg_req_alloc()
91 free_pages((unsigned long)req, get_order(PAGE_ALIGN(len))); in vbg_req_free()
/linux-4.19.296/fs/proc/
Dvmcore.c1171 free_pages((unsigned long)elfcorebuf, get_order(elfcorebuf_sz_orig)); in free_elfcorebuf()
1209 get_order(elfcorebuf_sz_orig)); in parse_crash_elf64_headers()
1264 get_order(elfcorebuf_sz_orig)); in parse_crash_elf32_headers()
/linux-4.19.296/drivers/misc/genwqe/
Dcard_utils.c220 if (get_order(size) >= MAX_ORDER) in __genwqe_alloc_consistent()
318 if (get_order(sgl->sgl_size) > MAX_ORDER) { in genwqe_alloc_sync_sgl()
/linux-4.19.296/drivers/media/common/videobuf2/
Dvideobuf2-dma-sg.c69 order = get_order(size); in vb2_dma_sg_alloc_compacted()
/linux-4.19.296/fs/jbd2/
Djournal.c2368 ptr = (void *)__get_free_pages(flags, get_order(size)); in jbd2_alloc()
2382 free_pages((unsigned long)ptr, get_order(size)); in jbd2_free()

12