/drivers/input/joystick/ |
D | db9.c | 131 static void db9_saturn_write_sub(struct parport *port, int type, unsigned char data, int powered, i… in db9_saturn_write_sub() argument 137 c = 0x80 | 0x30 | (powered ? 0x08 : 0) | (pwr_sub ? 0x04 : 0) | data; in db9_saturn_write_sub() 141 c = 0x40 | data << 4 | (powered ? 0x08 : 0) | (pwr_sub ? 0x04 : 0) | 0x03; in db9_saturn_write_sub() 145 c = ((((data & 2) ? 2 : 0) | ((data & 1) ? 4 : 0)) ^ 0x02) | !powered; in db9_saturn_write_sub() 174 static unsigned char db9_saturn_read_analog(struct parport *port, int type, int powered) in db9_saturn_read_analog() argument 178 db9_saturn_write_sub(port, type, 0, powered, 0); in db9_saturn_read_analog() 181 db9_saturn_write_sub(port, type, 2, powered, 0); in db9_saturn_read_analog() 191 …igned char db9_saturn_read_packet(struct parport *port, unsigned char *data, int type, int powered) in db9_saturn_read_packet() argument 196 db9_saturn_write_sub(port, type, 3, powered, 0); in db9_saturn_read_packet() 204 db9_saturn_write_sub(port, type, 0, powered, 1); in db9_saturn_read_packet() [all …]
|
/drivers/gpu/drm/bridge/ |
D | parade-ps8640.c | 68 bool powered; member 101 if (ps_bridge->powered) in ps8640_bridge_poweron() 166 ps_bridge->powered = true; in ps8640_bridge_poweron() 179 if (!ps_bridge->powered) in ps8640_bridge_poweroff() 189 ps_bridge->powered = false; in ps8640_bridge_poweroff() 275 bool poweroff = !ps_bridge->powered; in ps8640_bridge_get_edid()
|
/drivers/bluetooth/ |
D | hci_bcm.c | 235 static int bcm_gpio_set_power(struct bcm_device *dev, bool powered) in bcm_gpio_set_power() argument 239 if (powered && !dev->res_enabled) { in bcm_gpio_set_power() 266 err = dev->set_shutdown(dev, powered); in bcm_gpio_set_power() 270 err = dev->set_device_wakeup(dev, powered); in bcm_gpio_set_power() 274 if (!powered && dev->res_enabled) { in bcm_gpio_set_power() 289 dev->res_enabled = powered; in bcm_gpio_set_power() 294 dev->set_shutdown(dev, !powered); in bcm_gpio_set_power() 296 if (powered && !dev->res_enabled) in bcm_gpio_set_power() 299 if (powered && !dev->res_enabled) in bcm_gpio_set_power() 302 if (powered && !dev->res_enabled) in bcm_gpio_set_power() [all …]
|
D | hci_intel.c | 289 static int intel_set_power(struct hci_uart *hu, bool powered) in intel_set_power() argument 312 hu, dev_name(&idev->pdev->dev), powered); in intel_set_power() 314 gpiod_set_value(idev->reset, powered); in intel_set_power() 322 idev->hu = powered ? hu : NULL; in intel_set_power() 328 if (powered && device_can_wakeup(&idev->pdev->dev)) { in intel_set_power() 347 } else if (!powered && device_may_wakeup(&idev->pdev->dev)) { in intel_set_power()
|
/drivers/phy/amlogic/ |
D | phy-meson-axg-mipi-pcie-analog.c | 52 bool powered; member 147 if (priv->powered) { in phy_axg_mipi_pcie_analog_configure() 169 priv->powered = true; in phy_axg_mipi_pcie_analog_power_on() 183 priv->powered = false; in phy_axg_mipi_pcie_analog_power_off()
|
/drivers/usb/misc/ |
D | usbsevseg.c | 38 u8 powered; member 67 if (mydev->powered && !mydev->has_interface_pm) { in update_display_powered() 79 (0x00 * 0x100) + (mydev->powered ? 1 : 0), in update_display_powered() 84 if (!mydev->powered && mydev->has_interface_pm) { in update_display_powered() 289 MYDEV_ATTR_SIMPLE_UNSIGNED(powered, update_display_powered);
|
/drivers/leds/ |
D | leds-cpcap.c | 68 bool powered; member 85 if (status == led->powered) in cpcap_led_set_power() 98 led->powered = status; in cpcap_led_set_power()
|
/drivers/nfc/ |
D | mei_phy.c | 319 if (phy->powered == 1) in nfc_mei_phy_enable() 346 phy->powered = 1; in nfc_mei_phy_enable() 351 phy->powered = 0; in nfc_mei_phy_enable() 362 phy->powered = 0; in nfc_mei_phy_disable()
|
D | mei_phy.h | 44 int powered; member
|
/drivers/platform/x86/ |
D | toshiba_bluetooth.c | 35 bool powered; member 155 bt_dev->powered = (status & BT_POWER_MASK) ? true : false; in toshiba_bluetooth_sync_status() 158 status, bt_dev->killswitch, bt_dev->plugged, bt_dev->powered); in toshiba_bluetooth_sync_status()
|
/drivers/media/usb/dvb-usb/ |
D | dvb-usb-init.c | 252 d->powered++; in dvb_usb_device_power_ctrl() 254 d->powered--; in dvb_usb_device_power_ctrl() 256 …if (d->powered == 0 || (onoff && d->powered == 1)) { /* when switching from 1 to 0 or from 0 to 1 … in dvb_usb_device_power_ctrl()
|
/drivers/gpu/drm/bridge/analogix/ |
D | analogix-anx6345.c | 66 bool powered; member 345 anx6345->powered = true; in anx6345_poweron() 376 anx6345->powered = false; in anx6345_poweroff() 383 if (!anx6345->powered) in anx6345_start() 463 if (!anx6345->powered) { in anx6345_get_modes() 613 if (anx6345->powered) in anx6345_bridge_disable()
|
D | analogix-anx78xx.c | 85 bool powered; member 472 if (WARN_ON(anx78xx->powered)) in anx78xx_poweron() 500 anx78xx->powered = true; in anx78xx_poweron() 508 if (WARN_ON(!anx78xx->powered)) in anx78xx_poweroff() 528 anx78xx->powered = false; in anx78xx_poweroff() 830 if (WARN_ON(!anx78xx->powered)) in anx78xx_get_modes() 988 if (WARN_ON(!anx78xx->powered)) in anx78xx_bridge_mode_set() 1039 if (anx78xx->powered) in anx78xx_hpd_threaded_handler() 1175 if (!anx78xx->powered) in anx78xx_intp_threaded_handler()
|
/drivers/nfc/st-nci/ |
D | ndlc.c | 50 ndlc->powered = 1; in ndlc_open() 68 ndlc->powered = 0; in ndlc_close() 269 ndlc->powered = 0; in ndlc_probe()
|
D | i2c.c | 52 if (phy->ndlc->powered == 0 && phy->irq_active == 0) { in st_nci_i2c_enable() 175 if (!phy->ndlc->powered) { in st_nci_irq_thread_fn()
|
D | ndlc.h | 41 int powered; member
|
D | spi.c | 53 if (phy->ndlc->powered == 0 && phy->irq_active == 0) { in st_nci_spi_enable() 187 if (!phy->ndlc->powered) { in st_nci_irq_thread_fn()
|
/drivers/nfc/st21nfca/ |
D | i2c.c | 66 int powered; member 137 phy->powered = 1; in st21nfca_hci_i2c_enable() 151 phy->powered = 0; in st21nfca_hci_i2c_disable() 577 if (phy->powered) in st21nfca_hci_i2c_remove()
|
/drivers/input/mouse/ |
D | hgpk.c | 765 priv->powered = 1; in hgpk_reconnect() 773 return sprintf(buf, "%d\n", priv->powered); in hgpk_show_powered() 790 if (value != priv->powered) { in hgpk_set_powered() 797 priv->powered = value; in hgpk_set_powered() 803 __PSMOUSE_DEFINE_ATTR(powered, S_IWUSR | S_IRUGO, NULL, 993 priv->powered = true; in hgpk_init()
|
D | hgpk.h | 39 bool powered; member
|
/drivers/gpu/drm/bridge/adv7511/ |
D | adv7511_drv.c | 378 adv7511->powered = true; in adv7511_power_on() 402 adv7511->powered = false; in adv7511_power_off() 449 adv7511->powered) { in adv7511_hpd_work() 613 if (!adv7511->powered) { in adv7511_get_edid() 626 if (!adv7511->powered) in adv7511_get_edid() 676 if (status == connector_status_connected && hpd && adv7511->powered) { in adv7511_detect() 1205 adv7511->powered = false; in adv7511_probe()
|
/drivers/phy/renesas/ |
D | phy-rcar-gen3-usb2.c | 107 bool powered; member 331 if (ch->rphys[i].powered) in rcar_gen3_are_all_rphys_power_off() 521 rphy->powered = true; in rcar_gen3_phy_usb2_power_on() 534 rphy->powered = false; in rcar_gen3_phy_usb2_power_off()
|
/drivers/hwtracing/coresight/ |
D | coresight-cti-sysfs.c | 84 bool enabled, powered; in enable_show() local 89 powered = drvdata->config.hw_powered; in enable_show() 93 if (powered) in enable_show() 134 bool powered; in powered_show() local 138 powered = drvdata->config.hw_powered; in powered_show() 141 return sprintf(buf, "%d\n", powered); in powered_show() 143 static DEVICE_ATTR_RO(powered);
|
/drivers/gpu/drm/exynos/ |
D | exynos_hdmi.c | 145 bool powered; member 1485 if (hdata->powered) in hdmiphy_enable() 1507 hdata->powered = true; in hdmiphy_enable() 1513 if (!hdata->powered) in hdmiphy_disable() 1529 hdata->powered = false; in hdmiphy_disable() 1550 if (hdata->powered) { in hdmi_disable() 1584 if (hdata->powered) in hdmi_audio_shutdown() 1610 if (hdata->powered) { in hdmi_audio_hw_params() 1629 if (hdata->powered) in hdmi_audio_mute()
|
/drivers/staging/olpc_dcon/ |
D | Kconfig | 14 completely powered off while still retaining an image on the display.
|