Lines Matching defs:priv
42 static int gve_verify_driver_compatibility(struct gve_priv *priv) in gve_verify_driver_compatibility()
89 struct gve_priv *priv = netdev_priv(dev); in gve_features_check() local
99 struct gve_priv *priv = netdev_priv(dev); in gve_start_xmit() local
109 struct gve_priv *priv = netdev_priv(dev); in gve_get_stats() local
144 static int gve_alloc_flow_rule_caches(struct gve_priv *priv) in gve_alloc_flow_rule_caches()
177 static void gve_free_flow_rule_caches(struct gve_priv *priv) in gve_free_flow_rule_caches()
187 static int gve_alloc_counter_array(struct gve_priv *priv) in gve_alloc_counter_array()
200 static void gve_free_counter_array(struct gve_priv *priv) in gve_free_counter_array()
215 struct gve_priv *priv = container_of(work, struct gve_priv, in gve_stats_report_task() local
223 static void gve_stats_report_schedule(struct gve_priv *priv) in gve_stats_report_schedule()
234 struct gve_priv *priv = from_timer(priv, t, stats_report_timer); in gve_stats_report_timer() local
242 static int gve_alloc_stats_report(struct gve_priv *priv) in gve_alloc_stats_report()
263 static void gve_free_stats_report(struct gve_priv *priv) in gve_free_stats_report()
276 struct gve_priv *priv = arg; in gve_mgmnt_intr() local
285 struct gve_priv *priv = block->priv; in gve_intr() local
301 static int gve_is_napi_on_home_cpu(struct gve_priv *priv, u32 irq) in gve_is_napi_on_home_cpu()
318 struct gve_priv *priv; in gve_napi_poll() local
367 struct gve_priv *priv = block->priv; in gve_napi_poll_dqo() local
414 static int gve_alloc_notify_blocks(struct gve_priv *priv) in gve_alloc_notify_blocks()
534 static void gve_free_notify_blocks(struct gve_priv *priv) in gve_free_notify_blocks()
563 static int gve_setup_device_resources(struct gve_priv *priv) in gve_setup_device_resources()
632 static void gve_teardown_device_resources(struct gve_priv *priv) in gve_teardown_device_resources()
670 static int gve_unregister_qpl(struct gve_priv *priv, in gve_unregister_qpl()
690 static int gve_register_qpl(struct gve_priv *priv, in gve_register_qpl()
721 static struct gve_queue_page_list *gve_tx_get_qpl(struct gve_priv *priv, int idx) in gve_tx_get_qpl()
731 static struct gve_queue_page_list *gve_rx_get_qpl(struct gve_priv *priv, int idx) in gve_rx_get_qpl()
741 static int gve_register_xdp_qpls(struct gve_priv *priv) in gve_register_xdp_qpls()
757 static int gve_register_qpls(struct gve_priv *priv) in gve_register_qpls()
782 static int gve_unregister_xdp_qpls(struct gve_priv *priv) in gve_unregister_xdp_qpls()
798 static int gve_unregister_qpls(struct gve_priv *priv) in gve_unregister_qpls()
824 static int gve_create_xdp_rings(struct gve_priv *priv) in gve_create_xdp_rings()
845 static int gve_create_rings(struct gve_priv *priv) in gve_create_rings()
894 static void init_xdp_sync_stats(struct gve_priv *priv) in init_xdp_sync_stats()
908 static void gve_init_sync_stats(struct gve_priv *priv) in gve_init_sync_stats()
922 static void gve_tx_get_curr_alloc_cfg(struct gve_priv *priv, in gve_tx_get_curr_alloc_cfg()
933 static void gve_tx_stop_rings(struct gve_priv *priv, int start_id, int num_rings) in gve_tx_stop_rings()
948 static void gve_tx_start_rings(struct gve_priv *priv, int start_id, in gve_tx_start_rings()
961 static int gve_alloc_xdp_rings(struct gve_priv *priv) in gve_alloc_xdp_rings()
983 static int gve_queues_mem_alloc(struct gve_priv *priv, in gve_queues_mem_alloc()
1013 static int gve_destroy_xdp_rings(struct gve_priv *priv) in gve_destroy_xdp_rings()
1033 static int gve_destroy_rings(struct gve_priv *priv) in gve_destroy_rings()
1057 static void gve_free_xdp_rings(struct gve_priv *priv) in gve_free_xdp_rings()
1071 static void gve_queues_mem_free(struct gve_priv *priv, in gve_queues_mem_free()
1084 int gve_alloc_page(struct gve_priv *priv, struct device *dev, in gve_alloc_page()
1102 struct gve_queue_page_list *gve_alloc_queue_page_list(struct gve_priv *priv, in gve_alloc_queue_page_list()
1148 void gve_free_queue_page_list(struct gve_priv *priv, in gve_free_queue_page_list()
1178 void gve_schedule_reset(struct gve_priv *priv) in gve_schedule_reset()
1189 static int gve_reg_xdp_info(struct gve_priv *priv, struct net_device *dev) in gve_reg_xdp_info()
1244 static void gve_unreg_xdp_info(struct gve_priv *priv) in gve_unreg_xdp_info()
1267 static void gve_drain_page_cache(struct gve_priv *priv) in gve_drain_page_cache()
1275 static void gve_rx_get_curr_alloc_cfg(struct gve_priv *priv, in gve_rx_get_curr_alloc_cfg()
1289 void gve_get_curr_alloc_cfgs(struct gve_priv *priv, in gve_get_curr_alloc_cfgs()
1297 static void gve_rx_start_ring(struct gve_priv *priv, int i) in gve_rx_start_ring()
1305 static void gve_rx_start_rings(struct gve_priv *priv, int num_rings) in gve_rx_start_rings()
1313 static void gve_rx_stop_ring(struct gve_priv *priv, int i) in gve_rx_stop_ring()
1321 static void gve_rx_stop_rings(struct gve_priv *priv, int num_rings) in gve_rx_stop_rings()
1332 static void gve_queues_mem_remove(struct gve_priv *priv) in gve_queues_mem_remove()
1346 static int gve_queues_start(struct gve_priv *priv, in gve_queues_start()
1425 struct gve_priv *priv = netdev_priv(dev); in gve_open() local
1444 static int gve_queues_stop(struct gve_priv *priv) in gve_queues_stop()
1483 struct gve_priv *priv = netdev_priv(dev); in gve_close() local
1494 static int gve_remove_xdp_queues(struct gve_priv *priv) in gve_remove_xdp_queues()
1513 static int gve_add_xdp_queues(struct gve_priv *priv) in gve_add_xdp_queues()
1544 static void gve_handle_link_status(struct gve_priv *priv, bool link_status) in gve_handle_link_status()
1561 static int gve_set_xdp(struct gve_priv *priv, struct bpf_prog *prog, in gve_set_xdp()
1605 struct gve_priv *priv = netdev_priv(dev); in gve_xsk_pool_enable() local
1660 struct gve_priv *priv = netdev_priv(dev); in gve_xsk_pool_disable() local
1711 struct gve_priv *priv = netdev_priv(dev); in gve_xsk_wakeup() local
1737 struct gve_priv *priv = netdev_priv(dev); in verify_xdp_configuration() local
1769 struct gve_priv *priv = netdev_priv(dev); in gve_xdp() local
1788 int gve_flow_rules_reset(struct gve_priv *priv) in gve_flow_rules_reset()
1796 int gve_adjust_config(struct gve_priv *priv, in gve_adjust_config()
1834 int gve_adjust_queues(struct gve_priv *priv, in gve_adjust_queues()
1861 static void gve_turndown(struct gve_priv *priv) in gve_turndown()
1896 static void gve_turnup(struct gve_priv *priv) in gve_turnup()
1952 static void gve_turnup_and_check_status(struct gve_priv *priv) in gve_turnup_and_check_status()
1965 struct gve_priv *priv; in gve_tx_timeout() local
2007 u16 gve_get_pkt_buf_size(const struct gve_priv *priv, bool enable_hsplit) in gve_get_pkt_buf_size()
2016 bool gve_header_split_supported(const struct gve_priv *priv) in gve_header_split_supported()
2021 int gve_set_hsplit_config(struct gve_priv *priv, u8 tcp_data_split) in gve_set_hsplit_config()
2060 struct gve_priv *priv = netdev_priv(netdev); in gve_set_features() local
2099 static void gve_handle_status(struct gve_priv *priv, u32 status) in gve_handle_status()
2111 static void gve_handle_reset(struct gve_priv *priv) in gve_handle_reset()
2127 void gve_handle_report_stats(struct gve_priv *priv) in gve_handle_report_stats()
2206 struct gve_priv *priv = container_of(work, struct gve_priv, in gve_service_task() local
2216 static void gve_set_netdev_xdp_features(struct gve_priv *priv) in gve_set_netdev_xdp_features()
2228 static int gve_init_priv(struct gve_priv *priv, bool skip_describe_device) in gve_init_priv()
2320 static void gve_teardown_priv_resources(struct gve_priv *priv) in gve_teardown_priv_resources()
2326 static void gve_trigger_reset(struct gve_priv *priv) in gve_trigger_reset()
2332 static void gve_reset_and_teardown(struct gve_priv *priv, bool was_up) in gve_reset_and_teardown()
2341 static int gve_reset_recovery(struct gve_priv *priv, bool was_up) in gve_reset_recovery()
2360 int gve_reset(struct gve_priv *priv, bool attempt_teardown) in gve_reset()
2415 struct gve_priv *priv = netdev_priv(dev); in gve_rx_queue_stop() local
2454 struct gve_priv *priv = netdev_priv(dev); in gve_rx_queue_mem_free() local
2470 struct gve_priv *priv = netdev_priv(dev); in gve_rx_queue_mem_alloc() local
2491 struct gve_priv *priv = netdev_priv(dev); in gve_rx_queue_start() local
2553 struct gve_priv *priv; in gve_probe() local
2685 struct gve_priv *priv = netdev_priv(netdev); in gve_remove() local
2702 struct gve_priv *priv = netdev_priv(netdev); in gve_shutdown() local
2720 struct gve_priv *priv = netdev_priv(netdev); in gve_suspend() local
2740 struct gve_priv *priv = netdev_priv(netdev); in gve_resume() local