Home
last modified time | relevance | path

Searched refs:powered (Results 1 – 25 of 41) sorted by relevance

12

/drivers/input/joystick/
Ddb9.c131 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/
Dhci_bcm.c211 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 …]
Dhci_intel.c289 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/
Dusbsevseg.c38 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/
Dleds-cpcap.c68 bool powered; member
85 if (status == led->powered) in cpcap_led_set_power()
98 led->powered = status; in cpcap_led_set_power()
/drivers/nfc/
Dmei_phy.c325 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()
Dmei_phy.h44 int powered; member
/drivers/platform/x86/
Dtoshiba_bluetooth.c35 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/
Ddvb-usb-init.c229 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()
Ddvb-usb.h449 int powered; member
/drivers/nfc/st-nci/
Dndlc.c50 ndlc->powered = 1; in ndlc_open()
68 ndlc->powered = 0; in ndlc_close()
269 ndlc->powered = 0; in ndlc_probe()
Di2c.c52 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()
Dndlc.h41 int powered; member
Dspi.c53 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/
Danalogix-anx78xx.c79 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/
Di2c.c68 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/
Dhgpk.c765 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()
Dhgpk.h39 bool powered; member
/drivers/gpu/drm/bridge/adv7511/
Dadv7511_drv.c375 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/
Dphy-rcar-gen3-usb2.c102 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/
Dexynos_hdmi.c143 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/
Di2c.c172 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/
Dadv7180.c209 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/
DKconfig14 completely powered off while still retaining an image on the display.
/drivers/media/usb/dvb-usb-v2/
Ddvb_usb_core.c532 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()

12