Lines Matching refs:ledcfg
42 u8 ledcfg; in rtl8821ae_sw_led_on() local
52 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG2); in rtl8821ae_sw_led_on()
53 ledcfg &= ~BIT(6); in rtl8821ae_sw_led_on()
55 REG_LEDCFG2, (ledcfg & 0xf0) | BIT(5)); in rtl8821ae_sw_led_on()
58 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG1); in rtl8821ae_sw_led_on()
59 rtl_write_byte(rtlpriv, REG_LEDCFG1, ledcfg & 0x10); in rtl8821ae_sw_led_on()
72 u8 ledcfg = 0; in rtl8812ae_sw_led_on() local
93 ledcfg = rtl_read_byte(rtlpriv, ledreg); in rtl8812ae_sw_led_on()
94 ledcfg |= BIT(5); /*Set 0x4c[21]*/ in rtl8812ae_sw_led_on()
95 ledcfg &= ~(BIT(7) | BIT(6) | BIT(3) | BIT(2) | BIT(1) | BIT(0)); in rtl8812ae_sw_led_on()
97 rtl_write_byte(rtlpriv, ledreg, ledcfg); /*SW control led0 on.*/ in rtl8812ae_sw_led_on()
104 u8 ledcfg; in rtl8821ae_sw_led_off() local
109 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG2); in rtl8821ae_sw_led_off()
115 ledcfg &= 0xf0; in rtl8821ae_sw_led_off()
117 ledcfg &= 0x90; /* Set to software control. */ in rtl8821ae_sw_led_off()
118 rtl_write_byte(rtlpriv, REG_LEDCFG2, (ledcfg|BIT(3))); in rtl8821ae_sw_led_off()
119 ledcfg = rtl_read_byte(rtlpriv, REG_MAC_PINMUX_CFG); in rtl8821ae_sw_led_off()
120 ledcfg &= 0xFE; in rtl8821ae_sw_led_off()
121 rtl_write_byte(rtlpriv, REG_MAC_PINMUX_CFG, ledcfg); in rtl8821ae_sw_led_off()
123 ledcfg &= ~BIT(6); in rtl8821ae_sw_led_off()
125 (ledcfg | BIT(3) | BIT(5))); in rtl8821ae_sw_led_off()
129 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG1); in rtl8821ae_sw_led_off()
130 ledcfg &= 0x10; /* Set to software control. */ in rtl8821ae_sw_led_off()
131 rtl_write_byte(rtlpriv, REG_LEDCFG1, ledcfg|BIT(3)); in rtl8821ae_sw_led_off()
165 u8 ledcfg = rtl_read_byte(rtlpriv, ledreg); in rtl8812ae_sw_led_off() local
168 rtl_write_byte(rtlpriv, ledreg, (ledcfg | BIT(3))); in rtl8812ae_sw_led_off()
171 ledcfg = rtl_read_byte(rtlpriv, REG_MAC_PINMUX_CFG); in rtl8812ae_sw_led_off()
172 ledcfg &= 0xFE;/*Set GPIO[8] to input mode*/ in rtl8812ae_sw_led_off()
173 rtl_write_byte(rtlpriv, REG_MAC_PINMUX_CFG, ledcfg); in rtl8812ae_sw_led_off()