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