Lines Matching defs:efx_nic
928 struct efx_nic { struct
933 struct efx_nic *primary; argument
937 const struct efx_nic_type *type; argument
938 int legacy_irq;
939 bool eeh_disabled_legacy_irq;
940 struct workqueue_struct *workqueue;
941 char workqueue_name[16];
942 struct work_struct reset_work;
943 resource_size_t membase_phys;
944 void __iomem *membase;
946 enum efx_int_mode interrupt_mode;
947 unsigned int timer_quantum_ns;
948 unsigned int timer_max_ns;
949 bool irq_rx_adaptive;
950 unsigned int irq_mod_step_us;
951 unsigned int irq_rx_moderation_us;
952 u32 msg_enable;
954 enum nic_state state;
955 unsigned long reset_pending;
957 struct efx_channel *channel[EFX_MAX_CHANNELS];
958 struct efx_msi_context msi_context[EFX_MAX_CHANNELS];
960 extra_channel_type[EFX_MAX_EXTRA_CHANNELS];
962 unsigned rxq_entries;
963 unsigned txq_entries;
964 unsigned int txq_stop_thresh;
965 unsigned int txq_wake_thresh;
967 unsigned tx_dc_base;
968 unsigned rx_dc_base;
969 unsigned sram_lim_qw;
970 unsigned next_buffer_table;
972 unsigned int max_channels;
973 unsigned int max_tx_channels;
974 unsigned n_channels;
975 unsigned n_rx_channels;
976 unsigned rss_spread;
977 unsigned tx_channel_offset;
978 unsigned n_tx_channels;
979 unsigned int rx_ip_align;
980 unsigned int rx_dma_len;
981 unsigned int rx_buffer_order;
982 unsigned int rx_buffer_truesize;
983 unsigned int rx_page_buf_step;
984 unsigned int rx_bufs_per_page;
985 unsigned int rx_pages_per_batch;
986 unsigned int rx_prefix_size;
987 int rx_packet_hash_offset;
988 int rx_packet_len_offset;
989 int rx_packet_ts_offset;
990 u8 rx_hash_key[40];
991 u32 rx_indir_table[128];
992 bool rx_scatter;
994 unsigned int_error_count;
995 unsigned long int_error_expire;
997 bool irq_soft_enabled;
998 struct efx_buffer irq_status;
999 unsigned irq_zero_count;
1000 unsigned irq_level;
1001 struct delayed_work selftest_work;
1004 struct list_head mtd_list;
1007 void *nic_data;
1008 struct efx_mcdi_data *mcdi;
1010 struct mutex mac_lock;
1011 struct work_struct mac_work;
1012 bool port_enabled;
1014 bool mc_bist_for_other_fn;
1015 bool port_initialized;
1016 struct net_device *net_dev;
1018 netdev_features_t fixed_features;
1020 struct efx_buffer stats_buffer;
1021 u64 rx_nodesc_drops_total;
1022 u64 rx_nodesc_drops_while_down;
1023 bool rx_nodesc_drops_prev_state;
1025 unsigned int phy_type;
1026 const struct efx_phy_operations *phy_op;
1027 void *phy_data;
1028 struct mdio_if_info mdio;
1029 unsigned int mdio_bus;
1030 enum efx_phy_mode phy_mode;
1032 u32 link_advertising;
1033 struct efx_link_state link_state;
1034 unsigned int n_link_state_changes;
1036 bool unicast_filter;
1037 union efx_multicast_hash multicast_hash;
1038 u8 wanted_fc;
1039 unsigned fc_disable;
1041 atomic_t rx_reset;
1042 enum efx_loopback_mode loopback_mode;
1043 u64 loopback_modes;
1045 void *loopback_selftest;
1047 struct rw_semaphore filter_sem;
1048 spinlock_t filter_lock;
1049 void *filter_state;
1051 unsigned int rps_expire_channel;
1052 unsigned int rps_expire_index;
1055 atomic_t active_queues;
1079 static inline int efx_dev_registered(struct efx_nic *efx) in efx_dev_registered() argument