Lines Matching refs:op
477 err = request_firmware(&fw, fwname, &qpti->op->dev);
706 struct platform_device *op = qpti->op;
708 qpti->qregs = of_ioremap(&op->resource[0], 0,
709 resource_size(&op->resource[0]),
716 qpti->sreg = of_ioremap(&op->resource[0], (16 * 4096),
729 struct platform_device *op = qpti->op;
731 qpti->qhost->irq = qpti->irq = op->archdata.irqs[0];
754 struct platform_device *op = qpti->op;
757 dp = op->dev.of_node;
775 struct platform_device *op = qpti->op;
778 bursts = of_getintprop_default(op->dev.of_node, "burst-sizes", 0xff);
779 bmask = of_getintprop_default(op->dev.of_node->parent, "burst-sizes", 0xff);
808 struct platform_device *op = qpti->op;
811 qpti->res_cpu = dma_alloc_coherent(&op->dev,
820 qpti->req_cpu = dma_alloc_coherent(&op->dev,
825 dma_free_coherent(&op->dev, QSIZE(RES_QUEUE_LEN),
898 sg_count = dma_map_sg(&qpti->op->dev, sg,
1174 dma_unmap_sg(&qpti->op->dev,
1290 static int __devinit qpti_sbus_probe(struct platform_device *op, const struct of_device_id *match)
1293 struct device_node *dp = op->dev.of_node;
1302 if (op->archdata.irqs[0] == 0)
1313 qpti->op = op;
1315 strcpy(qpti->prom_name, op->dev.of_node->name);
1361 if (scsi_add_host(host, &op->dev)) {
1366 dev_set_drvdata(&op->dev, qpti);
1377 dma_free_coherent(&op->dev,
1380 dma_free_coherent(&op->dev,
1386 of_iounmap(&op->resource[0], qpti->qregs,
1387 resource_size(&op->resource[0]));
1389 of_iounmap(&op->resource[0], qpti->sreg,
1401 static int __devexit qpti_sbus_remove(struct platform_device *op)
1403 struct qlogicpti *qpti = dev_get_drvdata(&op->dev);
1416 dma_free_coherent(&op->dev,
1419 dma_free_coherent(&op->dev,
1424 of_iounmap(&op->resource[0], qpti->qregs,
1425 resource_size(&op->resource[0]));
1427 of_iounmap(&op->resource[0], qpti->sreg, sizeof(unsigned char));