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

/linux-4.4.14/include/linux/
H A Dgenalloc.h55 struct gen_pool { struct
78 extern struct gen_pool *gen_pool_create(int, int);
79 extern phys_addr_t gen_pool_virt_to_phys(struct gen_pool *pool, unsigned long);
80 extern int gen_pool_add_virt(struct gen_pool *, unsigned long, phys_addr_t,
94 static inline int gen_pool_add(struct gen_pool *pool, unsigned long addr, gen_pool_add()
99 extern void gen_pool_destroy(struct gen_pool *);
100 extern unsigned long gen_pool_alloc(struct gen_pool *, size_t);
101 extern void *gen_pool_dma_alloc(struct gen_pool *pool, size_t size,
103 extern void gen_pool_free(struct gen_pool *, unsigned long, size_t);
104 extern void gen_pool_for_each_chunk(struct gen_pool *,
105 void (*)(struct gen_pool *, struct gen_pool_chunk *, void *), void *);
106 extern size_t gen_pool_avail(struct gen_pool *);
107 extern size_t gen_pool_size(struct gen_pool *);
109 extern void gen_pool_set_algo(struct gen_pool *pool, genpool_algo_t algo,
122 extern struct gen_pool *devm_gen_pool_create(struct device *dev,
124 extern struct gen_pool *gen_pool_get(struct device *dev, const char *name);
126 bool addr_in_gen_pool(struct gen_pool *pool, unsigned long start,
130 extern struct gen_pool *of_gen_pool_get(struct device_node *np,
133 static inline struct gen_pool *of_gen_pool_get(struct device_node *np, of_gen_pool_get()
/linux-4.4.14/include/linux/platform_data/
H A Ddma-mmp_tdma.h32 extern struct gen_pool *sram_get_gpool(char *pool_name);
34 static inline struct gen_pool *sram_get_gpool(char *pool_name) sram_get_gpool()
H A Duio_pruss.h24 struct gen_pool *sram_pool;
H A Ddavinci_asp.h34 struct gen_pool *sram_pool;
/linux-4.4.14/lib/
H A Dgenalloc.c152 struct gen_pool *gen_pool_create(int min_alloc_order, int nid) gen_pool_create()
154 struct gen_pool *pool; gen_pool_create()
156 pool = kmalloc_node(sizeof(struct gen_pool), GFP_KERNEL, nid); gen_pool_create()
182 int gen_pool_add_virt(struct gen_pool *pool, unsigned long virt, phys_addr_t phys, gen_pool_add_virt()
214 phys_addr_t gen_pool_virt_to_phys(struct gen_pool *pool, unsigned long addr) gen_pool_virt_to_phys()
239 void gen_pool_destroy(struct gen_pool *pool) gen_pool_destroy()
271 unsigned long gen_pool_alloc(struct gen_pool *pool, size_t size) gen_pool_alloc()
326 void *gen_pool_dma_alloc(struct gen_pool *pool, size_t size, dma_addr_t *dma) gen_pool_dma_alloc()
354 void gen_pool_free(struct gen_pool *pool, unsigned long addr, size_t size) gen_pool_free()
392 void gen_pool_for_each_chunk(struct gen_pool *pool, gen_pool_for_each_chunk()
393 void (*func)(struct gen_pool *pool, struct gen_pool_chunk *chunk, void *data), gen_pool_for_each_chunk()
414 bool addr_in_gen_pool(struct gen_pool *pool, unsigned long start, addr_in_gen_pool()
440 size_t gen_pool_avail(struct gen_pool *pool) gen_pool_avail()
459 size_t gen_pool_size(struct gen_pool *pool) gen_pool_size()
482 void gen_pool_set_algo(struct gen_pool *pool, genpool_algo_t algo, void *data) gen_pool_set_algo()
571 gen_pool_destroy(*(struct gen_pool **)res); devm_gen_pool_release()
576 struct gen_pool **p = res; devm_gen_pool_match()
589 * gen_pool_get - Obtain the gen_pool (if any) for a device
590 * @dev: device to retrieve the gen_pool from
591 * @name: name of a gen_pool or NULL, identifies a particular gen_pool on device
593 * Returns the gen_pool for the device if one is present, or NULL.
595 struct gen_pool *gen_pool_get(struct device *dev, const char *name) gen_pool_get()
597 struct gen_pool **p; gen_pool_get()
609 * @dev: device that provides the gen_pool
611 * @nid: node selector for allocated gen_pool, %NUMA_NO_NODE for all nodes
612 * @name: name of a gen_pool or NULL, identifies a particular gen_pool on device
618 struct gen_pool *devm_gen_pool_create(struct device *dev, int min_alloc_order, devm_gen_pool_create()
621 struct gen_pool **ptr, *pool; devm_gen_pool_create()
668 struct gen_pool *of_gen_pool_get(struct device_node *np, of_gen_pool_get()
674 struct gen_pool *pool = NULL; of_gen_pool_get()
682 /* Check if named gen_pool is created by parent node device */ of_gen_pool_get()
/linux-4.4.14/arch/arm/mach-davinci/include/mach/
H A Dsram.h27 /* Get the struct gen_pool * for use in platform data */
28 extern struct gen_pool *sram_get_gen_pool(void);
/linux-4.4.14/arch/sh/include/asm/
H A Dsram.h10 extern struct gen_pool *sram_pool;
/linux-4.4.14/arch/avr32/mach-at32ap/include/mach/
H A Dsram.h15 extern struct gen_pool *sram_pool;
/linux-4.4.14/arch/x86/kernel/cpu/mcheck/
H A Dmce-genpool.c25 static struct gen_pool *mce_evt_pool;
73 struct gen_pool *tmpp; mce_gen_pool_create()
/linux-4.4.14/arch/arm/mach-davinci/
H A Dsram.c19 static struct gen_pool *sram_pool;
21 struct gen_pool *sram_get_gen_pool(void) sram_get_gen_pool()
/linux-4.4.14/arch/sh/mm/
H A Dsram.c22 struct gen_pool *sram_pool;
/linux-4.4.14/arch/arm/mach-mmp/
H A Dsram.c29 struct gen_pool *gpool;
42 struct gen_pool *sram_get_gpool(char *pool_name) sram_get_gpool()
/linux-4.4.14/sound/soc/pxa/
H A Dmmp-pcm.c149 struct gen_pool *gpool; mmp_pcm_free_dma_buffers()
177 struct gen_pool *gpool; mmp_pcm_preallocate_dma_buffer()
/linux-4.4.14/arch/ia64/kernel/
H A Duncached.c35 struct gen_pool *pool;
229 struct gen_pool *pool = uncached_pools[nid].pool; uncached_free_page()
255 struct gen_pool *pool = uncached_pools[nid].pool; uncached_build_memmap()
/linux-4.4.14/drivers/dma/
H A Dmmp_tdma.c129 struct gen_pool *pool;
359 struct gen_pool *gpool; mmp_tdma_free_descriptor()
409 struct gen_pool *gpool; mmp_tdma_alloc_descriptor()
543 int type, struct gen_pool *pool) mmp_tdma_chan_init()
631 struct gen_pool *pool = NULL; mmp_tdma_probe()
/linux-4.4.14/arch/metag/kernel/
H A Dtcm.c21 struct gen_pool *pool;
/linux-4.4.14/arch/arm/mach-socfpga/
H A Dpm.c41 struct gen_pool *ocram_pool; socfpga_setup_ocram_self_refresh()
/linux-4.4.14/drivers/infiniband/hw/cxgb3/
H A Dcxio_hal.h111 struct gen_pool *pbl_pool;
112 struct gen_pool *rqt_pool;
/linux-4.4.14/sound/core/
H A Dmemalloc.c121 struct gen_pool *pool = NULL; snd_malloc_dev_iram()
144 struct gen_pool *pool = dmab->private_data; snd_free_dev_iram()
/linux-4.4.14/drivers/staging/android/ion/
H A Dion_carveout_heap.c30 struct gen_pool *pool;
H A Dion_chunk_heap.c29 struct gen_pool *pool;
/linux-4.4.14/arch/hexagon/kernel/
H A Ddma.c47 static struct gen_pool *coherent_pool;
/linux-4.4.14/drivers/misc/
H A Dsram.c34 struct gen_pool *pool;
43 struct gen_pool *pool;
/linux-4.4.14/drivers/uio/
H A Duio_pruss.c73 struct gen_pool *sram_pool;
/linux-4.4.14/drivers/media/platform/coda/
H A Dcoda.h86 struct gen_pool *iram_pool;
H A Dcoda-common.c2111 struct gen_pool *pool; coda_probe()
/linux-4.4.14/drivers/net/caif/
H A Dcaif_virtio.c122 struct gen_pool *genpool;
571 netdev_warn(cfv->ndev, "Out of gen_pool memory\n"); cfv_netdev_tx()
/linux-4.4.14/arch/arm/mach-omap2/
H A Domap4-common.c132 struct gen_pool *sram_pool; omap4_sram_init()
/linux-4.4.14/arch/arm/kernel/
H A Dtcm.c24 static struct gen_pool *tcm_pool;
/linux-4.4.14/arch/arm/mach-at91/
H A Dpm.c358 struct gen_pool *sram_pool; at91_pm_sram_init()
/linux-4.4.14/arch/arm/mach-imx/
H A Dpm-imx5.c280 struct gen_pool *ocram_pool; imx_suspend_alloc_ocram()
H A Dpm-imx6.c455 struct gen_pool *ocram_pool; imx6q_suspend_init()
/linux-4.4.14/drivers/infiniband/hw/cxgb4/
H A Diw_cxgb4.h171 struct gen_pool *pbl_pool;
172 struct gen_pool *rqt_pool;
173 struct gen_pool *ocqp_pool;
/linux-4.4.14/drivers/acpi/apei/
H A Dghes.c124 static struct gen_pool *ghes_estatus_pool;
201 static void ghes_estatus_pool_free_chunk_page(struct gen_pool *pool, ghes_estatus_pool_free_chunk_page()
/linux-4.4.14/drivers/video/fbdev/
H A Dsh_mobile_meram.c160 struct gen_pool *pool;
/linux-4.4.14/drivers/crypto/marvell/
H A Dcesa.h446 struct gen_pool *pool;
/linux-4.4.14/arch/avr32/mach-at32ap/
H A Dat32ap700x.c2330 struct gen_pool *sram_pool;
2334 struct gen_pool *pool; sram_init()
/linux-4.4.14/drivers/iommu/
H A Dfsl_pamu.c77 static struct gen_pool *spaace_pool;
/linux-4.4.14/drivers/crypto/
H A Dmv_cesa.c89 struct gen_pool *sram_pool;
/linux-4.4.14/arch/arm64/mm/
H A Ddma-mapping.c40 static struct gen_pool *atomic_pool;
/linux-4.4.14/arch/arm/mm/
H A Ddma-mapping.c322 static struct gen_pool *atomic_pool;

Completed in 1348 milliseconds