Home
last modified time | relevance | path

Searched refs:sram_pool (Results 1 – 15 of 15) sorted by relevance

/linux/arch/arm/mach-davinci/
H A Dsram.c15 static struct gen_pool *sram_pool; variable
19 return sram_pool; in sram_get_gen_pool()
28 if (!sram_pool || (dma && !dma_base)) in sram_alloc()
31 return gen_pool_dma_alloc(sram_pool, len, dma); in sram_alloc()
38 gen_pool_free(sram_pool, (unsigned long) addr, len); in sram_free()
58 sram_pool = gen_pool_create(ilog2(SRAM_GRANULARITY), -1); in sram_init()
59 if (!sram_pool) in sram_init()
63 if (sram_pool) { in sram_init()
67 status = gen_pool_add_virt(sram_pool, (unsigned long) addr, in sram_init()
/linux/arch/sh/include/asm/
H A Dsram.h11 extern struct gen_pool *sram_pool;
15 if (!sram_pool) in sram_alloc()
18 return gen_pool_alloc(sram_pool, len); in sram_alloc()
23 return gen_pool_free(sram_pool, addr, len); in sram_free()
/linux/arch/sh/mm/
H A Dsram.c22 struct gen_pool *sram_pool; variable
29 sram_pool = gen_pool_create(1, -1); in sram_pool_init()
30 if (unlikely(!sram_pool)) in sram_pool_init()
/linux/drivers/soc/ti/
H A Dpm33xx.c51 static struct gen_pool *sram_pool, *sram_pool_data; variable
100 am33xx_do_wfi_sram_phys = gen_pool_virt_to_phys(sram_pool, in am33xx_push_sram_idle()
103 am33xx_do_wfi_sram = sram_exec_copy(sram_pool, (void *)ocmcram_location, in am33xx_push_sram_idle()
115 ret = ti_emif_copy_pm_function_table(sram_pool, (void *)table_addr); in am33xx_push_sram_idle()
124 copy_addr = sram_exec_copy(sram_pool, (void *)ro_data_addr, in am33xx_push_sram_idle()
376 gen_pool_free(sram_pool, ocmcram_location, *pm_sram->do_wfi_sz); in am33xx_pm_free_sram()
397 sram_pool = of_gen_pool_get(np, "pm-sram", 0); in am33xx_pm_alloc_sram()
398 if (!sram_pool) in am33xx_pm_alloc_sram()
409 ocmcram_location = gen_pool_alloc(sram_pool, *pm_sram->do_wfi_sz); in am33xx_pm_alloc_sram()
418 gen_pool_free(sram_pool, ocmcram_location, *pm_sram->do_wfi_sz); in am33xx_pm_alloc_sram()
/linux/arch/arm/mach-omap2/
H A Domap4-common.c127 struct gen_pool *sram_pool; in omap4_sram_init() local
136 sram_pool = of_gen_pool_get(np, "sram", 0); in omap4_sram_init()
137 if (!sram_pool) in omap4_sram_init()
141 sram_sync = (void __iomem *)gen_pool_alloc(sram_pool, PAGE_SIZE); in omap4_sram_init()
/linux/drivers/media/platform/chips-media/wave5/
H A Dwave5-vdi.c185 if (!vpu_dev->sram_pool || vb->vaddr) in wave5_vdi_allocate_sram()
188 size = min_t(size_t, vpu_dev->sram_size, gen_pool_avail(vpu_dev->sram_pool)); in wave5_vdi_allocate_sram()
189 vaddr = gen_pool_dma_alloc(vpu_dev->sram_pool, size, &daddr); in wave5_vdi_allocate_sram()
207 gen_pool_free(vpu_dev->sram_pool, (unsigned long)vb->vaddr, vb->size); in wave5_vdi_free_sram()
/linux/include/linux/platform_data/
H A Ddavinci_asp.h26 struct gen_pool *sram_pool; member
/linux/arch/sh/boards/mach-sdk7786/
H A Dsram.c60 ret = gen_pool_add(sram_pool, (unsigned long)vaddr, SZ_2K, -1); in fpga_sram_init()
/linux/drivers/memory/
H A Dti-emif-pm.c201 int ti_emif_copy_pm_function_table(struct gen_pool *sram_pool, void *dst) in ti_emif_copy_pm_function_table() argument
208 copy_addr = sram_exec_copy(sram_pool, dst, in ti_emif_copy_pm_function_table()
/linux/drivers/fsi/
H A Dfsi-master-ast-cf.c110 struct gen_pool *sram_pool; member
1202 gen_pool_free(master->sram_pool, (unsigned long)master->sram, SRAM_SIZE); in fsi_master_acf_release()
1335 master->sram_pool = of_gen_pool_get(dev_of_node(&pdev->dev), "aspeed,sram", 0); in fsi_master_acf_probe()
1336 if (!master->sram_pool) { in fsi_master_acf_probe()
1344 master->sram = (void __iomem *)gen_pool_alloc_algo(master->sram_pool, SRAM_SIZE, in fsi_master_acf_probe()
1352 (unsigned long)gen_pool_virt_to_phys(master->sram_pool, in fsi_master_acf_probe()
1400 gen_pool_free(master->sram_pool, (unsigned long)master->sram, SRAM_SIZE); in fsi_master_acf_probe()
/linux/drivers/crypto/marvell/cesa/
H A Dcesa.c383 engine->sram_pool = gen_pool_dma_alloc(engine->pool, in mv_cesa_get_sram()
386 if (engine->sram_pool) in mv_cesa_get_sram()
412 gen_pool_free(engine->pool, (unsigned long)engine->sram_pool, in mv_cesa_put_sram()
/linux/drivers/spi/
H A Dspi-stm32.c373 struct gen_pool *sram_pool; member
2433 spi->sram_pool = of_gen_pool_get(pdev->dev.of_node, "sram", 0); in stm32_spi_probe()
2434 if (spi->sram_pool) { in stm32_spi_probe()
2435 spi->sram_rx_buf_size = gen_pool_size(spi->sram_pool); in stm32_spi_probe()
2438 spi->sram_rx_buf = gen_pool_dma_zalloc(spi->sram_pool, spi->sram_rx_buf_size, in stm32_spi_probe()
2450 gen_pool_free(spi->sram_pool, in stm32_spi_probe()
2490 if (spi->sram_pool) in stm32_spi_probe()
2491 gen_pool_free(spi->sram_pool, (unsigned long)spi->sram_rx_buf, in stm32_spi_probe()
2526 gen_pool_free(spi->sram_pool, (unsigned long)spi->sram_rx_buf, in stm32_spi_remove()
/linux/include/linux/
H A Dti-emif-sram.h135 int ti_emif_copy_pm_function_table(struct gen_pool *sram_pool, void *dst);
/linux/drivers/net/ethernet/mediatek/
H A Dmtk_eth_soc.c1276 if (use_sram && eth->sram_pool) { in mtk_dma_ring_alloc()
1277 dma_ring = (void *)gen_pool_alloc(eth->sram_pool, size); in mtk_dma_ring_alloc()
1280 *dma_handle = gen_pool_virt_to_phys(eth->sram_pool, in mtk_dma_ring_alloc()
1293 if (in_sram && eth->sram_pool) in mtk_dma_ring_free()
1294 gen_pool_free(eth->sram_pool, (unsigned long)dma_ring, size); in mtk_dma_ring_free()
5028 eth->sram_pool = devm_gen_pool_create(eth->dev, in mtk_setup_legacy_sram()
5032 if (IS_ERR(eth->sram_pool)) in mtk_setup_legacy_sram()
5033 return PTR_ERR(eth->sram_pool); in mtk_setup_legacy_sram()
5035 return gen_pool_add_virt(eth->sram_pool, in mtk_setup_legacy_sram()
5139 eth->sram_pool = of_gen_pool_get(pdev->dev.of_node, in mtk_probe()
[all …]
H A Dmtk_eth_soc.h1296 struct gen_pool *sram_pool; member