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