Home
last modified time | relevance | path

Searched refs:q_resources (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/net/ethernet/google/gve/
H A Dgve_rx_dqo.c90 if (rx->q_resources) in gve_rx_reset_ring_dqo()
91 memset(rx->q_resources, 0, sizeof(*rx->q_resources)); in gve_rx_reset_ring_dqo()
137 if (rx->q_resources) { in gve_rx_free_ring_dqo()
138 dma_free_coherent(hdev, sizeof(*rx->q_resources), in gve_rx_free_ring_dqo()
139 rx->q_resources, rx->q_resources_bus); in gve_rx_free_ring_dqo()
140 rx->q_resources = NULL; in gve_rx_free_ring_dqo()
272 rx->q_resources = dma_alloc_coherent(hdev, sizeof(*rx->q_resources), in gve_rx_alloc_ring_dqo()
274 if (!rx->q_resources) in gve_rx_alloc_ring_dqo()
290 u64 index = be32_to_cpu(rx->q_resources->db_index); in gve_rx_write_doorbell_dqo()
H A Dgve_rx.c84 if (rx->q_resources) in gve_rx_reset_ring_gqi()
85 memset(rx->q_resources, 0, sizeof(*rx->q_resources)); in gve_rx_reset_ring_gqi()
117 if (rx->q_resources) { in gve_rx_free_ring_gqi()
118 dma_free_coherent(dev, sizeof(*rx->q_resources), in gve_rx_free_ring_gqi()
119 rx->q_resources, rx->q_resources_bus); in gve_rx_free_ring_gqi()
120 rx->q_resources = NULL; in gve_rx_free_ring_gqi()
331 rx->q_resources = in gve_rx_alloc_ring_gqi()
333 sizeof(*rx->q_resources), in gve_rx_alloc_ring_gqi()
336 if (!rx->q_resources) { in gve_rx_alloc_ring_gqi()
360 dma_free_coherent(hdev, sizeof(*rx->q_resources), in gve_rx_alloc_ring_gqi()
[all …]
H A Dgve_tx.c17 struct gve_queue_resources *q_resources, in gve_tx_put_doorbell() argument
20 iowrite32be(val, &priv->db_bar2[be32_to_cpu(q_resources->db_index)]); in gve_tx_put_doorbell()
28 gve_tx_put_doorbell(priv, tx->q_resources, tx->req); in gve_xdp_tx_flush()
227 dma_free_coherent(hdev, sizeof(*tx->q_resources), in gve_tx_free_ring_gqi()
228 tx->q_resources, tx->q_resources_bus); in gve_tx_free_ring_gqi()
229 tx->q_resources = NULL; in gve_tx_free_ring_gqi()
306 tx->q_resources = in gve_tx_alloc_ring_gqi()
308 sizeof(*tx->q_resources), in gve_tx_alloc_ring_gqi()
311 if (!tx->q_resources) in gve_tx_alloc_ring_gqi()
759 gve_tx_put_doorbell(priv, tx->q_resources, tx->req); in gve_tx()
[all …]
H A Dgve_dqo.h66 const struct gve_queue_resources *q_resources, u32 val) in gve_tx_put_doorbell_dqo() argument
70 index = be32_to_cpu(q_resources->db_index); in gve_tx_put_doorbell_dqo()
H A Dgve.h309 struct gve_queue_resources *q_resources; /* head and tail pointer idx */ member
590 struct gve_queue_resources *q_resources; /* head and tail pointer idx */ member