Searched refs:RTW89_TAS_TXPWR_WINDOW (Results 1 – 2 of 2) sorted by relevance
437 WARN_ON_ONCE(tas->window_size > RTW89_TAS_TXPWR_WINDOW); in rtw89_tas_window_update()445 head_idx = (tas->txpwr_tail_idx - window_size + 1 + RTW89_TAS_TXPWR_WINDOW) % in rtw89_tas_window_update()446 RTW89_TAS_TXPWR_WINDOW; in rtw89_tas_window_update()448 j = (head_idx + i) % RTW89_TAS_TXPWR_WINDOW; in rtw89_tas_window_update()481 tas->txpwr_head_idx = (tas->txpwr_head_idx + 1) % RTW89_TAS_TXPWR_WINDOW; in rtw89_tas_history_update()482 tas->txpwr_tail_idx = (tas->txpwr_tail_idx + 1) % RTW89_TAS_TXPWR_WINDOW; in rtw89_tas_history_update()581 for (i = 0; i < RTW89_TAS_TXPWR_WINDOW; i++) in rtw89_tas_reset()588 tas->total_txpwr = linear * RTW89_TAS_TXPWR_WINDOW; in rtw89_tas_reset()589 tas->window_size = RTW89_TAS_TXPWR_WINDOW; in rtw89_tas_reset()591 tas->txpwr_tail_idx = RTW89_TAS_TXPWR_WINDOW - 1; in rtw89_tas_reset()
4691 #define RTW89_TAS_TXPWR_WINDOW 180 macro4694 u64 txpwr_history[RTW89_TAS_TXPWR_WINDOW];