Home
last modified time | relevance | path

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

/drivers/iio/dac/
Dti-dac7311.c52 bool powerdown; member
58 static u8 ti_dac_get_power(struct ti_dac_chip *ti_dac, bool powerdown) in ti_dac_get_power() argument
60 if (powerdown) in ti_dac_get_power()
113 return sysfs_emit(buf, "%d\n", ti_dac->powerdown); in ti_dac_read_powerdown()
122 bool powerdown; in ti_dac_write_powerdown() local
126 ret = kstrtobool(buf, &powerdown); in ti_dac_write_powerdown()
130 power = ti_dac_get_power(ti_dac, powerdown); in ti_dac_write_powerdown()
135 ti_dac->powerdown = powerdown; in ti_dac_write_powerdown()
196 u8 power = ti_dac_get_power(ti_dac, ti_dac->powerdown); in ti_dac_write_raw()
207 if (ti_dac->powerdown) in ti_dac_write_raw()
[all …]
Dti-dac082s085.c55 bool powerdown; member
98 if (ti_dac->powerdown) { in ti_dac_set_powerdown_mode()
124 return sysfs_emit(buf, "%d\n", ti_dac->powerdown); in ti_dac_read_powerdown()
133 bool powerdown; in ti_dac_write_powerdown() local
136 ret = kstrtobool(buf, &powerdown); in ti_dac_write_powerdown()
140 if (ti_dac->powerdown == powerdown) in ti_dac_write_powerdown()
144 if (powerdown) in ti_dac_write_powerdown()
149 ti_dac->powerdown = powerdown; in ti_dac_write_powerdown()
231 if (ti_dac->powerdown) in ti_dac_write_raw()
Dti-dac5571.c51 bool powerdown[4]; member
143 if (data->powerdown[chan->channel]) { in dac5571_set_powerdown_mode()
171 return sysfs_emit(buf, "%d\n", data->powerdown[chan->channel]); in dac5571_read_powerdown()
180 bool powerdown; in dac5571_write_powerdown() local
183 ret = kstrtobool(buf, &powerdown); in dac5571_write_powerdown()
187 if (data->powerdown[chan->channel] == powerdown) in dac5571_write_powerdown()
191 if (powerdown) in dac5571_write_powerdown()
200 data->powerdown[chan->channel] = powerdown; in dac5571_write_powerdown()
281 if (data->powerdown[chan->channel]) in dac5571_write_raw()
Dmax5821.c37 bool powerdown[MAX5821_MAX_DAC_CHANNELS]; member
87 return sysfs_emit(buf, "%d\n", st->powerdown[chan->channel]); in max5821_read_dac_powerdown()
102 if (data->powerdown[chan->channel]) in max5821_sync_powerdown_mode()
116 bool powerdown; in max5821_write_dac_powerdown() local
119 ret = kstrtobool(buf, &powerdown); in max5821_write_dac_powerdown()
123 data->powerdown[chan->channel] = powerdown; in max5821_write_dac_powerdown()
320 data->powerdown[tmp] = true; in max5821_probe()
Dmcp4725.c39 bool powerdown; member
54 data->powerdown = true; in mcp4725_suspend()
74 data->powerdown = false; in mcp4725_resume()
105 inoutbuf[0] |= data->powerdown ? ((data->powerdown_mode + 1) << 1) : 0; in mcp4725_store_eeprom()
183 return sysfs_emit(buf, "%d\n", data->powerdown); in mcp4725_read_powerdown()
306 if (data->powerdown) in mcp4726_set_cfg()
307 outbuf[0] |= data->powerdown << 1; in mcp4726_set_cfg()
470 data->powerdown = pd > 0; in mcp4725_probe()
Dstm32-dac.c222 bool powerdown; in stm32_dac_write_powerdown() local
225 ret = kstrtobool(buf, &powerdown); in stm32_dac_write_powerdown()
229 ret = stm32_dac_set_enable_state(indio_dev, chan->channel, !powerdown); in stm32_dac_write_powerdown()
Dad5446.c114 bool powerdown; in ad5446_write_dac_powerdown() local
117 ret = kstrtobool(buf, &powerdown); in ad5446_write_dac_powerdown()
122 st->pwr_down = powerdown; in ad5446_write_dac_powerdown()
/drivers/gpu/drm/bridge/
Dti-tfp410.c30 struct gpio_desc *powerdown; member
186 gpiod_set_value_cansleep(dvi->powerdown, 0); in tfp410_enable()
193 gpiod_set_value_cansleep(dvi->powerdown, 1); in tfp410_disable()
333 dvi->powerdown = devm_gpiod_get_optional(dev, "powerdown", in tfp410_init()
335 if (IS_ERR(dvi->powerdown)) { in tfp410_init()
337 return PTR_ERR(dvi->powerdown); in tfp410_init()
/drivers/gpu/drm/msm/hdmi/
Dhdmi_phy.c102 if (!phy || !phy->cfg->powerdown) in msm_hdmi_phy_powerdown()
105 phy->cfg->powerdown(phy); in msm_hdmi_phy_powerdown()
Dhdmi_phy_8x74.c39 .powerdown = hdmi_phy_8x74_powerdown,
Dhdmi_phy_8960.c46 .powerdown = hdmi_phy_8960_powerdown,
Dhdmi_phy_8x60.c136 .powerdown = hdmi_phy_8x60_powerdown,
Dhdmi.h149 void (*powerdown)(struct hdmi_phy *phy); member
/drivers/media/i2c/
Dov5693.c158 struct gpio_desc *powerdown; member
793 gpiod_set_value_cansleep(ov5693->powerdown, 1); in ov5693_sensor_powerdown()
805 gpiod_set_value_cansleep(ov5693->powerdown, 1); in ov5693_sensor_powerup()
819 gpiod_set_value_cansleep(ov5693->powerdown, 0); in ov5693_sensor_powerup()
1321 ov5693->powerdown = devm_gpiod_get_optional(ov5693->dev, "powerdown", in ov5693_configure_gpios()
1323 if (IS_ERR(ov5693->powerdown)) { in ov5693_configure_gpios()
1325 return PTR_ERR(ov5693->powerdown); in ov5693_configure_gpios()
Dov5648.c648 struct gpio_desc *powerdown; member
1879 gpiod_set_value_cansleep(sensor->powerdown, 1); in ov5648_sensor_power()
1914 gpiod_set_value_cansleep(sensor->powerdown, 0); in ov5648_sensor_power()
1919 gpiod_set_value_cansleep(sensor->powerdown, 1); in ov5648_sensor_power()
2476 sensor->powerdown = devm_gpiod_get_optional(dev, "powerdown", in ov5648_probe()
2478 if (IS_ERR(sensor->powerdown)) { in ov5648_probe()
2479 ret = PTR_ERR(sensor->powerdown); in ov5648_probe()
Dov8865.c690 struct gpio_desc *powerdown; member
2404 gpiod_set_value_cansleep(sensor->powerdown, 1); in ov8865_sensor_power()
2434 gpiod_set_value_cansleep(sensor->powerdown, 0); in ov8865_sensor_power()
2439 gpiod_set_value_cansleep(sensor->powerdown, 1); in ov8865_sensor_power()
2999 sensor->powerdown = devm_gpiod_get_optional(dev, "powerdown", in ov8865_probe()
3001 if (IS_ERR(sensor->powerdown)) { in ov8865_probe()
3002 ret = PTR_ERR(sensor->powerdown); in ov8865_probe()
/drivers/gpu/drm/nouveau/nvkm/engine/device/
Dtegra.c351 goto powerdown; in nvkm_device_tegra_new()
357 powerdown: in nvkm_device_tegra_new()
/drivers/gpu/drm/panel/
Dpanel-feixin-k101-im2ba02.c333 goto powerdown; in k101_im2ba02_prepare()
338 powerdown: in k101_im2ba02_prepare()
/drivers/mfd/
Dgateworks-gsc.c144 __ATTR(powerdown, 0220, NULL, gsc_store);
/drivers/media/usb/em28xx/
Dem28xx-cards.c2904 int feat, powerdown; in em28xx_wait_until_ac97_features_equals() local
2911 powerdown = em28xx_read_ac97(dev, AC97_POWERDOWN); in em28xx_wait_until_ac97_features_equals()
2912 if (powerdown < 0) in em28xx_wait_until_ac97_features_equals()
2913 return powerdown; in em28xx_wait_until_ac97_features_equals()
2915 if (feat == expected_feat && feat != powerdown) in em28xx_wait_until_ac97_features_equals()
/drivers/power/reset/
DKconfig165 This driver supports an external powerdown trigger and board power
/drivers/staging/iio/addac/
Dadt7316.c586 static IIO_DEVICE_ATTR(powerdown, 0644,