Lines Matching refs:dev

950 		ret = pm_runtime_resume_and_get(&client->dev);  in ov5695_s_stream()
957 pm_runtime_put(&client->dev); in ov5695_s_stream()
962 pm_runtime_put(&client->dev); in ov5695_s_stream()
976 struct device *dev = &ov5695->client->dev; in __ov5695_power_on() local
980 dev_err(dev, "Failed to enable xvclk\n"); in __ov5695_power_on()
993 dev_err(dev, "Failed to enable %s: %d\n", in __ov5695_power_on()
1015 struct device *dev = &ov5695->client->dev; in __ov5695_power_off() local
1028 dev_err(dev, "Failed to disable %s: %d\n", in __ov5695_power_off()
1033 static int __maybe_unused ov5695_runtime_resume(struct device *dev) in ov5695_runtime_resume() argument
1035 struct v4l2_subdev *sd = dev_get_drvdata(dev); in ov5695_runtime_resume()
1041 static int __maybe_unused ov5695_runtime_suspend(struct device *dev) in ov5695_runtime_suspend() argument
1043 struct v4l2_subdev *sd = dev_get_drvdata(dev); in ov5695_runtime_suspend()
1120 if (!pm_runtime_get_if_in_use(&client->dev)) in ov5695_set_ctrl()
1150 dev_warn(&client->dev, "%s Unhandled id:0x%x, val:0x%x\n", in ov5695_set_ctrl()
1155 pm_runtime_put(&client->dev); in ov5695_set_ctrl()
1224 dev_err(&ov5695->client->dev, in ov5695_initialize_controls()
1242 struct device *dev = &ov5695->client->dev; in ov5695_check_sensor_id() local
1249 dev_err(dev, "Unexpected sensor id(%06x), ret(%d)\n", id, ret); in ov5695_check_sensor_id()
1253 dev_info(dev, "Detected OV%06x sensor\n", CHIP_ID); in ov5695_check_sensor_id()
1265 return devm_regulator_bulk_get(&ov5695->client->dev, in ov5695_configure_regulators()
1272 struct device *dev = &client->dev; in ov5695_probe() local
1277 ov5695 = devm_kzalloc(dev, sizeof(*ov5695), GFP_KERNEL); in ov5695_probe()
1284 ov5695->xvclk = devm_clk_get(dev, "xvclk"); in ov5695_probe()
1286 dev_err(dev, "Failed to get xvclk\n"); in ov5695_probe()
1291 dev_err(dev, "Failed to set xvclk rate (24MHz)\n"); in ov5695_probe()
1295 dev_warn(dev, "xvclk mismatched, modes are based on 24MHz\n"); in ov5695_probe()
1297 ov5695->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in ov5695_probe()
1299 dev_err(dev, "Failed to get reset-gpios\n"); in ov5695_probe()
1305 dev_err(dev, "Failed to get power regulators\n"); in ov5695_probe()
1339 dev_err(dev, "v4l2 async register subdev failed\n"); in ov5695_probe()
1343 pm_runtime_set_active(dev); in ov5695_probe()
1344 pm_runtime_enable(dev); in ov5695_probe()
1345 pm_runtime_idle(dev); in ov5695_probe()
1375 pm_runtime_disable(&client->dev); in ov5695_remove()
1376 if (!pm_runtime_status_suspended(&client->dev)) in ov5695_remove()
1378 pm_runtime_set_suspended(&client->dev); in ov5695_remove()