• Home
  • Raw
  • Download

Lines Matching refs:tl

249 static void rs_tl_rm_old_stats(struct iwl_traffic_load *tl, u32 curr_time)  in rs_tl_rm_old_stats()  argument
254 while (tl->queue_count && in rs_tl_rm_old_stats()
255 (tl->time_stamp < oldest_time)) { in rs_tl_rm_old_stats()
256 tl->total -= tl->packet_count[tl->head]; in rs_tl_rm_old_stats()
257 tl->packet_count[tl->head] = 0; in rs_tl_rm_old_stats()
258 tl->time_stamp += TID_QUEUE_CELL_SPACING; in rs_tl_rm_old_stats()
259 tl->queue_count--; in rs_tl_rm_old_stats()
260 tl->head++; in rs_tl_rm_old_stats()
261 if (tl->head >= TID_QUEUE_MAX_SIZE) in rs_tl_rm_old_stats()
262 tl->head = 0; in rs_tl_rm_old_stats()
276 struct iwl_traffic_load *tl = NULL; in rs_tl_add_packet() local
288 tl = &lq_data->load[tid]; in rs_tl_add_packet()
293 if (!(tl->queue_count)) { in rs_tl_add_packet()
294 tl->total = 1; in rs_tl_add_packet()
295 tl->time_stamp = curr_time; in rs_tl_add_packet()
296 tl->queue_count = 1; in rs_tl_add_packet()
297 tl->head = 0; in rs_tl_add_packet()
298 tl->packet_count[0] = 1; in rs_tl_add_packet()
302 time_diff = TIME_WRAP_AROUND(tl->time_stamp, curr_time); in rs_tl_add_packet()
308 rs_tl_rm_old_stats(tl, curr_time); in rs_tl_add_packet()
310 index = (tl->head + index) % TID_QUEUE_MAX_SIZE; in rs_tl_add_packet()
311 tl->packet_count[index] = tl->packet_count[index] + 1; in rs_tl_add_packet()
312 tl->total = tl->total + 1; in rs_tl_add_packet()
314 if ((index + 1) > tl->queue_count) in rs_tl_add_packet()
315 tl->queue_count = index + 1; in rs_tl_add_packet()
358 struct iwl_traffic_load *tl = NULL; in rs_tl_get_load() local
363 tl = &(lq_data->load[tid]); in rs_tl_get_load()
367 if (!(tl->queue_count)) in rs_tl_get_load()
370 time_diff = TIME_WRAP_AROUND(tl->time_stamp, curr_time); in rs_tl_get_load()
376 rs_tl_rm_old_stats(tl, curr_time); in rs_tl_get_load()