Lines Matching refs:gve_priv
129 struct gve_priv;
216 struct gve_priv *gve;
615 struct gve_priv *priv;
719 struct gve_priv { struct
859 static inline bool gve_get_do_reset(struct gve_priv *priv) in gve_get_do_reset() argument
864 static inline void gve_set_do_reset(struct gve_priv *priv) in gve_set_do_reset()
869 static inline void gve_clear_do_reset(struct gve_priv *priv) in gve_clear_do_reset()
874 static inline bool gve_get_reset_in_progress(struct gve_priv *priv) in gve_get_reset_in_progress()
880 static inline void gve_set_reset_in_progress(struct gve_priv *priv) in gve_set_reset_in_progress()
885 static inline void gve_clear_reset_in_progress(struct gve_priv *priv) in gve_clear_reset_in_progress()
890 static inline bool gve_get_probe_in_progress(struct gve_priv *priv) in gve_get_probe_in_progress()
896 static inline void gve_set_probe_in_progress(struct gve_priv *priv) in gve_set_probe_in_progress()
901 static inline void gve_clear_probe_in_progress(struct gve_priv *priv) in gve_clear_probe_in_progress()
906 static inline bool gve_get_do_report_stats(struct gve_priv *priv) in gve_get_do_report_stats()
912 static inline void gve_set_do_report_stats(struct gve_priv *priv) in gve_set_do_report_stats()
917 static inline void gve_clear_do_report_stats(struct gve_priv *priv) in gve_clear_do_report_stats()
922 static inline bool gve_get_admin_queue_ok(struct gve_priv *priv) in gve_get_admin_queue_ok()
927 static inline void gve_set_admin_queue_ok(struct gve_priv *priv) in gve_set_admin_queue_ok()
932 static inline void gve_clear_admin_queue_ok(struct gve_priv *priv) in gve_clear_admin_queue_ok()
937 static inline bool gve_get_device_resources_ok(struct gve_priv *priv) in gve_get_device_resources_ok()
942 static inline void gve_set_device_resources_ok(struct gve_priv *priv) in gve_set_device_resources_ok()
947 static inline void gve_clear_device_resources_ok(struct gve_priv *priv) in gve_clear_device_resources_ok()
952 static inline bool gve_get_device_rings_ok(struct gve_priv *priv) in gve_get_device_rings_ok()
957 static inline void gve_set_device_rings_ok(struct gve_priv *priv) in gve_set_device_rings_ok()
962 static inline void gve_clear_device_rings_ok(struct gve_priv *priv) in gve_clear_device_rings_ok()
967 static inline bool gve_get_napi_enabled(struct gve_priv *priv) in gve_get_napi_enabled()
972 static inline void gve_set_napi_enabled(struct gve_priv *priv) in gve_set_napi_enabled()
977 static inline void gve_clear_napi_enabled(struct gve_priv *priv) in gve_clear_napi_enabled()
982 static inline bool gve_get_report_stats(struct gve_priv *priv) in gve_get_report_stats()
987 static inline void gve_clear_report_stats(struct gve_priv *priv) in gve_clear_report_stats()
994 static inline __be32 __iomem *gve_irq_doorbell(struct gve_priv *priv, in gve_irq_doorbell()
1002 static inline u32 gve_tx_idx_to_ntfy(struct gve_priv *priv, u32 queue_idx) in gve_tx_idx_to_ntfy()
1009 static inline u32 gve_rx_idx_to_ntfy(struct gve_priv *priv, u32 queue_idx) in gve_rx_idx_to_ntfy()
1014 static inline bool gve_is_qpl(struct gve_priv *priv) in gve_is_qpl()
1032 static inline u32 gve_num_xdp_qpls(struct gve_priv *priv) in gve_num_xdp_qpls()
1049 static inline u32 gve_tx_qpl_id(struct gve_priv *priv, int tx_qid) in gve_tx_qpl_id()
1054 static inline u32 gve_rx_qpl_id(struct gve_priv *priv, int rx_qid) in gve_rx_qpl_id()
1064 static inline u32 gve_tx_start_qpl_id(struct gve_priv *priv) in gve_tx_start_qpl_id()
1083 static inline enum dma_data_direction gve_qpl_dma_dir(struct gve_priv *priv, in gve_qpl_dma_dir()
1092 static inline bool gve_is_gqi(struct gve_priv *priv) in gve_is_gqi()
1098 static inline u32 gve_num_tx_queues(struct gve_priv *priv) in gve_num_tx_queues()
1103 static inline u32 gve_xdp_tx_queue_id(struct gve_priv *priv, u32 queue_id) in gve_xdp_tx_queue_id()
1108 static inline u32 gve_xdp_tx_start_queue_id(struct gve_priv *priv) in gve_xdp_tx_start_queue_id()
1117 int gve_alloc_page(struct gve_priv *priv, struct device *dev,
1123 struct gve_queue_page_list *gve_alloc_queue_page_list(struct gve_priv *priv,
1125 void gve_free_queue_page_list(struct gve_priv *priv,
1132 int gve_xdp_xmit_one(struct gve_priv *priv, struct gve_tx_ring *tx,
1134 void gve_xdp_tx_flush(struct gve_priv *priv, u32 xdp_qid);
1137 int gve_tx_alloc_rings_gqi(struct gve_priv *priv,
1139 void gve_tx_free_rings_gqi(struct gve_priv *priv,
1141 void gve_tx_start_ring_gqi(struct gve_priv *priv, int idx);
1142 void gve_tx_stop_ring_gqi(struct gve_priv *priv, int idx);
1143 u32 gve_tx_load_event_counter(struct gve_priv *priv,
1145 bool gve_tx_clean_pending(struct gve_priv *priv, struct gve_tx_ring *tx);
1147 void gve_rx_write_doorbell(struct gve_priv *priv, struct gve_rx_ring *rx);
1150 int gve_rx_alloc_ring_gqi(struct gve_priv *priv,
1154 void gve_rx_free_ring_gqi(struct gve_priv *priv, struct gve_rx_ring *rx,
1156 int gve_rx_alloc_rings_gqi(struct gve_priv *priv,
1158 void gve_rx_free_rings_gqi(struct gve_priv *priv,
1160 void gve_rx_start_ring_gqi(struct gve_priv *priv, int idx);
1161 void gve_rx_stop_ring_gqi(struct gve_priv *priv, int idx);
1162 u16 gve_get_pkt_buf_size(const struct gve_priv *priv, bool enable_hplit);
1163 bool gve_header_split_supported(const struct gve_priv *priv);
1164 int gve_set_hsplit_config(struct gve_priv *priv, u8 tcp_data_split);
1166 void gve_schedule_reset(struct gve_priv *priv);
1167 int gve_reset(struct gve_priv *priv, bool attempt_teardown);
1168 void gve_get_curr_alloc_cfgs(struct gve_priv *priv,
1171 int gve_adjust_config(struct gve_priv *priv,
1174 int gve_adjust_queues(struct gve_priv *priv,
1178 int gve_get_flow_rule_entry(struct gve_priv *priv, struct ethtool_rxnfc *cmd);
1179 int gve_get_flow_rule_ids(struct gve_priv *priv, struct ethtool_rxnfc *cmd, u32 *rule_locs);
1180 int gve_add_flow_rule(struct gve_priv *priv, struct ethtool_rxnfc *cmd);
1181 int gve_del_flow_rule(struct gve_priv *priv, struct ethtool_rxnfc *cmd);
1182 int gve_flow_rules_reset(struct gve_priv *priv);
1184 void gve_handle_report_stats(struct gve_priv *priv);