/drivers/media/i2c/soc_camera/ |
D | mt9m001.c | 359 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in mt9m001_s_power() local 362 return soc_camera_set_power(&client->dev, ssdd, mt9m001->clk, on); in mt9m001_s_power() 462 static int mt9m001_video_probe(struct soc_camera_subdev_desc *ssdd, in mt9m001_video_probe() argument 504 if (ssdd->query_bus_param) in mt9m001_video_probe() 505 flags = ssdd->query_bus_param(ssdd); in mt9m001_video_probe() 536 static void mt9m001_video_remove(struct soc_camera_subdev_desc *ssdd) in mt9m001_video_remove() argument 538 if (ssdd->free_bus) in mt9m001_video_remove() 539 ssdd->free_bus(ssdd); in mt9m001_video_remove() 582 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in mt9m001_g_mbus_config() local 589 cfg->flags = soc_camera_apply_board_flags(ssdd, cfg); in mt9m001_g_mbus_config() [all …]
|
D | mt9v022.c | 502 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in mt9v022_s_power() local 505 return soc_camera_set_power(&client->dev, ssdd, mt9v022->clk, on); in mt9v022_s_power() 650 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in mt9v022_video_probe() local 710 if (ssdd->query_bus_param) in mt9v022_video_probe() 711 flags = ssdd->query_bus_param(ssdd); in mt9v022_video_probe() 778 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in mt9v022_g_mbus_config() local 786 cfg->flags = soc_camera_apply_board_flags(ssdd, cfg); in mt9v022_g_mbus_config() 795 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in mt9v022_s_mbus_config() local 797 unsigned long flags = soc_camera_apply_board_flags(ssdd, cfg); in mt9v022_s_mbus_config() 802 if (ssdd->set_bus_param) { in mt9v022_s_mbus_config() [all …]
|
D | imx074.c | 259 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in imx074_s_power() local 262 return soc_camera_set_power(&client->dev, ssdd, priv->clk, on); in imx074_s_power() 418 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in imx074_probe() local 421 if (!ssdd) { in imx074_probe() 446 ret = soc_camera_power_init(&client->dev, ssdd); in imx074_probe() 466 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in imx074_remove() local 472 if (ssdd->free_bus) in imx074_remove() 473 ssdd->free_bus(ssdd); in imx074_remove()
|
D | ov5642.c | 921 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in ov5642_s_power() local 926 return soc_camera_power_off(&client->dev, ssdd, priv->clk); in ov5642_s_power() 928 ret = soc_camera_power_on(&client->dev, ssdd, priv->clk); in ov5642_s_power() 1007 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in ov5642_probe() local 1010 if (!ssdd) { in ov5642_probe() 1043 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in ov5642_remove() local 1047 if (ssdd->free_bus) in ov5642_remove() 1048 ssdd->free_bus(ssdd); in ov5642_remove()
|
D | mt9m111.c | 777 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in mt9m111_power_on() local 780 ret = soc_camera_power_on(&client->dev, ssdd, mt9m111->clk); in mt9m111_power_on() 787 soc_camera_power_off(&client->dev, ssdd, mt9m111->clk); in mt9m111_power_on() 796 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in mt9m111_power_off() local 799 soc_camera_power_off(&client->dev, ssdd, mt9m111->clk); in mt9m111_power_off() 856 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in mt9m111_g_mbus_config() local 862 cfg->flags = soc_camera_apply_board_flags(ssdd, cfg); in mt9m111_g_mbus_config() 931 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in mt9m111_probe() local 935 ssdd = devm_kzalloc(&client->dev, sizeof(*ssdd), GFP_KERNEL); in mt9m111_probe() 936 if (!ssdd) in mt9m111_probe() [all …]
|
D | tw9910.c | 562 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in tw9910_s_power() local 565 return soc_camera_set_power(&client->dev, ssdd, priv->clk, on); in tw9910_s_power() 838 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in tw9910_g_mbus_config() local 845 cfg->flags = soc_camera_apply_board_flags(ssdd, cfg); in tw9910_g_mbus_config() 854 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in tw9910_s_mbus_config() local 856 unsigned long flags = soc_camera_apply_board_flags(ssdd, cfg); in tw9910_s_mbus_config() 911 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in tw9910_probe() local 914 if (!ssdd || !ssdd->drv_priv) { in tw9910_probe() 919 info = ssdd->drv_priv; in tw9910_probe()
|
D | rj54n1cb0c.c | 1162 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in rj54n1_s_power() local 1165 return soc_camera_set_power(&client->dev, ssdd, rj54n1->clk, on); in rj54n1_s_power() 1224 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in rj54n1_g_mbus_config() local 1231 cfg->flags = soc_camera_apply_board_flags(ssdd, cfg); in rj54n1_g_mbus_config() 1240 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in rj54n1_s_mbus_config() local 1243 if (soc_camera_apply_board_flags(ssdd, cfg) & in rj54n1_s_mbus_config() 1313 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in rj54n1_probe() local 1318 if (!ssdd || !ssdd->drv_priv) { in rj54n1_probe() 1323 rj54n1_priv = ssdd->drv_priv; in rj54n1_probe() 1380 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in rj54n1_remove() local [all …]
|
D | mt9t031.c | 588 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in mt9t031_s_power() local 594 ret = soc_camera_power_on(&client->dev, ssdd, mt9t031->clk); in mt9t031_s_power() 603 soc_camera_power_off(&client->dev, ssdd, mt9t031->clk); in mt9t031_s_power() 689 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in mt9t031_g_mbus_config() local 695 cfg->flags = soc_camera_apply_board_flags(ssdd, cfg); in mt9t031_g_mbus_config() 704 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in mt9t031_s_mbus_config() local 706 if (soc_camera_apply_board_flags(ssdd, cfg) & in mt9t031_s_mbus_config() 740 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in mt9t031_probe() local 744 if (!ssdd) { in mt9t031_probe()
|
D | mt9t112.c | 770 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in mt9t112_s_power() local 773 return soc_camera_set_power(&client->dev, ssdd, priv->clk, on); in mt9t112_s_power() 987 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in mt9t112_g_mbus_config() local 993 cfg->flags = soc_camera_apply_board_flags(ssdd, cfg); in mt9t112_g_mbus_config() 1002 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in mt9t112_s_mbus_config() local 1005 if (soc_camera_apply_board_flags(ssdd, cfg) & V4L2_MBUS_PCLK_SAMPLE_RISING) in mt9t112_s_mbus_config() 1074 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in mt9t112_probe() local 1083 if (!ssdd || !ssdd->drv_priv) { in mt9t112_probe() 1092 priv->info = ssdd->drv_priv; in mt9t112_probe()
|
D | ov9740.c | 778 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in ov9740_s_power() local 783 ret = soc_camera_power_on(&client->dev, ssdd, priv->clk); in ov9740_s_power() 797 soc_camera_power_off(&client->dev, ssdd, priv->clk); in ov9740_s_power() 894 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in ov9740_g_mbus_config() local 900 cfg->flags = soc_camera_apply_board_flags(ssdd, cfg); in ov9740_g_mbus_config() 939 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in ov9740_probe() local 942 if (!ssdd) { in ov9740_probe()
|
D | ov772x.c | 656 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in ov772x_s_power() local 659 return soc_camera_set_power(&client->dev, ssdd, priv->clk, on); in ov772x_s_power() 1006 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in ov772x_g_mbus_config() local 1012 cfg->flags = soc_camera_apply_board_flags(ssdd, cfg); in ov772x_g_mbus_config() 1041 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in ov772x_probe() local 1045 if (!ssdd || !ssdd->drv_priv) { in ov772x_probe() 1061 priv->info = ssdd->drv_priv; in ov772x_probe()
|
D | ov9640.c | 327 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in ov9640_s_power() local 330 return soc_camera_set_power(&client->dev, ssdd, priv->clk, on); in ov9640_s_power() 646 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in ov9640_g_mbus_config() local 652 cfg->flags = soc_camera_apply_board_flags(ssdd, cfg); in ov9640_g_mbus_config() 679 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in ov9640_probe() local 682 if (!ssdd) { in ov9640_probe()
|
D | ov6650.c | 429 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in ov6650_s_power() local 432 return soc_camera_set_power(&client->dev, ssdd, priv->clk, on); in ov6650_s_power() 886 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in ov6650_g_mbus_config() local 894 cfg->flags = soc_camera_apply_board_flags(ssdd, cfg); in ov6650_g_mbus_config() 904 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in ov6650_s_mbus_config() local 905 unsigned long flags = soc_camera_apply_board_flags(ssdd, cfg); in ov6650_s_mbus_config() 957 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in ov6650_probe() local 960 if (!ssdd) { in ov6650_probe()
|
D | ov2640.c | 762 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in ov2640_s_power() local 765 return soc_camera_set_power(&client->dev, ssdd, priv->clk, on); in ov2640_s_power() 1036 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in ov2640_g_mbus_config() local 1042 cfg->flags = soc_camera_apply_board_flags(ssdd, cfg); in ov2640_g_mbus_config() 1070 struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); in ov2640_probe() local 1074 if (!ssdd) { in ov2640_probe()
|
/drivers/media/platform/soc_camera/ |
D | soc_camera.c | 72 int soc_camera_power_on(struct device *dev, struct soc_camera_subdev_desc *ssdd, in soc_camera_power_on() argument 78 if (clk && (!ssdd->unbalanced_power || in soc_camera_power_on() 79 !test_and_set_bit(0, &ssdd->clock_state))) { in soc_camera_power_on() 90 ret = regulator_bulk_enable(ssdd->sd_pdata.num_regulators, in soc_camera_power_on() 91 ssdd->sd_pdata.regulators); in soc_camera_power_on() 97 if (ssdd->power) { in soc_camera_power_on() 98 ret = ssdd->power(dev, 1); in soc_camera_power_on() 109 regulator_bulk_disable(ssdd->sd_pdata.num_regulators, in soc_camera_power_on() 110 ssdd->sd_pdata.regulators); in soc_camera_power_on() 119 int soc_camera_power_off(struct device *dev, struct soc_camera_subdev_desc *ssdd, in soc_camera_power_off() argument [all …]
|