Searched refs:sram_pool (Results 1 – 8 of 8) sorted by relevance
/arch/arm/mach-davinci/ |
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()
|
D | devices-da8xx.c | 647 da8xx_uio_pruss_pdata.sram_pool = sram_get_gen_pool(); in da8xx_register_uio_pruss()
|
D | board-da850-evm.c | 1469 da850_evm_snd_data.sram_pool = sram_get_gen_pool(); in da850_evm_init()
|
/arch/sh/include/asm/ |
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()
|
/arch/sh/mm/ |
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()
|
/arch/arm/mach-omap2/ |
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()
|
/arch/arm/mach-at91/ |
D | pm.c | 573 struct gen_pool *sram_pool; in at91_pm_sram_init() local 592 sram_pool = gen_pool_get(&pdev->dev, NULL); in at91_pm_sram_init() 593 if (!sram_pool) { in at91_pm_sram_init() 598 sram_base = gen_pool_alloc(sram_pool, at91_pm_suspend_in_sram_sz); in at91_pm_sram_init() 604 sram_pbase = gen_pool_virt_to_phys(sram_pool, sram_base); in at91_pm_sram_init() 630 struct gen_pool *sram_pool; in at91_pm_backup_init() local 661 sram_pool = gen_pool_get(&pdev->dev, NULL); in at91_pm_backup_init() 662 if (!sram_pool) { in at91_pm_backup_init() 667 pm_bu = (void *)gen_pool_alloc(sram_pool, sizeof(struct at91_pm_bu)); in at91_pm_backup_init()
|
/arch/sh/boards/mach-sdk7786/ |
D | sram.c | 60 ret = gen_pool_add(sram_pool, (unsigned long)vaddr, SZ_2K, -1); in fpga_sram_init()
|