Home
last modified time | relevance | path

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

/arch/arm/mach-davinci/
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()
/arch/sh/include/asm/
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()
/arch/sh/mm/
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()
/arch/arm/mach-omap2/
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()
/arch/sh/boards/mach-sdk7786/
A Dsram.c60 ret = gen_pool_add(sram_pool, (unsigned long)vaddr, SZ_2K, -1); in fpga_sram_init()
/arch/arm/mach-at91/
A Dpm.c982 struct gen_pool *sram_pool; in at91_pm_sram_init() local
1001 sram_pool = gen_pool_get(&pdev->dev, NULL); in at91_pm_sram_init()
1002 if (!sram_pool) { in at91_pm_sram_init()
1007 sram_base = gen_pool_alloc(sram_pool, at91_pm_suspend_in_sram_sz); in at91_pm_sram_init()
1013 sram_pbase = gen_pool_virt_to_phys(sram_pool, sram_base); in at91_pm_sram_init()
1067 struct gen_pool *sram_pool; in at91_pm_backup_init() local
1091 sram_pool = gen_pool_get(&pdev->dev, NULL); in at91_pm_backup_init()
1092 if (!sram_pool) { in at91_pm_backup_init()
1097 soc_pm.bu = (void *)gen_pool_alloc(sram_pool, sizeof(struct at91_pm_bu)); in at91_pm_backup_init()

Completed in 13 milliseconds