Lines Matching refs:op
345 static void tcx_unmap_regs(struct platform_device *op, struct fb_info *info, in tcx_unmap_regs() argument
349 of_iounmap(&op->resource[7], in tcx_unmap_regs()
352 of_iounmap(&op->resource[9], in tcx_unmap_regs()
355 of_iounmap(&op->resource[8], in tcx_unmap_regs()
358 of_iounmap(&op->resource[4], in tcx_unmap_regs()
361 of_iounmap(&op->resource[0], in tcx_unmap_regs()
365 static int tcx_probe(struct platform_device *op) in tcx_probe() argument
367 struct device_node *dp = op->dev.of_node; in tcx_probe()
372 info = framebuffer_alloc(sizeof(struct tcx_par), &op->dev); in tcx_probe()
393 par->tec = of_ioremap(&op->resource[7], 0, in tcx_probe()
395 par->thc = of_ioremap(&op->resource[9], 0, in tcx_probe()
397 par->bt = of_ioremap(&op->resource[8], 0, in tcx_probe()
399 info->screen_base = of_ioremap(&op->resource[0], 0, in tcx_probe()
407 par->cplane = of_ioremap(&op->resource[4], 0, in tcx_probe()
419 info->fix.smem_start = op->resource[0].start; in tcx_probe()
420 par->which_io = op->resource[0].flags & IORESOURCE_BITS; in tcx_probe()
438 par->mmap_map[i].poff = op->resource[j].start; in tcx_probe()
468 dev_set_drvdata(&op->dev, info); in tcx_probe()
482 tcx_unmap_regs(op, info, par); in tcx_probe()
489 static int tcx_remove(struct platform_device *op) in tcx_remove() argument
491 struct fb_info *info = dev_get_drvdata(&op->dev); in tcx_remove()
497 tcx_unmap_regs(op, info, par); in tcx_remove()