Home
last modified time | relevance | path

Searched refs:txagc (Results 1 – 6 of 6) sorted by relevance

/freebsd/sys/contrib/dev/rtw89/
H A Drtw8852bt_rfk.c2164 u8 _dpk_txagc_check_8852bt(struct rtw89_dev *rtwdev, enum rtw89_rf_path path, u8 txagc) in _dpk_txagc_check_8852bt() argument
2168 if (txagc >= dpk->max_dpk_txagc[path]) in _dpk_txagc_check_8852bt()
2169 txagc = dpk->max_dpk_txagc[path]; in _dpk_txagc_check_8852bt()
2171 rtw89_debug(rtwdev, RTW89_DBG_RFK, "[DPK] Set TxAGC = 0x%x\n", txagc); in _dpk_txagc_check_8852bt()
2173 return txagc; in _dpk_txagc_check_8852bt()
2177 enum rtw89_rf_path path, u8 txagc) in _dpk_kip_set_txagc() argument
2181 val = _dpk_txagc_check_8852bt(rtwdev, path, txagc); in _dpk_kip_set_txagc()
2187 rtw89_debug(rtwdev, RTW89_DBG_RFK, "[DPK] set TXAGC = 0x%x\n", txagc); in _dpk_kip_set_txagc()
2200 enum rtw89_rf_path path, u8 txagc, s8 gain_offset) in _dpk_set_offset() argument
2202 txagc = rtw89_read_rf(rtwdev, path, RR_TXAGC, RFREG_MASK); in _dpk_set_offset()
[all …]
H A Drtw8852b_rfk.c2118 enum rtw89_rf_path path, u8 txagc) in _dpk_kip_set_txagc() argument
2120 rtw89_write_rf(rtwdev, path, RR_TXAGC, RFREG_MASK, txagc); in _dpk_kip_set_txagc()
2125 rtw89_debug(rtwdev, RTW89_DBG_RFK, "[DPK] set TXAGC = 0x%x\n", txagc); in _dpk_kip_set_txagc()
2149 u8 txagc; in _dpk_set_offset() local
2151 txagc = rtw89_read_rf(rtwdev, path, RR_TXAGC, RFREG_MASK); in _dpk_set_offset()
2153 if (txagc - gain_offset < DPK_TXAGC_LOWER) in _dpk_set_offset()
2154 txagc = DPK_TXAGC_LOWER; in _dpk_set_offset()
2155 else if (txagc - gain_offset > DPK_TXAGC_UPPER) in _dpk_set_offset()
2156 txagc = DPK_TXAGC_UPPER; in _dpk_set_offset()
2158 txagc = txagc - gain_offset; in _dpk_set_offset()
[all …]
H A Drtw8852a_rfk.c2279 u8 txagc; in _dpk_set_offset() local
2281 txagc = (u8)rtw89_read_rf(rtwdev, path, RR_MODOPT, RFREG_MASK); in _dpk_set_offset()
2283 if (txagc - gain_offset < DPK_TXAGC_LOWER) in _dpk_set_offset()
2284 txagc = DPK_TXAGC_LOWER; in _dpk_set_offset()
2285 else if (txagc - gain_offset > DPK_TXAGC_UPPER) in _dpk_set_offset()
2286 txagc = DPK_TXAGC_UPPER; in _dpk_set_offset()
2288 txagc = txagc - gain_offset; in _dpk_set_offset()
2290 rtw89_write_rf(rtwdev, path, RR_MODOPT, RFREG_MASK, txagc); in _dpk_set_offset()
2293 gain_offset, txagc); in _dpk_set_offset()
2294 return txagc; in _dpk_set_offset()
[all …]
H A Dfw.h5027 u8 txagc[2]; member
H A Dphy.c3574 dpk->txagc, dpk->ther, dpk->gs, dpk->dc_i, dpk->dc_q); in rtw89_phy_c2h_rfk_rpt_log()
/freebsd/sys/contrib/dev/rtw88/
H A Drtw8723x.c400 const struct rtw_hw_reg *txagc; in rtw8723x_set_tx_power_index_by_rate() local
412 txagc = &rtw8723x_txagc[rate]; in rtw8723x_set_tx_power_index_by_rate()
413 if (!txagc->addr) { in rtw8723x_set_tx_power_index_by_rate()
418 rtw_write32_mask(rtwdev, txagc->addr, txagc->mask, pwr_index); in rtw8723x_set_tx_power_index_by_rate()