Searched refs:qpl (Results 1 – 8 of 8) sorted by relevance
| /Linux-v6.6/drivers/net/ethernet/google/gve/ |
| D | gve_rx_dqo.c | 146 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() 226 gve_free_page_dqo(priv, bs, !rx->dqo.qpl); in gve_rx_free_ring_dqo() 228 if (rx->dqo.qpl) { in gve_rx_free_ring_dqo() 229 gve_unassign_qpl(priv, rx->dqo.qpl->id); in gve_rx_free_ring_dqo() 230 rx->dqo.qpl = NULL; in gve_rx_free_ring_dqo() 312 rx->dqo.qpl = gve_assign_rx_qpl(priv, rx->q_num); in gve_rx_alloc_ring_dqo() 313 if (!rx->dqo.qpl) in gve_rx_alloc_ring_dqo() [all …]
|
| D | gve_tx_dqo.c | 21 if (!tx->dqo.qpl) in gve_has_free_tx_qpl_bufs() 225 if (tx->dqo.qpl) { in gve_tx_free_ring_dqo() 226 gve_unassign_qpl(priv, tx->dqo.qpl->id); in gve_tx_free_ring_dqo() 227 tx->dqo.qpl = NULL; in gve_tx_free_ring_dqo() 236 tx->dqo.qpl->num_entries; in gve_tx_qpl_buf_init() 331 tx->dqo.qpl = gve_assign_tx_qpl(priv, idx); in gve_tx_alloc_ring_dqo() 332 if (!tx->dqo.qpl) in gve_tx_alloc_ring_dqo() 663 *va = page_address(tx->dqo.qpl->pages[page_id]) + offset; in gve_tx_buf_get_addr() 664 *dma_addr = tx->dqo.qpl->page_buses[page_id] + offset; in gve_tx_buf_get_addr() 748 if (tx->dqo.qpl) { in gve_tx_add_skb_dqo() [all …]
|
| D | gve_tx.c | 41 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() 221 gve_unassign_qpl(priv, tx->tx_fifo.qpl->id); in gve_tx_free_ring() 222 tx->tx_fifo.qpl = NULL; in gve_tx_free_ring() 264 tx->tx_fifo.qpl = gve_assign_tx_qpl(priv, idx); in gve_tx_alloc_ring() 265 if (!tx->tx_fifo.qpl) in gve_tx_alloc_ring() 293 gve_unassign_qpl(priv, tx->tx_fifo.qpl->id); in gve_tx_alloc_ring() 550 gve_dma_sync_for_device(&priv->pdev->dev, tx->tx_fifo.qpl->page_buses, in gve_tx_add_skb_copy() 573 gve_dma_sync_for_device(&priv->pdev->dev, tx->tx_fifo.qpl->page_buses, in gve_tx_add_skb_copy() [all …]
|
| D | gve_main.c | 992 struct gve_queue_page_list *qpl = &priv->qpls[id]; in gve_alloc_queue_page_list() local 1004 qpl->id = id; in gve_alloc_queue_page_list() 1005 qpl->num_entries = 0; in gve_alloc_queue_page_list() 1006 qpl->pages = kvcalloc(pages, sizeof(*qpl->pages), GFP_KERNEL); in gve_alloc_queue_page_list() 1008 if (!qpl->pages) in gve_alloc_queue_page_list() 1010 qpl->page_buses = kvcalloc(pages, sizeof(*qpl->page_buses), GFP_KERNEL); in gve_alloc_queue_page_list() 1012 if (!qpl->page_buses) in gve_alloc_queue_page_list() 1016 err = gve_alloc_page(priv, &priv->pdev->dev, &qpl->pages[i], in gve_alloc_queue_page_list() 1017 &qpl->page_buses[i], in gve_alloc_queue_page_list() 1022 qpl->num_entries++; in gve_alloc_queue_page_list() [all …]
|
| D | gve_adminq.c | 523 GVE_RAW_ADDRESSING_QPL_ID : tx->tx_fifo.qpl->id; in gve_adminq_create_tx_queue() 535 qpl_id = tx->dqo.qpl->id; in gve_adminq_create_tx_queue() 579 GVE_RAW_ADDRESSING_QPL_ID : rx->data.qpl->id; in gve_adminq_create_rx_queue() 597 qpl_id = rx->dqo.qpl->id; in gve_adminq_create_rx_queue() 877 struct gve_queue_page_list *qpl) in gve_adminq_register_page_list() argument 880 u32 num_entries = qpl->num_entries; in gve_adminq_register_page_list() 881 u32 size = num_entries * sizeof(qpl->page_buses[0]); in gve_adminq_register_page_list() 894 page_list[i] = cpu_to_be64(qpl->page_buses[i]); in gve_adminq_register_page_list() 898 .page_list_id = cpu_to_be32(qpl->id), in gve_adminq_register_page_list()
|
| D | gve_rx.c | 39 gve_unassign_qpl(priv, rx->data.qpl->id); in gve_rx_unfill_pages() 40 rx->data.qpl = NULL; in gve_rx_unfill_pages() 130 rx->data.qpl = gve_assign_rx_qpl(priv, rx->q_num); in gve_prefill_rx_pages() 131 if (!rx->data.qpl) { in gve_prefill_rx_pages() 139 struct page *page = rx->data.qpl->pages[i]; in gve_prefill_rx_pages() 188 gve_unassign_qpl(priv, rx->data.qpl->id); in gve_prefill_rx_pages() 189 rx->data.qpl = NULL; in gve_prefill_rx_pages() 765 rx->data.qpl->page_buses[idx]; in gve_rx()
|
| D | gve.h | 107 struct gve_queue_page_list *qpl; /* qpl assigned to this queue */ member 243 struct gve_queue_page_list *qpl; member 327 struct gve_queue_page_list *qpl; /* QPL mapped into this FIFO */ member 540 struct gve_queue_page_list *qpl; member
|
| D | gve_adminq.h | 428 struct gve_queue_page_list *qpl);
|