Lines Matching defs:efx_nic
1015 struct efx_nic { struct
1020 struct efx_nic *primary; argument
1024 const struct efx_nic_type *type; argument
1025 int legacy_irq;
1026 bool eeh_disabled_legacy_irq;
1027 struct workqueue_struct *workqueue;
1028 char workqueue_name[16];
1029 struct work_struct reset_work;
1030 resource_size_t membase_phys;
1031 void __iomem *membase;
1033 unsigned int vi_stride;
1035 enum efx_int_mode interrupt_mode;
1036 unsigned int timer_quantum_ns;
1037 unsigned int timer_max_ns;
1038 bool irq_rx_adaptive;
1039 bool irqs_hooked;
1040 unsigned int irq_mod_step_us;
1041 unsigned int irq_rx_moderation_us;
1042 u32 msg_enable;
1044 enum nic_state state;
1045 unsigned long reset_pending;
1047 struct efx_channel *channel[EFX_MAX_CHANNELS];
1048 struct efx_msi_context msi_context[EFX_MAX_CHANNELS];
1050 extra_channel_type[EFX_MAX_EXTRA_CHANNELS];
1051 struct efx_mae *mae;
1053 unsigned int xdp_tx_queue_count;
1054 struct efx_tx_queue **xdp_tx_queues;
1055 enum efx_xdp_tx_queues_mode xdp_txq_queues_mode;
1057 unsigned rxq_entries;
1058 unsigned txq_entries;
1059 unsigned int txq_stop_thresh;
1060 unsigned int txq_wake_thresh;
1062 unsigned tx_dc_base;
1063 unsigned rx_dc_base;
1064 unsigned sram_lim_qw;
1065 unsigned next_buffer_table;
1067 unsigned int max_channels;
1068 unsigned int max_vis;
1069 unsigned int max_tx_channels;
1070 unsigned n_channels;
1071 unsigned n_rx_channels;
1072 unsigned rss_spread;
1073 unsigned tx_channel_offset;
1074 unsigned n_tx_channels;
1075 unsigned n_extra_tx_channels;
1076 unsigned int tx_queues_per_channel;
1077 unsigned int n_xdp_channels;
1078 unsigned int xdp_channel_offset;
1079 unsigned int xdp_tx_per_channel;
1080 unsigned int rx_ip_align;
1081 unsigned int rx_dma_len;
1082 unsigned int rx_buffer_order;
1083 unsigned int rx_buffer_truesize;
1084 unsigned int rx_page_buf_step;
1085 unsigned int rx_bufs_per_page;
1086 unsigned int rx_pages_per_batch;
1087 unsigned int rx_prefix_size;
1088 int rx_packet_hash_offset;
1089 int rx_packet_len_offset;
1090 int rx_packet_ts_offset;
1091 bool rx_scatter;
1092 struct efx_rss_context rss_context;
1093 struct mutex rss_lock;
1094 u32 vport_id;
1096 unsigned int_error_count;
1097 unsigned long int_error_expire;
1099 bool must_realloc_vis;
1100 bool irq_soft_enabled;
1101 struct efx_buffer irq_status;
1102 unsigned irq_zero_count;
1103 unsigned irq_level;
1104 struct delayed_work selftest_work;
1107 struct list_head mtd_list;
1110 void *nic_data;
1111 struct efx_mcdi_data *mcdi;
1113 struct mutex mac_lock;
1114 struct work_struct mac_work;
1115 bool port_enabled;
1117 bool mc_bist_for_other_fn;
1118 bool port_initialized;
1119 struct net_device *net_dev;
1121 netdev_features_t fixed_features;
1123 u16 num_mac_stats;
1124 struct efx_buffer stats_buffer;
1125 u64 rx_nodesc_drops_total;
1126 u64 rx_nodesc_drops_while_down;
1127 bool rx_nodesc_drops_prev_state;
1129 unsigned int phy_type;
1130 void *phy_data;
1131 struct mdio_if_info mdio;
1132 unsigned int mdio_bus;
1133 enum efx_phy_mode phy_mode;
1136 u32 fec_config;
1137 struct efx_link_state link_state;
1138 unsigned int n_link_state_changes;
1140 bool unicast_filter;
1141 union efx_multicast_hash multicast_hash;
1142 u8 wanted_fc;
1143 unsigned fc_disable;
1145 atomic_t rx_reset;
1146 enum efx_loopback_mode loopback_mode;
1147 u64 loopback_modes;
1149 void *loopback_selftest;
1153 struct bpf_prog __rcu *xdp_prog;
1155 struct rw_semaphore filter_sem;
1156 void *filter_state;
1158 struct mutex rps_mutex;
1159 unsigned long rps_slot_map;
1160 struct efx_async_filter_insertion rps_slot[EFX_RPS_MAX_IN_FLIGHT];
1161 spinlock_t rps_hash_lock;
1162 struct hlist_head *rps_hash_table;
1163 u32 rps_next_id;
1166 atomic_t active_queues;
1167 atomic_t rxq_flush_pending;
1168 atomic_t rxq_flush_outstanding;
1169 wait_queue_head_t flush_wq;
1172 unsigned vf_count;
1173 unsigned vf_init_count;
1174 unsigned vi_scale;
1176 spinlock_t vf_reps_lock;
1177 struct list_head vf_reps;
1179 struct efx_ptp_data *ptp_data;
1180 bool ptp_warned;
1182 char *vpd_sn;
1183 bool xdp_rxq_info_failed;
1185 struct notifier_block netdev_notifier;
1209 struct efx_nic efx; argument