Lines Matching refs:op
84 struct platform_device *op = esp->dev;
91 res = &op->resource[1];
93 res = &op->resource[0];
104 struct platform_device *op = esp->dev;
106 esp->command_block = dma_alloc_coherent(&op->dev, 16,
117 struct platform_device *op = esp->dev;
119 host->irq = op->archdata.irqs[0];
125 struct platform_device *op = esp->dev;
128 dp = op->dev.of_node;
147 struct platform_device *op = esp->dev;
150 dp = op->dev.of_node;
159 struct platform_device *op = esp->dev;
163 dp = op->dev.of_node;
176 struct platform_device *op = esp->dev;
180 dp = op->dev.of_node;
219 struct platform_device *op = esp->dev;
221 return dma_map_single(&op->dev, buf, sz, dir);
227 struct platform_device *op = esp->dev;
229 return dma_map_sg(&op->dev, sg, num_sg, dir);
235 struct platform_device *op = esp->dev;
237 dma_unmap_single(&op->dev, addr, sz, dir);
243 struct platform_device *op = esp->dev;
245 dma_unmap_sg(&op->dev, sg, num_sg, dir);
259 struct platform_device *op;
266 op = esp->dev;
296 sbus_set_sbus64(&op->dev, esp->bursts);
490 static int __devinit esp_sbus_probe_one(struct platform_device *op,
509 esp->dev = op;
543 dev_set_drvdata(&op->dev, esp);
545 err = scsi_esp_register(esp, &op->dev);
554 dma_free_coherent(&op->dev, 16,
558 of_iounmap(&op->resource[(hme ? 1 : 0)], esp->regs, SBUS_ESP_REG_SIZE);
565 static int __devinit esp_sbus_probe(struct platform_device *op, const struct of_device_id *match)
568 struct device_node *dp = op->dev.of_node;
577 dma_node = op->dev.of_node;
585 return esp_sbus_probe_one(op, dma_of, hme);
588 static int __devexit esp_sbus_remove(struct platform_device *op)
590 struct esp *esp = dev_get_drvdata(&op->dev);
606 dma_free_coherent(&op->dev, 16,
609 of_iounmap(&op->resource[(is_hme ? 1 : 0)], esp->regs,
616 dev_set_drvdata(&op->dev, NULL);