Lines Matching defs:gve_priv

637 struct gve_priv {  struct
638 struct net_device *dev;
639 struct gve_tx_ring *tx; /* array of tx_cfg.num_queues */
640 struct gve_rx_ring *rx; /* array of rx_cfg.num_queues */
641 struct gve_queue_page_list *qpls; /* array of num qpls */
642 struct gve_notify_block *ntfy_blocks; /* array of num_ntfy_blks */
643 struct gve_irq_db *irq_db_indices; /* array of num_ntfy_blks */
644 dma_addr_t irq_db_indices_bus;
645 struct msix_entry *msix_vectors; /* array of num_ntfy_blks + 1 */
646 char mgmt_msix_name[IFNAMSIZ + 16];
647 u32 mgmt_msix_idx;
648 __be32 *counter_array; /* array of num_event_counters */
649 dma_addr_t counter_array_bus;
651 u16 num_event_counters;
652 u16 tx_desc_cnt; /* num desc per ring */
653 u16 rx_desc_cnt; /* num desc per ring */
654 u16 tx_pages_per_qpl; /* Suggested number of pages per qpl for TX queues by NIC */
655 u16 rx_pages_per_qpl; /* Suggested number of pages per qpl for RX queues by NIC */
656 u16 rx_data_slot_cnt; /* rx buffer length */
657 u64 max_registered_pages;
658 u64 num_registered_pages; /* num pages registered with NIC */
659 struct bpf_prog *xdp_prog; /* XDP BPF program */
660 u32 rx_copybreak; /* copy packets smaller than this */
661 u16 default_num_queues; /* default num queues to set up */
663 u16 num_xdp_queues;
664 struct gve_queue_config tx_cfg;
665 struct gve_queue_config rx_cfg;
666 struct gve_qpl_config qpl_cfg; /* map used QPL ids */
667 u32 num_ntfy_blks; /* spilt between TX and RX so must be even */
669 struct gve_registers __iomem *reg_bar0; /* see gve_register.h */
670 __be32 __iomem *db_bar2; /* "array" of doorbells */
671 u32 msg_enable; /* level for netif* netdev print macros */
672 struct pci_dev *pdev;
675 u32 tx_timeo_cnt;
678 union gve_adminq_command *adminq;
679 dma_addr_t adminq_bus_addr;
680 struct dma_pool *adminq_pool;
681 u32 adminq_mask; /* masks prod_cnt to adminq size */
682 u32 adminq_prod_cnt; /* free-running count of AQ cmds executed */
683 u32 adminq_cmd_fail; /* free-running count of AQ cmds failed */
684 u32 adminq_timeouts; /* free-running count of AQ cmds timeouts */
686 u32 adminq_describe_device_cnt;
687 u32 adminq_cfg_device_resources_cnt;
688 u32 adminq_register_page_list_cnt;
689 u32 adminq_unregister_page_list_cnt;
690 u32 adminq_create_tx_queue_cnt;
691 u32 adminq_create_rx_queue_cnt;
692 u32 adminq_destroy_tx_queue_cnt;
693 u32 adminq_destroy_rx_queue_cnt;
694 u32 adminq_dcfg_device_resources_cnt;
695 u32 adminq_set_driver_parameter_cnt;
696 u32 adminq_report_stats_cnt;
697 u32 adminq_report_link_speed_cnt;
698 u32 adminq_get_ptype_map_cnt;
699 u32 adminq_verify_driver_compatibility_cnt;
702 u32 interface_up_cnt; /* count of times interface turned up since last reset */
703 u32 interface_down_cnt; /* count of times interface turned down since last reset */
704 u32 reset_cnt; /* count of reset */
705 u32 page_alloc_fail; /* count of page alloc fails */
706 u32 dma_mapping_error; /* count of dma mapping errors */
707 u32 stats_report_trigger_cnt; /* count of device-requested stats-reports since last reset */
708 u32 suspend_cnt; /* count of times suspended */
709 u32 resume_cnt; /* count of times resumed */
710 struct workqueue_struct *gve_wq;
711 struct work_struct service_task;
712 struct work_struct stats_report_task;
713 unsigned long service_task_flags;
714 unsigned long state_flags;
716 struct gve_stats_report *stats_report;
717 u64 stats_report_len;
718 dma_addr_t stats_report_bus; /* dma address for the stats report */
719 unsigned long ethtool_flags;
721 unsigned long stats_report_timer_period;
722 struct timer_list stats_report_timer;
725 u64 link_speed;
726 bool up_before_suspend; /* True if dev was up before suspend */
728 struct gve_options_dqo_rda options_dqo_rda;
729 struct gve_ptype_lut *ptype_lut_dqo;
732 int data_buffer_size_dqo;
734 enum gve_queue_format queue_format;
759 static inline bool gve_get_do_reset(struct gve_priv *priv) in gve_get_do_reset() argument