Lines Matching refs:op
114 struct platform_device *op; member
1242 &chip->op->dev, in snd_cs4231_pcm()
1613 dev_set_drvdata(&chip->op->dev, chip); in cs4231_attach_finish()
1774 struct platform_device *op = chip->op; in snd_cs4231_sbus_free() local
1780 of_iounmap(&op->resource[0], chip->port, chip->regs_size); in snd_cs4231_sbus_free()
1797 struct platform_device *op, in snd_cs4231_sbus_create() argument
1808 chip->op = op; in snd_cs4231_sbus_create()
1809 chip->regs_size = resource_size(&op->resource[0]); in snd_cs4231_sbus_create()
1813 chip->port = of_ioremap(&op->resource[0], 0, in snd_cs4231_sbus_create()
1835 if (request_irq(op->archdata.irqs[0], snd_cs4231_sbus_interrupt, in snd_cs4231_sbus_create()
1838 dev, op->archdata.irqs[0]); in snd_cs4231_sbus_create()
1842 chip->irq[0] = op->archdata.irqs[0]; in snd_cs4231_sbus_create()
1859 static int cs4231_sbus_probe(struct platform_device *op) in cs4231_sbus_probe() argument
1861 struct resource *rp = &op->resource[0]; in cs4231_sbus_probe()
1873 op->archdata.irqs[0]); in cs4231_sbus_probe()
1875 err = snd_cs4231_sbus_create(card, op, dev); in cs4231_sbus_probe()
1934 struct platform_device *op = chip->op; in snd_cs4231_ebus_free() local
1938 of_iounmap(&op->resource[2], chip->c_dma.ebus_info.regs, 0x10); in snd_cs4231_ebus_free()
1942 of_iounmap(&op->resource[1], chip->p_dma.ebus_info.regs, 0x10); in snd_cs4231_ebus_free()
1946 of_iounmap(&op->resource[0], chip->port, 0x10); in snd_cs4231_ebus_free()
1963 struct platform_device *op, in snd_cs4231_ebus_create() argument
1975 chip->op = op; in snd_cs4231_ebus_create()
1982 chip->c_dma.ebus_info.irq = op->archdata.irqs[0]; in snd_cs4231_ebus_create()
1987 chip->p_dma.ebus_info.irq = op->archdata.irqs[1]; in snd_cs4231_ebus_create()
1999 chip->port = of_ioremap(&op->resource[0], 0, 0x10, "cs4231"); in snd_cs4231_ebus_create()
2001 of_ioremap(&op->resource[1], 0, 0x10, "cs4231_pdma"); in snd_cs4231_ebus_create()
2003 of_ioremap(&op->resource[2], 0, 0x10, "cs4231_cdma"); in snd_cs4231_ebus_create()
2051 static int cs4231_ebus_probe(struct platform_device *op) in cs4231_ebus_probe() argument
2062 op->resource[0].start, in cs4231_ebus_probe()
2063 op->archdata.irqs[0]); in cs4231_ebus_probe()
2065 err = snd_cs4231_ebus_create(card, op, dev); in cs4231_ebus_probe()
2075 static int cs4231_probe(struct platform_device *op) in cs4231_probe() argument
2078 if (!strcmp(op->dev.of_node->parent->name, "ebus")) in cs4231_probe()
2079 return cs4231_ebus_probe(op); in cs4231_probe()
2082 if (!strcmp(op->dev.of_node->parent->name, "sbus") || in cs4231_probe()
2083 !strcmp(op->dev.of_node->parent->name, "sbi")) in cs4231_probe()
2084 return cs4231_sbus_probe(op); in cs4231_probe()
2089 static int cs4231_remove(struct platform_device *op) in cs4231_remove() argument
2091 struct snd_cs4231 *chip = dev_get_drvdata(&op->dev); in cs4231_remove()