Symbol: bcom_sram
drivers/dma/bestcomm/sram.c
103
rh_attach_region(bcom_sram->rh, zbase - bcom_sram->base_phys, regaddr_p[1]);
drivers/dma/bestcomm/sram.c
110
spin_lock_init(&bcom_sram->lock);
drivers/dma/bestcomm/sram.c
117
kfree(bcom_sram);
drivers/dma/bestcomm/sram.c
118
bcom_sram = NULL;
drivers/dma/bestcomm/sram.c
127
if (bcom_sram) {
drivers/dma/bestcomm/sram.c
128
rh_destroy(bcom_sram->rh);
drivers/dma/bestcomm/sram.c
129
iounmap((void __iomem *)bcom_sram->base_virt);
drivers/dma/bestcomm/sram.c
130
release_mem_region(bcom_sram->base_phys, bcom_sram->size);
drivers/dma/bestcomm/sram.c
131
kfree(bcom_sram);
drivers/dma/bestcomm/sram.c
132
bcom_sram = NULL;
drivers/dma/bestcomm/sram.c
141
spin_lock(&bcom_sram->lock);
drivers/dma/bestcomm/sram.c
142
offset = rh_alloc_align(bcom_sram->rh, size, align, NULL);
drivers/dma/bestcomm/sram.c
143
spin_unlock(&bcom_sram->lock);
drivers/dma/bestcomm/sram.c
148
*phys = bcom_sram->base_phys + offset;
drivers/dma/bestcomm/sram.c
149
return bcom_sram->base_virt + offset;
drivers/dma/bestcomm/sram.c
160
offset = ptr - bcom_sram->base_virt;
drivers/dma/bestcomm/sram.c
162
spin_lock(&bcom_sram->lock);
drivers/dma/bestcomm/sram.c
163
rh_free(bcom_sram->rh, offset);
drivers/dma/bestcomm/sram.c
164
spin_unlock(&bcom_sram->lock);
drivers/dma/bestcomm/sram.c
27
struct bcom_sram *bcom_sram = NULL;
drivers/dma/bestcomm/sram.c
28
EXPORT_SYMBOL_GPL(bcom_sram); /* needed for inline functions */
drivers/dma/bestcomm/sram.c
45
if (bcom_sram) {
drivers/dma/bestcomm/sram.c
51
bcom_sram = kmalloc_obj(struct bcom_sram);
drivers/dma/bestcomm/sram.c
52
if (!bcom_sram) {
drivers/dma/bestcomm/sram.c
66
bcom_sram->base_phys = res.start;
drivers/dma/bestcomm/sram.c
67
bcom_sram->size = resource_size(&res);
drivers/dma/bestcomm/sram.c
79
bcom_sram->base_virt = (void *)ioremap(res.start, resource_size(&res));
drivers/dma/bestcomm/sram.c
81
if (!bcom_sram->base_virt) {
drivers/dma/bestcomm/sram.c
84
owner, (long)bcom_sram->base_phys, bcom_sram->size );
drivers/dma/bestcomm/sram.c
90
bcom_sram->rh = rh_create(4);
drivers/dma/bestcomm/sram.c
98
rh_attach_region(bcom_sram->rh, 0, bcom_sram->size);
include/linux/fsl/bestcomm/sram.h
32
extern struct bcom_sram *bcom_sram;
include/linux/fsl/bestcomm/sram.h
43
return bcom_sram->base_phys +
include/linux/fsl/bestcomm/sram.h
44
(unsigned long)(va - bcom_sram->base_virt);
include/linux/fsl/bestcomm/sram.h
48
return bcom_sram->base_virt +
include/linux/fsl/bestcomm/sram.h
49
(unsigned long)(pa - bcom_sram->base_phys);