Lines Matching refs:duration
175 u32 packet_count, duration, pps; in il3945_bg_rate_scale_flush() local
189 duration = in il3945_bg_rate_scale_flush()
192 D_RATE("Tx'd %d packets in %dms\n", packet_count, duration); in il3945_bg_rate_scale_flush()
195 if (duration) in il3945_bg_rate_scale_flush()
196 pps = (packet_count * 1000) / duration; in il3945_bg_rate_scale_flush()
201 duration = (IL_AVERAGE_PACKETS * 1000) / pps; in il3945_bg_rate_scale_flush()
202 if (duration < RATE_FLUSH_MIN) in il3945_bg_rate_scale_flush()
203 duration = RATE_FLUSH_MIN; in il3945_bg_rate_scale_flush()
204 else if (duration > RATE_FLUSH_MAX) in il3945_bg_rate_scale_flush()
205 duration = RATE_FLUSH_MAX; in il3945_bg_rate_scale_flush()
207 duration = RATE_FLUSH_MAX; in il3945_bg_rate_scale_flush()
209 rs_sta->flush_time = msecs_to_jiffies(duration); in il3945_bg_rate_scale_flush()
211 D_RATE("new flush period: %d msec ave %d\n", duration, in il3945_bg_rate_scale_flush()