Lines Matching refs:pq
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,
127 int brcmu_pktq_mlen(struct pktq *pq, uint prec_bmp);
128 struct sk_buff *brcmu_pktq_mdeq(struct pktq *pq, uint prec_bmp, int *prec_out);
132 static inline int pktq_len(struct pktq *pq) in pktq_len() argument
134 return (int)pq->len; in pktq_len()
137 static inline int pktq_max(struct pktq *pq) in pktq_max() argument
139 return (int)pq->max; in pktq_max()
142 static inline int pktq_avail(struct pktq *pq) in pktq_avail() argument
144 return (int)(pq->max - pq->len); in pktq_avail()
147 static inline bool pktq_full(struct pktq *pq) in pktq_full() argument
149 return pq->len >= pq->max; in pktq_full()
152 static inline bool pktq_empty(struct pktq *pq) in pktq_empty() argument
154 return pq->len == 0; in pktq_empty()
157 void brcmu_pktq_init(struct pktq *pq, int num_prec, int max_len);
159 struct sk_buff *brcmu_pktq_peek_tail(struct pktq *pq, int *prec_out);
160 void brcmu_pktq_flush(struct pktq *pq, bool dir,