Lines Matching refs:op
345 static void tcx_unmap_regs(struct platform_device *op, struct fb_info *info,
349 of_iounmap(&op->resource[7],
352 of_iounmap(&op->resource[9],
355 of_iounmap(&op->resource[8],
358 of_iounmap(&op->resource[4],
361 of_iounmap(&op->resource[0],
365 static int __devinit tcx_probe(struct platform_device *op,
368 struct device_node *dp = op->dev.of_node;
373 info = framebuffer_alloc(sizeof(struct tcx_par), &op->dev);
394 par->tec = of_ioremap(&op->resource[7], 0,
396 par->thc = of_ioremap(&op->resource[9], 0,
398 par->bt = of_ioremap(&op->resource[8], 0,
400 info->screen_base = of_ioremap(&op->resource[0], 0,
408 par->cplane = of_ioremap(&op->resource[4], 0,
420 info->fix.smem_start = op->resource[0].start;
421 par->which_io = op->resource[0].flags & IORESOURCE_BITS;
439 par->mmap_map[i].poff = op->resource[j].start;
469 dev_set_drvdata(&op->dev, info);
483 tcx_unmap_regs(op, info, par);
489 static int __devexit tcx_remove(struct platform_device *op)
491 struct fb_info *info = dev_get_drvdata(&op->dev);
497 tcx_unmap_regs(op, info, par);
501 dev_set_drvdata(&op->dev, NULL);