/linux/drivers/hid/ |
A D | hid-steelseries.c | 21 __u16 led_state; member 150 drv_data->led_state = 0; in steelseries_srws1_led_all_set_brightness() 152 drv_data->led_state = (1 << (SRWS1_NUMBER_LEDS + 1)) - 1; in steelseries_srws1_led_all_set_brightness() 154 steelseries_srws1_set_leds(hid, drv_data->led_state); in steelseries_srws1_led_all_set_brightness() 190 state = (drv_data->led_state >> i) & 1; in steelseries_srws1_led_set_brightness() 192 drv_data->led_state &= ~(1 << i); in steelseries_srws1_led_set_brightness() 193 steelseries_srws1_set_leds(hid, drv_data->led_state); 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() 218 value = (drv_data->led_state >> i) & 1; in steelseries_srws1_led_get_brightness() [all …]
|
A D | hid-bigbenff.c | 178 u8 led_state; /* LED1 = 1 .. LED4 = 8 */ member 201 report_field->value[2] = bigben->led_state; in bigben_worker() 271 work = (bigben->led_state & BIT(n)); in bigben_set_led() 272 bigben->led_state &= ~BIT(n); in bigben_set_led() 274 work = !(bigben->led_state & BIT(n)); in bigben_set_led() 275 bigben->led_state |= BIT(n); in bigben_set_led() 301 return (bigben->led_state & BIT(n)) ? LED_ON : LED_OFF; in bigben_get_led() 389 bigben->led_state = BIT(0); in bigben_probe()
|
A D | hid-picolcd_leds.c | 44 hid_set_field(report->field[0], 0, data->led_state); in picolcd_leds_set() 66 state = (data->led_state >> i) & 1; in picolcd_led_set_brightness() 68 data->led_state &= ~(1 << i); in picolcd_led_set_brightness() 71 data->led_state |= 1 << i; in picolcd_led_set_brightness() 90 value = (data->led_state >> i) & 1; in picolcd_led_get_brightness()
|
A D | hid-sony.c | 597 u8 led_state[MAX_LEDS]; member 2028 drv_data->led_state[n] = value; in sony_led_set_brightness() 2056 return drv_data->led_state[n]; in sony_led_get_brightness() 2136 sc->led_state[3] = 1; in sony_leds_init() 2312 if (sc->led_state[3]) { in dualshock4_send_output_report() 2313 buf[offset++] = sc->led_state[0]; in dualshock4_send_output_report() 2314 buf[offset++] = sc->led_state[1]; in dualshock4_send_output_report() 2315 buf[offset++] = sc->led_state[2]; in dualshock4_send_output_report() 2347 report->r = sc->led_state[0]; in motion_send_output_report() 2348 report->g = sc->led_state[1]; in motion_send_output_report() [all …]
|
A D | hid-elan.c | 417 u8 led_state; in elan_mute_led_set_brigtness() local 427 led_state = !!value; in elan_mute_led_set_brigtness() 431 dmabuf[2] = led_state; in elan_mute_led_set_brigtness() 444 drvdata->mute_led_state = led_state; in elan_mute_led_set_brigtness()
|
A D | hid-lg4ff.c | 71 u8 led_state; member 1138 state = (entry->wdata.led_state >> i) & 1; in lg4ff_led_set_brightness() 1140 entry->wdata.led_state &= ~(1 << i); in lg4ff_led_set_brightness() 1141 lg4ff_set_leds(hid, entry->wdata.led_state); in lg4ff_led_set_brightness() 1143 entry->wdata.led_state |= 1 << i; in lg4ff_led_set_brightness() 1144 lg4ff_set_leds(hid, entry->wdata.led_state); in lg4ff_led_set_brightness() 1172 value = (entry->wdata.led_state >> i) & 1; in lg4ff_led_get_brightness() 1389 entry->wdata.led_state = 0; in lg4ff_init()
|
A D | hid-lenovo.c | 41 int led_state; member 827 report->field[0]->value[0] = (data_pointer->led_state >> 0) & 1; in lenovo_led_set_tpkbd() 828 report->field[0]->value[1] = (data_pointer->led_state >> 1) & 1; in lenovo_led_set_tpkbd() 846 data_pointer->led_state &= ~(1 << led_nr); in lenovo_led_brightness_set() 848 data_pointer->led_state |= 1 << led_nr; in lenovo_led_brightness_set()
|
A D | hid-picolcd.h | 98 u8 led_state; member
|
/linux/drivers/net/hamradio/ |
A D | 6pack.c | 114 unsigned char led_state; member 148 sp->led_state = 0x70; in sp_xmit_on_air() 154 sp->led_state = 0x60; in sp_xmit_on_air() 215 sp->led_state = 0x70; in sp_encaps() 221 sp->led_state = 0x60; in sp_encaps() 515 sp->led_state = 0x60; in resync_tnc() 603 sp->led_state = 0x60; in sixpack_open() 873 sp->led_state = 0x70; in decode_prio_command() 879 sp->led_state = 0x60; in decode_prio_command() 909 sp->led_state = 0x68; in decode_std_command() [all …]
|
/linux/drivers/net/fddi/skfp/ |
A D | drvfbi.c | 389 u_short led_state ; in led_indication() local 400 led_state = 0 ; in led_indication() 404 led_state |= LED_MY_ON ; in led_indication() 407 led_state |= LED_MY_OFF ; in led_indication() 412 led_state |= LED_GA_ON ; in led_indication() 415 led_state |= LED_GA_OFF ; in led_indication() 420 led_state |= LED_GB_ON ; in led_indication() 423 led_state |= LED_GB_OFF ; in led_indication() 427 outp(ADDR(B0_LED), led_state) ; in led_indication()
|
/linux/drivers/media/dvb-frontends/ |
A D | au8522_common.c | 171 if (state->led_state) in au8522_led_ctrl() 178 if (state->led_state != led) { in au8522_led_ctrl() 204 state->led_state = led; in au8522_led_ctrl()
|
A D | au8522_priv.h | 57 unsigned int led_state; member
|
/linux/drivers/platform/x86/ |
A D | asus-wireless.c | 30 int led_state; member 98 data->led_state, &ret); in led_state_update() 106 data->led_state = value == LED_OFF ? data->hswc_params->off : in led_state_set()
|
/linux/drivers/net/wireless/ath/carl9170/ |
A 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()
|
/linux/drivers/hwmon/pmbus/ |
A D | ibm-cffps.c | 92 u8 led_state; member 390 if (psu->led_state != CFFPS_LED_BLINK) in ibm_cffps_led_brightness_set() 406 psu->led_state = next_led_state; in ibm_cffps_led_brightness_set() 428 psu->led_state = CFFPS_LED_BLINK; in ibm_cffps_led_blink_set()
|
/linux/drivers/net/ethernet/broadcom/bnxt/ |
A D | bnxt_ethtool.h | 16 u8 led_state; member
|
/linux/drivers/isdn/hardware/mISDN/ |
A D | hfcsusb.c | 126 hw->led_state &= ~abs(led_bits); in set_led_bit() 128 hw->led_state |= led_bits; in set_led_bit() 131 hw->led_state |= abs(led_bits); in set_led_bit() 133 hw->led_state &= ~led_bits; in set_led_bit() 147 tmpled = hw->led_state; in handle_led() 182 if (hw->led_state != tmpled) { in handle_led() 186 HFCUSB_P_DATA, hw->led_state); in handle_led() 188 write_reg(hw, HFCUSB_P_DATA, hw->led_state); in handle_led() 1724 hw->led_state = 0; in setup_hfcsusb()
|
A D | hfcsusb.h | 299 __u8 led_state; member
|
/linux/drivers/ata/ |
A D | ahci_seattle.c | 117 emp->led_state = state; in seattle_transmit_led_message()
|
A D | ahci.h | 299 unsigned long led_state; member
|
A D | libahci.c | 887 emp->led_state, in ahci_start_port() 1002 unsigned long led_message = emp->led_state; in ahci_sw_activity_blink() 1125 emp->led_state = state; in ahci_transmit_led_message() 1142 rc += sprintf(buf, "%lx\n", emp->led_state); in ahci_led_show() 1183 u32 port_led_state = emp->led_state; in ahci_activity_store()
|
/linux/drivers/media/usb/dvb-usb/ |
A D | af9005.c | 41 int led_state; member 782 if (st->led_state != temp) { in af9005_led_control() 795 st->led_state = temp; in af9005_led_control()
|
/linux/drivers/media/radio/si470x/ |
A D | radio-si470x-usb.c | 310 unsigned char led_state) in si470x_set_led_state() argument 316 radio->usb_buf[2] = led_state; in si470x_set_led_state()
|
/linux/drivers/leds/ |
A D | leds-bd2802.c | 61 struct led_state { struct 73 struct led_state led[2]; argument
|
/linux/drivers/net/ethernet/qlogic/qede/ |
A D | qede_ethtool.c | 1139 u8 led_state = 0; in qede_set_phys_id() local 1146 led_state = QED_LED_MODE_ON; in qede_set_phys_id() 1150 led_state = QED_LED_MODE_OFF; in qede_set_phys_id() 1154 led_state = QED_LED_MODE_RESTORE; in qede_set_phys_id() 1158 edev->ops->common->set_led(edev->cdev, led_state); in qede_set_phys_id()
|