Lines Matching defs:efx_nic
978 struct efx_nic { struct
983 struct efx_nic *primary; argument
987 const struct efx_nic_type *type; argument
988 int legacy_irq;
989 bool eeh_disabled_legacy_irq;
990 struct workqueue_struct *workqueue;
991 char workqueue_name[16];
992 struct work_struct reset_work;
993 resource_size_t membase_phys;
994 void __iomem *membase;
996 unsigned int vi_stride;
998 enum efx_int_mode interrupt_mode;
999 unsigned int timer_quantum_ns;
1000 unsigned int timer_max_ns;
1001 bool irq_rx_adaptive;
1002 bool irqs_hooked;
1003 unsigned int irq_mod_step_us;
1004 unsigned int irq_rx_moderation_us;
1005 u32 msg_enable;
1007 enum nic_state state;
1008 unsigned long reset_pending;
1010 struct efx_channel *channel[EFX_MAX_CHANNELS];
1011 struct efx_msi_context msi_context[EFX_MAX_CHANNELS];
1013 extra_channel_type[EFX_MAX_EXTRA_CHANNELS];
1014 struct efx_mae *mae;
1016 unsigned int xdp_tx_queue_count;
1017 struct efx_tx_queue **xdp_tx_queues;
1018 enum efx_xdp_tx_queues_mode xdp_txq_queues_mode;
1020 unsigned rxq_entries;
1021 unsigned txq_entries;
1022 unsigned int txq_stop_thresh;
1023 unsigned int txq_wake_thresh;
1025 unsigned tx_dc_base;
1026 unsigned rx_dc_base;
1027 unsigned sram_lim_qw;
1029 unsigned int max_channels;
1030 unsigned int max_vis;
1031 unsigned int max_tx_channels;
1032 unsigned n_channels;
1033 unsigned n_rx_channels;
1034 unsigned rss_spread;
1035 unsigned tx_channel_offset;
1036 unsigned n_tx_channels;
1037 unsigned n_extra_tx_channels;
1038 unsigned int tx_queues_per_channel;
1039 unsigned int n_xdp_channels;
1040 unsigned int xdp_channel_offset;
1041 unsigned int xdp_tx_per_channel;
1042 unsigned int rx_ip_align;
1043 unsigned int rx_dma_len;
1044 unsigned int rx_buffer_order;
1045 unsigned int rx_buffer_truesize;
1046 unsigned int rx_page_buf_step;
1047 unsigned int rx_bufs_per_page;
1048 unsigned int rx_pages_per_batch;
1049 unsigned int rx_prefix_size;
1050 int rx_packet_hash_offset;
1051 int rx_packet_len_offset;
1052 int rx_packet_ts_offset;
1053 bool rx_scatter;
1054 struct efx_rss_context rss_context;
1055 struct mutex rss_lock;
1056 u32 vport_id;
1058 unsigned int_error_count;
1059 unsigned long int_error_expire;
1061 bool must_realloc_vis;
1062 bool irq_soft_enabled;
1063 struct efx_buffer irq_status;
1064 unsigned irq_zero_count;
1065 unsigned irq_level;
1066 struct delayed_work selftest_work;
1069 struct list_head mtd_list;
1072 void *nic_data;
1073 struct efx_mcdi_data *mcdi;
1075 struct mutex mac_lock;
1076 struct work_struct mac_work;
1077 bool port_enabled;
1079 bool mc_bist_for_other_fn;
1080 bool port_initialized;
1081 struct net_device *net_dev;
1083 netdev_features_t fixed_features;
1085 u16 num_mac_stats;
1086 struct efx_buffer stats_buffer;
1087 u64 rx_nodesc_drops_total;
1088 u64 rx_nodesc_drops_while_down;
1089 bool rx_nodesc_drops_prev_state;
1091 unsigned int phy_type;
1092 void *phy_data;
1093 struct mdio_if_info mdio;
1094 unsigned int mdio_bus;
1095 enum efx_phy_mode phy_mode;
1098 u32 fec_config;
1099 struct efx_link_state link_state;
1100 unsigned int n_link_state_changes;
1102 u8 wanted_fc;
1103 unsigned fc_disable;
1105 atomic_t rx_reset;
1106 enum efx_loopback_mode loopback_mode;
1107 u64 loopback_modes;
1109 void *loopback_selftest;
1113 struct bpf_prog __rcu *xdp_prog;
1115 struct rw_semaphore filter_sem;
1116 void *filter_state;
1118 struct mutex rps_mutex;
1119 unsigned long rps_slot_map;
1120 struct efx_async_filter_insertion rps_slot[EFX_RPS_MAX_IN_FLIGHT];
1121 spinlock_t rps_hash_lock;
1122 struct hlist_head *rps_hash_table;
1123 u32 rps_next_id;
1126 atomic_t active_queues;
1127 atomic_t rxq_flush_pending;
1128 atomic_t rxq_flush_outstanding;
1129 wait_queue_head_t flush_wq;
1132 unsigned vf_count;
1133 unsigned vf_init_count;
1134 unsigned vi_scale;
1136 spinlock_t vf_reps_lock;
1137 struct list_head vf_reps;
1139 struct efx_ptp_data *ptp_data;
1140 bool ptp_warned;
1142 char *vpd_sn;
1143 bool xdp_rxq_info_failed;
1145 struct notifier_block netdev_notifier;
1146 struct notifier_block netevent_notifier;
1170 struct efx_nic efx; argument