Home
last modified time | relevance | path

Searched refs:gen_pool (Results 1 – 25 of 77) sorted by relevance

1234

/kernel/linux/linux-5.10/include/linux/
Dgenalloc.h37 struct gen_pool;
52 void *data, struct gen_pool *pool,
58 struct gen_pool { struct
96 extern struct gen_pool *gen_pool_create(int, int);
97 extern phys_addr_t gen_pool_virt_to_phys(struct gen_pool *pool, unsigned long);
98 extern int gen_pool_add_owner(struct gen_pool *, unsigned long, phys_addr_t,
101 static inline int gen_pool_add_virt(struct gen_pool *pool, unsigned long addr, in gen_pool_add_virt()
119 static inline int gen_pool_add(struct gen_pool *pool, unsigned long addr, in gen_pool_add()
124 extern void gen_pool_destroy(struct gen_pool *);
125 unsigned long gen_pool_alloc_algo_owner(struct gen_pool *pool, size_t size,
[all …]
Dsram.h16 struct gen_pool;
19 void *sram_exec_copy(struct gen_pool *pool, void *dst, void *src, size_t size);
21 static inline void *sram_exec_copy(struct gen_pool *pool, void *dst, void *src, in sram_exec_copy()
/kernel/linux/linux-5.10/drivers/gpu/drm/vboxvideo/
Dvboxvideo_guest.h30 int hgsmi_report_flags_location(struct gen_pool *ctx, u32 location);
31 int hgsmi_send_caps_info(struct gen_pool *ctx, u32 caps);
32 int hgsmi_test_query_conf(struct gen_pool *ctx);
33 int hgsmi_query_conf(struct gen_pool *ctx, u32 index, u32 *value_ret);
34 int hgsmi_update_pointer_shape(struct gen_pool *ctx, u32 flags,
37 int hgsmi_cursor_position(struct gen_pool *ctx, bool report_position,
40 bool vbva_enable(struct vbva_buf_ctx *vbva_ctx, struct gen_pool *ctx,
42 void vbva_disable(struct vbva_buf_ctx *vbva_ctx, struct gen_pool *ctx,
45 struct gen_pool *ctx);
47 bool vbva_write(struct vbva_buf_ctx *vbva_ctx, struct gen_pool *ctx,
[all …]
Dhgsmi_base.c17 int hgsmi_report_flags_location(struct gen_pool *ctx, u32 location) in hgsmi_report_flags_location()
41 int hgsmi_send_caps_info(struct gen_pool *ctx, u32 caps) in hgsmi_send_caps_info()
61 int hgsmi_test_query_conf(struct gen_pool *ctx) in hgsmi_test_query_conf()
80 int hgsmi_query_conf(struct gen_pool *ctx, u32 index, u32 *value_ret) in hgsmi_query_conf()
113 int hgsmi_update_pointer_shape(struct gen_pool *ctx, u32 flags, in hgsmi_update_pointer_shape()
185 int hgsmi_cursor_position(struct gen_pool *ctx, bool report_position, in hgsmi_cursor_position()
Dvbva_base.c47 static void vbva_buffer_flush(struct gen_pool *ctx) in vbva_buffer_flush()
61 bool vbva_write(struct vbva_buf_ctx *vbva_ctx, struct gen_pool *ctx, in vbva_write()
108 struct gen_pool *ctx, s32 screen, bool enable) in vbva_inform_host()
137 bool vbva_enable(struct vbva_buf_ctx *vbva_ctx, struct gen_pool *ctx, in vbva_enable()
154 void vbva_disable(struct vbva_buf_ctx *vbva_ctx, struct gen_pool *ctx, in vbva_disable()
165 struct gen_pool *ctx) in vbva_buffer_begin_update()
Dvbox_drv.h54 struct gen_pool *guest_pool;
151 void *hgsmi_buffer_alloc(struct gen_pool *guest_pool, size_t size,
153 void hgsmi_buffer_free(struct gen_pool *guest_pool, void *buf);
154 int hgsmi_buffer_submit(struct gen_pool *guest_pool, void *buf);
Dvbox_hgsmi.c47 void *hgsmi_buffer_alloc(struct gen_pool *guest_pool, size_t size, in hgsmi_buffer_alloc()
74 void hgsmi_buffer_free(struct gen_pool *guest_pool, void *buf) in hgsmi_buffer_free()
84 int hgsmi_buffer_submit(struct gen_pool *guest_pool, void *buf) in hgsmi_buffer_submit()
Dmodesetting.c27 void hgsmi_process_display_info(struct gen_pool *ctx, u32 display, in hgsmi_process_display_info()
65 int hgsmi_update_input_mapping(struct gen_pool *ctx, s32 origin_x, s32 origin_y, in hgsmi_update_input_mapping()
93 int hgsmi_get_mode_hints(struct gen_pool *ctx, unsigned int screens, in hgsmi_get_mode_hints()
/kernel/linux/linux-5.10/drivers/net/ethernet/ti/
Dk3-cppi-desc-pool.c24 struct gen_pool *gen_pool; member
32 WARN(gen_pool_size(pool->gen_pool) != gen_pool_avail(pool->gen_pool), in k3_cppi_desc_pool_destroy()
34 gen_pool_size(pool->gen_pool), in k3_cppi_desc_pool_destroy()
35 gen_pool_avail(pool->gen_pool)); in k3_cppi_desc_pool_destroy()
40 gen_pool_destroy(pool->gen_pool); /* frees pool->name */ in k3_cppi_desc_pool_destroy()
66 pool->gen_pool = gen_pool_create(ilog2(pool->desc_size), -1); in k3_cppi_desc_pool_create_name()
67 if (!pool->gen_pool) { in k3_cppi_desc_pool_create_name()
74 pool->gen_pool->name = pool_name; in k3_cppi_desc_pool_create_name()
82 ret = gen_pool_add_virt(pool->gen_pool, (unsigned long)pool->cpumem, in k3_cppi_desc_pool_create_name()
96 gen_pool_destroy(pool->gen_pool); /* frees pool->name */ in k3_cppi_desc_pool_create_name()
[all …]
Ddavinci_cpdma.c87 struct gen_pool *gen_pool; member
197 WARN(gen_pool_size(pool->gen_pool) != gen_pool_avail(pool->gen_pool), in cpdma_desc_pool_destroy()
199 gen_pool_size(pool->gen_pool), in cpdma_desc_pool_destroy()
200 gen_pool_avail(pool->gen_pool)); in cpdma_desc_pool_destroy()
240 pool->gen_pool = devm_gen_pool_create(ctlr->dev, ilog2(pool->desc_size), in cpdma_desc_pool_create()
242 if (IS_ERR(pool->gen_pool)) { in cpdma_desc_pool_create()
243 ret = PTR_ERR(pool->gen_pool); in cpdma_desc_pool_create()
263 ret = gen_pool_add_virt(pool->gen_pool, (unsigned long)pool->iomap, in cpdma_desc_pool_create()
297 gen_pool_alloc(pool->gen_pool, pool->desc_size); in cpdma_desc_alloc()
303 gen_pool_free(pool->gen_pool, (unsigned long)desc, pool->desc_size); in cpdma_desc_free()
[all …]
/kernel/linux/linux-5.10/lib/
Dgenalloc.c152 struct gen_pool *gen_pool_create(int min_alloc_order, int nid) in gen_pool_create()
154 struct gen_pool *pool; in gen_pool_create()
156 pool = kmalloc_node(sizeof(struct gen_pool), GFP_KERNEL, nid); in gen_pool_create()
183 int gen_pool_add_owner(struct gen_pool *pool, unsigned long virt, phys_addr_t phys, in gen_pool_add_owner()
216 phys_addr_t gen_pool_virt_to_phys(struct gen_pool *pool, unsigned long addr) in gen_pool_virt_to_phys()
241 void gen_pool_destroy(struct gen_pool *pool) in gen_pool_destroy()
276 unsigned long gen_pool_alloc_algo_owner(struct gen_pool *pool, size_t size, in gen_pool_alloc_algo_owner()
340 void *gen_pool_dma_alloc(struct gen_pool *pool, size_t size, dma_addr_t *dma) in gen_pool_dma_alloc()
361 void *gen_pool_dma_alloc_algo(struct gen_pool *pool, size_t size, in gen_pool_dma_alloc_algo()
394 void *gen_pool_dma_alloc_align(struct gen_pool *pool, size_t size, in gen_pool_dma_alloc_align()
[all …]
/kernel/linux/linux-5.10/kernel/dma/
Dpool.c16 static struct gen_pool *atomic_pool_dma __ro_after_init;
18 static struct gen_pool *atomic_pool_dma32 __ro_after_init;
20 static struct gen_pool *atomic_pool_kernel __ro_after_init;
82 static int atomic_pool_expand(struct gen_pool *pool, size_t pool_size, in atomic_pool_expand()
148 static void atomic_pool_resize(struct gen_pool *pool, gfp_t gfp) in atomic_pool_resize()
165 static __init struct gen_pool *__dma_atomic_pool_init(size_t pool_size, in __dma_atomic_pool_init()
168 struct gen_pool *pool; in __dma_atomic_pool_init()
227 static inline struct gen_pool *dma_guess_pool(struct gen_pool *prev, gfp_t gfp) in dma_guess_pool()
244 struct gen_pool *pool, void **cpu_addr, in __dma_alloc_from_pool()
272 struct gen_pool *pool = NULL; in dma_alloc_from_pool()
[all …]
/kernel/linux/linux-5.10/include/linux/platform_data/
Ddma-mmp_tdma.h28 extern struct gen_pool *sram_get_gpool(char *pool_name);
30 static inline struct gen_pool *sram_get_gpool(char *pool_name) in sram_get_gpool()
Duio_pruss.h24 struct gen_pool *sram_pool;
/kernel/linux/linux-5.10/arch/s390/include/asm/
Dcio.h365 void *cio_gp_dma_zalloc(struct gen_pool *gp_dma, struct device *dma_dev,
367 void cio_gp_dma_free(struct gen_pool *gp_dma, void *cpu_addr, size_t size);
368 void cio_gp_dma_destroy(struct gen_pool *gp_dma, struct device *dma_dev);
369 struct gen_pool *cio_gp_dma_create(struct device *dma_dev, int nr_pages);
/kernel/linux/linux-5.10/drivers/misc/
Dsram.h11 struct gen_pool *pool;
21 struct gen_pool *pool;
/kernel/linux/linux-5.10/arch/arm/mach-davinci/
Dsram.c15 static struct gen_pool *sram_pool;
17 struct gen_pool *sram_get_gen_pool(void) in sram_get_gen_pool()
/kernel/linux/linux-5.10/drivers/soc/fsl/qbman/
Dqman_priv.h190 extern struct gen_pool *qm_fqalloc; /* FQID allocator */
191 extern struct gen_pool *qm_qpalloc; /* pool-channel allocator */
192 extern struct gen_pool *qm_cgralloc; /* CGR ID allocator */
/kernel/linux/linux-5.10/arch/ia64/kernel/
Duncached.c32 struct gen_pool *pool;
223 struct gen_pool *pool = uncached_pools[nid].pool; in uncached_free_page()
249 struct gen_pool *pool = uncached_pools[nid].pool; in uncached_build_memmap()
/kernel/linux/linux-5.10/drivers/staging/media/tegra-vde/
Dvde.h21 struct gen_pool;
43 struct gen_pool *iram_pool;
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/mce/
Dgenpool.c24 static struct gen_pool *mce_evt_pool;
121 struct gen_pool *tmpp; in mce_gen_pool_create()
/kernel/linux/linux-5.10/drivers/memory/
Dti-emif-pm.c32 struct gen_pool *sram_pool_code;
33 struct gen_pool *sram_pool_data;
201 int ti_emif_copy_pm_function_table(struct gen_pool *sram_pool, void *dst) in ti_emif_copy_pm_function_table()
/kernel/linux/linux-5.10/drivers/infiniband/hw/i40iw/
Di40iw_pble.c424 struct gen_pool *pool; in free_lvl2()
453 struct gen_pool *pool) in get_lvl2_pble()
513 struct gen_pool *pool; in get_lvl1_pble()
541 struct gen_pool *pool) in get_lvl1_lvl2_pble()
563 struct gen_pool *pool; in i40iw_get_pble()
601 struct gen_pool *pool; in i40iw_free_pble()
/kernel/linux/linux-5.10/arch/arm/mach-mmp/
Dsram.c26 struct gen_pool *gpool;
39 struct gen_pool *sram_get_gpool(char *pool_name) in sram_get_gpool()
/kernel/linux/linux-5.10/arch/sh/mm/
Dsram.c22 struct gen_pool *sram_pool;

1234