Lines Matching refs:pf
150 u32 pf; in rate_control_pid_sample() local
171 pf = spinfo->last_pf; in rate_control_pid_sample()
176 pf = spinfo->tx_num_failed * 100 / spinfo->tx_num_xmit; in rate_control_pid_sample()
178 if (ieee80211_vif_is_mesh(&si->sdata->vif) && pf == 100) in rate_control_pid_sample()
180 pf <<= RC_PID_ARITH_SHIFT; in rate_control_pid_sample()
181 si->fail_avg = ((pf + (spinfo->last_pf << 3)) / 9) in rate_control_pid_sample()
194 tmp = (pf - spinfo->last_pf); in rate_control_pid_sample()
203 err_prop = (pinfo->target << RC_PID_ARITH_SHIFT) - pf; in rate_control_pid_sample()
209 err_der = (pf - spinfo->last_pf) * in rate_control_pid_sample()
211 spinfo->last_pf = pf; in rate_control_pid_sample()
216 rate_control_pid_event_pf_sample(&spinfo->events, pf, err_prop, err_int, in rate_control_pid_sample()