Lines Matching refs:qlen
68 __u32 qlen; member
178 return !READ_ONCE(qdisc->q.qlen); in qdisc_is_empty()
523 return this_cpu_ptr(q->cpu_qstats)->qlen; in qdisc_qlen_cpu()
528 return q->q.qlen; in qdisc_qlen()
533 __u32 qlen = q->qstats.qlen; in qdisc_qlen_sum() local
538 qlen += per_cpu_ptr(q->cpu_qstats, i)->qlen; in qdisc_qlen_sum()
540 qlen += q->q.qlen; in qdisc_qlen_sum()
543 return qlen; in qdisc_qlen_sum()
904 this_cpu_inc(sch->cpu_qstats->qlen); in qdisc_qstats_cpu_qlen_inc()
909 this_cpu_dec(sch->cpu_qstats->qlen); in qdisc_qstats_cpu_qlen_dec()
949 __u32 qlen = qdisc_qlen_sum(sch); in qdisc_qstats_copy() local
951 return gnet_stats_copy_queue(d, sch->cpu_qstats, &sch->qstats, qlen); in qdisc_qstats_copy()
954 static inline void qdisc_qstats_qlen_backlog(struct Qdisc *sch, __u32 *qlen, in qdisc_qstats_qlen_backlog() argument
960 *qlen = qstats.qlen + qdisc_qlen(sch); in qdisc_qstats_qlen_backlog()
966 __u32 qlen, backlog; in qdisc_tree_flush_backlog() local
968 qdisc_qstats_qlen_backlog(sch, &qlen, &backlog); in qdisc_tree_flush_backlog()
969 qdisc_tree_reduce_backlog(sch, qlen, backlog); in qdisc_tree_flush_backlog()
974 __u32 qlen, backlog; in qdisc_purge_queue() local
976 qdisc_qstats_qlen_backlog(sch, &qlen, &backlog); in qdisc_purge_queue()
978 qdisc_tree_reduce_backlog(sch, qlen, backlog); in qdisc_purge_queue()
985 qh->qlen = 0; in qdisc_skb_head_init()
1001 qh->qlen++; in __qdisc_enqueue_tail()
1019 qh->qlen++; in __qdisc_enqueue_head()
1028 qh->qlen--; in __qdisc_dequeue_head()
1105 sch->q.qlen++; in qdisc_peek_dequeued()
1122 sch->q.qlen--; in qdisc_update_stats_at_dequeue()
1134 sch->q.qlen++; in qdisc_update_stats_at_enqueue()
1150 sch->q.qlen--; in qdisc_dequeue_peeked()
1166 if (qh->qlen) { in __qdisc_reset_queue()
1171 qh->qlen = 0; in __qdisc_reset_queue()