Lines Matching refs:op
373 int mpc5200_audio_dma_create(struct platform_device *op) in mpc5200_audio_dma_create() argument
384 irq = irq_of_parse_and_map(op->dev.of_node, 0); in mpc5200_audio_dma_create()
385 if (of_address_to_resource(op->dev.of_node, 0, &res)) { in mpc5200_audio_dma_create()
386 dev_err(&op->dev, "Missing reg property\n"); in mpc5200_audio_dma_create()
391 dev_err(&op->dev, "Could not map registers\n"); in mpc5200_audio_dma_create()
403 prop = of_get_property(op->dev.of_node, "cell-index", &size); in mpc5200_audio_dma_create()
415 psc_dma->dev = &op->dev; in mpc5200_audio_dma_create()
429 dev_err(&op->dev, "Could not allocate bestcomm tasks\n"); in mpc5200_audio_dma_create()
476 dev_set_drvdata(&op->dev, psc_dma); in mpc5200_audio_dma_create()
479 return snd_soc_register_platform(&op->dev, &mpc5200_audio_dma_platform); in mpc5200_audio_dma_create()
492 int mpc5200_audio_dma_destroy(struct platform_device *op) in mpc5200_audio_dma_destroy() argument
494 struct psc_dma *psc_dma = dev_get_drvdata(&op->dev); in mpc5200_audio_dma_destroy()
496 dev_dbg(&op->dev, "mpc5200_audio_dma_destroy()\n"); in mpc5200_audio_dma_destroy()
498 snd_soc_unregister_platform(&op->dev); in mpc5200_audio_dma_destroy()
510 dev_set_drvdata(&op->dev, NULL); in mpc5200_audio_dma_destroy()