Lines Matching refs:txagc
2258 u8 txagc; in _dpk_set_offset() local
2260 txagc = (u8)rtw89_read_rf(rtwdev, path, RR_MODOPT, RFREG_MASK); in _dpk_set_offset()
2262 if (txagc - gain_offset < DPK_TXAGC_LOWER) in _dpk_set_offset()
2263 txagc = DPK_TXAGC_LOWER; in _dpk_set_offset()
2264 else if (txagc - gain_offset > DPK_TXAGC_UPPER) in _dpk_set_offset()
2265 txagc = DPK_TXAGC_UPPER; in _dpk_set_offset()
2267 txagc = txagc - gain_offset; in _dpk_set_offset()
2269 rtw89_write_rf(rtwdev, path, RR_MODOPT, RFREG_MASK, txagc); in _dpk_set_offset()
2272 gain_offset, txagc); in _dpk_set_offset()
2273 return txagc; in _dpk_set_offset()
2487 u8 txagc) in _dpk_fill_result() argument
2497 "[DPK] Fill txagc/ pwsf/ gs = 0x%x/ 0x%x/ 0x%x\n", txagc, in _dpk_fill_result()
2500 dpk->bp[path][kidx].txagc_dpk = txagc; in _dpk_fill_result()
2502 0x3F << ((gain << 3) + (kidx << 4)), txagc); in _dpk_fill_result()
2551 u8 txagc = 0, kidx = dpk->cur_idx[path]; in _dpk_main() local
2559 txagc = _dpk_set_tx_pwr(rtwdev, gain, path); in _dpk_main()
2565 txagc = _dpk_agc(rtwdev, phy, path, kidx, txagc, false); in _dpk_main()
2566 if (txagc == DPK_TXAGC_INVAL) in _dpk_main()
2572 _dpk_fill_result(rtwdev, path, kidx, gain, txagc); in _dpk_main()