Searched refs:cache_sram (Results 1 – 1 of 1) sorted by relevance
23 struct mpc85xx_cache_sram *cache_sram; variable31 if (unlikely(cache_sram == NULL)) in mpc85xx_cache_sram_alloc()34 if (!size || (size > cache_sram->size) || (align > cache_sram->size)) { in mpc85xx_cache_sram_alloc()46 spin_lock_irqsave(&cache_sram->lock, flags); in mpc85xx_cache_sram_alloc()47 offset = rh_alloc_align(cache_sram->rh, size, align, NULL); in mpc85xx_cache_sram_alloc()48 spin_unlock_irqrestore(&cache_sram->lock, flags); in mpc85xx_cache_sram_alloc()53 *phys = cache_sram->base_phys + offset; in mpc85xx_cache_sram_alloc()55 return (unsigned char *)cache_sram->base_virt + offset; in mpc85xx_cache_sram_alloc()64 spin_lock_irqsave(&cache_sram->lock, flags); in mpc85xx_cache_sram_free()65 rh_free(cache_sram->rh, ptr - cache_sram->base_virt); in mpc85xx_cache_sram_free()[all …]