Lines Matching defs:gve_priv

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