/Linux-v5.4/drivers/staging/media/soc_camera/ |
D | soc_camera.c | 63 int soc_camera_power_on(struct device *dev, struct soc_camera_subdev_desc *ssdd, in soc_camera_power_on() argument 69 if (clk && (!ssdd->unbalanced_power || in soc_camera_power_on() 70 !test_and_set_bit(0, &ssdd->clock_state))) { in soc_camera_power_on() 81 ret = regulator_bulk_enable(ssdd->sd_pdata.num_regulators, in soc_camera_power_on() 82 ssdd->sd_pdata.regulators); in soc_camera_power_on() 88 if (ssdd->power) { in soc_camera_power_on() 89 ret = ssdd->power(dev, 1); in soc_camera_power_on() 100 regulator_bulk_disable(ssdd->sd_pdata.num_regulators, in soc_camera_power_on() 101 ssdd->sd_pdata.regulators); in soc_camera_power_on() 110 int soc_camera_power_off(struct device *dev, struct soc_camera_subdev_desc *ssdd, in soc_camera_power_off() argument [all …]
|
D | soc_mt9v022.c | 517 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in mt9v022_s_power() local 520 return soc_camera_set_power(&client->dev, ssdd, mt9v022->clk, on); in mt9v022_s_power() 665 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in mt9v022_video_probe() local 725 if (ssdd->query_bus_param) in mt9v022_video_probe() 726 flags = ssdd->query_bus_param(ssdd); in mt9v022_video_probe() 794 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in mt9v022_g_mbus_config() local 802 cfg->flags = soc_camera_apply_board_flags(ssdd, cfg); in mt9v022_g_mbus_config() 811 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in mt9v022_s_mbus_config() local 813 unsigned long flags = soc_camera_apply_board_flags(ssdd, cfg); in mt9v022_s_mbus_config() 818 if (ssdd->set_bus_param) { in mt9v022_s_mbus_config() [all …]
|
D | imx074.c | 252 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in imx074_s_power() local 255 return soc_camera_set_power(&client->dev, ssdd, priv->clk, on); in imx074_s_power() 413 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in imx074_probe() local 416 if (!ssdd) { in imx074_probe() 441 ret = soc_camera_power_init(&client->dev, ssdd); in imx074_probe() 461 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in imx074_remove() local 467 if (ssdd->free_bus) in imx074_remove() 468 ssdd->free_bus(ssdd); in imx074_remove()
|
D | soc_ov5642.c | 923 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in ov5642_s_power() local 928 return soc_camera_power_off(&client->dev, ssdd, priv->clk); in ov5642_s_power() 930 ret = soc_camera_power_on(&client->dev, ssdd, priv->clk); in ov5642_s_power() 1011 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in ov5642_probe() local 1014 if (!ssdd) { in ov5642_probe() 1047 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in ov5642_remove() local 1051 if (ssdd->free_bus) in ov5642_remove() 1052 ssdd->free_bus(ssdd); in ov5642_remove()
|
D | mt9t031.c | 598 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in mt9t031_s_power() local 604 ret = soc_camera_power_on(&client->dev, ssdd, mt9t031->clk); in mt9t031_s_power() 613 soc_camera_power_off(&client->dev, ssdd, mt9t031->clk); in mt9t031_s_power() 700 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in mt9t031_g_mbus_config() local 706 cfg->flags = soc_camera_apply_board_flags(ssdd, cfg); in mt9t031_g_mbus_config() 715 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in mt9t031_s_mbus_config() local 717 if (soc_camera_apply_board_flags(ssdd, cfg) & in mt9t031_s_mbus_config() 753 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in mt9t031_probe() local 757 if (!ssdd) { in mt9t031_probe()
|
D | soc_ov9740.c | 763 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in ov9740_s_power() local 768 ret = soc_camera_power_on(&client->dev, ssdd, priv->clk); in ov9740_s_power() 782 soc_camera_power_off(&client->dev, ssdd, priv->clk); in ov9740_s_power() 878 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in ov9740_g_mbus_config() local 884 cfg->flags = soc_camera_apply_board_flags(ssdd, cfg); in ov9740_g_mbus_config() 925 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in ov9740_probe() local 928 if (!ssdd) { in ov9740_probe()
|
/Linux-v5.4/include/media/ |
D | soc_camera.h | 348 unsigned long soc_camera_apply_board_flags(struct soc_camera_subdev_desc *ssdd, 351 int soc_camera_power_init(struct device *dev, struct soc_camera_subdev_desc *ssdd); 352 int soc_camera_power_on(struct device *dev, struct soc_camera_subdev_desc *ssdd, 354 int soc_camera_power_off(struct device *dev, struct soc_camera_subdev_desc *ssdd, 358 struct soc_camera_subdev_desc *ssdd, struct v4l2_clk *clk, bool on) in soc_camera_set_power() argument 360 return on ? soc_camera_power_on(dev, ssdd, clk) in soc_camera_set_power() 361 : soc_camera_power_off(dev, ssdd, clk); in soc_camera_set_power()
|