Lines Matching refs:p
90 struct uio_info *p = gdev->info; in pruss_cleanup() local
92 for (cnt = 0; cnt < MAX_PRUSS_EVT; cnt++, p++) { in pruss_cleanup()
93 uio_unregister_device(p); in pruss_cleanup()
109 struct uio_info *p; in pruss_probe() local
120 gdev->info = devm_kcalloc(dev, MAX_PRUSS_EVT, sizeof(*p), GFP_KERNEL); in pruss_probe()
185 for (cnt = 0, p = gdev->info; cnt < MAX_PRUSS_EVT; cnt++, p++) { in pruss_probe()
186 p->mem[0].addr = regs_prussio->start; in pruss_probe()
187 p->mem[0].size = resource_size(regs_prussio); in pruss_probe()
188 p->mem[0].memtype = UIO_MEM_PHYS; in pruss_probe()
190 p->mem[1].addr = gdev->sram_paddr; in pruss_probe()
191 p->mem[1].size = sram_pool_sz; in pruss_probe()
192 p->mem[1].memtype = UIO_MEM_PHYS; in pruss_probe()
194 p->mem[2].addr = gdev->ddr_paddr; in pruss_probe()
195 p->mem[2].size = extram_pool_sz; in pruss_probe()
196 p->mem[2].memtype = UIO_MEM_PHYS; in pruss_probe()
198 p->name = devm_kasprintf(dev, GFP_KERNEL, "pruss_evt%d", cnt); in pruss_probe()
199 p->version = DRV_VERSION; in pruss_probe()
202 p->irq = gdev->hostirq_start + cnt; in pruss_probe()
203 p->handler = pruss_handler; in pruss_probe()
204 p->priv = gdev; in pruss_probe()
206 ret = uio_register_device(dev, p); in pruss_probe()
215 for (i = 0, p = gdev->info; i < cnt; i++, p++) { in pruss_probe()
216 uio_unregister_device(p); in pruss_probe()