Lines Matching defs:efx_nic

1018 struct efx_nic {  struct
1023 struct efx_nic *primary; argument
1027 const struct efx_nic_type *type; argument
1028 int legacy_irq;
1029 bool eeh_disabled_legacy_irq;
1030 struct workqueue_struct *workqueue;
1031 char workqueue_name[16];
1032 struct work_struct reset_work;
1033 resource_size_t membase_phys;
1034 void __iomem *membase;
1036 unsigned int vi_stride;
1038 enum efx_int_mode interrupt_mode;
1039 unsigned int timer_quantum_ns;
1040 unsigned int timer_max_ns;
1041 bool irq_rx_adaptive;
1042 bool irqs_hooked;
1043 unsigned int irq_mod_step_us;
1044 unsigned int irq_rx_moderation_us;
1045 u32 msg_enable;
1047 enum nic_state state;
1048 unsigned long reset_pending;
1050 struct efx_channel *channel[EFX_MAX_CHANNELS];
1051 struct efx_msi_context msi_context[EFX_MAX_CHANNELS];
1053 extra_channel_type[EFX_MAX_EXTRA_CHANNELS];
1054 struct efx_mae *mae;
1056 unsigned int xdp_tx_queue_count;
1057 struct efx_tx_queue **xdp_tx_queues;
1058 enum efx_xdp_tx_queues_mode xdp_txq_queues_mode;
1060 unsigned rxq_entries;
1061 unsigned txq_entries;
1062 unsigned int txq_stop_thresh;
1063 unsigned int txq_wake_thresh;
1065 unsigned tx_dc_base;
1066 unsigned rx_dc_base;
1067 unsigned sram_lim_qw;
1069 unsigned int max_channels;
1070 unsigned int max_vis;
1071 unsigned int max_tx_channels;
1072 unsigned n_channels;
1073 unsigned n_rx_channels;
1074 unsigned rss_spread;
1075 unsigned tx_channel_offset;
1076 unsigned n_tx_channels;
1077 unsigned n_extra_tx_channels;
1078 unsigned int tx_queues_per_channel;
1079 unsigned int n_xdp_channels;
1080 unsigned int xdp_channel_offset;
1081 unsigned int xdp_tx_per_channel;
1082 unsigned int rx_ip_align;
1083 unsigned int rx_dma_len;
1084 unsigned int rx_buffer_order;
1085 unsigned int rx_buffer_truesize;
1086 unsigned int rx_page_buf_step;
1087 unsigned int rx_bufs_per_page;
1088 unsigned int rx_pages_per_batch;
1089 unsigned int rx_prefix_size;
1090 int rx_packet_hash_offset;
1091 int rx_packet_len_offset;
1092 int rx_packet_ts_offset;
1093 bool rx_scatter;
1094 struct efx_rss_context rss_context;
1095 u32 vport_id;
1097 unsigned int_error_count;
1098 unsigned long int_error_expire;
1100 bool must_realloc_vis;
1101 bool irq_soft_enabled;
1102 struct efx_buffer irq_status;
1103 unsigned irq_zero_count;
1104 unsigned irq_level;
1105 struct delayed_work selftest_work;
1108 struct list_head mtd_list;
1111 void *nic_data;
1112 struct efx_mcdi_data *mcdi;
1114 struct mutex mac_lock;
1115 struct work_struct mac_work;
1116 bool port_enabled;
1118 bool mc_bist_for_other_fn;
1119 bool port_initialized;
1120 struct net_device *net_dev;
1122 netdev_features_t fixed_features;
1124 u16 num_mac_stats;
1125 struct efx_buffer stats_buffer;
1126 u64 rx_nodesc_drops_total;
1127 u64 rx_nodesc_drops_while_down;
1128 bool rx_nodesc_drops_prev_state;
1130 unsigned int phy_type;
1131 void *phy_data;
1132 enum efx_phy_mode phy_mode;
1135 u32 fec_config;
1136 struct efx_link_state link_state;
1137 unsigned int n_link_state_changes;
1139 u8 wanted_fc;
1140 unsigned fc_disable;
1142 atomic_t rx_reset;
1143 enum efx_loopback_mode loopback_mode;
1144 u64 loopback_modes;
1146 void *loopback_selftest;
1150 struct bpf_prog __rcu *xdp_prog;
1152 struct rw_semaphore filter_sem;
1153 void *filter_state;
1155 struct mutex rps_mutex;
1156 unsigned long rps_slot_map;
1157 struct efx_async_filter_insertion rps_slot[EFX_RPS_MAX_IN_FLIGHT];
1158 spinlock_t rps_hash_lock;
1159 struct hlist_head *rps_hash_table;
1160 u32 rps_next_id;
1163 atomic_t active_queues;
1164 atomic_t rxq_flush_pending;
1165 atomic_t rxq_flush_outstanding;
1166 wait_queue_head_t flush_wq;
1169 unsigned vf_count;
1170 unsigned vf_init_count;
1171 unsigned vi_scale;
1173 spinlock_t vf_reps_lock;
1174 struct list_head vf_reps;
1176 struct efx_ptp_data *ptp_data;
1177 bool ptp_warned;
1179 char *vpd_sn;
1180 bool xdp_rxq_info_failed;
1182 struct notifier_block netdev_notifier;
1183 struct notifier_block netevent_notifier;
1207 struct efx_nic efx; argument