Home
last modified time | relevance | path

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

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