/kernel/linux/linux-5.10/drivers/net/ethernet/google/gve/ |
H A D | gve_rx.c | 32 dma_free_coherent(dev, sizeof(*rx->q_resources), in gve_rx_free_ring() 33 rx->q_resources, rx->q_resources_bus); in gve_rx_free_ring() 34 rx->q_resources = NULL; in gve_rx_free_ring() 133 rx->q_resources = in gve_rx_alloc_ring() 135 sizeof(*rx->q_resources), in gve_rx_alloc_ring() 138 if (!rx->q_resources) { in gve_rx_alloc_ring() 167 dma_free_coherent(hdev, sizeof(*rx->q_resources), in gve_rx_alloc_ring() 168 rx->q_resources, rx->q_resources_bus); in gve_rx_alloc_ring() 169 rx->q_resources = NULL; in gve_rx_alloc_ring() 214 u32 db_idx = be32_to_cpu(rx->q_resources in gve_rx_write_doorbell() [all...] |
H A D | gve_tx.c | 15 struct gve_queue_resources *q_resources, in gve_tx_put_doorbell() 18 iowrite32be(val, &priv->db_bar2[be32_to_cpu(q_resources->db_index)]); in gve_tx_put_doorbell() 157 dma_free_coherent(hdev, sizeof(*tx->q_resources), in gve_tx_free_ring() 158 tx->q_resources, tx->q_resources_bus); in gve_tx_free_ring() 159 tx->q_resources = NULL; in gve_tx_free_ring() 217 tx->q_resources = in gve_tx_alloc_ring() 219 sizeof(*tx->q_resources), in gve_tx_alloc_ring() 222 if (!tx->q_resources) in gve_tx_alloc_ring() 494 gve_tx_put_doorbell(priv, tx->q_resources, tx->req); in gve_tx() 508 gve_tx_put_doorbell(priv, tx->q_resources, t in gve_tx() 14 gve_tx_put_doorbell(struct gve_priv *priv, struct gve_queue_resources *q_resources, u32 val) gve_tx_put_doorbell() argument [all...] |
H A D | gve.h | 92 struct gve_queue_resources *q_resources; /* head and tail pointer idx */ member 143 struct gve_queue_resources *q_resources; /* head and tail pointer idx */ member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/google/gve/ |
H A D | gve_tx.c | 17 struct gve_queue_resources *q_resources, in gve_tx_put_doorbell() 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() 215 dma_free_coherent(hdev, sizeof(*tx->q_resources), in gve_tx_free_ring() 216 tx->q_resources, tx->q_resources_bus); in gve_tx_free_ring() 217 tx->q_resources = NULL; in gve_tx_free_ring() 272 tx->q_resources = in gve_tx_alloc_ring() 274 sizeof(*tx->q_resources), in gve_tx_alloc_ring() 277 if (!tx->q_resources) in gve_tx_alloc_ring() 698 gve_tx_put_doorbell(priv, tx->q_resources, t in gve_tx() 16 gve_tx_put_doorbell(struct gve_priv *priv, struct gve_queue_resources *q_resources, u32 val) gve_tx_put_doorbell() argument [all...] |
H A D | gve_dqo.h | 49 const struct gve_queue_resources *q_resources, u32 val) in gve_tx_put_doorbell_dqo() 53 index = be32_to_cpu(q_resources->db_index); in gve_tx_put_doorbell_dqo() 48 gve_tx_put_doorbell_dqo(const struct gve_priv *priv, const struct gve_queue_resources *q_resources, u32 val) gve_tx_put_doorbell_dqo() argument
|
H A D | gve_rx_dqo.c | 216 if (rx->q_resources) { in gve_rx_free_ring_dqo() 217 dma_free_coherent(hdev, sizeof(*rx->q_resources), in gve_rx_free_ring_dqo() 218 rx->q_resources, rx->q_resources_bus); in gve_rx_free_ring_dqo() 219 rx->q_resources = NULL; in gve_rx_free_ring_dqo() 318 rx->q_resources = dma_alloc_coherent(hdev, sizeof(*rx->q_resources), in gve_rx_alloc_ring_dqo() 320 if (!rx->q_resources) in gve_rx_alloc_ring_dqo() 335 u64 index = be32_to_cpu(rx->q_resources->db_index); in gve_rx_write_doorbell_dqo()
|
H A D | gve_rx.c | 65 dma_free_coherent(dev, sizeof(*rx->q_resources), in gve_rx_free_ring() 66 rx->q_resources, rx->q_resources_bus); in gve_rx_free_ring() 67 rx->q_resources = NULL; in gve_rx_free_ring() 259 rx->q_resources = in gve_rx_alloc_ring() 261 sizeof(*rx->q_resources), in gve_rx_alloc_ring() 264 if (!rx->q_resources) { in gve_rx_alloc_ring() 299 dma_free_coherent(hdev, sizeof(*rx->q_resources), in gve_rx_alloc_ring() 300 rx->q_resources, rx->q_resources_bus); in gve_rx_alloc_ring() 301 rx->q_resources = NULL; in gve_rx_alloc_ring() 349 u32 db_idx = be32_to_cpu(rx->q_resources in gve_rx_write_doorbell() [all...] |
H A D | gve_tx_dqo.c | 199 if (tx->q_resources) { in gve_tx_free_ring_dqo() 200 dma_free_coherent(hdev, sizeof(*tx->q_resources), in gve_tx_free_ring_dqo() 201 tx->q_resources, tx->q_resources_bus); in gve_tx_free_ring_dqo() 202 tx->q_resources = NULL; in gve_tx_free_ring_dqo() 325 tx->q_resources = dma_alloc_coherent(hdev, sizeof(*tx->q_resources), in gve_tx_alloc_ring_dqo() 327 if (!tx->q_resources) in gve_tx_alloc_ring_dqo() 931 gve_tx_put_doorbell_dqo(priv, tx->q_resources, tx->dqo_tx.tail); in gve_tx_dqo() 938 gve_tx_put_doorbell_dqo(priv, tx->q_resources, tx->dqo_tx.tail); in gve_tx_dqo()
|
H A D | gve.h | 273 struct gve_queue_resources *q_resources; /* head and tail pointer idx */ member 554 struct gve_queue_resources *q_resources; /* head and tail pointer idx */ member
|