Searched refs:power_count (Results 1 - 25 of 27) sorted by relevance

12

/linux-master/drivers/media/i2c/
H A Dad5820.c52 int power_count; member in struct:ad5820_device
228 if (coil->power_count == !on) {
236 coil->power_count += on ? 1 : -1;
237 WARN_ON(coil->power_count < 0);
276 if (!coil->power_count)
287 if (!coil->power_count)
H A Dadp1653.c337 if (flash->power_count == !on) {
344 flash->power_count += on ? 1 : -1;
345 WARN_ON(flash->power_count < 0);
385 if (!flash->power_count)
396 if (!flash->power_count)
H A Ds5k6a3.c55 * @power_count: stores state if device is powered
67 int power_count; member in struct:s5k6a3
258 if (sensor->power_count == !on) {
265 sensor->power_count += on ? 1 : -1;
H A Dov772x.c432 /* lock to protect power_count and streaming */
434 int power_count; member in struct:ov772x_priv
770 if (priv->power_count > 0) {
801 if (priv->power_count == 0)
943 if (priv->power_count == !on) {
960 priv->power_count += on ? 1 : -1;
961 WARN(priv->power_count < 0, "Unbalanced power count\n");
962 WARN(priv->power_count > 1, "Duplicated s_power call\n");
1255 if (priv->power_count > 0) {
H A Dmt9v032.c201 int power_count; member in struct:mt9v032
859 if (mt9v032->power_count == !on) {
866 mt9v032->power_count += on ? 1 : -1;
867 WARN_ON(mt9v032->power_count < 0);
H A Dmt9p031.c126 struct mutex power_lock; /* lock to protect power_count */
127 int power_count; member in struct:mt9p031
977 if (mt9p031->power_count == !on) {
984 mt9p031->power_count += on ? 1 : -1;
985 WARN_ON(mt9p031->power_count < 0);
H A Dov2640.c305 struct mutex lock; /* lock to protect streaming and power_count */
307 int power_count; member in struct:ov2640_priv
726 if (!priv->power_count)
808 if (priv->power_count == !on)
810 priv->power_count += on ? 1 : -1;
811 WARN_ON(priv->power_count < 0);
H A Dmt9m111.c239 struct mutex power_lock; /* lock to protect power_count */
240 int power_count; member in struct:mt9m111
1016 if (mt9m111->power_count == !on) {
1025 mt9m111->power_count += on ? 1 : -1;
1026 WARN_ON(mt9m111->power_count < 0);
/linux-master/drivers/media/platform/qcom/camss/
H A Dcamss-ispif.h60 int power_count; member in struct:ispif_device
H A Dcamss-vfe.h140 int power_count; member in struct:vfe_device
H A Dcamss-ispif.c369 if (ispif->power_count) {
371 ispif->power_count++;
395 ispif->power_count++;
397 if (ispif->power_count == 0) {
398 dev_err(dev, "ispif power off on power_count == 0\n");
400 } else if (ispif->power_count == 1) {
405 ispif->power_count--;
1222 ispif->power_count = 0;
H A Dcamss-vfe.c676 if (vfe->power_count == 0) {
708 vfe->power_count++;
736 if (vfe->power_count == 0) {
737 dev_err(vfe->camss->dev, "vfe power off on power_count == 0\n");
739 } else if (vfe->power_count == 1) {
749 vfe->power_count--;
1479 vfe->power_count = 0;
/linux-master/drivers/mfd/
H A Dtwl6040.c278 if (twl6040->power_count++)
283 twl6040->power_count = 0;
295 twl6040->power_count = 0;
303 twl6040->power_count = 0;
327 if (!twl6040->power_count) {
334 if (--twl6040->power_count)
513 if (twl6040->power_count)
809 if (twl6040->power_count)
/linux-master/include/media/i2c/
H A Dadp1653.h110 int power_count; member in struct:adp1653_flash
/linux-master/include/linux/framer/
H A Dframer.h75 * @power_count: used to protect when the framer is used by multiple consumers
88 int power_count; member in struct:framer
/linux-master/drivers/net/wan/framer/
H A Dframer-core.c103 if (framer->power_count > framer->init_count)
194 if (framer->power_count == 0 && framer->ops->power_on) {
201 ++framer->power_count;
228 if (framer->power_count == 1 && framer->ops->power_off) {
236 --framer->power_count;
/linux-master/include/linux/mfd/
H A Dtwl6040.h194 int power_count; member in struct:twl6040
/linux-master/drivers/media/i2c/et8ek8/
H A Det8ek8_driver.c59 int power_count; member in struct:et8ek8_sensor
1324 if (sensor->power_count == !on) {
1331 sensor->power_count += on ? 1 : -1;
1332 WARN_ON(sensor->power_count < 0);
1397 if (!sensor->power_count)
1408 if (!sensor->power_count)
1483 if (sensor->power_count) {
1486 sensor->power_count = 0;
/linux-master/drivers/staging/media/atomisp/i2c/
H A Datomisp-lm3554.c67 int power_count; member in struct:lm3554
653 if (flash->power_count == !power) {
659 flash->power_count += power ? 1 : -1;
660 WARN_ON(flash->power_count < 0);
727 if (flash->power_count == 0)
744 if (flash->power_count == 0)
/linux-master/drivers/phy/
H A Dphy-core.c258 if (phy->power_count > phy->init_count)
342 if (phy->power_count == 0 && phy->ops->power_on) {
349 ++phy->power_count;
380 if (phy->power_count == 1 && phy->ops->power_off) {
388 --phy->power_count;
/linux-master/drivers/media/platform/samsung/s3c-camif/
H A Dcamif-core.h282 short power_count; member in struct:camif_dev::cam_sensor
H A Dcamif-capture.c115 if (camif->sensor.power_count == !on)
120 sensor->power_count += on ? 1 : -1;
122 pr_debug("on: %d, power_count: %d, err: %d\n",
123 on, sensor->power_count, err);
/linux-master/drivers/phy/samsung/
H A Dphy-exynos-mipi-video.c237 state->phys[data->coupled_phy_id].phy->power_count == 0)
/linux-master/drivers/gpu/drm/msm/dp/
H A Ddp_ctrl.c1552 phy, phy->init_count, phy->power_count);
1566 phy, phy->init_count, phy->power_count);
1634 phy, phy->init_count, phy->power_count);
2074 phy, phy->init_count, phy->power_count);
2090 phy, phy->init_count, phy->power_count);
2095 phy, phy->init_count, phy->power_count);
2122 phy, phy->init_count, phy->power_count);
/linux-master/include/linux/phy/
H A Dphy.h153 * @power_count: used to protect when the PHY is used by multiple consumers
164 int power_count; member in struct:phy

Completed in 258 milliseconds

12