Home
last modified time | relevance | path

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

/freebsd-14.2/sys/dev/rtwn/rtl8821a/
H A Dr21a_init.c65 #define RTWN_CHK(res) do { \ in r21a_power_on() macro
86 RTWN_CHK(rtwn_setbits_1(sc, 0x067, 0x10, 0)); in r21a_power_on()
92 RTWN_CHK(rtwn_setbits_1(sc, R92C_SYS_ISO_CTRL, in r21a_power_on()
140 RTWN_CHK(rtwn_setbits_1(sc, 0x067, 0, 0x30)); in r21a_power_on()
142 RTWN_CHK(rtwn_setbits_1(sc, 0x025, 0x40, 0)); in r21a_power_on()
148 RTWN_CHK(rtwn_setbits_1(sc, 0x063, 0, 0x02)); in r21a_power_on()
165 RTWN_CHK(rtwn_write_2(sc, R92C_CR, 0x0000)); in r21a_power_on()
166 RTWN_CHK(rtwn_setbits_2(sc, R92C_CR, 0, in r21a_power_on()
177 #undef RTWN_CHK in r21a_power_on()
334 #define RTWN_CHK(res) do { \ in r21a_init_bcnq1_boundary() macro
[all …]
/freebsd-14.2/sys/dev/rtwn/rtl8192c/usb/
H A Dr92cu_init.c83 #define RTWN_CHK(res) do { \ in r92cu_power_on() macro
103 RTWN_CHK(rtwn_write_1(sc, R92C_RSV_CTRL, 0)); in r92cu_power_on()
106 RTWN_CHK(rtwn_write_1(sc, R92C_SPS0_CTRL, 0x2b)); in r92cu_power_on()
113 RTWN_CHK(rtwn_write_1(sc, R92C_LDOV12D_CTRL, in r92cu_power_on()
118 RTWN_CHK(rtwn_setbits_1(sc, R92C_SYS_ISO_CTRL, in r92cu_power_on()
123 RTWN_CHK(rtwn_setbits_1_shift(sc, R92C_APS_FSMCO, 0, in r92cu_power_on()
139 RTWN_CHK(rtwn_write_2(sc, R92C_APS_FSMCO, in r92cu_power_on()
149 RTWN_CHK(rtwn_setbits_1(sc, R92C_APSD_CTRL, in r92cu_power_on()
164 RTWN_CHK(rtwn_setbits_2(sc, R92C_CR, 0, in r92cu_power_on()
171 RTWN_CHK(rtwn_write_1(sc, 0xfe10, 0x19)); in r92cu_power_on()
[all …]
/freebsd-14.2/sys/dev/rtwn/rtl8188e/usb/
H A Dr88eu_init.c75 #define RTWN_CHK(res) do { \ in r88eu_power_on() macro
94 RTWN_CHK(rtwn_setbits_1(sc, R92C_SYS_FUNC_EN, in r88eu_power_on()
97 RTWN_CHK(rtwn_setbits_1(sc, R92C_AFE_XTAL_CTRL + 2, 0, 0x80)); in r88eu_power_on()
100 RTWN_CHK(rtwn_setbits_1_shift(sc, R92C_APS_FSMCO, in r88eu_power_on()
104 RTWN_CHK(rtwn_setbits_1_shift(sc, R92C_APS_FSMCO, in r88eu_power_on()
107 RTWN_CHK(rtwn_setbits_1_shift(sc, R92C_APS_FSMCO, in r88eu_power_on()
119 RTWN_CHK(rtwn_setbits_1(sc, R92C_LPLDO_CTRL, in r88eu_power_on()
123 RTWN_CHK(rtwn_write_2(sc, R92C_CR, 0)); in r88eu_power_on()
124 RTWN_CHK(rtwn_setbits_2(sc, R92C_CR, 0, in r88eu_power_on()
132 #undef RTWN_CHK in r88eu_power_on()
/freebsd-14.2/sys/dev/rtwn/rtl8812a/
H A Dr12a_init.c247 #define RTWN_CHK(res) do { \ in r12a_power_on() macro
259 RTWN_CHK(rtwn_setbits_2(sc, 0x014, 0x0180, 0)); in r12a_power_on()
266 RTWN_CHK(rtwn_write_1(sc, R92C_GPIO_IOSEL, 0)); in r12a_power_on()
269 RTWN_CHK(rtwn_write_1(sc, R92C_MAC_PINMUX_CFG, 0)); in r12a_power_on()
272 RTWN_CHK(rtwn_setbits_1_shift(sc, R92C_APS_FSMCO, in r12a_power_on()
276 RTWN_CHK(rtwn_setbits_1_shift(sc, R92C_SYS_FUNC_EN, in r12a_power_on()
280 RTWN_CHK(rtwn_setbits_1_shift(sc, R92C_APS_FSMCO, in r12a_power_on()
296 RTWN_CHK(rtwn_setbits_1_shift(sc, R92C_APS_FSMCO, in r12a_power_on()
299 RTWN_CHK(rtwn_setbits_1_shift(sc, R92C_APS_FSMCO, 0, in r12a_power_on()
311 RTWN_CHK(rtwn_write_2(sc, R92C_CR, 0x0000)); in r12a_power_on()
[all …]
/freebsd-14.2/sys/dev/rtwn/rtl8821a/usb/
H A Dr21au_dfs.c90 #define RTWN_CHK(res) do { \ in r21au_dfs_radar_enable() macro
97 RTWN_CHK(rtwn_bb_setbits(sc, 0x814, 0x3fffffff, 0x04cc4d10)); in r21au_dfs_radar_enable()
98 RTWN_CHK(rtwn_bb_setbits(sc, R12A_BW_INDICATION, 0xff, 0x06)); in r21au_dfs_radar_enable()
99 RTWN_CHK(rtwn_bb_write(sc, 0x918, 0x1c16ecdf)); in r21au_dfs_radar_enable()
100 RTWN_CHK(rtwn_bb_write(sc, 0x924, 0x0152a400)); in r21au_dfs_radar_enable()
101 RTWN_CHK(rtwn_bb_write(sc, 0x91c, 0x0fa21a20)); in r21au_dfs_radar_enable()
102 RTWN_CHK(rtwn_bb_write(sc, 0x920, 0xe0f57204)); in r21au_dfs_radar_enable()
106 #undef RTWN_CHK in r21au_dfs_radar_enable()
/freebsd-14.2/sys/dev/rtwn/rtl8192e/
H A Dr92e_init.c223 #define RTWN_CHK(res) do { \ in r92e_power_on() macro
230 RTWN_CHK(rtwn_write_1(sc, R92C_LDO_SWR_CTRL, 0xc3)); in r92e_power_on()
232 RTWN_CHK(rtwn_setbits_4(sc, R92E_LDOV12_CTRL, 0x00100000, in r92e_power_on()
234 RTWN_CHK(rtwn_write_1(sc, R92C_LDO_SWR_CTRL, 0x83)); in r92e_power_on()
240 RTWN_CHK(rtwn_setbits_1_shift(sc, R92C_APS_FSMCO, in r92e_power_on()
244 RTWN_CHK(rtwn_setbits_1_shift(sc, R92C_APS_FSMCO, in r92e_power_on()
261 RTWN_CHK(rtwn_setbits_1_shift(sc, R92C_APS_FSMCO, 0, in r92e_power_on()
264 RTWN_CHK(rtwn_setbits_1_shift(sc, R92C_APS_FSMCO, 0, in r92e_power_on()
276 RTWN_CHK(rtwn_write_2(sc, R92C_CR, 0)); in r92e_power_on()
277 RTWN_CHK(rtwn_setbits_2(sc, R92C_CR, 0, in r92e_power_on()
/freebsd-14.2/sys/dev/rtwn/
H A Dif_rtwn_efuse.c173 #define RTWN_CHK(res) do { \ in rtwn_efuse_read() macro
184 RTWN_CHK(rtwn_efuse_read_next(sc, &reg)); in rtwn_efuse_read()
190 RTWN_CHK(rtwn_efuse_read_next(sc, &reg)); in rtwn_efuse_read()
200 RTWN_CHK(rtwn_efuse_read_data(sc, rom, off, msk)); in rtwn_efuse_read()
201 RTWN_CHK(rtwn_efuse_read_next(sc, &reg)); in rtwn_efuse_read()
220 #undef RTWN_CHK in rtwn_efuse_read()
H A 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()