17 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
19 #include <linux/netdevice.h>
20 #include <linux/module.h>
33 skb = dev_alloc_skb(len);
71 if (pktq_full(pq) || pktq_pfull(pq, prec))
74 q = &pq->
q[prec].skblist;
90 if (pktq_full(pq) || pktq_pfull(pq, prec))
93 q = &pq->
q[prec].skblist;
109 q = &pq->
q[prec].skblist;
124 q = &pq->
q[prec].skblist;
141 q = &pq->
q[prec].skblist;
142 skb_queue_walk_safe(q, p, next) {
156 for (prec = 0; prec < pq->
num_prec; prec++)
173 for (prec = 0; prec < num_prec; prec++) {
174 pq->
q[prec].max = pq->
max;
175 skb_queue_head_init(&pq->
q[prec].skblist);
187 for (prec = 0; prec < pq->
hi_prec; prec++)
188 if (!skb_queue_empty(&pq->
q[prec].skblist))
194 return skb_peek_tail(&pq->
q[prec].skblist);
205 for (prec = 0; prec <= pq->
hi_prec; prec++)
206 if (prec_bmp & (1 << prec))
207 len += pq->
q[prec].skblist.qlen;
224 while ((prec = pq->
hi_prec) > 0 &&
225 skb_queue_empty(&pq->
q[prec].skblist))
228 while ((prec_bmp & (1 << prec)) == 0 ||
229 skb_queue_empty(&pq->
q[prec].skblist))
233 q = &pq->
q[prec].skblist;
253 if (msg && (msg[0] !=
'\0'))
256 for (p = p0;
p; p = p->
next)
261 void brcmu_dbg_hex_dump(
const void *
data,
size_t size,
const char *
fmt, ...)