Home
last modified time | relevance | path

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

/freebsd-14-stable/sys/contrib/dev/rtw89/
HDrtw8852bt_rfk.c2185 u8 _dpk_txagc_check_8852bt(struct rtw89_dev *rtwdev, enum rtw89_rf_path path, u8 txagc) in _dpk_txagc_check_8852bt() argument
2189 if (txagc >= dpk->max_dpk_txagc[path]) in _dpk_txagc_check_8852bt()
2190 txagc = dpk->max_dpk_txagc[path]; in _dpk_txagc_check_8852bt()
2192 rtw89_debug(rtwdev, RTW89_DBG_RFK, "[DPK] Set TxAGC = 0x%x\n", txagc); in _dpk_txagc_check_8852bt()
2194 return txagc; in _dpk_txagc_check_8852bt()
2198 enum rtw89_rf_path path, u8 txagc) in _dpk_kip_set_txagc() argument
2202 val = _dpk_txagc_check_8852bt(rtwdev, path, txagc); in _dpk_kip_set_txagc()
2208 rtw89_debug(rtwdev, RTW89_DBG_RFK, "[DPK] set TXAGC = 0x%x\n", txagc); in _dpk_kip_set_txagc()
2221 enum rtw89_rf_path path, u8 txagc, s8 gain_offset) in _dpk_set_offset() argument
2223 txagc = rtw89_read_rf(rtwdev, path, RR_TXAGC, RFREG_MASK); in _dpk_set_offset()
[all …]
HDrtw8852b_rfk.c2133 enum rtw89_rf_path path, u8 txagc) in _dpk_kip_set_txagc() argument
2135 rtw89_write_rf(rtwdev, path, RR_TXAGC, RFREG_MASK, txagc); in _dpk_kip_set_txagc()
2140 rtw89_debug(rtwdev, RTW89_DBG_RFK, "[DPK] set TXAGC = 0x%x\n", txagc); in _dpk_kip_set_txagc()
2164 u8 txagc; in _dpk_set_offset() local
2166 txagc = rtw89_read_rf(rtwdev, path, RR_TXAGC, RFREG_MASK); in _dpk_set_offset()
2168 if (txagc - gain_offset < DPK_TXAGC_LOWER) in _dpk_set_offset()
2169 txagc = DPK_TXAGC_LOWER; in _dpk_set_offset()
2170 else if (txagc - gain_offset > DPK_TXAGC_UPPER) in _dpk_set_offset()
2171 txagc = DPK_TXAGC_UPPER; in _dpk_set_offset()
2173 txagc = txagc - gain_offset; in _dpk_set_offset()
[all …]
HDrtw8852a_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 …]
HDfw.h4467 u8 txagc[2]; member
HDphy.c3114 dpk->txagc, dpk->ther, dpk->gs, dpk->dc_i, dpk->dc_q); in rtw89_phy_c2h_rfk_rpt_log()
/freebsd-14-stable/sys/contrib/dev/rtw88/
HDrtw8723x.c335 const struct rtw_hw_reg *txagc; in rtw8723x_set_tx_power_index_by_rate() local
347 txagc = &rtw8723x_txagc[rate]; in rtw8723x_set_tx_power_index_by_rate()
348 if (!txagc->addr) { in rtw8723x_set_tx_power_index_by_rate()
353 rtw_write32_mask(rtwdev, txagc->addr, txagc->mask, pwr_index); in rtw8723x_set_tx_power_index_by_rate()