• Home
  • Raw
  • Download

Lines Matching refs:zdev

218 	struct zynqmp_dma_device *zdev;  member
864 devm_free_irq(chan->zdev->dev, chan->irq, chan); in zynqmp_dma_chan_remove()
876 static int zynqmp_dma_chan_probe(struct zynqmp_dma_device *zdev, in zynqmp_dma_chan_probe() argument
884 chan = devm_kzalloc(zdev->dev, sizeof(*chan), GFP_KERNEL); in zynqmp_dma_chan_probe()
887 chan->dev = zdev->dev; in zynqmp_dma_chan_probe()
888 chan->zdev = zdev; in zynqmp_dma_chan_probe()
906 dev_err(zdev->dev, "invalid bus-width value"); in zynqmp_dma_chan_probe()
911 zdev->chan = chan; in zynqmp_dma_chan_probe()
920 chan->common.device = &zdev->common; in zynqmp_dma_chan_probe()
921 list_add_tail(&chan->common.device_node, &zdev->common.channels); in zynqmp_dma_chan_probe()
947 struct zynqmp_dma_device *zdev = ofdma->of_dma_data; in of_zynqmp_dma_xlate() local
949 return dma_get_slave_channel(&zdev->chan->common); in of_zynqmp_dma_xlate()
991 struct zynqmp_dma_device *zdev = dev_get_drvdata(dev); in zynqmp_dma_runtime_suspend() local
993 clk_disable_unprepare(zdev->clk_main); in zynqmp_dma_runtime_suspend()
994 clk_disable_unprepare(zdev->clk_apb); in zynqmp_dma_runtime_suspend()
1008 struct zynqmp_dma_device *zdev = dev_get_drvdata(dev); in zynqmp_dma_runtime_resume() local
1011 err = clk_prepare_enable(zdev->clk_main); in zynqmp_dma_runtime_resume()
1017 err = clk_prepare_enable(zdev->clk_apb); in zynqmp_dma_runtime_resume()
1020 clk_disable_unprepare(zdev->clk_main); in zynqmp_dma_runtime_resume()
1041 struct zynqmp_dma_device *zdev; in zynqmp_dma_probe() local
1045 zdev = devm_kzalloc(&pdev->dev, sizeof(*zdev), GFP_KERNEL); in zynqmp_dma_probe()
1046 if (!zdev) in zynqmp_dma_probe()
1049 zdev->dev = &pdev->dev; in zynqmp_dma_probe()
1050 INIT_LIST_HEAD(&zdev->common.channels); in zynqmp_dma_probe()
1053 dma_cap_set(DMA_MEMCPY, zdev->common.cap_mask); in zynqmp_dma_probe()
1055 p = &zdev->common; in zynqmp_dma_probe()
1065 zdev->clk_main = devm_clk_get(&pdev->dev, "clk_main"); in zynqmp_dma_probe()
1066 if (IS_ERR(zdev->clk_main)) { in zynqmp_dma_probe()
1068 return PTR_ERR(zdev->clk_main); in zynqmp_dma_probe()
1071 zdev->clk_apb = devm_clk_get(&pdev->dev, "clk_apb"); in zynqmp_dma_probe()
1072 if (IS_ERR(zdev->clk_apb)) { in zynqmp_dma_probe()
1074 return PTR_ERR(zdev->clk_apb); in zynqmp_dma_probe()
1077 platform_set_drvdata(pdev, zdev); in zynqmp_dma_probe()
1078 pm_runtime_set_autosuspend_delay(zdev->dev, ZDMA_PM_TIMEOUT); in zynqmp_dma_probe()
1079 pm_runtime_use_autosuspend(zdev->dev); in zynqmp_dma_probe()
1080 pm_runtime_enable(zdev->dev); in zynqmp_dma_probe()
1081 pm_runtime_get_sync(zdev->dev); in zynqmp_dma_probe()
1082 if (!pm_runtime_enabled(zdev->dev)) { in zynqmp_dma_probe()
1083 ret = zynqmp_dma_runtime_resume(zdev->dev); in zynqmp_dma_probe()
1088 ret = zynqmp_dma_chan_probe(zdev, pdev); in zynqmp_dma_probe()
1094 p->dst_addr_widths = BIT(zdev->chan->bus_width / 8); in zynqmp_dma_probe()
1095 p->src_addr_widths = BIT(zdev->chan->bus_width / 8); in zynqmp_dma_probe()
1097 dma_async_device_register(&zdev->common); in zynqmp_dma_probe()
1100 of_zynqmp_dma_xlate, zdev); in zynqmp_dma_probe()
1103 dma_async_device_unregister(&zdev->common); in zynqmp_dma_probe()
1107 pm_runtime_mark_last_busy(zdev->dev); in zynqmp_dma_probe()
1108 pm_runtime_put_sync_autosuspend(zdev->dev); in zynqmp_dma_probe()
1115 zynqmp_dma_chan_remove(zdev->chan); in zynqmp_dma_probe()
1117 if (!pm_runtime_enabled(zdev->dev)) in zynqmp_dma_probe()
1118 zynqmp_dma_runtime_suspend(zdev->dev); in zynqmp_dma_probe()
1119 pm_runtime_disable(zdev->dev); in zynqmp_dma_probe()
1131 struct zynqmp_dma_device *zdev = platform_get_drvdata(pdev); in zynqmp_dma_remove() local
1134 dma_async_device_unregister(&zdev->common); in zynqmp_dma_remove()
1136 zynqmp_dma_chan_remove(zdev->chan); in zynqmp_dma_remove()
1137 pm_runtime_disable(zdev->dev); in zynqmp_dma_remove()
1138 if (!pm_runtime_enabled(zdev->dev)) in zynqmp_dma_remove()
1139 zynqmp_dma_runtime_suspend(zdev->dev); in zynqmp_dma_remove()