Home
last modified time | relevance | path

Searched refs:gve_priv (Results 1 – 12 of 12) sorted by relevance

/Linux-v6.6/drivers/net/ethernet/google/gve/
Dgve.h111 struct gve_priv;
193 struct gve_priv *gve;
585 struct gve_priv *priv;
632 struct gve_priv { struct
753 static inline bool gve_get_do_reset(struct gve_priv *priv) in gve_get_do_reset() argument
758 static inline void gve_set_do_reset(struct gve_priv *priv) in gve_set_do_reset()
763 static inline void gve_clear_do_reset(struct gve_priv *priv) in gve_clear_do_reset()
768 static inline bool gve_get_reset_in_progress(struct gve_priv *priv) in gve_get_reset_in_progress()
774 static inline void gve_set_reset_in_progress(struct gve_priv *priv) in gve_set_reset_in_progress()
779 static inline void gve_clear_reset_in_progress(struct gve_priv *priv) in gve_clear_reset_in_progress()
[all …]
Dgve_dqo.h38 int gve_tx_alloc_rings_dqo(struct gve_priv *priv);
39 void gve_tx_free_rings_dqo(struct gve_priv *priv);
40 int gve_rx_alloc_rings_dqo(struct gve_priv *priv);
41 void gve_rx_free_rings_dqo(struct gve_priv *priv);
42 int gve_clean_tx_done_dqo(struct gve_priv *priv, struct gve_tx_ring *tx,
45 void gve_rx_write_doorbell_dqo(const struct gve_priv *priv, int queue_idx);
48 gve_tx_put_doorbell_dqo(const struct gve_priv *priv, in gve_tx_put_doorbell_dqo()
74 gve_write_irq_doorbell_dqo(const struct gve_priv *priv, in gve_write_irq_doorbell_dqo()
86 gve_set_itr_coalesce_usecs_dqo(struct gve_priv *priv, in gve_set_itr_coalesce_usecs_dqo()
Dgve_adminq.h413 int gve_adminq_alloc(struct device *dev, struct gve_priv *priv);
414 void gve_adminq_free(struct device *dev, struct gve_priv *priv);
415 void gve_adminq_release(struct gve_priv *priv);
416 int gve_adminq_describe_device(struct gve_priv *priv);
417 int gve_adminq_configure_device_resources(struct gve_priv *priv,
422 int gve_adminq_deconfigure_device_resources(struct gve_priv *priv);
423 int gve_adminq_create_tx_queues(struct gve_priv *priv, u32 start_id, u32 num_queues);
424 int gve_adminq_destroy_tx_queues(struct gve_priv *priv, u32 start_id, u32 num_queues);
425 int gve_adminq_create_rx_queues(struct gve_priv *priv, u32 num_queues);
426 int gve_adminq_destroy_rx_queues(struct gve_priv *priv, u32 queue_id);
[all …]
Dgve_main.c39 static int gve_verify_driver_compatibility(struct gve_priv *priv) in gve_verify_driver_compatibility()
84 struct gve_priv *priv = netdev_priv(dev); in gve_start_xmit()
94 struct gve_priv *priv = netdev_priv(dev); in gve_get_stats()
129 static int gve_alloc_counter_array(struct gve_priv *priv) in gve_alloc_counter_array()
142 static void gve_free_counter_array(struct gve_priv *priv) in gve_free_counter_array()
157 struct gve_priv *priv = container_of(work, struct gve_priv, in gve_stats_report_task()
165 static void gve_stats_report_schedule(struct gve_priv *priv) in gve_stats_report_schedule()
176 struct gve_priv *priv = from_timer(priv, t, stats_report_timer); in gve_stats_report_timer()
184 static int gve_alloc_stats_report(struct gve_priv *priv) in gve_alloc_stats_report()
205 static void gve_free_stats_report(struct gve_priv *priv) in gve_free_stats_report()
[all …]
Dgve_adminq.c36 void gve_parse_device_option(struct gve_priv *priv, in gve_parse_device_option()
161 gve_process_device_options(struct gve_priv *priv, in gve_process_device_options()
195 int gve_adminq_alloc(struct device *dev, struct gve_priv *priv) in gve_adminq_alloc()
228 void gve_adminq_release(struct gve_priv *priv) in gve_adminq_release()
249 void gve_adminq_free(struct device *dev, struct gve_priv *priv) in gve_adminq_free()
258 static void gve_adminq_kick_cmd(struct gve_priv *priv, u32 prod_cnt) in gve_adminq_kick_cmd()
263 static bool gve_adminq_wait_for_cmd(struct gve_priv *priv, u32 prod_cnt) in gve_adminq_wait_for_cmd()
277 static int gve_adminq_parse_err(struct gve_priv *priv, u32 status) in gve_adminq_parse_err()
321 static int gve_adminq_kick_and_wait(struct gve_priv *priv) in gve_adminq_kick_and_wait()
354 static int gve_adminq_issue_cmd(struct gve_priv *priv, in gve_adminq_issue_cmd()
[all …]
Dgve_utils.h14 void gve_tx_remove_from_block(struct gve_priv *priv, int queue_idx);
15 void gve_tx_add_to_block(struct gve_priv *priv, int queue_idx);
17 void gve_rx_remove_from_block(struct gve_priv *priv, int queue_idx);
18 void gve_rx_add_to_block(struct gve_priv *priv, int queue_idx);
Dgve_ethtool.c16 struct gve_priv *priv = netdev_priv(netdev); in gve_get_drvinfo()
25 struct gve_priv *priv = netdev_priv(netdev); in gve_set_msglevel()
32 struct gve_priv *priv = netdev_priv(netdev); in gve_get_msglevel()
91 struct gve_priv *priv = netdev_priv(netdev); in gve_get_strings()
137 struct gve_priv *priv = netdev_priv(netdev); in gve_get_sset_count()
166 struct gve_priv *priv; in gve_get_ethtool_stats()
423 struct gve_priv *priv = netdev_priv(netdev); in gve_get_channels()
438 struct gve_priv *priv = netdev_priv(netdev); in gve_set_channels()
477 struct gve_priv *priv = netdev_priv(netdev); in gve_get_ringparam()
487 struct gve_priv *priv = netdev_priv(netdev); in gve_user_reset()
[all …]
Dgve_utils.c11 void gve_tx_remove_from_block(struct gve_priv *priv, int queue_idx) in gve_tx_remove_from_block()
19 void gve_tx_add_to_block(struct gve_priv *priv, int queue_idx) in gve_tx_add_to_block()
33 void gve_rx_remove_from_block(struct gve_priv *priv, int queue_idx) in gve_rx_remove_from_block()
41 void gve_rx_add_to_block(struct gve_priv *priv, int queue_idx) in gve_rx_add_to_block()
Dgve_tx.c16 static inline void gve_tx_put_doorbell(struct gve_priv *priv, in gve_tx_put_doorbell()
23 void gve_xdp_tx_flush(struct gve_priv *priv, u32 xdp_qid) in gve_xdp_tx_flush()
39 static int gve_tx_fifo_init(struct gve_priv *priv, struct gve_tx_fifo *fifo) in gve_tx_fifo_init()
55 static void gve_tx_fifo_release(struct gve_priv *priv, struct gve_tx_fifo *fifo) in gve_tx_fifo_release()
157 static int gve_clean_xdp_done(struct gve_priv *priv, struct gve_tx_ring *tx, in gve_clean_xdp_done()
196 static int gve_clean_tx_done(struct gve_priv *priv, struct gve_tx_ring *tx,
199 static void gve_tx_free_ring(struct gve_priv *priv, int idx) in gve_tx_free_ring()
235 static int gve_tx_alloc_ring(struct gve_priv *priv, int idx) in gve_tx_alloc_ring()
303 int gve_tx_alloc_rings(struct gve_priv *priv, int start_id, int num_rings) in gve_tx_alloc_rings()
327 void gve_tx_free_rings_gqi(struct gve_priv *priv, int start_id, int num_rings) in gve_tx_free_rings_gqi()
[all …]
Dgve_rx_dqo.c24 static void gve_free_page_dqo(struct gve_priv *priv, in gve_free_page_dqo()
167 struct gve_priv *priv = rx->gve; in gve_alloc_page_dqo()
202 static void gve_rx_free_ring_dqo(struct gve_priv *priv, int idx) in gve_rx_free_ring_dqo()
254 static int gve_rx_alloc_ring_dqo(struct gve_priv *priv, int idx) in gve_rx_alloc_ring_dqo()
332 void gve_rx_write_doorbell_dqo(const struct gve_priv *priv, int queue_idx) in gve_rx_write_doorbell_dqo()
340 int gve_rx_alloc_rings_dqo(struct gve_priv *priv) in gve_rx_alloc_rings_dqo()
364 void gve_rx_free_rings_dqo(struct gve_priv *priv) in gve_rx_free_rings_dqo()
376 struct gve_priv *priv = rx->gve; in gve_rx_post_buffers_dqo()
419 static void gve_try_recycle_buf(struct gve_priv *priv, struct gve_rx_ring *rx, in gve_try_recycle_buf()
562 struct gve_priv *priv) in gve_rx_append_frags()
[all …]
Dgve_rx.c26 static void gve_rx_unfill_pages(struct gve_priv *priv, struct gve_rx_ring *rx) in gve_rx_unfill_pages()
52 static void gve_rx_free_ring(struct gve_priv *priv, int idx) in gve_rx_free_ring()
94 static int gve_rx_alloc_buffer(struct gve_priv *priv, struct device *dev, in gve_rx_alloc_buffer()
113 struct gve_priv *priv = rx->gve; in gve_prefill_rx_pages()
210 static int gve_rx_alloc_ring(struct gve_priv *priv, int idx) in gve_rx_alloc_ring()
315 int gve_rx_alloc_rings(struct gve_priv *priv) in gve_rx_alloc_rings()
339 void gve_rx_free_rings_gqi(struct gve_priv *priv) in gve_rx_free_rings_gqi()
347 void gve_rx_write_doorbell(struct gve_priv *priv, struct gve_rx_ring *rx) in gve_rx_write_doorbell()
565 static struct sk_buff *gve_rx_skb(struct gve_priv *priv, struct gve_rx_ring *rx, in gve_rx_skb()
669 static void gve_xdp_done(struct gve_priv *priv, struct gve_rx_ring *rx, in gve_xdp_done()
[all …]
Dgve_tx_dqo.c191 static void gve_tx_free_ring_dqo(struct gve_priv *priv, int idx) in gve_tx_free_ring_dqo()
256 static int gve_tx_alloc_ring_dqo(struct gve_priv *priv, int idx) in gve_tx_alloc_ring_dqo()
348 int gve_tx_alloc_rings_dqo(struct gve_priv *priv) in gve_tx_alloc_rings_dqo()
372 void gve_tx_free_rings_dqo(struct gve_priv *priv) in gve_tx_free_rings_dqo()
851 static int gve_try_tx_skb(struct gve_priv *priv, struct gve_tx_ring *tx, in gve_try_tx_skb()
922 struct gve_priv *priv = netdev_priv(dev); in gve_tx_dqo()
1003 static void gve_handle_packet_completion(struct gve_priv *priv, in gve_handle_packet_completion()
1067 static void gve_handle_miss_completion(struct gve_priv *priv, in gve_handle_miss_completion()
1100 static void remove_miss_completions(struct gve_priv *priv, in remove_miss_completions()
1147 static void remove_timed_out_completions(struct gve_priv *priv, in remove_timed_out_completions()
[all …]