Home
last modified time | relevance | path

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

/openbmc/linux/drivers/dma/bestcomm/
H A Dsram.c27 struct bcom_sram *bcom_sram = NULL; variable
45 if (bcom_sram) { in bcom_sram_init()
51 bcom_sram = kmalloc(sizeof(struct bcom_sram), GFP_KERNEL); in bcom_sram_init()
52 if (!bcom_sram) { in bcom_sram_init()
84 owner, (long)bcom_sram->base_phys, bcom_sram->size ); in bcom_sram_init()
103 rh_attach_region(bcom_sram->rh, 0, bcom_sram->size); in bcom_sram_init()
122 kfree(bcom_sram); in bcom_sram_init()
123 bcom_sram = NULL; in bcom_sram_init()
132 if (bcom_sram) { in bcom_sram_cleanup()
135 release_mem_region(bcom_sram->base_phys, bcom_sram->size); in bcom_sram_cleanup()
[all …]
/openbmc/linux/include/linux/fsl/bestcomm/
H A Dsram.h24 struct bcom_sram { struct
32 extern struct bcom_sram *bcom_sram; argument
43 return bcom_sram->base_phys + in bcom_sram_va2pa()
44 (unsigned long)(va - bcom_sram->base_virt); in bcom_sram_va2pa()
48 return bcom_sram->base_virt + in bcom_sram_pa2va()
49 (unsigned long)(pa - bcom_sram->base_phys); in bcom_sram_pa2va()