/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
H A D | led.c | 11 u8 ledcfg; in rtl8821ae_sw_led_on() local 21 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG2); in rtl8821ae_sw_led_on() 22 ledcfg &= ~BIT(6); in rtl8821ae_sw_led_on() 24 REG_LEDCFG2, (ledcfg & 0xf0) | BIT(5)); in rtl8821ae_sw_led_on() 27 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG1); in rtl8821ae_sw_led_on() 28 rtl_write_byte(rtlpriv, REG_LEDCFG1, ledcfg & 0x10); in rtl8821ae_sw_led_on() 40 u8 ledcfg = 0; in rtl8812ae_sw_led_on() local 61 ledcfg = rtl_read_byte(rtlpriv, ledreg); in rtl8812ae_sw_led_on() 62 ledcfg |= BIT(5); /*Set 0x4c[21]*/ in rtl8812ae_sw_led_on() 63 ledcfg &= ~(BIT(7) | BIT(6) | BIT(3) | BIT(2) | BIT(1) | BIT(0)); in rtl8812ae_sw_led_on() [all …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
H A D | led.c | 11 u8 ledcfg; in rtl8723e_sw_led_on() local 21 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG2); in rtl8723e_sw_led_on() 22 ledcfg &= ~BIT(6); in rtl8723e_sw_led_on() 24 REG_LEDCFG2, (ledcfg & 0xf0) | BIT(5)); in rtl8723e_sw_led_on() 27 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG1); in rtl8723e_sw_led_on() 28 rtl_write_byte(rtlpriv, REG_LEDCFG1, ledcfg & 0x10); in rtl8723e_sw_led_on() 39 u8 ledcfg; in rtl8723e_sw_led_off() local 44 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG2); in rtl8723e_sw_led_off() 50 ledcfg &= 0xf0; in rtl8723e_sw_led_off() 52 ledcfg &= 0x90; /* Set to software control. */ in rtl8723e_sw_led_off() [all …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
H A D | led.c | 11 u8 ledcfg; in rtl8723be_sw_led_on() local 21 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG2); in rtl8723be_sw_led_on() 22 ledcfg &= ~BIT(6); in rtl8723be_sw_led_on() 23 rtl_write_byte(rtlpriv, REG_LEDCFG2, (ledcfg & 0xf0) | BIT(5)); in rtl8723be_sw_led_on() 26 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG1); in rtl8723be_sw_led_on() 27 rtl_write_byte(rtlpriv, REG_LEDCFG1, ledcfg & 0x10); in rtl8723be_sw_led_on() 38 u8 ledcfg; in rtl8723be_sw_led_off() local 43 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG2); in rtl8723be_sw_led_off() 49 ledcfg &= 0xf0; in rtl8723be_sw_led_off() 51 ledcfg &= 0x90; /* Set to software control. */ in rtl8723be_sw_led_off() [all …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
H A D | led.c | 11 u8 ledcfg; in rtl88ee_sw_led_on() local 21 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG2); in rtl88ee_sw_led_on() 23 REG_LEDCFG2, (ledcfg & 0xf0) | BIT(5) | BIT(6)); in rtl88ee_sw_led_on() 26 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG1); in rtl88ee_sw_led_on() 27 rtl_write_byte(rtlpriv, REG_LEDCFG1, ledcfg & 0x10); in rtl88ee_sw_led_on() 39 u8 ledcfg; in rtl88ee_sw_led_off() local 48 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG2); in rtl88ee_sw_led_off() 49 ledcfg &= 0xf0; in rtl88ee_sw_led_off() 52 (ledcfg | BIT(3) | BIT(5) | BIT(6))); in rtl88ee_sw_led_off() 53 ledcfg = rtl_read_byte(rtlpriv, REG_MAC_PINMUX_CFG); in rtl88ee_sw_led_off() [all …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
H A D | led.c | 11 u8 ledcfg; in rtl92de_sw_led_on() local 21 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG2); in rtl92de_sw_led_on() 27 rtl_write_byte(rtlpriv, REG_LEDCFG2, (ledcfg & 0xf0) | in rtl92de_sw_led_on() 30 rtl_write_byte(rtlpriv, REG_LEDCFG2, (ledcfg & 0xf0) | in rtl92de_sw_led_on() 34 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG1); in rtl92de_sw_led_on() 36 rtl_write_byte(rtlpriv, REG_LEDCFG2, (ledcfg & 0x0f) | BIT(5)); in rtl92de_sw_led_on() 47 u8 ledcfg; in rtl92de_sw_led_off() local 52 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG2); in rtl92de_sw_led_off() 58 ledcfg &= 0xf0; in rtl92de_sw_led_off() 61 (ledcfg | BIT(1) | BIT(5) | BIT(6))); in rtl92de_sw_led_off() [all …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
H A D | led.c | 11 u8 ledcfg; in rtl92cu_sw_led_on() local 16 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG2); in rtl92cu_sw_led_on() 22 REG_LEDCFG2, (ledcfg & 0xf0) | BIT(5) | BIT(6)); in rtl92cu_sw_led_on() 25 rtl_write_byte(rtlpriv, REG_LEDCFG2, (ledcfg & 0x0f) | BIT(5)); in rtl92cu_sw_led_on() 36 u8 ledcfg; in rtl92cu_sw_led_off() local 40 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG2); in rtl92cu_sw_led_off() 45 ledcfg &= 0xf0; in rtl92cu_sw_led_off() 48 (ledcfg | BIT(1) | BIT(5) | BIT(6))); in rtl92cu_sw_led_off() 51 (ledcfg | BIT(3) | BIT(5) | BIT(6))); in rtl92cu_sw_led_off() 54 ledcfg &= 0x0f; in rtl92cu_sw_led_off() [all …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
H A D | led.c | 11 u32 ledcfg; in rtl92ee_sw_led_on() local 21 ledcfg = rtl_read_dword(rtlpriv , REG_GPIO_PIN_CTRL); in rtl92ee_sw_led_on() 22 ledcfg &= ~BIT(13); in rtl92ee_sw_led_on() 23 ledcfg |= BIT(21); in rtl92ee_sw_led_on() 24 ledcfg &= ~BIT(29); in rtl92ee_sw_led_on() 26 rtl_write_dword(rtlpriv, REG_GPIO_PIN_CTRL, ledcfg); in rtl92ee_sw_led_on() 42 u32 ledcfg; in rtl92ee_sw_led_off() local 52 ledcfg = rtl_read_dword(rtlpriv , REG_GPIO_PIN_CTRL); in rtl92ee_sw_led_off() 53 ledcfg |= ~BIT(21); in rtl92ee_sw_led_off() 54 ledcfg &= ~BIT(29); in rtl92ee_sw_led_off() [all …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
H A D | led.c | 11 u8 ledcfg; in rtl92se_sw_led_on() local 17 ledcfg = rtl_read_byte(rtlpriv, LEDCFG); in rtl92se_sw_led_on() 23 rtl_write_byte(rtlpriv, LEDCFG, ledcfg & 0xf0); in rtl92se_sw_led_on() 26 rtl_write_byte(rtlpriv, LEDCFG, ledcfg & 0x0f); in rtl92se_sw_led_on() 37 u8 ledcfg; in rtl92se_sw_led_off() local 45 ledcfg = rtl_read_byte(rtlpriv, LEDCFG); in rtl92se_sw_led_off() 51 ledcfg &= 0xf0; in rtl92se_sw_led_off() 53 rtl_write_byte(rtlpriv, LEDCFG, (ledcfg | BIT(1))); in rtl92se_sw_led_off() 55 rtl_write_byte(rtlpriv, LEDCFG, (ledcfg | BIT(3))); in rtl92se_sw_led_off() 58 ledcfg &= 0x0f; in rtl92se_sw_led_off() [all …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
H A D | led.c | 11 u8 ledcfg; in rtl92ce_sw_led_on() local 17 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG2); in rtl92ce_sw_led_on() 24 REG_LEDCFG2, (ledcfg & 0xf0) | BIT(5) | BIT(6)); in rtl92ce_sw_led_on() 27 rtl_write_byte(rtlpriv, REG_LEDCFG2, (ledcfg & 0x0f) | BIT(5)); in rtl92ce_sw_led_on() 38 u8 ledcfg; in rtl92ce_sw_led_off() local 43 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG2); in rtl92ce_sw_led_off() 49 ledcfg &= 0xf0; in rtl92ce_sw_led_off() 52 (ledcfg | BIT(1) | BIT(5) | BIT(6))); in rtl92ce_sw_led_off() 55 (ledcfg | BIT(3) | BIT(5) | BIT(6))); in rtl92ce_sw_led_off() 58 ledcfg &= 0x0f; in rtl92ce_sw_led_off() [all …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtl8xxxu/ |
H A D | rtl8xxxu_8723a.c | 463 u8 ledcfg = rtl8xxxu_read8(priv, REG_LEDCFG2); in rtl8723au_led_brightness_set() local 466 ledcfg &= ~LEDCFG2_HW_LED_CONTROL; in rtl8723au_led_brightness_set() 467 ledcfg |= LEDCFG2_SW_LED_CONTROL | LEDCFG2_SW_LED_DISABLE; in rtl8723au_led_brightness_set() 469 ledcfg &= ~(LEDCFG2_HW_LED_CONTROL | LEDCFG2_SW_LED_DISABLE); in rtl8723au_led_brightness_set() 470 ledcfg |= LEDCFG2_SW_LED_CONTROL; in rtl8723au_led_brightness_set() 472 ledcfg &= ~LEDCFG2_SW_LED_DISABLE; in rtl8723au_led_brightness_set() 473 ledcfg |= LEDCFG2_HW_LED_CONTROL | LEDCFG2_HW_LED_ENABLE; in rtl8723au_led_brightness_set() 476 rtl8xxxu_write8(priv, REG_LEDCFG2, ledcfg); in rtl8723au_led_brightness_set()
|
H A D | rtl8xxxu_8192e.c | 1720 u8 ledcfg = rtl8xxxu_read8(priv, REG_LEDCFG1); in rtl8192eu_led_brightness_set() local 1723 ledcfg &= ~LEDCFG1_HW_LED_CONTROL; in rtl8192eu_led_brightness_set() 1724 ledcfg |= LEDCFG1_LED_DISABLE; in rtl8192eu_led_brightness_set() 1726 ledcfg &= ~(LEDCFG1_HW_LED_CONTROL | LEDCFG1_LED_DISABLE); in rtl8192eu_led_brightness_set() 1728 ledcfg &= ~LEDCFG1_LED_DISABLE; in rtl8192eu_led_brightness_set() 1729 ledcfg |= LEDCFG1_HW_LED_CONTROL; in rtl8192eu_led_brightness_set() 1732 rtl8xxxu_write8(priv, REG_LEDCFG1, ledcfg); in rtl8192eu_led_brightness_set()
|
H A D | rtl8xxxu_8188e.c | 1356 u8 ledcfg = rtl8xxxu_read8(priv, REG_LEDCFG2); in rtl8188eu_led_brightness_set() local 1359 ledcfg &= ~LEDCFG2_HW_LED_CONTROL; in rtl8188eu_led_brightness_set() 1360 ledcfg |= LEDCFG2_SW_LED_CONTROL | LEDCFG2_SW_LED_DISABLE; in rtl8188eu_led_brightness_set() 1362 ledcfg &= ~(LEDCFG2_HW_LED_CONTROL | LEDCFG2_SW_LED_DISABLE); in rtl8188eu_led_brightness_set() 1363 ledcfg |= LEDCFG2_SW_LED_CONTROL; in rtl8188eu_led_brightness_set() 1365 ledcfg &= ~LEDCFG2_SW_LED_DISABLE; in rtl8188eu_led_brightness_set() 1366 ledcfg |= LEDCFG2_HW_LED_CONTROL | LEDCFG2_HW_LED_ENABLE; in rtl8188eu_led_brightness_set() 1369 rtl8xxxu_write8(priv, REG_LEDCFG2, ledcfg); in rtl8188eu_led_brightness_set()
|
H A D | rtl8xxxu_8192f.c | 2017 u16 ledcfg; in rtl8192fu_led_brightness_set() local 2023 ledcfg = rtl8xxxu_read16(priv, REG_LEDCFG0); in rtl8192fu_led_brightness_set() 2027 ledcfg = BIT(1) | BIT(7); in rtl8192fu_led_brightness_set() 2030 ledcfg = BIT(1) | BIT(7) | BIT(11); in rtl8192fu_led_brightness_set() 2033 ledcfg = BIT(8) | BIT(9); in rtl8192fu_led_brightness_set() 2036 rtl8xxxu_write16(priv, REG_LEDCFG0, ledcfg); in rtl8192fu_led_brightness_set()
|