Searched refs:min_alloc_order (Results 1 – 8 of 8) sorted by relevance
/linux-5.19.10/Documentation/translations/zh_CN/core-api/ |
D | genalloc.rst | 34 对gen_pool_create()的调用将创建一个内存池。分配的粒度由min_alloc_order设置;它 36 字节而不是页面。因此,如果min_alloc_order被传递为3,那么所有的分配将是8字节的倍数。 37 增加min_alloc_order可以减少跟踪池中内存所需的内存。nid参数指定哪一个NUMA节点应该被
|
/linux-5.19.10/lib/ |
D | genalloc.c | 153 struct gen_pool *gen_pool_create(int min_alloc_order, int nid) in gen_pool_create() argument 161 pool->min_alloc_order = min_alloc_order; in gen_pool_create() 188 unsigned long nbits = size >> pool->min_alloc_order; in gen_pool_add_owner() 246 int order = pool->min_alloc_order; in gen_pool_destroy() 282 int order = pool->min_alloc_order; in gen_pool_alloc_algo_owner() 491 int order = pool->min_alloc_order; in gen_pool_free_owner() 675 order = pool->min_alloc_order; in gen_pool_first_fit_align() 704 order = pool->min_alloc_order; in gen_pool_fixed_alloc() 829 struct gen_pool *devm_gen_pool_create(struct device *dev, int min_alloc_order, in devm_gen_pool_create() argument 849 pool = gen_pool_create(min_alloc_order, nid); in devm_gen_pool_create()
|
/linux-5.19.10/drivers/tee/ |
D | tee_shm_pool.c | 17 size_t a = max_t(size_t, align, BIT(genpool->min_alloc_order)); in pool_op_gen_alloc() 58 int min_alloc_order) in tee_shm_pool_alloc_res_mem() argument 72 pool->private_data = gen_pool_create(min_alloc_order, -1); in tee_shm_pool_alloc_res_mem()
|
/linux-5.19.10/include/linux/ |
D | genalloc.h | 61 int min_alloc_order; /* minimum allocation order */ member 206 int min_alloc_order, int nid, const char *name);
|
D | tee_drv.h | 253 int min_alloc_order);
|
/linux-5.19.10/Documentation/core-api/ |
D | genalloc.rst | 27 allocations is set with min_alloc_order; it is a log-base-2 number like 29 So, if min_alloc_order is passed as 3, then all allocations will be a 30 multiple of eight bytes. Increasing min_alloc_order decreases the memory
|
/linux-5.19.10/drivers/firmware/ |
D | stratix10-svc.c | 625 int min_alloc_order = 3; in svc_create_memory_pool() local 646 genpool = gen_pool_create(min_alloc_order, -1); in svc_create_memory_pool() 917 size_t s = roundup(size, 1 << genpool->min_alloc_order); in stratix10_svc_allocate_memory()
|
/linux-5.19.10/drivers/misc/habanalabs/gaudi/ |
D | gaudi.c | 8412 int min_alloc_order, rc, collective_cb_size; in gaudi_internal_cb_pool_init() local 8428 min_alloc_order = ilog2(collective_cb_size); in gaudi_internal_cb_pool_init() 8430 hdev->internal_cb_pool = gen_pool_create(min_alloc_order, -1); in gaudi_internal_cb_pool_init()
|