Lines Matching refs:ledcfg
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()
65 rtl_write_byte(rtlpriv, ledreg, ledcfg); /*SW control led0 on.*/ in rtl8812ae_sw_led_on()
71 u8 ledcfg; in rtl8821ae_sw_led_off() local
76 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG2); in rtl8821ae_sw_led_off()
82 ledcfg &= 0xf0; in rtl8821ae_sw_led_off()
84 ledcfg &= 0x90; /* Set to software control. */ in rtl8821ae_sw_led_off()
85 rtl_write_byte(rtlpriv, REG_LEDCFG2, (ledcfg|BIT(3))); in rtl8821ae_sw_led_off()
86 ledcfg = rtl_read_byte(rtlpriv, REG_MAC_PINMUX_CFG); in rtl8821ae_sw_led_off()
87 ledcfg &= 0xFE; in rtl8821ae_sw_led_off()
88 rtl_write_byte(rtlpriv, REG_MAC_PINMUX_CFG, ledcfg); in rtl8821ae_sw_led_off()
90 ledcfg &= ~BIT(6); in rtl8821ae_sw_led_off()
92 (ledcfg | BIT(3) | BIT(5))); in rtl8821ae_sw_led_off()
96 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG1); in rtl8821ae_sw_led_off()
97 ledcfg &= 0x10; /* Set to software control. */ in rtl8821ae_sw_led_off()
98 rtl_write_byte(rtlpriv, REG_LEDCFG1, ledcfg|BIT(3)); in rtl8821ae_sw_led_off()
131 u8 ledcfg = rtl_read_byte(rtlpriv, ledreg); in rtl8812ae_sw_led_off() local
134 rtl_write_byte(rtlpriv, ledreg, (ledcfg | BIT(3))); in rtl8812ae_sw_led_off()
137 ledcfg = rtl_read_byte(rtlpriv, REG_MAC_PINMUX_CFG); in rtl8812ae_sw_led_off()
138 ledcfg &= 0xFE;/*Set GPIO[8] to input mode*/ in rtl8812ae_sw_led_off()
139 rtl_write_byte(rtlpriv, REG_MAC_PINMUX_CFG, ledcfg); in rtl8812ae_sw_led_off()