Lines Matching defs:efx_nic
1019 struct efx_nic { struct
1024 struct efx_nic *primary; argument
1028 const struct efx_nic_type *type; argument
1029 int legacy_irq;
1030 bool eeh_disabled_legacy_irq;
1031 struct workqueue_struct *workqueue;
1032 char workqueue_name[16];
1033 struct work_struct reset_work;
1034 resource_size_t membase_phys;
1035 void __iomem *membase;
1037 unsigned int vi_stride;
1039 enum efx_int_mode interrupt_mode;
1040 unsigned int timer_quantum_ns;
1041 unsigned int timer_max_ns;
1042 bool irq_rx_adaptive;
1043 bool irqs_hooked;
1044 unsigned int irq_mod_step_us;
1045 unsigned int irq_rx_moderation_us;
1046 u32 msg_enable;
1048 enum nic_state state;
1049 unsigned long reset_pending;
1051 struct efx_channel *channel[EFX_MAX_CHANNELS];
1052 struct efx_msi_context msi_context[EFX_MAX_CHANNELS];
1054 extra_channel_type[EFX_MAX_EXTRA_CHANNELS];
1055 struct efx_mae *mae;
1057 unsigned int xdp_tx_queue_count;
1058 struct efx_tx_queue **xdp_tx_queues;
1059 enum efx_xdp_tx_queues_mode xdp_txq_queues_mode;
1061 unsigned rxq_entries;
1062 unsigned txq_entries;
1063 unsigned int txq_stop_thresh;
1064 unsigned int txq_wake_thresh;
1066 unsigned tx_dc_base;
1067 unsigned rx_dc_base;
1068 unsigned sram_lim_qw;
1070 unsigned int max_channels;
1071 unsigned int max_vis;
1072 unsigned int max_tx_channels;
1073 unsigned n_channels;
1074 unsigned n_rx_channels;
1075 unsigned rss_spread;
1076 unsigned tx_channel_offset;
1077 unsigned n_tx_channels;
1078 unsigned n_extra_tx_channels;
1079 unsigned int tx_queues_per_channel;
1080 unsigned int n_xdp_channels;
1081 unsigned int xdp_channel_offset;
1082 unsigned int xdp_tx_per_channel;
1083 unsigned int rx_ip_align;
1084 unsigned int rx_dma_len;
1085 unsigned int rx_buffer_order;
1086 unsigned int rx_buffer_truesize;
1087 unsigned int rx_page_buf_step;
1088 unsigned int rx_bufs_per_page;
1089 unsigned int rx_pages_per_batch;
1090 unsigned int rx_prefix_size;
1091 int rx_packet_hash_offset;
1092 int rx_packet_len_offset;
1093 int rx_packet_ts_offset;
1094 bool rx_scatter;
1095 struct efx_rss_context rss_context;
1096 u32 vport_id;
1098 unsigned int_error_count;
1099 unsigned long int_error_expire;
1101 bool must_realloc_vis;
1102 bool irq_soft_enabled;
1103 struct efx_buffer irq_status;
1104 unsigned irq_zero_count;
1105 unsigned irq_level;
1106 struct delayed_work selftest_work;
1109 struct list_head mtd_list;
1112 void *nic_data;
1113 struct efx_mcdi_data *mcdi;
1115 struct mutex mac_lock;
1116 struct work_struct mac_work;
1117 bool port_enabled;
1119 bool mc_bist_for_other_fn;
1120 bool port_initialized;
1121 struct net_device *net_dev;
1123 netdev_features_t fixed_features;
1125 u16 num_mac_stats;
1126 struct efx_buffer stats_buffer;
1127 u64 rx_nodesc_drops_total;
1128 u64 rx_nodesc_drops_while_down;
1129 bool rx_nodesc_drops_prev_state;
1131 unsigned int phy_type;
1132 void *phy_data;
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 u8 wanted_fc;
1141 unsigned fc_disable;
1143 atomic_t rx_reset;
1144 enum efx_loopback_mode loopback_mode;
1145 u64 loopback_modes;
1147 void *loopback_selftest;
1151 struct bpf_prog __rcu *xdp_prog;
1153 struct rw_semaphore filter_sem;
1154 void *filter_state;
1156 struct mutex rps_mutex;
1157 unsigned long rps_slot_map;
1158 struct efx_async_filter_insertion rps_slot[EFX_RPS_MAX_IN_FLIGHT];
1159 spinlock_t rps_hash_lock;
1160 struct hlist_head *rps_hash_table;
1161 u32 rps_next_id;
1164 atomic_t active_queues;
1165 atomic_t rxq_flush_pending;
1166 atomic_t rxq_flush_outstanding;
1167 wait_queue_head_t flush_wq;
1170 unsigned vf_count;
1171 unsigned vf_init_count;
1172 unsigned vi_scale;
1174 spinlock_t vf_reps_lock;
1175 struct list_head vf_reps;
1177 struct efx_ptp_data *ptp_data;
1178 bool ptp_warned;
1180 char *vpd_sn;
1181 bool xdp_rxq_info_failed;
1183 struct notifier_block netdev_notifier;
1184 struct notifier_block netevent_notifier;
1185 struct efx_tc_state *tc;
1209 struct efx_nic efx; argument