/drivers/hid/ |
D | hid-steelseries.c | 24 __u16 led_state; member 153 drv_data->led_state = 0; in steelseries_srws1_led_all_set_brightness() 155 drv_data->led_state = (1 << (SRWS1_NUMBER_LEDS + 1)) - 1; in steelseries_srws1_led_all_set_brightness() 157 steelseries_srws1_set_leds(hid, drv_data->led_state); in steelseries_srws1_led_all_set_brightness() 173 return (drv_data->led_state >> SRWS1_NUMBER_LEDS) ? LED_FULL : LED_OFF; in steelseries_srws1_led_all_get_brightness() 193 state = (drv_data->led_state >> i) & 1; in steelseries_srws1_led_set_brightness() 195 drv_data->led_state &= ~(1 << i); in steelseries_srws1_led_set_brightness() 196 steelseries_srws1_set_leds(hid, drv_data->led_state); in steelseries_srws1_led_set_brightness() 198 drv_data->led_state |= 1 << i; in steelseries_srws1_led_set_brightness() 199 steelseries_srws1_set_leds(hid, drv_data->led_state); in steelseries_srws1_led_set_brightness() [all …]
|
D | hid-picolcd_leds.c | 54 hid_set_field(report->field[0], 0, data->led_state); in picolcd_leds_set() 76 state = (data->led_state >> i) & 1; in picolcd_led_set_brightness() 78 data->led_state &= ~(1 << i); in picolcd_led_set_brightness() 81 data->led_state |= 1 << i; in picolcd_led_set_brightness() 100 value = (data->led_state >> i) & 1; in picolcd_led_get_brightness()
|
D | hid-sony.c | 1058 u8 led_state[MAX_LEDS]; member 1520 memcpy(sc->led_state, sixaxis_leds[id], sizeof(sixaxis_leds[id])); in sixaxis_set_leds_from_id() 1544 memcpy(sc->led_state, color_code[id], sizeof(color_code[id])); in dualshock4_set_leds_from_id() 1559 value[1] = sc->led_state[0] ? 0xff : 0x00; in buzz_set_leds() 1560 value[2] = sc->led_state[1] ? 0xff : 0x00; in buzz_set_leds() 1561 value[3] = sc->led_state[2] ? 0xff : 0x00; in buzz_set_leds() 1562 value[4] = sc->led_state[3] ? 0xff : 0x00; in buzz_set_leds() 1603 (value != drv_data->led_state[n] || in sony_led_set_brightness() 1607 drv_data->led_state[n] = value; in sony_led_set_brightness() 1635 return drv_data->led_state[n]; in sony_led_get_brightness() [all …]
|
D | hid-lenovo.c | 28 int led_state; member 629 return data_pointer->led_state & (1 << led_nr) in lenovo_led_brightness_get_tpkbd() 647 data_pointer->led_state &= ~(1 << led_nr); in lenovo_led_brightness_set_tpkbd() 649 data_pointer->led_state |= 1 << led_nr; in lenovo_led_brightness_set_tpkbd() 652 report->field[0]->value[0] = (data_pointer->led_state >> 0) & 1; in lenovo_led_brightness_set_tpkbd() 653 report->field[0]->value[1] = (data_pointer->led_state >> 1) & 1; in lenovo_led_brightness_set_tpkbd()
|
D | hid-lg4ff.c | 83 u8 led_state; member 1146 state = (entry->wdata.led_state >> i) & 1; in lg4ff_led_set_brightness() 1148 entry->wdata.led_state &= ~(1 << i); in lg4ff_led_set_brightness() 1149 lg4ff_set_leds(hid, entry->wdata.led_state); in lg4ff_led_set_brightness() 1151 entry->wdata.led_state |= 1 << i; in lg4ff_led_set_brightness() 1152 lg4ff_set_leds(hid, entry->wdata.led_state); in lg4ff_led_set_brightness() 1180 value = (entry->wdata.led_state >> i) & 1; in lg4ff_led_get_brightness() 1390 entry->wdata.led_state = 0; in lg4ff_init()
|
D | hid-picolcd.h | 108 u8 led_state; member
|
/drivers/net/hamradio/ |
D | 6pack.c | 114 unsigned char led_state; member 148 sp->led_state = 0x70; in sp_xmit_on_air() 149 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in sp_xmit_on_air() 154 sp->led_state = 0x60; in sp_xmit_on_air() 155 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in sp_xmit_on_air() 220 sp->led_state = 0x70; in sp_encaps() 221 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in sp_encaps() 226 sp->led_state = 0x60; in sp_encaps() 227 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in sp_encaps() 521 sp->led_state = 0x60; in resync_tnc() [all …]
|
/drivers/net/fddi/skfp/ |
D | drvfbi.c | 396 u_short led_state ; in led_indication() local 407 led_state = 0 ; in led_indication() 411 led_state |= LED_MY_ON ; in led_indication() 414 led_state |= LED_MY_OFF ; in led_indication() 419 led_state |= LED_GA_ON ; in led_indication() 422 led_state |= LED_GA_OFF ; in led_indication() 427 led_state |= LED_GB_ON ; in led_indication() 430 led_state |= LED_GB_OFF ; in led_indication() 434 outp(ADDR(B0_LED), led_state) ; in led_indication()
|
/drivers/platform/x86/ |
D | asus-wireless.c | 30 int led_state; member 76 data->led_state); in led_state_update() 85 data->led_state = value == LED_OFF ? ASUS_WIRELESS_LED_OFF : in led_state_set()
|
/drivers/media/dvb-frontends/ |
D | au8522_common.c | 183 if (state->led_state) in au8522_led_ctrl() 190 if (state->led_state != led) { in au8522_led_ctrl() 216 state->led_state = led; in au8522_led_ctrl()
|
D | au8522_priv.h | 62 unsigned int led_state; member
|
D | au8522_dig.c | 729 if ((state->led_state) && in au8522_led_status()
|
/drivers/isdn/hisax/ |
D | hfc_usb.c | 196 __u8 old_led_state, led_state; member 274 write_led(hfcusb_data *hfc, __u8 led_state) in write_led() argument 276 if (led_state != hfc->old_led_state) { in write_led() 277 hfc->old_led_state = led_state; in write_led() 278 queue_control_request(hfc, HFCUSB_P_DATA, led_state, 1); in write_led() 287 hfc->led_state &= ~abs(led_bits); in set_led_bit() 289 hfc->led_state |= led_bits; in set_led_bit() 292 hfc->led_state |= abs(led_bits); in set_led_bit() 294 hfc->led_state &= ~led_bits; in set_led_bit() 341 write_led(hfc, hfc->led_state); in handle_led() [all …]
|
/drivers/net/wireless/ath/carl9170/ |
D | led.c | 43 int carl9170_led_set_state(struct ar9170 *ar, const u32 led_state) in carl9170_led_set_state() argument 45 return carl9170_write_reg(ar, AR9170_GPIO_REG_PORT_DATA, led_state); in carl9170_led_set_state()
|
D | carl9170.h | 596 int carl9170_led_set_state(struct ar9170 *ar, const u32 led_state);
|
/drivers/isdn/hardware/mISDN/ |
D | hfcsusb.c | 140 hw->led_state &= ~abs(led_bits); in set_led_bit() 142 hw->led_state |= led_bits; in set_led_bit() 145 hw->led_state |= abs(led_bits); in set_led_bit() 147 hw->led_state &= ~led_bits; in set_led_bit() 161 tmpled = hw->led_state; in handle_led() 196 if (hw->led_state != tmpled) { in handle_led() 200 HFCUSB_P_DATA, hw->led_state); in handle_led() 202 write_reg(hw, HFCUSB_P_DATA, hw->led_state); in handle_led() 1723 hw->led_state = 0; in setup_hfcsusb()
|
D | hfcsusb.h | 298 __u8 led_state; member
|
/drivers/ata/ |
D | ahci_seattle.c | 125 emp->led_state = state; in seattle_transmit_led_message()
|
D | ahci.h | 302 unsigned long led_state; member
|
D | libahci.c | 857 emp->led_state, in ahci_start_port() 970 unsigned long led_message = emp->led_state; in ahci_sw_activity_blink() 1092 emp->led_state = state; in ahci_transmit_led_message() 1109 rc += sprintf(buf, "%lx\n", emp->led_state); in ahci_led_show() 1148 u32 port_led_state = emp->led_state; in ahci_activity_store()
|
/drivers/net/ethernet/qlogic/qede/ |
D | qede_ethtool.c | 849 u8 led_state = 0; in qede_set_phys_id() local 856 led_state = QED_LED_MODE_ON; in qede_set_phys_id() 860 led_state = QED_LED_MODE_OFF; in qede_set_phys_id() 864 led_state = QED_LED_MODE_RESTORE; in qede_set_phys_id() 868 edev->ops->common->set_led(edev->cdev, led_state); in qede_set_phys_id()
|
/drivers/media/radio/si470x/ |
D | radio-si470x-usb.c | 323 unsigned char led_state) in si470x_set_led_state() argument 329 radio->usb_buf[2] = led_state; in si470x_set_led_state()
|
/drivers/media/usb/dvb-usb/ |
D | af9005.c | 54 int led_state; member 795 if (st->led_state != temp) { in af9005_led_control() 808 st->led_state = temp; in af9005_led_control()
|
/drivers/leds/ |
D | leds-bd2802.c | 65 struct led_state { struct 76 struct led_state led[2]; argument
|
/drivers/tty/vt/ |
D | keyboard.c | 1019 unsigned int led_state = *(unsigned int *)data; in kbd_update_leds_helper() local 1022 kbd_propagate_led_state(~led_state, led_state); in kbd_update_leds_helper()
|