Lines Matching defs:gve_priv
494 struct gve_priv { struct
495 struct net_device *dev;
496 struct gve_tx_ring *tx; /* array of tx_cfg.num_queues */
497 struct gve_rx_ring *rx; /* array of rx_cfg.num_queues */
498 struct gve_queue_page_list *qpls; /* array of num qpls */
499 struct gve_notify_block *ntfy_blocks; /* array of num_ntfy_blks */
500 struct gve_irq_db *irq_db_indices; /* array of num_ntfy_blks */
501 dma_addr_t irq_db_indices_bus;
502 struct msix_entry *msix_vectors; /* array of num_ntfy_blks + 1 */
503 char mgmt_msix_name[IFNAMSIZ + 16];
504 u32 mgmt_msix_idx;
505 __be32 *counter_array; /* array of num_event_counters */
506 dma_addr_t counter_array_bus;
508 u16 num_event_counters;
509 u16 tx_desc_cnt; /* num desc per ring */
510 u16 rx_desc_cnt; /* num desc per ring */
511 u16 tx_pages_per_qpl; /* tx buffer length */
512 u16 rx_data_slot_cnt; /* rx buffer length */
513 u64 max_registered_pages;
514 u64 num_registered_pages; /* num pages registered with NIC */
515 u32 rx_copybreak; /* copy packets smaller than this */
516 u16 default_num_queues; /* default num queues to set up */
518 struct gve_queue_config tx_cfg;
519 struct gve_queue_config rx_cfg;
520 struct gve_qpl_config qpl_cfg; /* map used QPL ids */
521 u32 num_ntfy_blks; /* spilt between TX and RX so must be even */
523 struct gve_registers __iomem *reg_bar0; /* see gve_register.h */
524 __be32 __iomem *db_bar2; /* "array" of doorbells */
525 u32 msg_enable; /* level for netif* netdev print macros */
526 struct pci_dev *pdev;
529 u32 tx_timeo_cnt;
532 union gve_adminq_command *adminq;
533 dma_addr_t adminq_bus_addr;
534 u32 adminq_mask; /* masks prod_cnt to adminq size */
535 u32 adminq_prod_cnt; /* free-running count of AQ cmds executed */
536 u32 adminq_cmd_fail; /* free-running count of AQ cmds failed */
537 u32 adminq_timeouts; /* free-running count of AQ cmds timeouts */
539 u32 adminq_describe_device_cnt;
540 u32 adminq_cfg_device_resources_cnt;
541 u32 adminq_register_page_list_cnt;
542 u32 adminq_unregister_page_list_cnt;
543 u32 adminq_create_tx_queue_cnt;
544 u32 adminq_create_rx_queue_cnt;
545 u32 adminq_destroy_tx_queue_cnt;
546 u32 adminq_destroy_rx_queue_cnt;
547 u32 adminq_dcfg_device_resources_cnt;
548 u32 adminq_set_driver_parameter_cnt;
549 u32 adminq_report_stats_cnt;
550 u32 adminq_report_link_speed_cnt;
551 u32 adminq_get_ptype_map_cnt;
554 u32 interface_up_cnt; /* count of times interface turned up since last reset */
555 u32 interface_down_cnt; /* count of times interface turned down since last reset */
556 u32 reset_cnt; /* count of reset */
557 u32 page_alloc_fail; /* count of page alloc fails */
558 u32 dma_mapping_error; /* count of dma mapping errors */
559 u32 stats_report_trigger_cnt; /* count of device-requested stats-reports since last reset */
560 u32 suspend_cnt; /* count of times suspended */
561 u32 resume_cnt; /* count of times resumed */
562 struct workqueue_struct *gve_wq;
563 struct work_struct service_task;
564 struct work_struct stats_report_task;
565 unsigned long service_task_flags;
566 unsigned long state_flags;
568 struct gve_stats_report *stats_report;
569 u64 stats_report_len;
570 dma_addr_t stats_report_bus; /* dma address for the stats report */
571 unsigned long ethtool_flags;
573 unsigned long stats_report_timer_period;
574 struct timer_list stats_report_timer;
577 u64 link_speed;
578 bool up_before_suspend; /* True if dev was up before suspend */
580 struct gve_options_dqo_rda options_dqo_rda;
581 struct gve_ptype_lut *ptype_lut_dqo;
584 int data_buffer_size_dqo;
586 enum gve_queue_format queue_format;
611 static inline bool gve_get_do_reset(struct gve_priv *priv) in gve_get_do_reset() argument