Home
last modified time | relevance | path

Searched refs:power_count (Results 1 – 22 of 22) sorted by relevance

/drivers/media/i2c/
Dad5820.c51 int power_count; member
222 if (coil->power_count == !on) { in ad5820_set_power()
230 coil->power_count += on ? 1 : -1; in ad5820_set_power()
231 WARN_ON(coil->power_count < 0); in ad5820_set_power()
271 if (!coil->power_count) in ad5820_suspend()
283 if (!coil->power_count) in ad5820_resume()
Dadp1653.c337 if (flash->power_count == !on) { in adp1653_set_power()
344 flash->power_count += on ? 1 : -1; in adp1653_set_power()
345 WARN_ON(flash->power_count < 0); in adp1653_set_power()
386 if (!flash->power_count) in adp1653_suspend()
398 if (!flash->power_count) in adp1653_resume()
Dov5647.c87 int power_count; member
355 if (on && !ov5647->power_count) { in ov5647_sensor_power()
380 } else if (!on && ov5647->power_count == 1) { in ov5647_sensor_power()
398 ov5647->power_count += on ? 1 : -1; in ov5647_sensor_power()
399 WARN_ON(ov5647->power_count < 0); in ov5647_sensor_power()
Ds5k6a3.c67 int power_count; member
255 if (sensor->power_count == !on) { in s5k6a3_s_power()
262 sensor->power_count += on ? 1 : -1; in s5k6a3_s_power()
Dov772x.c432 int power_count; member
740 if (priv->power_count > 0) { in ov772x_s_frame_interval()
771 if (priv->power_count == 0) in ov772x_s_ctrl()
910 if (priv->power_count == !on) { in ov772x_s_power()
927 priv->power_count += on ? 1 : -1; in ov772x_s_power()
928 WARN(priv->power_count < 0, "Unbalanced power count\n"); in ov772x_s_power()
929 WARN(priv->power_count > 1, "Duplicated s_power call\n"); in ov772x_s_power()
1220 if (priv->power_count > 0) { in ov772x_set_fmt()
Dov5645.c111 int power_count; member
682 if (ov5645->power_count == !on) { in ov5645_s_power()
706 ov5645->power_count += on ? 1 : -1; in ov5645_s_power()
707 WARN_ON(ov5645->power_count < 0); in ov5645_s_power()
798 if (!ov5645->power_count) { in ov5645_s_ctrl()
Dov2640.c311 int power_count; member
730 if (!priv->power_count) in ov2640_s_ctrl()
812 if (priv->power_count == !on) in ov2640_s_power()
814 priv->power_count += on ? 1 : -1; in ov2640_s_power()
815 WARN_ON(priv->power_count < 0); in ov2640_s_power()
Dmt9t001.c123 int power_count; member
748 if (mt9t001->power_count == !on) { in mt9t001_set_power()
755 mt9t001->power_count += on ? 1 : -1; in mt9t001_set_power()
756 WARN_ON(mt9t001->power_count < 0); in mt9t001_set_power()
Dmt9p031.c126 int power_count; member
892 if (mt9p031->power_count == !on) { in mt9p031_set_power()
899 mt9p031->power_count += on ? 1 : -1; in mt9p031_set_power()
900 WARN_ON(mt9p031->power_count < 0); in mt9p031_set_power()
Dmt9v032.c200 int power_count; member
846 if (mt9v032->power_count == !on) { in mt9v032_set_power()
853 mt9v032->power_count += on ? 1 : -1; in mt9v032_set_power()
854 WARN_ON(mt9v032->power_count < 0); in mt9v032_set_power()
Dmt9m111.c241 int power_count; member
1023 if (mt9m111->power_count == !on) { in mt9m111_s_power()
1032 mt9m111->power_count += on ? 1 : -1; in mt9m111_s_power()
1033 WARN_ON(mt9m111->power_count < 0); in mt9m111_s_power()
Dov5640.c235 int power_count; member
2084 if (sensor->power_count == !on) { in ov5640_s_power()
2091 sensor->power_count += on ? 1 : -1; in ov5640_s_power()
2092 WARN_ON(sensor->power_count < 0); in ov5640_s_power()
2096 if (on && !ret && sensor->power_count == 1) { in ov5640_s_power()
2606 if (sensor->power_count == 0) in ov5640_s_ctrl()
/drivers/mfd/
Dtwl6040.c281 if (twl6040->power_count++) in twl6040_power()
286 twl6040->power_count = 0; in twl6040_power()
298 twl6040->power_count = 0; in twl6040_power()
306 twl6040->power_count = 0; in twl6040_power()
330 if (!twl6040->power_count) { in twl6040_power()
337 if (--twl6040->power_count) in twl6040_power()
516 if (twl6040->power_count) in twl6040_get_pll()
815 if (twl6040->power_count) in twl6040_remove()
/drivers/media/i2c/et8ek8/
Det8ek8_driver.c59 int power_count; member
1307 if (sensor->power_count == !on) { in et8ek8_set_power()
1314 sensor->power_count += on ? 1 : -1; in et8ek8_set_power()
1315 WARN_ON(sensor->power_count < 0); in et8ek8_set_power()
1381 if (!sensor->power_count) in et8ek8_suspend()
1393 if (!sensor->power_count) in et8ek8_resume()
1468 if (sensor->power_count) { in et8ek8_remove()
1471 sensor->power_count = 0; in et8ek8_remove()
/drivers/media/platform/qcom/camss/
Dcamss-ispif.c340 if (ispif->power_count) { in ispif_set_power()
342 ispif->power_count++; in ispif_set_power()
366 ispif->power_count++; in ispif_set_power()
368 if (ispif->power_count == 0) { in ispif_set_power()
371 } else if (ispif->power_count == 1) { in ispif_set_power()
376 ispif->power_count--; in ispif_set_power()
1189 ispif->power_count = 0; in msm_ispif_subdev_init()
Dcamss-ispif.h60 int power_count; member
Dcamss-vfe.c1257 if (vfe->power_count == 0) { in vfe_get()
1287 vfe->power_count++; in vfe_get()
1316 if (vfe->power_count == 0) { in vfe_put()
1319 } else if (vfe->power_count == 1) { in vfe_put()
1329 vfe->power_count--; in vfe_put()
2072 vfe->power_count = 0; in msm_vfe_subdev_init()
Dcamss-vfe.h156 int power_count; member
/drivers/phy/
Dphy-core.c310 if (phy->power_count == 0 && phy->ops->power_on) { in phy_power_on()
317 ++phy->power_count; in phy_power_on()
340 if (phy->power_count == 1 && phy->ops->power_off) { in phy_power_off()
348 --phy->power_count; in phy_power_off()
/drivers/media/platform/s3c-camif/
Dcamif-core.h272 short power_count; member
Dcamif-capture.c115 if (camif->sensor.power_count == !on) in sensor_set_power()
120 sensor->power_count += on ? 1 : -1; in sensor_set_power()
123 on, sensor->power_count, err); in sensor_set_power()
/drivers/phy/samsung/
Dphy-exynos-mipi-video.c238 state->phys[data->coupled_phy_id].phy->power_count == 0) in __set_phy_state()