Home
last modified time | relevance | path

Searched refs:buf_pool (Results 1 – 8 of 8) sorted by relevance

/linux/drivers/scsi/qla2xxx/
H A Dqla_mid.c1087 qp->buf_pool.num_bufs = qp->req->length; in qla_create_buf_pool()
1090 qp->buf_pool.buf_map = kcalloc(sz, sizeof(long), GFP_KERNEL); in qla_create_buf_pool()
1091 if (!qp->buf_pool.buf_map) { in qla_create_buf_pool()
1097 qp->buf_pool.buf_array = kcalloc(qp->req->length, sizeof(void *), GFP_KERNEL); in qla_create_buf_pool()
1098 if (!qp->buf_pool.buf_array) { in qla_create_buf_pool()
1101 kfree(qp->buf_pool.buf_map); in qla_create_buf_pool()
1105 qp->buf_pool.dma_array = kzalloc_objs(dma_addr_t, qp->req->length); in qla_create_buf_pool()
1106 if (!qp->buf_pool.dma_array) { in qla_create_buf_pool()
1109 kfree(qp->buf_pool.buf_map); in qla_create_buf_pool()
1110 kfree(qp->buf_pool.buf_array); in qla_create_buf_pool()
[all …]
/linux/drivers/media/pci/cx18/
H A Dcx18-queue.c248 list_move_tail(&buf->list, &s->buf_pool); in cx18_unload_queues()
284 if (list_empty(&s->buf_pool)) in cx18_load_queues()
287 buf = list_first_entry(&s->buf_pool, struct cx18_buffer, in cx18_load_queues()
398 list_add_tail(&buf->list, &s->buf_pool); in cx18_stream_alloc()
425 while (!list_empty(&s->buf_pool)) { in cx18_stream_free()
426 buf = list_first_entry(&s->buf_pool, struct cx18_buffer, list); in cx18_stream_free()
H A Dcx18-streams.c252 INIT_LIST_HEAD(&s->buf_pool); in cx18_stream_init()
/linux/drivers/net/ethernet/apm/xgene/
H A Dxgene_enet_main.h119 struct xgene_enet_desc_ring *buf_pool; member
H A Dxgene_enet_cle.c705 pool_id = pdata->rx_ring[idx]->buf_pool->id; in xgene_cle_set_rss_idt()
783 pool_id = pdata->rx_ring[0]->buf_pool->id; in xgene_enet_cle_init()
/linux/drivers/net/usb/
H A Dlan78xx.c476 static struct sk_buff *lan78xx_get_buf(struct sk_buff_head *buf_pool) in lan78xx_get_buf() argument
478 if (skb_queue_empty(buf_pool)) in lan78xx_get_buf()
481 return skb_dequeue(buf_pool); in lan78xx_get_buf()
484 static void lan78xx_release_buf(struct sk_buff_head *buf_pool, in lan78xx_release_buf() argument
493 skb_queue_tail(buf_pool, buf); in lan78xx_release_buf()
496 static void lan78xx_free_buf_pool(struct sk_buff_head *buf_pool) in lan78xx_free_buf_pool() argument
501 while (!skb_queue_empty(buf_pool)) { in lan78xx_free_buf_pool()
502 buf = skb_dequeue(buf_pool); in lan78xx_free_buf_pool()
511 static int lan78xx_alloc_buf_pool(struct sk_buff_head *buf_pool, in lan78xx_alloc_buf_pool() argument
520 skb_queue_head_init(buf_pool); in lan78xx_alloc_buf_pool()
[all …]
/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac.h125 struct stmmac_rx_buffer *buf_pool; member
H A Dstmmac_main.c1606 struct stmmac_rx_buffer *buf = &rx_q->buf_pool[i]; in stmmac_init_rx_buffers()
1650 struct stmmac_rx_buffer *buf = &rx_q->buf_pool[i]; in stmmac_free_rx_buffer()
1766 struct stmmac_rx_buffer *buf = &rx_q->buf_pool[i]; in dma_free_rx_xskbufs()
1799 buf = &rx_q->buf_pool[i]; in stmmac_alloc_rx_buffers_zc()
2103 kfree(rx_q->buf_pool); in __free_dma_rx_desc_resources()
2217 rx_q->buf_pool = kzalloc_objs(*rx_q->buf_pool, dma_conf->dma_rx_size); in __alloc_dma_rx_desc_resources()
2218 if (!rx_q->buf_pool) in __alloc_dma_rx_desc_resources()
4948 struct stmmac_rx_buffer *buf = &rx_q->buf_pool[entry]; in stmmac_rx_refill()
5342 struct stmmac_rx_buffer *buf = &rx_q->buf_pool[entry]; in stmmac_rx_refill_zc()
5452 buf = &rx_q->buf_pool[entry]; in stmmac_rx_zc()
[all …]