Lines Matching refs:prec
76 static inline int pktq_plen(struct pktq *pq, int prec) in pktq_plen() argument
78 return pq->q[prec].skblist.qlen; in pktq_plen()
81 static inline int pktq_pavail(struct pktq *pq, int prec) in pktq_pavail() argument
83 return pq->q[prec].max - pq->q[prec].skblist.qlen; in pktq_pavail()
86 static inline bool pktq_pfull(struct pktq *pq, int prec) in pktq_pfull() argument
88 return pq->q[prec].skblist.qlen >= pq->q[prec].max; in pktq_pfull()
91 static inline bool pktq_pempty(struct pktq *pq, int prec) in pktq_pempty() argument
93 return skb_queue_empty(&pq->q[prec].skblist); in pktq_pempty()
96 static inline struct sk_buff *pktq_ppeek(struct pktq *pq, int prec) in pktq_ppeek() argument
98 return skb_peek(&pq->q[prec].skblist); in pktq_ppeek()
101 static inline struct sk_buff *pktq_ppeek_tail(struct pktq *pq, int prec) in pktq_ppeek_tail() argument
103 return skb_peek_tail(&pq->q[prec].skblist); in pktq_ppeek_tail()
106 struct sk_buff *brcmu_pktq_penq(struct pktq *pq, int prec, struct sk_buff *p);
107 struct sk_buff *brcmu_pktq_penq_head(struct pktq *pq, int prec,
109 struct sk_buff *brcmu_pktq_pdeq(struct pktq *pq, int prec);
110 struct sk_buff *brcmu_pktq_pdeq_tail(struct pktq *pq, int prec);
111 struct sk_buff *brcmu_pktq_pdeq_match(struct pktq *pq, int prec,
122 void brcmu_pktq_pflush(struct pktq *pq, int prec, bool dir,