Home
last modified time | relevance | path

Searched refs:LedCfg (Results 1 – 2 of 2) sorted by relevance

/drivers/staging/rtl8188eu/hal/
Drtl8188eu_led.c29 u8 LedCfg; in SwLedOn() local
33 LedCfg = usb_read8(padapter, REG_LEDCFG2); in SwLedOn()
34 usb_write8(padapter, REG_LEDCFG2, (LedCfg&0xf0) | BIT(5) | BIT(6)); /* SW control led0 on. */ in SwLedOn()
42 u8 LedCfg; in SwLedOff() local
47 LedCfg = usb_read8(padapter, REG_LEDCFG2);/* 0x4E */ in SwLedOff()
51 LedCfg &= 0x90; /* Set to software control. */ in SwLedOff()
52 usb_write8(padapter, REG_LEDCFG2, (LedCfg | BIT(3))); in SwLedOff()
53 LedCfg = usb_read8(padapter, REG_MAC_PINMUX_CFG); in SwLedOff()
54 LedCfg &= 0xFE; in SwLedOff()
55 usb_write8(padapter, REG_MAC_PINMUX_CFG, LedCfg); in SwLedOff()
[all …]
/drivers/staging/rtl8712/
Drtl8712_led.c126 u8 LedCfg; in SwLedOn() local
130 LedCfg = r8712_read8(padapter, LEDCFG); in SwLedOn()
136 r8712_write8(padapter, LEDCFG, LedCfg & 0xf0); in SwLedOn()
140 r8712_write8(padapter, LEDCFG, LedCfg & 0x0f); in SwLedOn()
154 u8 LedCfg; in SwLedOff() local
158 LedCfg = r8712_read8(padapter, LEDCFG); in SwLedOff()
163 LedCfg &= 0xf0; /* Set to software control.*/ in SwLedOff()
164 r8712_write8(padapter, LEDCFG, (LedCfg | BIT(3))); in SwLedOff()
167 LedCfg &= 0x0f; /* Set to software control.*/ in SwLedOff()
168 r8712_write8(padapter, LEDCFG, (LedCfg | BIT(7))); in SwLedOff()