Lines Matching refs:buf_pool
489 static struct sk_buff *lan78xx_get_buf(struct sk_buff_head *buf_pool)
491 if (skb_queue_empty(buf_pool))
494 return skb_dequeue(buf_pool);
497 static void lan78xx_release_buf(struct sk_buff_head *buf_pool,
506 skb_queue_tail(buf_pool, buf);
509 static void lan78xx_free_buf_pool(struct sk_buff_head *buf_pool)
514 while (!skb_queue_empty(buf_pool)) {
515 buf = skb_dequeue(buf_pool);
524 static int lan78xx_alloc_buf_pool(struct sk_buff_head *buf_pool,
533 skb_queue_head_init(buf_pool);
557 skb_queue_tail(buf_pool, buf);
563 lan78xx_free_buf_pool(buf_pool);