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