Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/google/gve/
Dgve_main.c671 struct gve_queue_page_list *qpl) in gve_unregister_qpl() argument
675 if (!qpl) in gve_unregister_qpl()
678 err = gve_adminq_unregister_page_list(priv, qpl->id); in gve_unregister_qpl()
682 qpl->id); in gve_unregister_qpl()
686 priv->num_registered_pages -= qpl->num_entries; in gve_unregister_qpl()
691 struct gve_queue_page_list *qpl) in gve_register_qpl() argument
696 if (!qpl) in gve_register_qpl()
699 pages = qpl->num_entries; in gve_register_qpl()
709 err = gve_adminq_register_page_list(priv, qpl); in gve_register_qpl()
713 qpl->id); in gve_register_qpl()
[all …]
Dgve_tx.c41 fifo->base = vmap(fifo->qpl->pages, fifo->qpl->num_entries, VM_MAP, in gve_tx_fifo_init()
45 fifo->qpl->id); in gve_tx_fifo_init()
49 fifo->size = fifo->qpl->num_entries * PAGE_SIZE; in gve_tx_fifo_init()
228 if (tx->tx_fifo.qpl) { in gve_tx_free_ring_gqi()
233 gve_free_queue_page_list(priv, tx->tx_fifo.qpl, qpl_id); in gve_tx_free_ring_gqi()
234 tx->tx_fifo.qpl = NULL; in gve_tx_free_ring_gqi()
293 tx->tx_fifo.qpl = gve_alloc_queue_page_list(priv, qpl_id, in gve_tx_alloc_ring_gqi()
295 if (!tx->tx_fifo.qpl) in gve_tx_alloc_ring_gqi()
318 gve_free_queue_page_list(priv, tx->tx_fifo.qpl, qpl_id); in gve_tx_alloc_ring_gqi()
319 tx->tx_fifo.qpl = NULL; in gve_tx_alloc_ring_gqi()
[all …]
Dgve_tx_dqo.c21 if (!tx->dqo.qpl) in gve_has_free_tx_qpl_bufs()
240 if (tx->dqo.qpl) { in gve_tx_free_ring_dqo()
242 gve_free_queue_page_list(priv, tx->dqo.qpl, qpl_id); in gve_tx_free_ring_dqo()
243 tx->dqo.qpl = NULL; in gve_tx_free_ring_dqo()
252 tx->dqo.qpl->num_entries; in gve_tx_qpl_buf_init()
362 tx->dqo.qpl = gve_alloc_queue_page_list(priv, qpl_id, in gve_tx_alloc_ring_dqo()
364 if (!tx->dqo.qpl) in gve_tx_alloc_ring_dqo()
707 *va = page_address(tx->dqo.qpl->pages[page_id]) + offset; in gve_tx_buf_get_addr()
708 *dma_addr = tx->dqo.qpl->page_buses[page_id] + offset; in gve_tx_buf_get_addr()
792 if (tx->dqo.qpl) { in gve_tx_add_skb_dqo()
[all …]
Dgve_rx_dqo.c146 if (rx->dqo.qpl) in gve_get_recycled_buf_state()
170 if (!rx->dqo.qpl) { in gve_alloc_page_dqo()
186 buf_state->page_info.page = rx->dqo.qpl->pages[idx]; in gve_alloc_page_dqo()
187 buf_state->addr = rx->dqo.qpl->page_buses[idx]; in gve_alloc_page_dqo()
282 gve_free_page_dqo(priv, bs, !rx->dqo.qpl); in gve_rx_reset_ring_dqo()
326 gve_free_page_dqo(priv, bs, !rx->dqo.qpl); in gve_rx_free_ring_dqo()
329 if (rx->dqo.qpl) { in gve_rx_free_ring_dqo()
331 gve_free_queue_page_list(priv, rx->dqo.qpl, qpl_id); in gve_rx_free_ring_dqo()
332 rx->dqo.qpl = NULL; in gve_rx_free_ring_dqo()
431 rx->dqo.qpl = gve_alloc_queue_page_list(priv, qpl_id, in gve_rx_alloc_ring_dqo()
[all …]
Dgve_rx.c135 if (rx->data.qpl) { in gve_rx_free_ring_gqi()
137 gve_free_queue_page_list(priv, rx->data.qpl, qpl_id); in gve_rx_free_ring_gqi()
138 rx->data.qpl = NULL; in gve_rx_free_ring_gqi()
199 struct page *page = rx->data.qpl->pages[i]; in gve_rx_prefill_pages()
313 rx->data.qpl = gve_alloc_queue_page_list(priv, qpl_id, in gve_rx_alloc_ring_gqi()
315 if (!rx->data.qpl) { in gve_rx_alloc_ring_gqi()
367 gve_free_queue_page_list(priv, rx->data.qpl, qpl_id); in gve_rx_alloc_ring_gqi()
368 rx->data.qpl = NULL; in gve_rx_alloc_ring_gqi()
846 rx->data.qpl->page_buses[idx]; in gve_rx()
Dgve.h125 struct gve_queue_page_list *qpl; /* qpl assigned to this queue */ member
266 struct gve_queue_page_list *qpl; member
357 struct gve_queue_page_list *qpl; /* QPL mapped into this FIFO */ member
570 struct gve_queue_page_list *qpl; member
1126 struct gve_queue_page_list *qpl,
Dgve_adminq.c687 GVE_RAW_ADDRESSING_QPL_ID : tx->tx_fifo.qpl->id; in gve_adminq_create_tx_queue()
696 qpl_id = tx->dqo.qpl->id; in gve_adminq_create_tx_queue()
738 GVE_RAW_ADDRESSING_QPL_ID : rx->data.qpl->id; in gve_adminq_get_create_rx_queue_cmd()
753 qpl_id = rx->dqo.qpl->id; in gve_adminq_get_create_rx_queue_cmd()
1086 struct gve_queue_page_list *qpl) in gve_adminq_register_page_list() argument
1089 u32 num_entries = qpl->num_entries; in gve_adminq_register_page_list()
1090 u32 size = num_entries * sizeof(qpl->page_buses[0]); in gve_adminq_register_page_list()
1103 page_list[i] = cpu_to_be64(qpl->page_buses[i]); in gve_adminq_register_page_list()
1107 .page_list_id = cpu_to_be32(qpl->id), in gve_adminq_register_page_list()
Dgve_adminq.h613 struct gve_queue_page_list *qpl);