/linux-6.1.9/drivers/hid/ |
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() 170 return (drv_data->led_state >> SRWS1_NUMBER_LEDS) ? LED_FULL : LED_OFF; in steelseries_srws1_led_all_get_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() [all …]
|
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() 400 bigben->led_state = BIT(0); in bigben_probe()
|
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()
|
D | hid-sony.c | 597 u8 led_state[MAX_LEDS]; member 1941 memcpy(sc->led_state, sixaxis_leds[id], sizeof(sixaxis_leds[id])); in sixaxis_set_leds_from_id() 1965 memcpy(sc->led_state, color_code[id], sizeof(color_code[id])); in dualshock4_set_leds_from_id() 1980 value[1] = sc->led_state[0] ? 0xff : 0x00; in buzz_set_leds() 1981 value[2] = sc->led_state[1] ? 0xff : 0x00; in buzz_set_leds() 1982 value[3] = sc->led_state[2] ? 0xff : 0x00; in buzz_set_leds() 1983 value[4] = sc->led_state[3] ? 0xff : 0x00; in buzz_set_leds() 2024 (value != drv_data->led_state[n] || in sony_led_set_brightness() 2028 drv_data->led_state[n] = value; in sony_led_set_brightness() 2056 return drv_data->led_state[n]; in sony_led_get_brightness() [all …]
|
D | hid-elan.c | 415 u8 led_state; in elan_mute_led_set_brigtness() local 425 led_state = !!value; in elan_mute_led_set_brigtness() 429 dmabuf[2] = led_state; in elan_mute_led_set_brigtness() 442 drvdata->mute_led_state = led_state; in elan_mute_led_set_brigtness()
|
D | hid-lg4ff.c | 71 u8 led_state; member 1144 state = (entry->wdata.led_state >> i) & 1; in lg4ff_led_set_brightness() 1146 entry->wdata.led_state &= ~(1 << i); in lg4ff_led_set_brightness() 1147 lg4ff_set_leds(hid, entry->wdata.led_state); in lg4ff_led_set_brightness() 1149 entry->wdata.led_state |= 1 << i; in lg4ff_led_set_brightness() 1150 lg4ff_set_leds(hid, entry->wdata.led_state); in lg4ff_led_set_brightness() 1178 value = (entry->wdata.led_state >> i) & 1; in lg4ff_led_get_brightness() 1395 entry->wdata.led_state = 0; in lg4ff_init()
|
D | hid-lenovo.c | 42 int led_state; member 977 report->field[0]->value[0] = (data_pointer->led_state >> 0) & 1; in lenovo_led_set_tpkbd() 978 report->field[0]->value[1] = (data_pointer->led_state >> 1) & 1; in lenovo_led_set_tpkbd() 996 data_pointer->led_state &= ~(1 << led_nr); in lenovo_led_brightness_set() 998 data_pointer->led_state |= 1 << led_nr; in lenovo_led_brightness_set()
|
D | hid-picolcd.h | 98 u8 led_state; member
|
/linux-6.1.9/drivers/net/hamradio/ |
D | 6pack.c | 115 unsigned char led_state; member 149 sp->led_state = 0x70; in sp_xmit_on_air() 150 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in sp_xmit_on_air() 155 sp->led_state = 0x60; in sp_xmit_on_air() 156 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in sp_xmit_on_air() 216 sp->led_state = 0x70; in sp_encaps() 217 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in sp_encaps() 222 sp->led_state = 0x60; in sp_encaps() 223 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in sp_encaps() 516 sp->led_state = 0x60; in resync_tnc() [all …]
|
/linux-6.1.9/drivers/net/fddi/skfp/ |
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-6.1.9/drivers/media/dvb-frontends/ |
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()
|
D | au8522_priv.h | 57 unsigned int led_state; member
|
/linux-6.1.9/drivers/platform/x86/ |
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-6.1.9/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()
|
/linux-6.1.9/drivers/hwmon/pmbus/ |
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-6.1.9/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ethtool.h | 16 u8 led_state; member
|
/linux-6.1.9/drivers/isdn/hardware/mISDN/ |
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() 1728 hw->led_state = 0; in setup_hfcsusb()
|
D | hfcsusb.h | 299 __u8 led_state; member
|
/linux-6.1.9/drivers/ata/ |
D | ahci_seattle.c | 117 emp->led_state = state; in seattle_transmit_led_message()
|
D | ahci.h | 303 unsigned long led_state; member
|
D | libahci.c | 924 emp->led_state, in ahci_start_port() 1039 unsigned long led_message = emp->led_state; in ahci_sw_activity_blink() 1162 emp->led_state = state; in ahci_transmit_led_message() 1179 rc += sprintf(buf, "%lx\n", emp->led_state); in ahci_led_show() 1220 u32 port_led_state = emp->led_state; in ahci_activity_store()
|
/linux-6.1.9/drivers/media/usb/dvb-usb/ |
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-6.1.9/drivers/media/radio/si470x/ |
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-6.1.9/drivers/leds/ |
D | leds-bd2802.c | 61 struct led_state { struct 73 struct led_state led[2]; argument
|
/linux-6.1.9/drivers/net/ethernet/qlogic/qede/ |
D | qede_ethtool.c | 1156 u8 led_state = 0; in qede_set_phys_id() local 1163 led_state = QED_LED_MODE_ON; in qede_set_phys_id() 1167 led_state = QED_LED_MODE_OFF; in qede_set_phys_id() 1171 led_state = QED_LED_MODE_RESTORE; in qede_set_phys_id() 1175 edev->ops->common->set_led(edev->cdev, led_state); in qede_set_phys_id()
|