Home
last modified time | relevance | path

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

/linux-4.1.27/arch/powerpc/sysdev/
Dfsl_85xx_cache_sram.c36 struct mpc85xx_cache_sram *cache_sram; variable
44 if (unlikely(cache_sram == NULL)) in mpc85xx_cache_sram_alloc()
47 if (!size || (size > cache_sram->size) || (align > cache_sram->size)) { in mpc85xx_cache_sram_alloc()
59 spin_lock_irqsave(&cache_sram->lock, flags); in mpc85xx_cache_sram_alloc()
60 offset = rh_alloc_align(cache_sram->rh, size, align, NULL); in mpc85xx_cache_sram_alloc()
61 spin_unlock_irqrestore(&cache_sram->lock, flags); in mpc85xx_cache_sram_alloc()
66 *phys = cache_sram->base_phys + offset; in mpc85xx_cache_sram_alloc()
68 return (unsigned char *)cache_sram->base_virt + offset; in mpc85xx_cache_sram_alloc()
77 spin_lock_irqsave(&cache_sram->lock, flags); in mpc85xx_cache_sram_free()
78 rh_free(cache_sram->rh, ptr - cache_sram->base_virt); in mpc85xx_cache_sram_free()
[all …]