Lines Matching defs:efx_nic

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