Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/net/ethernet/google/gve/
Dgve.h85 struct gve_priv;
160 struct gve_priv *gve;
448 struct gve_priv *priv;
494 struct gve_priv { struct
611 static inline bool gve_get_do_reset(struct gve_priv *priv) in gve_get_do_reset() argument
616 static inline void gve_set_do_reset(struct gve_priv *priv) in gve_set_do_reset()
621 static inline void gve_clear_do_reset(struct gve_priv *priv) in gve_clear_do_reset()
626 static inline bool gve_get_reset_in_progress(struct gve_priv *priv) in gve_get_reset_in_progress()
632 static inline void gve_set_reset_in_progress(struct gve_priv *priv) in gve_set_reset_in_progress()
637 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.h355 int gve_adminq_alloc(struct device *dev, struct gve_priv *priv);
356 void gve_adminq_free(struct device *dev, struct gve_priv *priv);
357 void gve_adminq_release(struct gve_priv *priv);
358 int gve_adminq_describe_device(struct gve_priv *priv);
359 int gve_adminq_configure_device_resources(struct gve_priv *priv,
364 int gve_adminq_deconfigure_device_resources(struct gve_priv *priv);
365 int gve_adminq_create_tx_queues(struct gve_priv *priv, u32 num_queues);
366 int gve_adminq_destroy_tx_queues(struct gve_priv *priv, u32 queue_id);
367 int gve_adminq_create_rx_queues(struct gve_priv *priv, u32 num_queues);
368 int gve_adminq_destroy_rx_queues(struct gve_priv *priv, u32 queue_id);
[all …]
Dgve_main.c35 struct gve_priv *priv = netdev_priv(dev); in gve_start_xmit()
45 struct gve_priv *priv = netdev_priv(dev); in gve_get_stats()
78 static int gve_alloc_counter_array(struct gve_priv *priv) in gve_alloc_counter_array()
91 static void gve_free_counter_array(struct gve_priv *priv) in gve_free_counter_array()
106 struct gve_priv *priv = container_of(work, struct gve_priv, in gve_stats_report_task()
114 static void gve_stats_report_schedule(struct gve_priv *priv) in gve_stats_report_schedule()
125 struct gve_priv *priv = from_timer(priv, t, stats_report_timer); in gve_stats_report_timer()
133 static int gve_alloc_stats_report(struct gve_priv *priv) in gve_alloc_stats_report()
154 static void gve_free_stats_report(struct gve_priv *priv) in gve_free_stats_report()
167 struct gve_priv *priv = arg; in gve_mgmnt_intr()
[all …]
Dgve_adminq.c36 void gve_parse_device_option(struct gve_priv *priv, in gve_parse_device_option()
144 gve_process_device_options(struct gve_priv *priv, in gve_process_device_options()
176 int gve_adminq_alloc(struct device *dev, struct gve_priv *priv) in gve_adminq_alloc()
209 void gve_adminq_release(struct gve_priv *priv) in gve_adminq_release()
230 void gve_adminq_free(struct device *dev, struct gve_priv *priv) in gve_adminq_free()
239 static void gve_adminq_kick_cmd(struct gve_priv *priv, u32 prod_cnt) in gve_adminq_kick_cmd()
244 static bool gve_adminq_wait_for_cmd(struct gve_priv *priv, u32 prod_cnt) in gve_adminq_wait_for_cmd()
258 static int gve_adminq_parse_err(struct gve_priv *priv, u32 status) in gve_adminq_parse_err()
302 static int gve_adminq_kick_and_wait(struct gve_priv *priv) in gve_adminq_kick_and_wait()
335 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()
81 struct gve_priv *priv = netdev_priv(netdev); in gve_get_strings()
125 struct gve_priv *priv = netdev_priv(netdev); in gve_get_sset_count()
152 struct gve_priv *priv; in gve_get_ethtool_stats()
382 struct gve_priv *priv = netdev_priv(netdev); in gve_get_channels()
397 struct gve_priv *priv = netdev_priv(netdev); in gve_set_channels()
430 struct gve_priv *priv = netdev_priv(netdev); in gve_get_ringparam()
440 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.c15 static inline void gve_tx_put_doorbell(struct gve_priv *priv, in gve_tx_put_doorbell()
30 static int gve_tx_fifo_init(struct gve_priv *priv, struct gve_tx_fifo *fifo) in gve_tx_fifo_init()
46 static void gve_tx_fifo_release(struct gve_priv *priv, struct gve_tx_fifo *fifo) in gve_tx_fifo_release()
135 static int gve_clean_tx_done(struct gve_priv *priv, struct gve_tx_ring *tx,
138 static void gve_tx_free_ring(struct gve_priv *priv, int idx) in gve_tx_free_ring()
170 static int gve_tx_alloc_ring(struct gve_priv *priv, int idx) in gve_tx_alloc_ring()
236 int gve_tx_alloc_rings(struct gve_priv *priv) in gve_tx_alloc_rings()
260 void gve_tx_free_rings_gqi(struct gve_priv *priv) in gve_tx_free_rings_gqi()
338 static int gve_maybe_stop_tx(struct gve_priv *priv, struct gve_tx_ring *tx, in gve_maybe_stop_tx()
440 static int gve_tx_add_skb_copy(struct gve_priv *priv, struct gve_tx_ring *tx, struct sk_buff *skb) in gve_tx_add_skb_copy()
[all …]
Dgve_rx.c23 static void gve_rx_unfill_pages(struct gve_priv *priv, struct gve_rx_ring *rx) in gve_rx_unfill_pages()
43 static void gve_rx_free_ring(struct gve_priv *priv, int idx) in gve_rx_free_ring()
81 static int gve_rx_alloc_buffer(struct gve_priv *priv, struct device *dev, in gve_rx_alloc_buffer()
100 struct gve_priv *priv = rx->gve; in gve_prefill_rx_pages()
157 static int gve_rx_alloc_ring(struct gve_priv *priv, int idx) in gve_rx_alloc_ring()
247 int gve_rx_alloc_rings(struct gve_priv *priv) in gve_rx_alloc_rings()
271 void gve_rx_free_rings_gqi(struct gve_priv *priv) in gve_rx_free_rings_gqi()
279 void gve_rx_write_doorbell(struct gve_priv *priv, struct gve_rx_ring *rx) in gve_rx_write_doorbell()
412 struct gve_priv *priv = rx->gve; in gve_rx_ctx_init()
488 static struct sk_buff *gve_rx_skb(struct gve_priv *priv, struct gve_rx_ring *rx, in gve_rx_skb()
[all …]
Dgve_rx_dqo.c24 static void gve_free_page_dqo(struct gve_priv *priv, in gve_free_page_dqo()
154 static int gve_alloc_page_dqo(struct gve_priv *priv, in gve_alloc_page_dqo()
176 static void gve_rx_free_ring_dqo(struct gve_priv *priv, int idx) in gve_rx_free_ring_dqo()
224 static int gve_rx_alloc_ring_dqo(struct gve_priv *priv, int idx) in gve_rx_alloc_ring_dqo()
292 void gve_rx_write_doorbell_dqo(const struct gve_priv *priv, int queue_idx) in gve_rx_write_doorbell_dqo()
300 int gve_rx_alloc_rings_dqo(struct gve_priv *priv) in gve_rx_alloc_rings_dqo()
324 void gve_rx_free_rings_dqo(struct gve_priv *priv) in gve_rx_free_rings_dqo()
336 struct gve_priv *priv = rx->gve; in gve_rx_post_buffers_dqo()
379 static void gve_try_recycle_buf(struct gve_priv *priv, struct gve_rx_ring *rx, in gve_try_recycle_buf()
484 struct gve_priv *priv) in gve_rx_append_frags()
[all …]
Dgve_tx_dqo.c107 static void gve_tx_free_ring_dqo(struct gve_priv *priv, int idx) in gve_tx_free_ring_dqo()
141 static int gve_tx_alloc_ring_dqo(struct gve_priv *priv, int idx) in gve_tx_alloc_ring_dqo()
222 int gve_tx_alloc_rings_dqo(struct gve_priv *priv) in gve_tx_alloc_rings_dqo()
246 void gve_tx_free_rings_dqo(struct gve_priv *priv) in gve_tx_free_rings_dqo()
632 static int gve_try_tx_skb(struct gve_priv *priv, struct gve_tx_ring *tx, in gve_try_tx_skb()
684 struct gve_priv *priv = netdev_priv(dev); in gve_tx_dqo()
765 static void gve_handle_packet_completion(struct gve_priv *priv, in gve_handle_packet_completion()
825 static void gve_handle_miss_completion(struct gve_priv *priv, in gve_handle_miss_completion()
858 static void remove_miss_completions(struct gve_priv *priv, in remove_miss_completions()
901 static void remove_timed_out_completions(struct gve_priv *priv, in remove_timed_out_completions()
[all …]