| /linux/include/linux/ |
| H A D | genalloc.h | 37 struct gen_pool; 53 void *data, struct gen_pool *pool, 59 struct gen_pool { struct 97 extern struct gen_pool *gen_pool_create(int, int); 98 extern phys_addr_t gen_pool_virt_to_phys(struct gen_pool *pool, unsigned long); 99 extern int gen_pool_add_owner(struct gen_pool *, unsigned long, phys_addr_t, 102 static inline int gen_pool_add_virt(struct gen_pool *pool, unsigned long addr, in gen_pool_add_virt() 120 static inline int gen_pool_add(struct gen_pool *pool, unsigned long addr, in gen_pool_add() 125 extern void gen_pool_destroy(struct gen_pool *); 126 unsigned long gen_pool_alloc_algo_owner(struct gen_pool *pool, size_t size, [all …]
|
| H A D | sram.h | 6 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()
|
| H A D | ti-emif-sram.h | 133 struct gen_pool; 135 int ti_emif_copy_pm_function_table(struct gen_pool *sram_pool, void *dst);
|
| /linux/drivers/net/ethernet/ti/ |
| H A D | k3-cppi-desc-pool.c | 24 struct gen_pool *gen_pool; member 33 WARN(gen_pool_size(pool->gen_pool) != gen_pool_avail(pool->gen_pool), in k3_cppi_desc_pool_destroy() 35 gen_pool_size(pool->gen_pool), in k3_cppi_desc_pool_destroy() 36 gen_pool_avail(pool->gen_pool)); in k3_cppi_desc_pool_destroy() 43 gen_pool_destroy(pool->gen_pool); /* frees pool->name */ in k3_cppi_desc_pool_destroy() 72 pool->gen_pool = gen_pool_create(ilog2(pool->desc_size), -1); in k3_cppi_desc_pool_create_name() 73 if (!pool->gen_pool) { in k3_cppi_desc_pool_create_name() 78 pool->gen_pool->name = pool_name; in k3_cppi_desc_pool_create_name() 90 ret = gen_pool_add_virt(pool->gen_pool, (unsigned long)pool->cpumem, in k3_cppi_desc_pool_create_name() 106 gen_pool_destroy(pool->gen_pool); /* frees pool->name */ in k3_cppi_desc_pool_create_name() [all …]
|
| H A D | davinci_cpdma.c | 87 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 …]
|
| /linux/lib/ |
| H A D | genalloc.c | 153 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 *pool, size_t size, in gen_pool_dma_alloc_align() [all …]
|
| /linux/drivers/tee/optee/ |
| H A D | protmem.c | 17 struct gen_pool *gen_pool; member 60 rp->gen_pool = gen_pool_create(PAGE_SHIFT, -1); in init_dyn_protmem() 61 if (!rp->gen_pool) { in init_dyn_protmem() 66 rc = gen_pool_add(rp->gen_pool, rp->protmem->paddr, in init_dyn_protmem() 75 gen_pool_destroy(rp->gen_pool); in init_dyn_protmem() 76 rp->gen_pool = NULL; in init_dyn_protmem() 92 if (rp->gen_pool) { in get_dyn_protmem() 111 gen_pool_destroy(rp->gen_pool); in release_dyn_protmem() 112 rp->gen_pool = NULL; in release_dyn_protmem() 126 if (rp->gen_pool) in put_dyn_protmem() [all …]
|
| /linux/kernel/dma/ |
| H A D | pool.c | 16 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() 233 static inline struct gen_pool *dma_guess_pool(struct gen_pool *prev, gfp_t gfp) in dma_guess_pool() 250 struct gen_pool *pool, void **cpu_addr, in __dma_alloc_from_pool() 278 struct gen_pool *pool = NULL; in dma_alloc_from_pool() [all …]
|
| /linux/arch/powerpc/platforms/pseries/ |
| H A D | rtas-work-area.c | 41 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() 139 struct gen_pool *pool; in rtas_work_area_allocator_init() 167 rwa_state.gen_pool = pool; in rtas_work_area_allocator_init()
|
| /linux/drivers/gpu/drm/vboxvideo/ |
| H A D | vbva_base.c | 47 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 D | vbox_drv.h | 53 struct gen_pool *guest_pool; 148 void *hgsmi_buffer_alloc(struct gen_pool *guest_pool, size_t size, 150 void hgsmi_buffer_free(struct gen_pool *guest_pool, void *buf); 151 int hgsmi_buffer_submit(struct gen_pool *guest_pool, void *buf);
|
| H A D | modesetting.c | 29 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()
|
| H A D | vbox_hgsmi.c | 47 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()
|
| /linux/drivers/tee/ |
| H A D | tee_heap.c | 42 struct gen_pool *gen_pool; member 405 pa = gen_pool_alloc(stp->gen_pool, size); in protmem_pool_op_static_alloc() 411 gen_pool_free(stp->gen_pool, pa, size); in protmem_pool_op_static_alloc() 429 gen_pool_free(stp->gen_pool, sg_phys(sg), sg->length); in protmem_pool_op_static_free() 450 gen_pool_destroy(stp->gen_pool); in protmem_pool_op_static_destroy_pool() 479 stp->gen_pool = gen_pool_create(PAGE_SHIFT, -1); in tee_protmem_static_pool_alloc() 480 if (!stp->gen_pool) { in tee_protmem_static_pool_alloc() 485 rc = gen_pool_add(stp->gen_pool, paddr, size, -1); in tee_protmem_static_pool_alloc() 494 gen_pool_destroy(stp->gen_pool); in tee_protmem_static_pool_alloc()
|
| /linux/drivers/misc/ |
| H A D | sram.h | 16 struct gen_pool *pool; 29 struct gen_pool *pool;
|
| /linux/arch/arm/mach-davinci/ |
| H A D | sram.c | 15 static struct gen_pool *sram_pool; 17 struct gen_pool *sram_get_gen_pool(void) in sram_get_gen_pool()
|
| H A D | sram.h | 25 extern struct gen_pool *sram_get_gen_pool(void);
|
| /linux/drivers/soc/fsl/qbman/ |
| H A D | qman_priv.h | 190 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 */
|
| H A D | bman_priv.h | 46 extern struct gen_pool *bm_bpalloc;
|
| /linux/drivers/memory/ |
| H A D | ti-emif-pm.c | 32 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()
|
| /linux/drivers/dma/ |
| H A D | mmp_tdma.c | 126 struct gen_pool *pool; 358 struct gen_pool *gpool; in mmp_tdma_free_descriptor() 410 struct gen_pool *gpool; in mmp_tdma_alloc_descriptor() 562 int type, struct gen_pool *pool) in mmp_tdma_chan_init() 641 struct gen_pool *pool = NULL; in mmp_tdma_probe()
|
| /linux/arch/sh/mm/ |
| H A D | sram.c | 22 struct gen_pool *sram_pool;
|
| /linux/drivers/s390/cio/ |
| H A D | css.c | 1058 static struct gen_pool *cio_dma_pool; 1066 struct gen_pool *cio_gp_dma_create(struct device *dma_dev, int nr_pages) in cio_gp_dma_create() 1068 struct gen_pool *gp_dma; in cio_gp_dma_create() 1087 static void __gp_dma_free_dma(struct gen_pool *pool, in __gp_dma_free_dma() 1097 void cio_gp_dma_destroy(struct gen_pool *gp_dma, struct device *dma_dev) in cio_gp_dma_destroy() 1115 void *__cio_gp_dma_zalloc(struct gen_pool *gp_dma, struct device *dma_dev, in __cio_gp_dma_zalloc() 1138 void *cio_gp_dma_zalloc(struct gen_pool *gp_dma, struct device *dma_dev, in cio_gp_dma_zalloc() 1144 void cio_gp_dma_free(struct gen_pool *gp_dma, void *cpu_addr, size_t size) in cio_gp_dma_free()
|
| /linux/arch/sh/include/asm/ |
| H A D | sram.h | 11 extern struct gen_pool *sram_pool;
|
| /linux/drivers/media/platform/nvidia/tegra-vde/ |
| H A D | vde.h | 44 struct gen_pool; 110 struct gen_pool *iram_pool;
|