Home
last modified time | relevance | path

Searched refs:gen_pool (Results 1 - 25 of 149) sorted by relevance

123456

/kernel/linux/linux-5.10/include/linux/
H A Dgenalloc.h37 struct gen_pool;
52 void *data, struct gen_pool *pool,
58 struct gen_pool { struct
83 * gen_pool data descriptor for gen_pool_first_fit_align.
90 * gen_pool data descriptor for gen_pool_fixed_alloc.
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 *poo
[all...]
H A 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-6.6/include/linux/
H A Dgenalloc.h37 struct gen_pool;
52 void *data, struct gen_pool *pool,
58 struct gen_pool { struct
83 * gen_pool data descriptor for gen_pool_first_fit_align.
90 * gen_pool data descriptor for gen_pool_fixed_alloc.
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 *poo
[all...]
H A Dsram.h6 struct gen_pool;
9 void *sram_exec_copy(struct gen_pool *pool, void *dst, void *src, size_t size);
11 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/
H A 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 *ct
[all...]
H A 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()
H A 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()
H A 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);
H A 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()
H A 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()
/kernel/linux/linux-6.6/drivers/gpu/drm/vboxvideo/
H A 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 *ct
[all...]
H A Dhgsmi_base.c18 int hgsmi_report_flags_location(struct gen_pool *ctx, u32 location) in hgsmi_report_flags_location()
43 int hgsmi_send_caps_info(struct gen_pool *ctx, u32 caps) in hgsmi_send_caps_info()
63 int hgsmi_test_query_conf(struct gen_pool *ctx) in hgsmi_test_query_conf()
83 int hgsmi_query_conf(struct gen_pool *ctx, u32 index, u32 *value_ret) in hgsmi_query_conf()
117 int hgsmi_update_pointer_shape(struct gen_pool *ctx, u32 flags, in hgsmi_update_pointer_shape()
190 int hgsmi_cursor_position(struct gen_pool *ctx, bool report_position, in hgsmi_cursor_position()
H A 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()
H A Dvbox_drv.h54 struct gen_pool *guest_pool;
149 void *hgsmi_buffer_alloc(struct gen_pool *guest_pool, size_t size,
151 void hgsmi_buffer_free(struct gen_pool *guest_pool, void *buf);
152 int hgsmi_buffer_submit(struct gen_pool *guest_pool, void *buf);
H A 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()
H A Dmodesetting.c29 void hgsmi_process_display_info(struct gen_pool *ctx, u32 display, in hgsmi_process_display_info()
69 int hgsmi_update_input_mapping(struct gen_pool *ctx, s32 origin_x, s32 origin_y, in hgsmi_update_input_mapping()
97 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/
H A 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 in k3_cppi_desc_pool_create_name()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/ti/
H A 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()
67 pool->gen_pool = gen_pool_create(ilog2(pool->desc_size), -1); in k3_cppi_desc_pool_create_name()
68 if (!pool->gen_pool) { in k3_cppi_desc_pool_create_name()
75 pool->gen_pool in k3_cppi_desc_pool_create_name()
[all...]
/kernel/linux/linux-5.10/lib/
H A 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 *poo
[all...]
/kernel/linux/linux-6.6/lib/
H A Dgenalloc.c153 struct gen_pool *gen_pool_create(int min_alloc_order, int nid) in gen_pool_create()
155 struct gen_pool *pool; in gen_pool_create()
157 pool = kmalloc_node(sizeof(struct gen_pool), GFP_KERNEL, nid); in gen_pool_create()
184 int gen_pool_add_owner(struct gen_pool *pool, unsigned long virt, phys_addr_t phys, in gen_pool_add_owner()
217 phys_addr_t gen_pool_virt_to_phys(struct gen_pool *pool, unsigned long addr) in gen_pool_virt_to_phys()
242 void gen_pool_destroy(struct gen_pool *pool) in gen_pool_destroy()
277 unsigned long gen_pool_alloc_algo_owner(struct gen_pool *pool, size_t size, in gen_pool_alloc_algo_owner()
341 void *gen_pool_dma_alloc(struct gen_pool *pool, size_t size, dma_addr_t *dma) in gen_pool_dma_alloc()
362 void *gen_pool_dma_alloc_algo(struct gen_pool *pool, size_t size, in gen_pool_dma_alloc_algo()
395 void *gen_pool_dma_alloc_align(struct gen_pool *poo
[all...]
/kernel/linux/linux-5.10/kernel/dma/
H A 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 *poo in __dma_alloc_from_pool()
[all...]
/kernel/linux/linux-6.6/kernel/dma/
H A 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;
79 static int atomic_pool_expand(struct gen_pool *pool, size_t pool_size, in atomic_pool_expand()
145 static void atomic_pool_resize(struct gen_pool *pool, gfp_t gfp) in atomic_pool_resize()
162 static __init struct gen_pool *__dma_atomic_pool_init(size_t pool_size, in __dma_atomic_pool_init()
165 struct gen_pool *pool; in __dma_atomic_pool_init()
224 static inline struct gen_pool *dma_guess_pool(struct gen_pool *prev, gfp_t gfp) in dma_guess_pool()
241 struct gen_pool *poo in __dma_alloc_from_pool()
[all...]
/kernel/linux/linux-6.6/arch/powerpc/platforms/pseries/
H A Drtas-work-area.c41 struct gen_pool *gen_pool; member
104 (addr = gen_pool_alloc(rwa_state.gen_pool, size)) != 0); in __rtas_work_area_alloc()
121 gen_pool_free(rwa_state.gen_pool, (unsigned long)area->buf, area->size); in rtas_work_area_free()
132 * and adding the arena to a gen_pool.
139 struct gen_pool *pool; in rtas_work_area_allocator_init()
167 rwa_state.gen_pool = pool; in rtas_work_area_allocator_init()
/kernel/linux/linux-5.10/include/linux/platform_data/
H A 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()
/kernel/linux/linux-5.10/drivers/misc/
H A Dsram.h11 struct gen_pool *pool;
21 struct gen_pool *pool;

Completed in 10 milliseconds

123456