Lines Matching refs:qpl

671 			      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()
726 return tx->tx_fifo.qpl; in gve_tx_get_qpl()
728 return tx->dqo.qpl; in gve_tx_get_qpl()
736 return rx->data.qpl; in gve_rx_get_qpl()
738 return rx->dqo.qpl; in gve_rx_get_qpl()
1105 struct gve_queue_page_list *qpl; in gve_alloc_queue_page_list() local
1109 qpl = kvzalloc(sizeof(*qpl), GFP_KERNEL); in gve_alloc_queue_page_list()
1110 if (!qpl) in gve_alloc_queue_page_list()
1113 qpl->id = id; in gve_alloc_queue_page_list()
1114 qpl->num_entries = 0; in gve_alloc_queue_page_list()
1115 qpl->pages = kvcalloc(pages, sizeof(*qpl->pages), GFP_KERNEL); in gve_alloc_queue_page_list()
1116 if (!qpl->pages) in gve_alloc_queue_page_list()
1119 qpl->page_buses = kvcalloc(pages, sizeof(*qpl->page_buses), GFP_KERNEL); in gve_alloc_queue_page_list()
1120 if (!qpl->page_buses) in gve_alloc_queue_page_list()
1124 err = gve_alloc_page(priv, &priv->pdev->dev, &qpl->pages[i], in gve_alloc_queue_page_list()
1125 &qpl->page_buses[i], in gve_alloc_queue_page_list()
1129 qpl->num_entries++; in gve_alloc_queue_page_list()
1132 return qpl; in gve_alloc_queue_page_list()
1135 gve_free_queue_page_list(priv, qpl, id); in gve_alloc_queue_page_list()
1149 struct gve_queue_page_list *qpl, in gve_free_queue_page_list() argument
1154 if (!qpl) in gve_free_queue_page_list()
1156 if (!qpl->pages) in gve_free_queue_page_list()
1158 if (!qpl->page_buses) in gve_free_queue_page_list()
1161 for (i = 0; i < qpl->num_entries; i++) in gve_free_queue_page_list()
1162 gve_free_page(&priv->pdev->dev, qpl->pages[i], in gve_free_queue_page_list()
1163 qpl->page_buses[i], gve_qpl_dma_dir(priv, id)); in gve_free_queue_page_list()
1165 kvfree(qpl->page_buses); in gve_free_queue_page_list()
1166 qpl->page_buses = NULL; in gve_free_queue_page_list()
1168 kvfree(qpl->pages); in gve_free_queue_page_list()
1169 qpl->pages = NULL; in gve_free_queue_page_list()
1171 kvfree(qpl); in gve_free_queue_page_list()