Home
last modified time | relevance | path

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

/linux-2.6.39/arch/powerpc/sysdev/
Dfsl_85xx_cache_sram.c35 struct mpc85xx_cache_sram *cache_sram; variable
43 if (unlikely(cache_sram == NULL)) in mpc85xx_cache_sram_alloc()
46 if (!size || (size > cache_sram->size) || (align > cache_sram->size)) { in mpc85xx_cache_sram_alloc()
58 spin_lock_irqsave(&cache_sram->lock, flags); in mpc85xx_cache_sram_alloc()
59 offset = rh_alloc_align(cache_sram->rh, size, align, NULL); in mpc85xx_cache_sram_alloc()
60 spin_unlock_irqrestore(&cache_sram->lock, flags); in mpc85xx_cache_sram_alloc()
65 *phys = cache_sram->base_phys + offset; in mpc85xx_cache_sram_alloc()
67 return (unsigned char *)cache_sram->base_virt + offset; in mpc85xx_cache_sram_alloc()
76 spin_lock_irqsave(&cache_sram->lock, flags); in mpc85xx_cache_sram_free()
77 rh_free(cache_sram->rh, ptr - cache_sram->base_virt); in mpc85xx_cache_sram_free()
[all …]