Home
last modified time | relevance | path

Searched refs:led_state (Results 1 – 25 of 34) sorted by relevance

12

/linux/drivers/hid/
A Dhid-steelseries.c21 __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 Dhid-bigbenff.c178 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 Dhid-picolcd_leds.c44 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 Dhid-sony.c597 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 Dhid-elan.c417 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 Dhid-lg4ff.c71 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 Dhid-lenovo.c41 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 Dhid-picolcd.h98 u8 led_state; member
/linux/drivers/net/hamradio/
A D6pack.c114 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 Ddrvfbi.c389 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 Dau8522_common.c171 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 Dau8522_priv.h57 unsigned int led_state; member
/linux/drivers/platform/x86/
A Dasus-wireless.c30 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 Dled.c43 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 Dibm-cffps.c92 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 Dbnxt_ethtool.h16 u8 led_state; member
/linux/drivers/isdn/hardware/mISDN/
A Dhfcsusb.c126 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 Dhfcsusb.h299 __u8 led_state; member
/linux/drivers/ata/
A Dahci_seattle.c117 emp->led_state = state; in seattle_transmit_led_message()
A Dahci.h299 unsigned long led_state; member
A Dlibahci.c887 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 Daf9005.c41 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 Dradio-si470x-usb.c310 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 Dleds-bd2802.c61 struct led_state { struct
73 struct led_state led[2]; argument
/linux/drivers/net/ethernet/qlogic/qede/
A Dqede_ethtool.c1139 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()

Completed in 68 milliseconds

12