Lines Matching defs:efx_nic
996 struct efx_nic { struct
1001 struct efx_nic *primary; argument
1005 const struct efx_nic_type *type; argument
1006 int legacy_irq;
1007 bool eeh_disabled_legacy_irq;
1008 struct workqueue_struct *workqueue;
1009 char workqueue_name[16];
1010 struct work_struct reset_work;
1011 resource_size_t membase_phys;
1012 void __iomem *membase;
1014 unsigned int vi_stride;
1016 enum efx_int_mode interrupt_mode;
1017 unsigned int timer_quantum_ns;
1018 unsigned int timer_max_ns;
1019 bool irq_rx_adaptive;
1020 bool irqs_hooked;
1021 bool log_tc_errs;
1022 unsigned int irq_mod_step_us;
1023 unsigned int irq_rx_moderation_us;
1024 u32 msg_enable;
1026 enum nic_state state;
1027 unsigned long reset_pending;
1029 struct efx_channel *channel[EFX_MAX_CHANNELS];
1030 struct efx_msi_context msi_context[EFX_MAX_CHANNELS];
1032 extra_channel_type[EFX_MAX_EXTRA_CHANNELS];
1034 unsigned int xdp_tx_queue_count;
1035 struct efx_tx_queue **xdp_tx_queues;
1036 enum efx_xdp_tx_queues_mode xdp_txq_queues_mode;
1038 unsigned rxq_entries;
1039 unsigned txq_entries;
1040 unsigned int txq_stop_thresh;
1041 unsigned int txq_wake_thresh;
1043 unsigned tx_dc_base;
1044 unsigned rx_dc_base;
1045 unsigned sram_lim_qw;
1046 unsigned next_buffer_table;
1048 unsigned int max_channels;
1049 unsigned int max_vis;
1050 unsigned int max_tx_channels;
1051 unsigned n_channels;
1052 unsigned n_rx_channels;
1053 unsigned rss_spread;
1054 unsigned tx_channel_offset;
1055 unsigned n_tx_channels;
1056 unsigned n_extra_tx_channels;
1057 unsigned int tx_queues_per_channel;
1058 unsigned int n_xdp_channels;
1059 unsigned int xdp_channel_offset;
1060 unsigned int xdp_tx_per_channel;
1061 unsigned int rx_ip_align;
1062 unsigned int rx_dma_len;
1063 unsigned int rx_buffer_order;
1064 unsigned int rx_buffer_truesize;
1065 unsigned int rx_page_buf_step;
1066 unsigned int rx_bufs_per_page;
1067 unsigned int rx_pages_per_batch;
1068 unsigned int rx_prefix_size;
1069 int rx_packet_hash_offset;
1070 int rx_packet_len_offset;
1071 int rx_packet_ts_offset;
1072 bool rx_scatter;
1073 struct efx_rss_context rss_context;
1074 struct mutex rss_lock;
1075 u32 vport_id;
1077 unsigned int_error_count;
1078 unsigned long int_error_expire;
1080 bool must_realloc_vis;
1081 bool irq_soft_enabled;
1082 struct efx_buffer irq_status;
1083 unsigned irq_zero_count;
1084 unsigned irq_level;
1085 struct delayed_work selftest_work;
1088 struct list_head mtd_list;
1091 void *nic_data;
1092 struct efx_mcdi_data *mcdi;
1094 struct mutex mac_lock;
1095 struct work_struct mac_work;
1096 bool port_enabled;
1098 bool mc_bist_for_other_fn;
1099 bool port_initialized;
1100 struct net_device *net_dev;
1102 netdev_features_t fixed_features;
1104 u16 num_mac_stats;
1105 struct efx_buffer stats_buffer;
1106 u64 rx_nodesc_drops_total;
1107 u64 rx_nodesc_drops_while_down;
1108 bool rx_nodesc_drops_prev_state;
1110 unsigned int phy_type;
1111 void *phy_data;
1112 struct mdio_if_info mdio;
1113 unsigned int mdio_bus;
1114 enum efx_phy_mode phy_mode;
1117 u32 fec_config;
1118 struct efx_link_state link_state;
1119 unsigned int n_link_state_changes;
1121 bool unicast_filter;
1122 union efx_multicast_hash multicast_hash;
1123 u8 wanted_fc;
1124 unsigned fc_disable;
1126 atomic_t rx_reset;
1127 enum efx_loopback_mode loopback_mode;
1128 u64 loopback_modes;
1130 void *loopback_selftest;
1134 struct bpf_prog __rcu *xdp_prog;
1136 struct rw_semaphore filter_sem;
1137 void *filter_state;
1139 struct mutex rps_mutex;
1140 unsigned long rps_slot_map;
1141 struct efx_async_filter_insertion rps_slot[EFX_RPS_MAX_IN_FLIGHT];
1142 spinlock_t rps_hash_lock;
1143 struct hlist_head *rps_hash_table;
1144 u32 rps_next_id;
1147 atomic_t active_queues;
1148 atomic_t rxq_flush_pending;
1149 atomic_t rxq_flush_outstanding;
1150 wait_queue_head_t flush_wq;
1153 unsigned vf_count;
1154 unsigned vf_init_count;
1155 unsigned vi_scale;
1157 spinlock_t vf_reps_lock;
1158 struct list_head vf_reps;
1160 struct efx_ptp_data *ptp_data;
1161 bool ptp_warned;
1163 char *vpd_sn;
1164 bool xdp_rxq_info_failed;
1188 struct efx_nic efx; argument