bcom_sram 31 drivers/dma/bestcomm/sram.c struct bcom_sram *bcom_sram = NULL; bcom_sram 32 drivers/dma/bestcomm/sram.c EXPORT_SYMBOL_GPL(bcom_sram); /* needed for inline functions */ bcom_sram 49 drivers/dma/bestcomm/sram.c if (bcom_sram) { bcom_sram 55 drivers/dma/bestcomm/sram.c bcom_sram = kmalloc(sizeof(struct bcom_sram), GFP_KERNEL); bcom_sram 56 drivers/dma/bestcomm/sram.c if (!bcom_sram) { bcom_sram 73 drivers/dma/bestcomm/sram.c bcom_sram->base_phys = (phys_addr_t) regaddr64; bcom_sram 74 drivers/dma/bestcomm/sram.c bcom_sram->size = (unsigned int) size64; bcom_sram 77 drivers/dma/bestcomm/sram.c if (!request_mem_region(bcom_sram->base_phys, bcom_sram->size, owner)) { bcom_sram 86 drivers/dma/bestcomm/sram.c bcom_sram->base_virt = (void*) ioremap(bcom_sram->base_phys, bcom_sram->size); bcom_sram 88 drivers/dma/bestcomm/sram.c if (!bcom_sram->base_virt) { bcom_sram 91 drivers/dma/bestcomm/sram.c owner, (long)bcom_sram->base_phys, bcom_sram->size ); bcom_sram 97 drivers/dma/bestcomm/sram.c bcom_sram->rh = rh_create(4); bcom_sram 110 drivers/dma/bestcomm/sram.c rh_attach_region(bcom_sram->rh, 0, bcom_sram->size); bcom_sram 115 drivers/dma/bestcomm/sram.c rh_attach_region(bcom_sram->rh, zbase - bcom_sram->base_phys, regaddr_p[1]); bcom_sram 122 drivers/dma/bestcomm/sram.c spin_lock_init(&bcom_sram->lock); bcom_sram 127 drivers/dma/bestcomm/sram.c release_mem_region(bcom_sram->base_phys, bcom_sram->size); bcom_sram 129 drivers/dma/bestcomm/sram.c kfree(bcom_sram); bcom_sram 130 drivers/dma/bestcomm/sram.c bcom_sram = NULL; bcom_sram 139 drivers/dma/bestcomm/sram.c if (bcom_sram) { bcom_sram 140 drivers/dma/bestcomm/sram.c rh_destroy(bcom_sram->rh); bcom_sram 141 drivers/dma/bestcomm/sram.c iounmap((void __iomem *)bcom_sram->base_virt); bcom_sram 142 drivers/dma/bestcomm/sram.c release_mem_region(bcom_sram->base_phys, bcom_sram->size); bcom_sram 143 drivers/dma/bestcomm/sram.c kfree(bcom_sram); bcom_sram 144 drivers/dma/bestcomm/sram.c bcom_sram = NULL; bcom_sram 153 drivers/dma/bestcomm/sram.c spin_lock(&bcom_sram->lock); bcom_sram 154 drivers/dma/bestcomm/sram.c offset = rh_alloc_align(bcom_sram->rh, size, align, NULL); bcom_sram 155 drivers/dma/bestcomm/sram.c spin_unlock(&bcom_sram->lock); bcom_sram 160 drivers/dma/bestcomm/sram.c *phys = bcom_sram->base_phys + offset; bcom_sram 161 drivers/dma/bestcomm/sram.c return bcom_sram->base_virt + offset; bcom_sram 172 drivers/dma/bestcomm/sram.c offset = ptr - bcom_sram->base_virt; bcom_sram 174 drivers/dma/bestcomm/sram.c spin_lock(&bcom_sram->lock); bcom_sram 175 drivers/dma/bestcomm/sram.c rh_free(bcom_sram->rh, offset); bcom_sram 176 drivers/dma/bestcomm/sram.c spin_unlock(&bcom_sram->lock); bcom_sram 32 include/linux/fsl/bestcomm/sram.h extern struct bcom_sram *bcom_sram; bcom_sram 43 include/linux/fsl/bestcomm/sram.h return bcom_sram->base_phys + bcom_sram 44 include/linux/fsl/bestcomm/sram.h (unsigned long)(va - bcom_sram->base_virt); bcom_sram 48 include/linux/fsl/bestcomm/sram.h return bcom_sram->base_virt + bcom_sram 49 include/linux/fsl/bestcomm/sram.h (unsigned long)(pa - bcom_sram->base_phys);