Lines Matching refs:ledcfg
20 u8 ledcfg; in rtl8821ae_sw_led_on() local
30 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG2); in rtl8821ae_sw_led_on()
31 ledcfg &= ~BIT(6); in rtl8821ae_sw_led_on()
33 REG_LEDCFG2, (ledcfg & 0xf0) | BIT(5)); in rtl8821ae_sw_led_on()
36 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG1); in rtl8821ae_sw_led_on()
37 rtl_write_byte(rtlpriv, REG_LEDCFG1, ledcfg & 0x10); in rtl8821ae_sw_led_on()
50 u8 ledcfg = 0; in rtl8812ae_sw_led_on() local
71 ledcfg = rtl_read_byte(rtlpriv, ledreg); in rtl8812ae_sw_led_on()
72 ledcfg |= BIT(5); /*Set 0x4c[21]*/ in rtl8812ae_sw_led_on()
73 ledcfg &= ~(BIT(7) | BIT(6) | BIT(3) | BIT(2) | BIT(1) | BIT(0)); in rtl8812ae_sw_led_on()
75 rtl_write_byte(rtlpriv, ledreg, ledcfg); /*SW control led0 on.*/ in rtl8812ae_sw_led_on()
82 u8 ledcfg; in rtl8821ae_sw_led_off() local
87 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG2); in rtl8821ae_sw_led_off()
93 ledcfg &= 0xf0; in rtl8821ae_sw_led_off()
95 ledcfg &= 0x90; /* Set to software control. */ in rtl8821ae_sw_led_off()
96 rtl_write_byte(rtlpriv, REG_LEDCFG2, (ledcfg|BIT(3))); in rtl8821ae_sw_led_off()
97 ledcfg = rtl_read_byte(rtlpriv, REG_MAC_PINMUX_CFG); in rtl8821ae_sw_led_off()
98 ledcfg &= 0xFE; in rtl8821ae_sw_led_off()
99 rtl_write_byte(rtlpriv, REG_MAC_PINMUX_CFG, ledcfg); in rtl8821ae_sw_led_off()
101 ledcfg &= ~BIT(6); in rtl8821ae_sw_led_off()
103 (ledcfg | BIT(3) | BIT(5))); in rtl8821ae_sw_led_off()
107 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG1); in rtl8821ae_sw_led_off()
108 ledcfg &= 0x10; /* Set to software control. */ in rtl8821ae_sw_led_off()
109 rtl_write_byte(rtlpriv, REG_LEDCFG1, ledcfg|BIT(3)); in rtl8821ae_sw_led_off()
143 u8 ledcfg = rtl_read_byte(rtlpriv, ledreg); in rtl8812ae_sw_led_off() local
146 rtl_write_byte(rtlpriv, ledreg, (ledcfg | BIT(3))); in rtl8812ae_sw_led_off()
149 ledcfg = rtl_read_byte(rtlpriv, REG_MAC_PINMUX_CFG); in rtl8812ae_sw_led_off()
150 ledcfg &= 0xFE;/*Set GPIO[8] to input mode*/ in rtl8812ae_sw_led_off()
151 rtl_write_byte(rtlpriv, REG_MAC_PINMUX_CFG, ledcfg); in rtl8812ae_sw_led_off()