Lines Matching refs:dev
89 struct device *dev = csid->camss->dev; in csid_set_clock_rates() local
119 dev_err(dev, in csid_set_clock_rates()
131 dev_err(dev, "clk round rate failed: %ld\n", in csid_set_clock_rates()
138 dev_err(dev, "clk set rate failed: %d\n", ret); in csid_set_clock_rates()
160 struct device *dev = camss->dev; in csid_set_power() local
172 ret = pm_runtime_resume_and_get(dev); in csid_set_power()
179 pm_runtime_put_sync(dev); in csid_set_power()
187 pm_runtime_put_sync(dev); in csid_set_power()
191 ret = camss_enable_clocks(csid->nclocks, csid->clock, dev); in csid_set_power()
195 pm_runtime_put_sync(dev); in csid_set_power()
209 pm_runtime_put_sync(dev); in csid_set_power()
219 pm_runtime_put_sync(dev); in csid_set_power()
244 dev_err(csid->camss->dev, in csid_set_stream()
571 struct device *dev = camss->dev; in msm_csid_subdev_init() local
572 struct platform_device *pdev = to_platform_device(dev); in msm_csid_subdev_init()
617 dev_name(dev), MSM_CSID_NAME, csid->id); in msm_csid_subdev_init()
618 ret = devm_request_irq(dev, csid->irq, csid->ops->isr, in msm_csid_subdev_init()
622 dev_err(dev, "request_irq failed: %d\n", ret); in msm_csid_subdev_init()
632 csid->clock = devm_kcalloc(dev, csid->nclocks, sizeof(*csid->clock), in msm_csid_subdev_init()
640 clock->clk = devm_clk_get(dev, res->clock[i]); in msm_csid_subdev_init()
655 clock->freq = devm_kcalloc(dev, in msm_csid_subdev_init()
673 csid->supplies = devm_kmalloc_array(camss->dev, in msm_csid_subdev_init()
684 ret = devm_regulator_bulk_get(camss->dev, csid->num_supplies, in msm_csid_subdev_init()
774 struct device *dev = csid->camss->dev; in csid_link_setup() local
783 dev_dbg(dev, "%s: Enabled CSID virtual channels mask 0x%x\n", in csid_link_setup()
834 struct device *dev = csid->camss->dev; in msm_csid_register_entity() local
848 dev_err(dev, "Failed to init ctrl handler: %d\n", ret); in msm_csid_register_entity()
858 dev_err(dev, "Failed to init ctrl: %d\n", csid->ctrls.error); in msm_csid_register_entity()
867 dev_err(dev, "Failed to init format: %d\n", ret); in msm_csid_register_entity()
879 dev_err(dev, "Failed to init media entity: %d\n", ret); in msm_csid_register_entity()
885 dev_err(dev, "Failed to register subdev: %d\n", ret); in msm_csid_register_entity()