Lines Matching defs:efx_nic

943 struct efx_nic {  struct
948 struct efx_nic *primary; argument
952 const struct efx_nic_type *type; argument
953 int legacy_irq;
954 bool eeh_disabled_legacy_irq;
955 struct workqueue_struct *workqueue;
956 char workqueue_name[16];
957 struct work_struct reset_work;
958 resource_size_t membase_phys;
959 void __iomem *membase;
961 unsigned int vi_stride;
963 enum efx_int_mode interrupt_mode;
964 unsigned int timer_quantum_ns;
965 unsigned int timer_max_ns;
966 bool irq_rx_adaptive;
967 bool irqs_hooked;
968 unsigned int irq_mod_step_us;
969 unsigned int irq_rx_moderation_us;
970 u32 msg_enable;
972 enum nic_state state;
973 unsigned long reset_pending;
975 struct efx_channel *channel[EFX_MAX_CHANNELS];
976 struct efx_msi_context msi_context[EFX_MAX_CHANNELS];
978 extra_channel_type[EFX_MAX_EXTRA_CHANNELS];
980 unsigned int xdp_tx_queue_count;
981 struct efx_tx_queue **xdp_tx_queues;
983 unsigned rxq_entries;
984 unsigned txq_entries;
985 unsigned int txq_stop_thresh;
986 unsigned int txq_wake_thresh;
988 unsigned tx_dc_base;
989 unsigned rx_dc_base;
990 unsigned sram_lim_qw;
991 unsigned next_buffer_table;
993 unsigned int max_channels;
994 unsigned int max_vis;
995 unsigned int max_tx_channels;
996 unsigned n_channels;
997 unsigned n_rx_channels;
998 unsigned rss_spread;
999 unsigned tx_channel_offset;
1000 unsigned n_tx_channels;
1001 unsigned n_extra_tx_channels;
1002 unsigned int tx_queues_per_channel;
1003 unsigned int n_xdp_channels;
1004 unsigned int xdp_channel_offset;
1005 unsigned int xdp_tx_per_channel;
1006 unsigned int rx_ip_align;
1007 unsigned int rx_dma_len;
1008 unsigned int rx_buffer_order;
1009 unsigned int rx_buffer_truesize;
1010 unsigned int rx_page_buf_step;
1011 unsigned int rx_bufs_per_page;
1012 unsigned int rx_pages_per_batch;
1013 unsigned int rx_prefix_size;
1014 int rx_packet_hash_offset;
1015 int rx_packet_len_offset;
1016 int rx_packet_ts_offset;
1017 bool rx_scatter;
1018 struct efx_rss_context rss_context;
1019 struct mutex rss_lock;
1020 u32 vport_id;
1022 unsigned int_error_count;
1023 unsigned long int_error_expire;
1025 bool must_realloc_vis;
1026 bool irq_soft_enabled;
1027 struct efx_buffer irq_status;
1028 unsigned irq_zero_count;
1029 unsigned irq_level;
1030 struct delayed_work selftest_work;
1033 struct list_head mtd_list;
1036 void *nic_data;
1037 struct efx_mcdi_data *mcdi;
1039 struct mutex mac_lock;
1040 struct work_struct mac_work;
1041 bool port_enabled;
1043 bool mc_bist_for_other_fn;
1044 bool port_initialized;
1045 struct net_device *net_dev;
1047 netdev_features_t fixed_features;
1049 u16 num_mac_stats;
1050 struct efx_buffer stats_buffer;
1051 u64 rx_nodesc_drops_total;
1052 u64 rx_nodesc_drops_while_down;
1053 bool rx_nodesc_drops_prev_state;
1055 unsigned int phy_type;
1056 void *phy_data;
1057 struct mdio_if_info mdio;
1058 unsigned int mdio_bus;
1059 enum efx_phy_mode phy_mode;
1062 u32 fec_config;
1063 struct efx_link_state link_state;
1064 unsigned int n_link_state_changes;
1066 bool unicast_filter;
1067 union efx_multicast_hash multicast_hash;
1068 u8 wanted_fc;
1069 unsigned fc_disable;
1071 atomic_t rx_reset;
1072 enum efx_loopback_mode loopback_mode;
1073 u64 loopback_modes;
1075 void *loopback_selftest;
1079 struct bpf_prog __rcu *xdp_prog;
1081 struct rw_semaphore filter_sem;
1082 void *filter_state;
1084 struct mutex rps_mutex;
1085 unsigned long rps_slot_map;
1086 struct efx_async_filter_insertion rps_slot[EFX_RPS_MAX_IN_FLIGHT];
1087 spinlock_t rps_hash_lock;
1088 struct hlist_head *rps_hash_table;
1089 u32 rps_next_id;
1092 atomic_t active_queues;
1093 atomic_t rxq_flush_pending;
1094 atomic_t rxq_flush_outstanding;
1095 wait_queue_head_t flush_wq;
1098 unsigned vf_count;
1099 unsigned vf_init_count;
1123 static inline int efx_dev_registered(struct efx_nic *efx) in efx_dev_registered() argument