Searched refs:LedCfg (Results 1 – 2 of 2) sorted by relevance
/Linux-v6.1/drivers/staging/r8188eu/core/ |
D | rtw_led.c | 35 u8 LedCfg; in SwLedOn() local 41 res = rtw_read8(padapter, REG_LEDCFG2, &LedCfg); in SwLedOn() 45 rtw_write8(padapter, REG_LEDCFG2, (LedCfg & 0xf0) | BIT(5) | BIT(6)); /* SW control led0 on. */ in SwLedOn() 51 u8 LedCfg; in SwLedOff() local 57 res = rtw_read8(padapter, REG_LEDCFG2, &LedCfg);/* 0x4E */ in SwLedOff() 61 LedCfg &= 0x90; /* Set to software control. */ in SwLedOff() 62 rtw_write8(padapter, REG_LEDCFG2, (LedCfg | BIT(3))); in SwLedOff() 63 res = rtw_read8(padapter, REG_MAC_PINMUX_CFG, &LedCfg); in SwLedOff() 67 LedCfg &= 0xFE; in SwLedOff() 68 rtw_write8(padapter, REG_MAC_PINMUX_CFG, LedCfg); in SwLedOff()
|
/Linux-v6.1/drivers/staging/rtl8712/ |
D | rtl8712_led.c | 110 u8 LedCfg; in SwLedOn() local 114 LedCfg = r8712_read8(padapter, LEDCFG); in SwLedOn() 120 r8712_write8(padapter, LEDCFG, LedCfg & 0xf0); in SwLedOn() 124 r8712_write8(padapter, LEDCFG, LedCfg & 0x0f); in SwLedOn() 138 u8 LedCfg; in SwLedOff() local 142 LedCfg = r8712_read8(padapter, LEDCFG); in SwLedOff() 147 LedCfg &= 0xf0; /* Set to software control.*/ in SwLedOff() 148 r8712_write8(padapter, LEDCFG, (LedCfg | BIT(3))); in SwLedOff() 151 LedCfg &= 0x0f; /* Set to software control.*/ in SwLedOff() 152 r8712_write8(padapter, LEDCFG, (LedCfg | BIT(7))); in SwLedOff()
|