Lines Matching refs:dma
389 struct dma_object *dma = in fsl_dma_open() local
414 if (dma->assigned) { in fsl_dma_open()
426 dma_private->ssi_sxx_phys = dma->ssi_stx_phys; in fsl_dma_open()
428 dma_private->ssi_sxx_phys = dma->ssi_srx_phys; in fsl_dma_open()
430 dma_private->ssi_fifo_depth = dma->ssi_fifo_depth; in fsl_dma_open()
431 dma_private->dma_channel = dma->channel; in fsl_dma_open()
432 dma_private->irq = dma->irq; in fsl_dma_open()
447 dma->assigned = true; in fsl_dma_open()
806 struct dma_object *dma = in fsl_dma_close() local
819 dma->assigned = false; in fsl_dma_close()
886 struct dma_object *dma; in fsl_soc_dma_probe() local
908 dma = kzalloc(sizeof(*dma), GFP_KERNEL); in fsl_soc_dma_probe()
909 if (!dma) { in fsl_soc_dma_probe()
914 dma->dai.name = DRV_NAME; in fsl_soc_dma_probe()
915 dma->dai.ops = &fsl_dma_ops; in fsl_soc_dma_probe()
916 dma->dai.pcm_new = fsl_dma_new; in fsl_soc_dma_probe()
917 dma->dai.pcm_free = fsl_dma_free_dma_buffers; in fsl_soc_dma_probe()
920 dma->ssi_stx_phys = res.start + REG_SSI_STX0; in fsl_soc_dma_probe()
921 dma->ssi_srx_phys = res.start + REG_SSI_SRX0; in fsl_soc_dma_probe()
925 dma->ssi_fifo_depth = be32_to_cpup(iprop); in fsl_soc_dma_probe()
928 dma->ssi_fifo_depth = 8; in fsl_soc_dma_probe()
932 ret = devm_snd_soc_register_component(&pdev->dev, &dma->dai, NULL, 0); in fsl_soc_dma_probe()
935 kfree(dma); in fsl_soc_dma_probe()
939 dma->channel = of_iomap(np, 0); in fsl_soc_dma_probe()
940 dma->irq = irq_of_parse_and_map(np, 0); in fsl_soc_dma_probe()
942 dev_set_drvdata(&pdev->dev, dma); in fsl_soc_dma_probe()
949 struct dma_object *dma = dev_get_drvdata(&pdev->dev); in fsl_soc_dma_remove() local
951 iounmap(dma->channel); in fsl_soc_dma_remove()
952 irq_dispose_mapping(dma->irq); in fsl_soc_dma_remove()
953 kfree(dma); in fsl_soc_dma_remove()