Lines Matching refs:davinci_vc

30 	struct davinci_vc *davinci_vc;  in davinci_vc_probe()  local
36 davinci_vc = devm_kzalloc(&pdev->dev, in davinci_vc_probe()
37 sizeof(struct davinci_vc), GFP_KERNEL); in davinci_vc_probe()
38 if (!davinci_vc) in davinci_vc_probe()
41 davinci_vc->clk = devm_clk_get(&pdev->dev, NULL); in davinci_vc_probe()
42 if (IS_ERR(davinci_vc->clk)) { in davinci_vc_probe()
47 clk_enable(davinci_vc->clk); in davinci_vc_probe()
49 davinci_vc->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); in davinci_vc_probe()
50 if (IS_ERR(davinci_vc->base)) { in davinci_vc_probe()
51 ret = PTR_ERR(davinci_vc->base); in davinci_vc_probe()
56 davinci_vc->regmap = devm_regmap_init_mmio(&pdev->dev, in davinci_vc_probe()
57 davinci_vc->base, in davinci_vc_probe()
59 if (IS_ERR(davinci_vc->regmap)) { in davinci_vc_probe()
60 ret = PTR_ERR(davinci_vc->regmap); in davinci_vc_probe()
71 davinci_vc->davinci_vcif.dma_tx_channel = res->start; in davinci_vc_probe()
72 davinci_vc->davinci_vcif.dma_tx_addr = fifo_base + DAVINCI_VC_WFIFO; in davinci_vc_probe()
81 davinci_vc->davinci_vcif.dma_rx_channel = res->start; in davinci_vc_probe()
82 davinci_vc->davinci_vcif.dma_rx_addr = fifo_base + DAVINCI_VC_RFIFO; in davinci_vc_probe()
84 davinci_vc->dev = &pdev->dev; in davinci_vc_probe()
85 davinci_vc->pdev = pdev; in davinci_vc_probe()
88 cell = &davinci_vc->cells[DAVINCI_VC_VCIF_CELL]; in davinci_vc_probe()
90 cell->platform_data = davinci_vc; in davinci_vc_probe()
91 cell->pdata_size = sizeof(*davinci_vc); in davinci_vc_probe()
94 cell = &davinci_vc->cells[DAVINCI_VC_CQ93VC_CELL]; in davinci_vc_probe()
96 cell->platform_data = davinci_vc; in davinci_vc_probe()
97 cell->pdata_size = sizeof(*davinci_vc); in davinci_vc_probe()
99 ret = mfd_add_devices(&pdev->dev, pdev->id, davinci_vc->cells, in davinci_vc_probe()
109 clk_disable(davinci_vc->clk); in davinci_vc_probe()
116 struct davinci_vc *davinci_vc = platform_get_drvdata(pdev); in davinci_vc_remove() local
120 clk_disable(davinci_vc->clk); in davinci_vc_remove()