Lines Matching refs:op
50 int uflash_devinit(struct platform_device *op, struct device_node *dp) in uflash_devinit() argument
54 if (op->resource[1].flags) { in uflash_devinit()
59 dp->full_name, (unsigned long long)op->resource[0].start); in uflash_devinit()
73 up->map.size = resource_size(&op->resource[0]); in uflash_devinit()
79 up->map.phys = op->resource[0].start; in uflash_devinit()
81 up->map.virt = of_ioremap(&op->resource[0], 0, up->map.size, in uflash_devinit()
95 of_iounmap(&op->resource[0], up->map.virt, up->map.size); in uflash_devinit()
105 dev_set_drvdata(&op->dev, up); in uflash_devinit()
110 static int uflash_probe(struct platform_device *op) in uflash_probe() argument
112 struct device_node *dp = op->dev.of_node; in uflash_probe()
120 return uflash_devinit(op, dp); in uflash_probe()
123 static int uflash_remove(struct platform_device *op) in uflash_remove() argument
125 struct uflash_dev *up = dev_get_drvdata(&op->dev); in uflash_remove()
132 of_iounmap(&op->resource[0], up->map.virt, up->map.size); in uflash_remove()