Home
last modified time | relevance | path

Searched refs:RTWN_CHK (Results 1 – 8 of 8) sorted by relevance

/freebsd-12-stable/sys/dev/rtwn/rtl8821a/
Dr21a_init.c67 #define RTWN_CHK(res) do { \ in r21a_power_on() macro
74 RTWN_CHK(rtwn_setbits_1_shift(sc, R92C_APS_FSMCO, in r21a_power_on()
78 RTWN_CHK(rtwn_setbits_1(sc, R92C_GPIO_INTM + 2, 0x01, 0)); in r21a_power_on()
81 RTWN_CHK(rtwn_setbits_1_shift(sc, R92C_APS_FSMCO, in r21a_power_on()
85 RTWN_CHK(rtwn_setbits_1(sc, R92C_LDOA15_CTRL, 0, R92C_LDOA15_CTRL_EN)); in r21a_power_on()
88 RTWN_CHK(rtwn_setbits_1(sc, 0x067, 0x10, 0)); in r21a_power_on()
94 RTWN_CHK(rtwn_setbits_1(sc, R92C_SYS_ISO_CTRL, in r21a_power_on()
98 RTWN_CHK(rtwn_setbits_1_shift(sc, R92C_APS_FSMCO, in r21a_power_on()
116 RTWN_CHK(rtwn_setbits_1_shift(sc, R92C_APS_FSMCO, 0, in r21a_power_on()
120 RTWN_CHK(rtwn_setbits_1_shift(sc, R92C_APS_FSMCO, in r21a_power_on()
[all …]
/freebsd-12-stable/sys/dev/rtwn/rtl8192c/usb/
Dr92cu_init.c85 #define RTWN_CHK(res) do { \ in r92cu_power_on() macro
105 RTWN_CHK(rtwn_write_1(sc, R92C_RSV_CTRL, 0)); in r92cu_power_on()
108 RTWN_CHK(rtwn_write_1(sc, R92C_SPS0_CTRL, 0x2b)); in r92cu_power_on()
115 RTWN_CHK(rtwn_write_1(sc, R92C_LDOV12D_CTRL, in r92cu_power_on()
120 RTWN_CHK(rtwn_setbits_1(sc, R92C_SYS_ISO_CTRL, in r92cu_power_on()
125 RTWN_CHK(rtwn_setbits_1_shift(sc, R92C_APS_FSMCO, 0, in r92cu_power_on()
141 RTWN_CHK(rtwn_write_2(sc, R92C_APS_FSMCO, in r92cu_power_on()
147 RTWN_CHK(rtwn_setbits_1_shift(sc, R92C_SYS_ISO_CTRL, in r92cu_power_on()
151 RTWN_CHK(rtwn_setbits_1(sc, R92C_APSD_CTRL, in r92cu_power_on()
166 RTWN_CHK(rtwn_setbits_2(sc, R92C_CR, 0, in r92cu_power_on()
[all …]
/freebsd-12-stable/sys/dev/rtwn/rtl8188e/usb/
Dr88eu_init.c77 #define RTWN_CHK(res) do { \ in r88eu_power_on() macro
96 RTWN_CHK(rtwn_setbits_1(sc, R92C_SYS_FUNC_EN, in r88eu_power_on()
99 RTWN_CHK(rtwn_setbits_1(sc, R92C_AFE_XTAL_CTRL + 2, 0, 0x80)); in r88eu_power_on()
102 RTWN_CHK(rtwn_setbits_1_shift(sc, R92C_APS_FSMCO, in r88eu_power_on()
106 RTWN_CHK(rtwn_setbits_1_shift(sc, R92C_APS_FSMCO, in r88eu_power_on()
109 RTWN_CHK(rtwn_setbits_1_shift(sc, R92C_APS_FSMCO, in r88eu_power_on()
121 RTWN_CHK(rtwn_setbits_1(sc, R92C_LPLDO_CTRL, in r88eu_power_on()
125 RTWN_CHK(rtwn_write_2(sc, R92C_CR, 0)); in r88eu_power_on()
126 RTWN_CHK(rtwn_setbits_2(sc, R92C_CR, 0, in r88eu_power_on()
134 #undef RTWN_CHK in r88eu_power_on()
/freebsd-12-stable/sys/dev/rtwn/rtl8812a/
Dr12a_init.c249 #define RTWN_CHK(res) do { \ in r12a_power_on() macro
258 RTWN_CHK(rtwn_setbits_1(sc, R92C_SPS0_CTRL + 1, 0, 0x01)); in r12a_power_on()
261 RTWN_CHK(rtwn_setbits_2(sc, 0x014, 0x0180, 0)); in r12a_power_on()
264 RTWN_CHK(rtwn_setbits_1(sc, R92C_LPLDO_CTRL, R92C_LPLDO_CTRL_SLEEP, in r12a_power_on()
268 RTWN_CHK(rtwn_write_1(sc, R92C_GPIO_IOSEL, 0)); in r12a_power_on()
271 RTWN_CHK(rtwn_write_1(sc, R92C_MAC_PINMUX_CFG, 0)); in r12a_power_on()
274 RTWN_CHK(rtwn_setbits_1_shift(sc, R92C_APS_FSMCO, in r12a_power_on()
278 RTWN_CHK(rtwn_setbits_1_shift(sc, R92C_SYS_FUNC_EN, in r12a_power_on()
282 RTWN_CHK(rtwn_setbits_1_shift(sc, R92C_APS_FSMCO, in r12a_power_on()
298 RTWN_CHK(rtwn_setbits_1_shift(sc, R92C_APS_FSMCO, in r12a_power_on()
[all …]
/freebsd-12-stable/sys/dev/rtwn/rtl8821a/usb/
Dr21au_dfs.c92 #define RTWN_CHK(res) do { \ in r21au_dfs_radar_enable() macro
99 RTWN_CHK(rtwn_bb_setbits(sc, 0x814, 0x3fffffff, 0x04cc4d10)); in r21au_dfs_radar_enable()
100 RTWN_CHK(rtwn_bb_setbits(sc, R12A_BW_INDICATION, 0xff, 0x06)); in r21au_dfs_radar_enable()
101 RTWN_CHK(rtwn_bb_write(sc, 0x918, 0x1c16ecdf)); in r21au_dfs_radar_enable()
102 RTWN_CHK(rtwn_bb_write(sc, 0x924, 0x0152a400)); in r21au_dfs_radar_enable()
103 RTWN_CHK(rtwn_bb_write(sc, 0x91c, 0x0fa21a20)); in r21au_dfs_radar_enable()
104 RTWN_CHK(rtwn_bb_write(sc, 0x920, 0xe0f57204)); in r21au_dfs_radar_enable()
108 #undef RTWN_CHK in r21au_dfs_radar_enable()
/freebsd-12-stable/sys/dev/rtwn/rtl8192e/
Dr92e_init.c220 #define RTWN_CHK(res) do { \ in r92e_power_on() macro
227 RTWN_CHK(rtwn_write_1(sc, R92C_LDO_SWR_CTRL, 0xc3)); in r92e_power_on()
229 RTWN_CHK(rtwn_setbits_4(sc, R92E_LDOV12_CTRL, 0x00100000, in r92e_power_on()
231 RTWN_CHK(rtwn_write_1(sc, R92C_LDO_SWR_CTRL, 0x83)); in r92e_power_on()
237 RTWN_CHK(rtwn_setbits_1_shift(sc, R92C_APS_FSMCO, in r92e_power_on()
241 RTWN_CHK(rtwn_setbits_1_shift(sc, R92C_APS_FSMCO, in r92e_power_on()
258 RTWN_CHK(rtwn_setbits_1_shift(sc, R92C_APS_FSMCO, 0, in r92e_power_on()
261 RTWN_CHK(rtwn_setbits_1_shift(sc, R92C_APS_FSMCO, 0, in r92e_power_on()
273 RTWN_CHK(rtwn_write_2(sc, R92C_CR, 0)); in r92e_power_on()
274 RTWN_CHK(rtwn_setbits_2(sc, R92C_CR, 0, in r92e_power_on()
/freebsd-12-stable/sys/dev/rtwn/
Dif_rtwn_efuse.c175 #define RTWN_CHK(res) do { \ in rtwn_efuse_read() macro
186 RTWN_CHK(rtwn_efuse_read_next(sc, &reg)); in rtwn_efuse_read()
192 RTWN_CHK(rtwn_efuse_read_next(sc, &reg)); in rtwn_efuse_read()
202 RTWN_CHK(rtwn_efuse_read_data(sc, rom, off, msk)); in rtwn_efuse_read()
203 RTWN_CHK(rtwn_efuse_read_next(sc, &reg)); in rtwn_efuse_read()
222 #undef RTWN_CHK in rtwn_efuse_read()
Dif_rtwn.c1382 #define RTWN_CHK(res) do { \ in rtwn_dma_init() macro
1401 RTWN_CHK(rtwn_write_1(sc, R92C_RQPN_NPQ, sc->nnqpages)); in rtwn_dma_init()
1402 RTWN_CHK(rtwn_write_4(sc, R92C_RQPN, in rtwn_dma_init()
1416 RTWN_CHK(rtwn_write_1(sc, R92C_TXPKTBUF_BCNQ_BDNY, tx_boundary)); in rtwn_dma_init()
1417 RTWN_CHK(rtwn_write_1(sc, R92C_TXPKTBUF_MGQ_BDNY, tx_boundary)); in rtwn_dma_init()
1418 RTWN_CHK(rtwn_write_1(sc, R92C_TXPKTBUF_WMAC_LBK_BF_HD, tx_boundary)); in rtwn_dma_init()
1419 RTWN_CHK(rtwn_write_1(sc, R92C_TRXFF_BNDY, tx_boundary)); in rtwn_dma_init()
1420 RTWN_CHK(rtwn_write_1(sc, R92C_TDECTRL + 1, tx_boundary)); in rtwn_dma_init()
1429 RTWN_CHK(rtwn_setbits_2(sc, R92C_TRXDMA_CTRL, in rtwn_dma_init()
1436 RTWN_CHK(rtwn_write_2(sc, R92C_TRXFF_BNDY + 2, in rtwn_dma_init()