Home
last modified time | relevance | path

Searched refs:powered (Results 1 – 25 of 46) 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/gpu/drm/bridge/
Dparade-ps8640.c68 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/
Dhci_bcm.c235 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 …]
Dhci_intel.c289 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/
Dphy-meson-axg-mipi-pcie-analog.c52 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/
Dusbsevseg.c38 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/
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.c319 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()
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.c252 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/
Danalogix-anx6345.c66 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()
Danalogix-anx78xx.c85 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/
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()
187 if (!phy->ndlc->powered) { in st_nci_irq_thread_fn()
/drivers/nfc/st21nfca/
Di2c.c66 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/
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.c378 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/
Dphy-rcar-gen3-usb2.c107 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/
Dcoresight-cti-sysfs.c84 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/
Dexynos_hdmi.c145 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/
DKconfig14 completely powered off while still retaining an image on the display.

12