Lines Matching defs:gve_priv

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