Lines Matching full:cam
62 struct mmp_camera *cam = mcam_to_cam(mcam); in mmpcam_calc_dphy() local
63 struct mmp_camera_platform_data *pdata = cam->pdev->dev.platform_data; in mmpcam_calc_dphy()
64 struct device *dev = &cam->pdev->dev; in mmpcam_calc_dphy()
122 if (IS_ERR(cam->mipi_clk)) in mmpcam_calc_dphy()
126 clk_prepare_enable(cam->mipi_clk); in mmpcam_calc_dphy()
127 tx_clk_esc = (clk_get_rate(cam->mipi_clk) / 1000000) / 12; in mmpcam_calc_dphy()
128 clk_disable_unprepare(cam->mipi_clk); in mmpcam_calc_dphy()
179 struct mmp_camera *cam; in mmpcam_probe() local
187 cam = devm_kzalloc(&pdev->dev, sizeof(*cam), GFP_KERNEL); in mmpcam_probe()
188 if (cam == NULL) in mmpcam_probe()
190 platform_set_drvdata(pdev, cam); in mmpcam_probe()
191 cam->pdev = pdev; in mmpcam_probe()
192 INIT_LIST_HEAD(&cam->devlist); in mmpcam_probe()
194 mcam = &cam->mcam; in mmpcam_probe()
215 cam->mipi_clk = devm_clk_get(mcam->dev, "mipi"); in mmpcam_probe()
216 if ((IS_ERR(cam->mipi_clk) && mcam->dphy[2] == 0)) in mmpcam_probe()
217 return PTR_ERR(cam->mipi_clk); in mmpcam_probe()
276 cam->irq = ret; in mmpcam_probe()
277 ret = devm_request_irq(&pdev->dev, cam->irq, mmpcam_irq, IRQF_SHARED, in mmpcam_probe()
292 struct mmp_camera *cam = platform_get_drvdata(pdev); in mmpcam_remove() local
293 struct mcam_camera *mcam = &cam->mcam; in mmpcam_remove()
305 struct mmp_camera *cam = dev_get_drvdata(dev); in mmpcam_runtime_resume() local
306 struct mcam_camera *mcam = &cam->mcam; in mmpcam_runtime_resume()
319 struct mmp_camera *cam = dev_get_drvdata(dev); in mmpcam_runtime_suspend() local
320 struct mcam_camera *mcam = &cam->mcam; in mmpcam_runtime_suspend()
333 struct mmp_camera *cam = dev_get_drvdata(dev); in mmpcam_suspend() local
336 mccic_suspend(&cam->mcam); in mmpcam_suspend()
342 struct mmp_camera *cam = dev_get_drvdata(dev); in mmpcam_resume() local
345 return mccic_resume(&cam->mcam); in mmpcam_resume()