/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/bluetooth/ |
D | hci_bcm.c | 211 static int bcm_gpio_set_power(struct bcm_device *dev, bool powered) in bcm_gpio_set_power() argument 215 if (powered && !dev->res_enabled) { in bcm_gpio_set_power() 242 err = dev->set_shutdown(dev, powered); in bcm_gpio_set_power() 246 err = dev->set_device_wakeup(dev, powered); in bcm_gpio_set_power() 250 if (!powered && dev->res_enabled) { in bcm_gpio_set_power() 265 dev->res_enabled = powered; in bcm_gpio_set_power() 270 dev->set_shutdown(dev, !powered); in bcm_gpio_set_power() 272 if (powered && !dev->res_enabled) in bcm_gpio_set_power() 275 if (powered && !dev->res_enabled) in bcm_gpio_set_power() 278 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 315 hu, dev_name(&idev->pdev->dev), powered); in intel_set_power() 317 gpiod_set_value(idev->reset, powered); in intel_set_power() 325 idev->hu = powered ? hu : NULL; in intel_set_power() 331 if (powered && device_can_wakeup(&idev->pdev->dev)) { in intel_set_power() 350 } else if (!powered && device_may_wakeup(&idev->pdev->dev)) { in intel_set_power()
|
/drivers/usb/misc/ |
D | usbsevseg.c | 38 u8 powered; member 67 if (mydev->powered && !mydev->has_interface_pm) { in update_display_powered() 82 (0x00 * 0x100) + (mydev->powered ? 1 : 0), in update_display_powered() 89 if (!mydev->powered && mydev->has_interface_pm) { in update_display_powered() 315 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 | 325 if (phy->powered == 1) in nfc_mei_phy_enable() 352 phy->powered = 1; in nfc_mei_phy_enable() 357 phy->powered = 0; in nfc_mei_phy_enable() 370 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 | 229 d->powered++; in dvb_usb_device_power_ctrl() 231 d->powered--; in dvb_usb_device_power_ctrl() 233 …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()
|
D | dvb-usb.h | 449 int powered; member
|
/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() 190 if (!phy->ndlc->powered) { in st_nci_irq_thread_fn()
|
/drivers/gpu/drm/bridge/ |
D | analogix-anx78xx.c | 79 bool powered; member 608 if (WARN_ON(anx78xx->powered)) in anx78xx_poweron() 636 anx78xx->powered = true; in anx78xx_poweron() 644 if (WARN_ON(!anx78xx->powered)) in anx78xx_poweroff() 664 anx78xx->powered = false; in anx78xx_poweroff() 944 if (WARN_ON(!anx78xx->powered)) in anx78xx_get_modes() 1084 if (WARN_ON(!anx78xx->powered)) in anx78xx_bridge_mode_set() 1134 if (anx78xx->powered) in anx78xx_hpd_threaded_handler() 1270 if (!anx78xx->powered) in anx78xx_intp_threaded_handler()
|
/drivers/nfc/st21nfca/ |
D | i2c.c | 68 int powered; member 139 phy->powered = 1; in st21nfca_hci_i2c_enable() 153 phy->powered = 0; in st21nfca_hci_i2c_disable() 575 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 | 375 adv7511->powered = true; in adv7511_power_on() 395 adv7511->powered = false; in adv7511_power_off() 442 adv7511->powered) { in adv7511_hpd_work() 602 if (!adv7511->powered) { in adv7511_get_modes() 615 if (!adv7511->powered) in adv7511_get_modes() 655 if (status == connector_status_connected && hpd && adv7511->powered) { in adv7511_detect() 1111 adv7511->powered = false; in adv7511_probe()
|
/drivers/phy/renesas/ |
D | phy-rcar-gen3-usb2.c | 102 bool powered; member 307 if (ch->rphys[i].powered) in rcar_gen3_are_all_rphys_power_off() 465 rphy->powered = true; in rcar_gen3_phy_usb2_power_on() 478 rphy->powered = false; in rcar_gen3_phy_usb2_power_off()
|
/drivers/gpu/drm/exynos/ |
D | exynos_hdmi.c | 143 bool powered; member 1472 if (hdata->powered) in hdmiphy_enable() 1490 hdata->powered = true; in hdmiphy_enable() 1496 if (!hdata->powered) in hdmiphy_disable() 1512 hdata->powered = false; in hdmiphy_disable() 1533 if (hdata->powered) { in hdmi_disable() 1571 if (hdata->powered) in hdmi_audio_shutdown() 1597 if (hdata->powered) { in hdmi_audio_hw_params() 1615 if (hdata->powered) in hdmi_audio_digital_mute()
|
/drivers/nfc/pn544/ |
D | i2c.c | 172 int powered; member 247 phy->powered = 1; in pn544_hci_i2c_enable() 266 phy->powered = 0; in pn544_hci_i2c_disable() 947 if (phy->powered) in pn544_hci_i2c_remove()
|
/drivers/media/i2c/ |
D | adv7180.c | 209 bool powered; member 530 state->powered = on; in adv7180_s_power() 1351 state->powered = true; in adv7180_probe() 1353 state->powered = false; in adv7180_probe() 1462 ret = adv7180_set_power(state, state->powered); in adv7180_resume()
|
/drivers/staging/olpc_dcon/ |
D | Kconfig | 14 completely powered off while still retaining an image on the display.
|
/drivers/media/usb/dvb-usb-v2/ |
D | dvb_usb_core.c | 532 d->powered++; in dvb_usbv2_device_power_ctrl() 534 d->powered--; in dvb_usbv2_device_power_ctrl() 536 if (d->powered == 0 || (onoff && d->powered == 1)) { in dvb_usbv2_device_power_ctrl()
|