Lines Matching refs:op
60 struct platform_device *op = to_platform_device(dev);
66 regs = of_get_property(op->dev.of_node, "reg", NULL);
69 op->dev.of_node->full_name);
207 static unsigned int sbus_build_irq(struct platform_device *op, unsigned int ino)
209 struct iommu *iommu = op->dev.archdata.iommu;
270 struct platform_device *op = dev_id;
271 struct iommu *iommu = op->dev.archdata.iommu;
290 portid = of_getintprop_default(op->dev.of_node, "portid", -1);
344 struct platform_device *op = dev_id;
345 struct iommu *iommu = op->dev.archdata.iommu;
364 portid = of_getintprop_default(op->dev.of_node, "portid", -1);
420 struct platform_device *op = dev_id;
421 struct iommu *iommu = op->dev.archdata.iommu;
439 portid = of_getintprop_default(op->dev.of_node, "portid", -1);
487 static void __init sysio_register_error_handlers(struct platform_device *op)
489 struct iommu *iommu = op->dev.archdata.iommu;
495 portid = of_getintprop_default(op->dev.of_node, "portid", -1);
497 irq = sbus_build_irq(op, SYSIO_UE_INO);
499 "SYSIO_UE", op) < 0) {
505 irq = sbus_build_irq(op, SYSIO_CE_INO);
507 "SYSIO_CE", op) < 0) {
513 irq = sbus_build_irq(op, SYSIO_SBUSERR_INO);
515 "SYSIO_SBERR", op) < 0) {
533 static void __init sbus_iommu_init(struct platform_device *op)
536 struct device_node *dp = op->dev.of_node;
558 op->dev.archdata.iommu = iommu;
559 op->dev.archdata.stc = strbuf;
560 op->dev.archdata.numa_node = -1;
588 portid = of_getintprop_default(op->dev.of_node, "portid", -1);
650 sysio_register_error_handlers(op);
662 struct platform_device *op = of_find_device_by_node(dp);
664 sbus_iommu_init(op);
665 of_propagate_archdata(op);