Home
last modified time | relevance | path

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

/openbmc/linux/drivers/scsi/qla2xxx/
H A Dqla_mid.c1089 qp->buf_pool.num_bufs = qp->req->length; in qla_create_buf_pool()
1092 qp->buf_pool.buf_map = kcalloc(sz, sizeof(long), GFP_KERNEL); in qla_create_buf_pool()
1093 if (!qp->buf_pool.buf_map) { in qla_create_buf_pool()
1099 qp->buf_pool.buf_array = kcalloc(qp->req->length, sizeof(void *), GFP_KERNEL); in qla_create_buf_pool()
1100 if (!qp->buf_pool.buf_array) { in qla_create_buf_pool()
1103 kfree(qp->buf_pool.buf_map); in qla_create_buf_pool()
1107 qp->buf_pool.dma_array = kcalloc(qp->req->length, sizeof(dma_addr_t), GFP_KERNEL); in qla_create_buf_pool()
1108 if (!qp->buf_pool.dma_array) { in qla_create_buf_pool()
1111 kfree(qp->buf_pool.buf_map); in qla_create_buf_pool()
1112 kfree(qp->buf_pool.buf_array); in qla_create_buf_pool()
[all …]
H A Dqla_def.h3868 struct qla_buf_pool buf_pool; member
/openbmc/linux/drivers/net/ethernet/apm/xgene/
H A Dxgene_enet_main.c20 static void xgene_enet_init_bufpool(struct xgene_enet_desc_ring *buf_pool) in xgene_enet_init_bufpool() argument
25 if (!buf_pool) in xgene_enet_init_bufpool()
28 for (i = 0; i < buf_pool->slots; i++) { in xgene_enet_init_bufpool()
29 raw_desc = &buf_pool->raw_desc16[i]; in xgene_enet_init_bufpool()
33 SET_VAL(FPQNUM, buf_pool->dst_ring_num) | in xgene_enet_init_bufpool()
67 static int xgene_enet_refill_pagepool(struct xgene_enet_desc_ring *buf_pool, in xgene_enet_refill_pagepool() argument
80 if (unlikely(!buf_pool)) in xgene_enet_refill_pagepool()
83 ndev = buf_pool->ndev; in xgene_enet_refill_pagepool()
86 slots = buf_pool->slots - 1; in xgene_enet_refill_pagepool()
87 tail = buf_pool->tail; in xgene_enet_refill_pagepool()
[all …]
H A Dxgene_enet_main.h118 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()
/openbmc/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()
392 list_add_tail(&buf->list, &s->buf_pool); in cx18_stream_alloc()
419 while (!list_empty(&s->buf_pool)) { in cx18_stream_free()
420 buf = list_first_entry(&s->buf_pool, struct cx18_buffer, list); in cx18_stream_free()
H A Dcx18-driver.h386 struct list_head buf_pool; /* buffers not attached to an MDL */ member
H A Dcx18-streams.c253 INIT_LIST_HEAD(&s->buf_pool); in cx18_stream_init()
/openbmc/u-boot/drivers/net/
H A Duli526x.c161 static char buf_pool[TX_BUF_ALLOC * TX_DESC_CNT + 4]; variable
281 db->buf_pool_ptr = (uchar *)&buf_pool[0]; in uli526x_init_one()
282 db->buf_pool_dma_ptr = (dma_addr_t)&buf_pool[0]; in uli526x_init_one()
/openbmc/linux/drivers/net/usb/
H A Dlan78xx.c489 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()
[all …]
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac.h109 struct stmmac_rx_buffer *buf_pool; member
H A Dstmmac_main.c1436 struct stmmac_rx_buffer *buf = &rx_q->buf_pool[i]; in stmmac_init_rx_buffers()
1480 struct stmmac_rx_buffer *buf = &rx_q->buf_pool[i]; in stmmac_free_rx_buffer()
1596 struct stmmac_rx_buffer *buf = &rx_q->buf_pool[i]; in dma_free_rx_xskbufs()
1629 buf = &rx_q->buf_pool[i]; in stmmac_alloc_rx_buffers_zc()
1933 kfree(rx_q->buf_pool); in __free_dma_rx_desc_resources()
2038 rx_q->buf_pool = kcalloc(dma_conf->dma_rx_size, in __alloc_dma_rx_desc_resources()
2039 sizeof(*rx_q->buf_pool), in __alloc_dma_rx_desc_resources()
2041 if (!rx_q->buf_pool) in __alloc_dma_rx_desc_resources()
4680 struct stmmac_rx_buffer *buf = &rx_q->buf_pool[entry]; in stmmac_rx_refill()
5036 struct stmmac_rx_buffer *buf = &rx_q->buf_pool[entry]; in stmmac_rx_refill_zc()
[all …]
/openbmc/openbmc/meta-raspberrypi/recipes-multimedia/rpidistro-ffmpeg/files/
H A D0001-ffmpeg-5.1.4-rpi_24.patch10038 +struct buf_pool {
10149 +static void bq_put_free(struct buf_pool *const bp, struct qent_base * be)
10154 +static struct qent_base * bq_get_free(struct buf_pool *const bp)
10159 +static struct qent_base * bq_extract_inuse(struct buf_pool *const bp, struct qent_base *const be)
10164 +static struct qent_base * bq_get_inuse(struct buf_pool *const bp)
10169 +static void bq_free_all_free_src(struct buf_pool *const bp)
10176 +static void bq_free_all_inuse_src(struct buf_pool *const bp)
10183 +static void bq_free_all_free_dst(struct buf_pool *const bp)
10190 +static void queue_put_free(struct buf_pool *const bp, struct qent_base *be)
10206 +static bool queue_is_inuse(const struct buf_pool *const bp)
[all …]
/openbmc/openbmc/meta-raspberrypi/dynamic-layers/multimedia-layer/recipes-multimedia/rpidistro-vlc/files/
H A D0004-mmal_20.patch8901 + MMAL_POOL_T * buf_pool;
9256 + MMAL_BUFFER_HEADER_T * const buf = mmal_queue_get(pc->buf_pool->queue);
9407 + if (pc->buf_pool != NULL)
9408 + mmal_pool_destroy(pc->buf_pool);
9440 +static MMAL_BOOL_T vcz_pool_release_cb(MMAL_POOL_T * buf_pool, MMAL_BUFFER_HEADER_T *buf, void *us…
9445 + VLC_UNUSED(buf_pool);
9477 + if ((pc->buf_pool = mmal_pool_create(64, 0)) == NULL)
9485 + mmal_pool_callback_set(pc->buf_pool, vcz_pool_release_cb, pc);