Lines Matching refs:gve_priv
133 struct gve_priv;
220 struct gve_priv *gve;
621 struct gve_priv *priv;
725 struct gve_priv { struct
865 static inline bool gve_get_do_reset(struct gve_priv *priv) in gve_get_do_reset() argument
870 static inline void gve_set_do_reset(struct gve_priv *priv) in gve_set_do_reset()
875 static inline void gve_clear_do_reset(struct gve_priv *priv) in gve_clear_do_reset()
880 static inline bool gve_get_reset_in_progress(struct gve_priv *priv) in gve_get_reset_in_progress()
886 static inline void gve_set_reset_in_progress(struct gve_priv *priv) in gve_set_reset_in_progress()
891 static inline void gve_clear_reset_in_progress(struct gve_priv *priv) in gve_clear_reset_in_progress()
896 static inline bool gve_get_probe_in_progress(struct gve_priv *priv) in gve_get_probe_in_progress()
902 static inline void gve_set_probe_in_progress(struct gve_priv *priv) in gve_set_probe_in_progress()
907 static inline void gve_clear_probe_in_progress(struct gve_priv *priv) in gve_clear_probe_in_progress()
912 static inline bool gve_get_do_report_stats(struct gve_priv *priv) in gve_get_do_report_stats()
918 static inline void gve_set_do_report_stats(struct gve_priv *priv) in gve_set_do_report_stats()
923 static inline void gve_clear_do_report_stats(struct gve_priv *priv) in gve_clear_do_report_stats()
928 static inline bool gve_get_admin_queue_ok(struct gve_priv *priv) in gve_get_admin_queue_ok()
933 static inline void gve_set_admin_queue_ok(struct gve_priv *priv) in gve_set_admin_queue_ok()
938 static inline void gve_clear_admin_queue_ok(struct gve_priv *priv) in gve_clear_admin_queue_ok()
943 static inline bool gve_get_device_resources_ok(struct gve_priv *priv) in gve_get_device_resources_ok()
948 static inline void gve_set_device_resources_ok(struct gve_priv *priv) in gve_set_device_resources_ok()
953 static inline void gve_clear_device_resources_ok(struct gve_priv *priv) in gve_clear_device_resources_ok()
958 static inline bool gve_get_device_rings_ok(struct gve_priv *priv) in gve_get_device_rings_ok()
963 static inline void gve_set_device_rings_ok(struct gve_priv *priv) in gve_set_device_rings_ok()
968 static inline void gve_clear_device_rings_ok(struct gve_priv *priv) in gve_clear_device_rings_ok()
973 static inline bool gve_get_napi_enabled(struct gve_priv *priv) in gve_get_napi_enabled()
978 static inline void gve_set_napi_enabled(struct gve_priv *priv) in gve_set_napi_enabled()
983 static inline void gve_clear_napi_enabled(struct gve_priv *priv) in gve_clear_napi_enabled()
988 static inline bool gve_get_report_stats(struct gve_priv *priv) in gve_get_report_stats()
993 static inline void gve_clear_report_stats(struct gve_priv *priv) in gve_clear_report_stats()
1000 static inline __be32 __iomem *gve_irq_doorbell(struct gve_priv *priv, in gve_irq_doorbell()
1008 static inline u32 gve_tx_idx_to_ntfy(struct gve_priv *priv, u32 queue_idx) in gve_tx_idx_to_ntfy()
1015 static inline u32 gve_rx_idx_to_ntfy(struct gve_priv *priv, u32 queue_idx) in gve_rx_idx_to_ntfy()
1020 static inline bool gve_is_qpl(struct gve_priv *priv) in gve_is_qpl()
1038 static inline u32 gve_num_xdp_qpls(struct gve_priv *priv) in gve_num_xdp_qpls()
1055 static inline u32 gve_tx_qpl_id(struct gve_priv *priv, int tx_qid) in gve_tx_qpl_id()
1060 static inline u32 gve_rx_qpl_id(struct gve_priv *priv, int rx_qid) in gve_rx_qpl_id()
1070 static inline u32 gve_tx_start_qpl_id(struct gve_priv *priv) in gve_tx_start_qpl_id()
1089 static inline enum dma_data_direction gve_qpl_dma_dir(struct gve_priv *priv, in gve_qpl_dma_dir()
1098 static inline bool gve_is_gqi(struct gve_priv *priv) in gve_is_gqi()
1104 static inline u32 gve_num_tx_queues(struct gve_priv *priv) in gve_num_tx_queues()
1109 static inline u32 gve_xdp_tx_queue_id(struct gve_priv *priv, u32 queue_id) in gve_xdp_tx_queue_id()
1114 static inline u32 gve_xdp_tx_start_queue_id(struct gve_priv *priv) in gve_xdp_tx_start_queue_id()
1123 int gve_alloc_page(struct gve_priv *priv, struct device *dev,
1129 struct gve_queue_page_list *gve_alloc_queue_page_list(struct gve_priv *priv,
1131 void gve_free_queue_page_list(struct gve_priv *priv,
1138 int gve_xdp_xmit_one(struct gve_priv *priv, struct gve_tx_ring *tx,
1140 void gve_xdp_tx_flush(struct gve_priv *priv, u32 xdp_qid);
1144 int gve_tx_alloc_rings_gqi(struct gve_priv *priv,
1146 void gve_tx_free_rings_gqi(struct gve_priv *priv,
1148 void gve_tx_start_ring_gqi(struct gve_priv *priv, int idx);
1149 void gve_tx_stop_ring_gqi(struct gve_priv *priv, int idx);
1150 u32 gve_tx_load_event_counter(struct gve_priv *priv,
1152 bool gve_tx_clean_pending(struct gve_priv *priv, struct gve_tx_ring *tx);
1154 void gve_rx_write_doorbell(struct gve_priv *priv, struct gve_rx_ring *rx);
1157 int gve_rx_alloc_ring_gqi(struct gve_priv *priv,
1161 void gve_rx_free_ring_gqi(struct gve_priv *priv, struct gve_rx_ring *rx,
1163 int gve_rx_alloc_rings_gqi(struct gve_priv *priv,
1165 void gve_rx_free_rings_gqi(struct gve_priv *priv,
1167 void gve_rx_start_ring_gqi(struct gve_priv *priv, int idx);
1168 void gve_rx_stop_ring_gqi(struct gve_priv *priv, int idx);
1169 u16 gve_get_pkt_buf_size(const struct gve_priv *priv, bool enable_hplit);
1170 bool gve_header_split_supported(const struct gve_priv *priv);
1171 int gve_set_hsplit_config(struct gve_priv *priv, u8 tcp_data_split);
1174 void gve_free_page_dqo(struct gve_priv *priv, struct gve_rx_buf_state_dqo *bs,
1186 void gve_try_recycle_buf(struct gve_priv *priv, struct gve_rx_ring *rx,
1199 struct page_pool *gve_rx_create_page_pool(struct gve_priv *priv,
1203 void gve_schedule_reset(struct gve_priv *priv);
1204 int gve_reset(struct gve_priv *priv, bool attempt_teardown);
1205 void gve_get_curr_alloc_cfgs(struct gve_priv *priv,
1208 int gve_adjust_config(struct gve_priv *priv,
1211 int gve_adjust_queues(struct gve_priv *priv,
1215 int gve_get_flow_rule_entry(struct gve_priv *priv, struct ethtool_rxnfc *cmd);
1216 int gve_get_flow_rule_ids(struct gve_priv *priv, struct ethtool_rxnfc *cmd, u32 *rule_locs);
1217 int gve_add_flow_rule(struct gve_priv *priv, struct ethtool_rxnfc *cmd);
1218 int gve_del_flow_rule(struct gve_priv *priv, struct ethtool_rxnfc *cmd);
1219 int gve_flow_rules_reset(struct gve_priv *priv);
1221 void gve_handle_report_stats(struct gve_priv *priv);