Lines Matching defs:efx_nic
950 struct efx_nic { struct
955 struct efx_nic *primary; argument
959 const struct efx_nic_type *type; argument
960 int legacy_irq;
961 bool eeh_disabled_legacy_irq;
962 struct workqueue_struct *workqueue;
963 char workqueue_name[16];
964 struct work_struct reset_work;
965 resource_size_t membase_phys;
966 void __iomem *membase;
968 unsigned int vi_stride;
970 enum efx_int_mode interrupt_mode;
971 unsigned int timer_quantum_ns;
972 unsigned int timer_max_ns;
973 bool irq_rx_adaptive;
974 bool irqs_hooked;
975 unsigned int irq_mod_step_us;
976 unsigned int irq_rx_moderation_us;
977 u32 msg_enable;
979 enum nic_state state;
980 unsigned long reset_pending;
982 struct efx_channel *channel[EFX_MAX_CHANNELS];
983 struct efx_msi_context msi_context[EFX_MAX_CHANNELS];
985 extra_channel_type[EFX_MAX_EXTRA_CHANNELS];
987 unsigned int xdp_tx_queue_count;
988 struct efx_tx_queue **xdp_tx_queues;
989 enum efx_xdp_tx_queues_mode xdp_txq_queues_mode;
991 unsigned rxq_entries;
992 unsigned txq_entries;
993 unsigned int txq_stop_thresh;
994 unsigned int txq_wake_thresh;
996 unsigned tx_dc_base;
997 unsigned rx_dc_base;
998 unsigned sram_lim_qw;
999 unsigned next_buffer_table;
1001 unsigned int max_channels;
1002 unsigned int max_vis;
1003 unsigned int max_tx_channels;
1004 unsigned n_channels;
1005 unsigned n_rx_channels;
1006 unsigned rss_spread;
1007 unsigned tx_channel_offset;
1008 unsigned n_tx_channels;
1009 unsigned n_extra_tx_channels;
1010 unsigned int tx_queues_per_channel;
1011 unsigned int n_xdp_channels;
1012 unsigned int xdp_channel_offset;
1013 unsigned int xdp_tx_per_channel;
1014 unsigned int rx_ip_align;
1015 unsigned int rx_dma_len;
1016 unsigned int rx_buffer_order;
1017 unsigned int rx_buffer_truesize;
1018 unsigned int rx_page_buf_step;
1019 unsigned int rx_bufs_per_page;
1020 unsigned int rx_pages_per_batch;
1021 unsigned int rx_prefix_size;
1022 int rx_packet_hash_offset;
1023 int rx_packet_len_offset;
1024 int rx_packet_ts_offset;
1025 bool rx_scatter;
1026 struct efx_rss_context rss_context;
1027 struct mutex rss_lock;
1028 u32 vport_id;
1030 unsigned int_error_count;
1031 unsigned long int_error_expire;
1033 bool must_realloc_vis;
1034 bool irq_soft_enabled;
1035 struct efx_buffer irq_status;
1036 unsigned irq_zero_count;
1037 unsigned irq_level;
1038 struct delayed_work selftest_work;
1041 struct list_head mtd_list;
1044 void *nic_data;
1045 struct efx_mcdi_data *mcdi;
1047 struct mutex mac_lock;
1048 struct work_struct mac_work;
1049 bool port_enabled;
1051 bool mc_bist_for_other_fn;
1052 bool port_initialized;
1053 struct net_device *net_dev;
1055 netdev_features_t fixed_features;
1057 u16 num_mac_stats;
1058 struct efx_buffer stats_buffer;
1059 u64 rx_nodesc_drops_total;
1060 u64 rx_nodesc_drops_while_down;
1061 bool rx_nodesc_drops_prev_state;
1063 unsigned int phy_type;
1064 void *phy_data;
1065 struct mdio_if_info mdio;
1066 unsigned int mdio_bus;
1067 enum efx_phy_mode phy_mode;
1070 u32 fec_config;
1071 struct efx_link_state link_state;
1072 unsigned int n_link_state_changes;
1074 bool unicast_filter;
1075 union efx_multicast_hash multicast_hash;
1076 u8 wanted_fc;
1077 unsigned fc_disable;
1079 atomic_t rx_reset;
1080 enum efx_loopback_mode loopback_mode;
1081 u64 loopback_modes;
1083 void *loopback_selftest;
1087 struct bpf_prog __rcu *xdp_prog;
1089 struct rw_semaphore filter_sem;
1090 void *filter_state;
1092 struct mutex rps_mutex;
1093 unsigned long rps_slot_map;
1094 struct efx_async_filter_insertion rps_slot[EFX_RPS_MAX_IN_FLIGHT];
1095 spinlock_t rps_hash_lock;
1096 struct hlist_head *rps_hash_table;
1097 u32 rps_next_id;
1100 atomic_t active_queues;
1101 atomic_t rxq_flush_pending;
1102 atomic_t rxq_flush_outstanding;
1103 wait_queue_head_t flush_wq;
1106 unsigned vf_count;
1107 unsigned vf_init_count;
1131 static inline int efx_dev_registered(struct efx_nic *efx) in efx_dev_registered() argument