Home
last modified time | relevance | path

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

/linux/drivers/media/i2c/
H A Dad5820.c52 int power_count; member
228 if (coil->power_count == !on) { in ad5820_set_power()
236 coil->power_count += on ? 1 : -1; in ad5820_set_power()
237 WARN_ON(coil->power_count < 0); in ad5820_set_power()
276 if (!coil->power_count) in ad5820_suspend()
287 if (!coil->power_count) in ad5820_resume()
H A 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()
385 if (!flash->power_count) in adp1653_suspend()
396 if (!flash->power_count) in adp1653_resume()
H A Ds5k6a3.c67 int power_count; member
258 if (sensor->power_count == !on) { in s5k6a3_s_power()
265 sensor->power_count += on ? 1 : -1; in s5k6a3_s_power()
H A Dov772x.c434 int power_count; member
770 if (priv->power_count > 0) { in ov772x_set_frame_interval()
801 if (priv->power_count == 0) in ov772x_s_ctrl()
943 if (priv->power_count == !on) { in ov772x_s_power()
960 priv->power_count += on ? 1 : -1; in ov772x_s_power()
961 WARN(priv->power_count < 0, "Unbalanced power count\n"); in ov772x_s_power()
962 WARN(priv->power_count > 1, "Duplicated s_power call\n"); in ov772x_s_power()
1255 if (priv->power_count > 0) { in ov772x_set_fmt()
H A Dov2640.c307 int power_count; member
726 if (!priv->power_count) in ov2640_s_ctrl()
808 if (priv->power_count == !on) in ov2640_s_power()
810 priv->power_count += on ? 1 : -1; in ov2640_s_power()
811 WARN_ON(priv->power_count < 0); in ov2640_s_power()
H A Dmt9v032.c201 int power_count; member
859 if (mt9v032->power_count == !on) { in mt9v032_set_power()
866 mt9v032->power_count += on ? 1 : -1; in mt9v032_set_power()
867 WARN_ON(mt9v032->power_count < 0); in mt9v032_set_power()
H A Dmt9p031.c124 int power_count; member
972 if (mt9p031->power_count == !on) { in mt9p031_set_power()
979 mt9p031->power_count += on ? 1 : -1; in mt9p031_set_power()
980 WARN_ON(mt9p031->power_count < 0); in mt9p031_set_power()
H A Dmt9m111.c240 int power_count; member
1016 if (mt9m111->power_count == !on) { in mt9m111_s_power()
1025 mt9m111->power_count += on ? 1 : -1; in mt9m111_s_power()
1026 WARN_ON(mt9m111->power_count < 0); in mt9m111_s_power()
/linux/drivers/mfd/
H A Dtwl6040.c278 if (twl6040->power_count++) in twl6040_power()
283 twl6040->power_count = 0; in twl6040_power()
295 twl6040->power_count = 0; in twl6040_power()
303 twl6040->power_count = 0; in twl6040_power()
327 if (!twl6040->power_count) { in twl6040_power()
334 if (--twl6040->power_count) in twl6040_power()
513 if (twl6040->power_count) in twl6040_get_pll()
809 if (twl6040->power_count) in twl6040_remove()
/linux/drivers/net/wan/framer/
H A Dframer-core.c103 if (framer->power_count > framer->init_count) in framer_init()
194 if (framer->power_count == 0 && framer->ops->power_on) { in framer_power_on()
201 ++framer->power_count; in framer_power_on()
228 if (framer->power_count == 1 && framer->ops->power_off) { in framer_power_off()
236 --framer->power_count; in framer_power_off()
/linux/drivers/media/i2c/et8ek8/
H A Det8ek8_driver.c59 int power_count; member
1324 if (sensor->power_count == !on) { in et8ek8_set_power()
1331 sensor->power_count += on ? 1 : -1; in et8ek8_set_power()
1332 WARN_ON(sensor->power_count < 0); in et8ek8_set_power()
1397 if (!sensor->power_count) in et8ek8_suspend()
1408 if (!sensor->power_count) in et8ek8_resume()
1483 if (sensor->power_count) { in et8ek8_remove()
1486 sensor->power_count = 0; in et8ek8_remove()
/linux/drivers/phy/
H A Dphy-core.c263 if (phy->power_count > phy->init_count) in phy_init()
347 if (phy->power_count == 0 && phy->ops->power_on) { in phy_power_on()
354 ++phy->power_count; in phy_power_on()
385 if (phy->power_count == 1 && phy->ops->power_off) { in phy_power_off()
393 --phy->power_count; in phy_power_off()
/linux/drivers/media/platform/qcom/camss/
H A Dcamss-ispif.h60 int power_count; member
H A Dcamss-vfe.h150 int power_count; member
/linux/include/media/i2c/
H A Dadp1653.h110 int power_count; member
/linux/include/linux/mfd/
H A Dtwl6040.h194 int power_count; member
/linux/include/linux/framer/
H A Dframer.h88 int power_count; member
/linux/drivers/gpu/drm/msm/dp/
H A Ddp_ctrl.c1554 phy, phy->init_count, phy->power_count); in msm_dp_ctrl_phy_init()
1568 phy, phy->init_count, phy->power_count); in msm_dp_ctrl_phy_exit()
1621 phy, phy->init_count, phy->power_count); in msm_dp_ctrl_deinitialize_mainlink()
2061 phy, phy->init_count, phy->power_count); in msm_dp_ctrl_off_link_stream()
2077 phy, phy->init_count, phy->power_count); in msm_dp_ctrl_off_link()
2082 phy, phy->init_count, phy->power_count); in msm_dp_ctrl_off_link()
2109 phy, phy->init_count, phy->power_count); in msm_dp_ctrl_off()
/linux/drivers/media/platform/samsung/s3c-camif/
H A Dcamif-core.h282 short power_count; member
/linux/drivers/phy/samsung/
H A Dphy-exynos-mipi-video.c237 state->phys[data->coupled_phy_id].phy->power_count == 0) in __set_phy_state()
/linux/include/linux/phy/
H A Dphy.h164 int power_count; member
/linux/drivers/phy/marvell/
H A Dphy-mvebu-a3700-comphy.c1146 if (phy->power_count && in mvebu_a3700_comphy_set_mode()
/linux/drivers/net/ethernet/renesas/
H A Drswitch.c1367 else if (rdev->serdes->power_count) in rswitch_adjust_link()