Home
last modified time | relevance | path

Searched refs:min_alloc_order (Results 1 – 9 of 9) sorted by relevance

/linux-6.1.9/Documentation/translations/zh_CN/core-api/
Dgenalloc.rst34 对gen_pool_create()的调用将创建一个内存池。分配的粒度由min_alloc_order设置;它
36 字节而不是页面。因此,如果min_alloc_order被传递为3,那么所有的分配将是8字节的倍数。
37 增加min_alloc_order可以减少跟踪池中内存所需的内存。nid参数指定哪一个NUMA节点应该被
/linux-6.1.9/lib/
Dgenalloc.c153 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-6.1.9/drivers/tee/
Dtee_shm_pool.c17 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-6.1.9/include/linux/
Dgenalloc.h61 int min_alloc_order; /* minimum allocation order */ member
206 int min_alloc_order, int nid, const char *name);
Dtee_drv.h253 int min_alloc_order);
/linux-6.1.9/Documentation/core-api/
Dgenalloc.rst27 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-6.1.9/drivers/firmware/
Dstratix10-svc.c751 int min_alloc_order = 3; in svc_create_memory_pool() local
772 genpool = gen_pool_create(min_alloc_order, -1); in svc_create_memory_pool()
1054 size_t s = roundup(size, 1 << genpool->min_alloc_order); in stratix10_svc_allocate_memory()
/linux-6.1.9/drivers/misc/habanalabs/gaudi/
Dgaudi.c8366 int min_alloc_order, rc, collective_cb_size; in gaudi_internal_cb_pool_init() local
8381 min_alloc_order = ilog2(collective_cb_size); in gaudi_internal_cb_pool_init()
8383 hdev->internal_cb_pool = gen_pool_create(min_alloc_order, -1); in gaudi_internal_cb_pool_init()
/linux-6.1.9/drivers/misc/habanalabs/gaudi2/
Dgaudi2.c9409 int min_alloc_order, rc; in gaudi2_internal_cb_pool_init() local
9422 min_alloc_order = ilog2(min(gaudi2_get_signal_cb_size(hdev), in gaudi2_internal_cb_pool_init()
9425 hdev->internal_cb_pool = gen_pool_create(min_alloc_order, -1); in gaudi2_internal_cb_pool_init()