/kernel/linux/linux-5.10/arch/arm/mach-davinci/ |
H A D | sram.c | 15 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()
|
/kernel/linux/linux-6.6/arch/arm/mach-davinci/ |
H A D | sram.c | 15 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()
|
/kernel/linux/linux-5.10/arch/sh/include/asm/ |
H A D | sram.h | 11 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()
|
/kernel/linux/linux-6.6/arch/sh/include/asm/ |
H A D | sram.h | 11 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()
|
/kernel/linux/linux-6.6/drivers/uio/ |
H A D | uio_pruss.c | 65 struct gen_pool *sram_pool; member 101 gen_pool_free(gdev->sram_pool, in pruss_cleanup() 150 if (pdata->sram_pool) { in pruss_probe() 151 gdev->sram_pool = pdata->sram_pool; in pruss_probe() 153 (unsigned long)gen_pool_dma_alloc(gdev->sram_pool, in pruss_probe() 224 if (pdata->sram_pool) in pruss_probe() 225 gen_pool_free(gdev->sram_pool, gdev->sram_vaddr, sram_pool_sz); in pruss_probe()
|
/kernel/linux/linux-6.6/drivers/remoteproc/ |
H A D | meson_mx_ao_arc.c | 52 struct gen_pool *sram_pool; member 163 priv->sram_pool = of_gen_pool_get(dev->of_node, "sram", 0); in meson_mx_ao_arc_rproc_probe() 164 if (!priv->sram_pool) { in meson_mx_ao_arc_rproc_probe() 169 priv->sram_size = gen_pool_avail(priv->sram_pool); in meson_mx_ao_arc_rproc_probe() 171 priv->sram_va = gen_pool_alloc(priv->sram_pool, priv->sram_size); in meson_mx_ao_arc_rproc_probe() 177 priv->sram_pa = gen_pool_virt_to_phys(priv->sram_pool, priv->sram_va); in meson_mx_ao_arc_rproc_probe() 227 gen_pool_free(priv->sram_pool, priv->sram_va, priv->sram_size); in meson_mx_ao_arc_rproc_probe() 237 gen_pool_free(priv->sram_pool, priv->sram_va, priv->sram_size); in meson_mx_ao_arc_rproc_remove()
|
/kernel/linux/linux-5.10/arch/sh/mm/ |
H A D | sram.c | 22 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()
|
/kernel/linux/linux-6.6/arch/sh/mm/ |
H A D | sram.c | 22 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()
|
/kernel/linux/linux-5.10/drivers/uio/ |
H A D | uio_pruss.c | 73 struct gen_pool *sram_pool; member 110 gen_pool_free(gdev->sram_pool, in pruss_cleanup() 165 if (pdata->sram_pool) { in pruss_probe() 166 gdev->sram_pool = pdata->sram_pool; in pruss_probe() 168 (unsigned long)gen_pool_dma_alloc(gdev->sram_pool, in pruss_probe() 237 if (pdata->sram_pool) in pruss_probe() 238 gen_pool_free(gdev->sram_pool, gdev->sram_vaddr, sram_pool_sz); in pruss_probe()
|
/kernel/linux/linux-5.10/drivers/soc/ti/ |
H A D | pm33xx.c | 51 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() 378 gen_pool_free(sram_pool, ocmcram_location, *pm_sram->do_wfi_sz); in am33xx_pm_free_sram() 401 sram_pool = of_gen_pool_get(np, "pm-sram", 0); in am33xx_pm_alloc_sram() 402 if (!sram_pool) { in am33xx_pm_alloc_sram() 417 ocmcram_location = gen_pool_alloc(sram_pool, *pm_sram->do_wfi_sz); in am33xx_pm_alloc_sram() 429 gen_pool_free(sram_pool, ocmcram_locatio in am33xx_pm_alloc_sram() [all...] |
/kernel/linux/linux-6.6/drivers/soc/ti/ |
H A D | pm33xx.c | 51 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() 399 sram_pool = of_gen_pool_get(np, "pm-sram", 0); in am33xx_pm_alloc_sram() 400 if (!sram_pool) { in am33xx_pm_alloc_sram() 415 ocmcram_location = gen_pool_alloc(sram_pool, *pm_sram->do_wfi_sz); in am33xx_pm_alloc_sram() 427 gen_pool_free(sram_pool, ocmcram_locatio in am33xx_pm_alloc_sram() [all...] |
/kernel/linux/linux-5.10/arch/arm/mach-omap2/ |
H A D | omap4-common.c | 128 struct gen_pool *sram_pool; in omap4_sram_init() local 137 sram_pool = of_gen_pool_get(np, "sram", 0); in omap4_sram_init() 138 if (!sram_pool) in omap4_sram_init() 142 sram_sync = (void *)gen_pool_alloc(sram_pool, PAGE_SIZE); in omap4_sram_init()
|
/kernel/linux/linux-6.6/arch/arm/mach-omap2/ |
H A D | omap4-common.c | 127 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()
|
/kernel/linux/linux-5.10/arch/arm/mach-at91/ |
H A D | pm.c | 584 struct gen_pool *sram_pool; in at91_pm_sram_init() local 603 sram_pool = gen_pool_get(&pdev->dev, NULL); in at91_pm_sram_init() 604 if (!sram_pool) { in at91_pm_sram_init() 609 sram_base = gen_pool_alloc(sram_pool, at91_pm_suspend_in_sram_sz); in at91_pm_sram_init() 615 sram_pbase = gen_pool_virt_to_phys(sram_pool, sram_base); in at91_pm_sram_init() 641 struct gen_pool *sram_pool; in at91_pm_backup_init() local 672 sram_pool = gen_pool_get(&pdev->dev, NULL); in at91_pm_backup_init() 673 if (!sram_pool) { in at91_pm_backup_init() 678 pm_bu = (void *)gen_pool_alloc(sram_pool, sizeof(struct at91_pm_bu)); in at91_pm_backup_init()
|
/kernel/linux/linux-5.10/include/linux/platform_data/ |
H A D | uio_pruss.h | 24 struct gen_pool *sram_pool; member
|
H A D | davinci_asp.h | 34 struct gen_pool *sram_pool; member
|
/kernel/linux/linux-6.6/include/linux/platform_data/ |
H A D | uio_pruss.h | 16 struct gen_pool *sram_pool; member
|
H A D | davinci_asp.h | 26 struct gen_pool *sram_pool; member
|
/kernel/linux/linux-6.6/arch/arm/mach-at91/ |
H A D | pm.c | 957 struct gen_pool *sram_pool; in at91_pm_sram_init() local 976 sram_pool = gen_pool_get(&pdev->dev, NULL); in at91_pm_sram_init() 977 if (!sram_pool) { in at91_pm_sram_init() 982 sram_base = gen_pool_alloc(sram_pool, at91_pm_suspend_in_sram_sz); in at91_pm_sram_init() 988 sram_pbase = gen_pool_virt_to_phys(sram_pool, sram_base); in at91_pm_sram_init() 1042 struct gen_pool *sram_pool; in at91_pm_backup_init() local 1065 sram_pool = gen_pool_get(&pdev->dev, NULL); in at91_pm_backup_init() 1066 if (!sram_pool) { in at91_pm_backup_init() 1071 soc_pm.bu = (void *)gen_pool_alloc(sram_pool, sizeof(struct at91_pm_bu)); in at91_pm_backup_init()
|
/kernel/linux/linux-5.10/drivers/memory/ |
H A D | ti-emif-pm.c | 196 * @sram_pool: pointer to struct gen_pool where dst resides 201 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()
|
/kernel/linux/linux-6.6/drivers/memory/ |
H A D | ti-emif-pm.c | 196 * @sram_pool: pointer to struct gen_pool where dst resides 201 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()
|
/kernel/linux/linux-5.10/arch/sh/boards/mach-sdk7786/ |
H A D | sram.c | 60 ret = gen_pool_add(sram_pool, (unsigned long)vaddr, SZ_2K, -1); in fpga_sram_init()
|
/kernel/linux/linux-6.6/arch/sh/boards/mach-sdk7786/ |
H A D | sram.c | 60 ret = gen_pool_add(sram_pool, (unsigned long)vaddr, SZ_2K, -1); in fpga_sram_init()
|
/kernel/linux/linux-5.10/drivers/fsi/ |
H A D | fsi-master-ast-cf.c | 110 struct gen_pool *sram_pool; member 1202 gen_pool_free(master->sram_pool, (unsigned long)master->sram, SRAM_SIZE); in fsi_master_acf_release() 1341 master->sram_pool = of_gen_pool_get(dev_of_node(&pdev->dev), "aspeed,sram", 0); in fsi_master_acf_probe() 1342 if (!master->sram_pool) { in fsi_master_acf_probe() 1350 master->sram = (void __iomem *)gen_pool_alloc_algo(master->sram_pool, SRAM_SIZE, in fsi_master_acf_probe() 1358 (unsigned long)gen_pool_virt_to_phys(master->sram_pool, in fsi_master_acf_probe() 1406 gen_pool_free(master->sram_pool, (unsigned long)master->sram, SRAM_SIZE); in fsi_master_acf_probe()
|
/kernel/linux/linux-6.6/drivers/fsi/ |
H A D | fsi-master-ast-cf.c | 110 struct gen_pool *sram_pool; member 1202 gen_pool_free(master->sram_pool, (unsigned long)master->sram, SRAM_SIZE); in fsi_master_acf_release() 1342 master->sram_pool = of_gen_pool_get(dev_of_node(&pdev->dev), "aspeed,sram", 0); in fsi_master_acf_probe() 1343 if (!master->sram_pool) { in fsi_master_acf_probe() 1351 master->sram = (void __iomem *)gen_pool_alloc_algo(master->sram_pool, SRAM_SIZE, in fsi_master_acf_probe() 1359 (unsigned long)gen_pool_virt_to_phys(master->sram_pool, in fsi_master_acf_probe() 1407 gen_pool_free(master->sram_pool, (unsigned long)master->sram, SRAM_SIZE); in fsi_master_acf_probe()
|