Lines Matching defs:xgbe_prv_data

1017 struct xgbe_prv_data {  struct
1018 struct net_device *netdev;
1019 struct pci_dev *pcidev;
1020 struct platform_device *platdev;
1021 struct acpi_device *adev;
1022 struct device *dev;
1023 struct platform_device *phy_platdev;
1024 struct device *phy_dev;
1027 struct xgbe_version_data *vdata;
1030 unsigned int use_acpi;
1033 void __iomem *xgmac_regs; /* XGMAC CSRs */
1034 void __iomem *xpcs_regs; /* XPCS MMD registers */
1035 void __iomem *rxtx_regs; /* SerDes Rx/Tx CSRs */
1036 void __iomem *sir0_regs; /* SerDes integration registers (1/2) */
1037 void __iomem *sir1_regs; /* SerDes integration registers (2/2) */
1038 void __iomem *xprop_regs; /* XGBE property registers */
1039 void __iomem *xi2c_regs; /* XGBE I2C CSRs */
1042 unsigned int pp0;
1043 unsigned int pp1;
1044 unsigned int pp2;
1045 unsigned int pp3;
1046 unsigned int pp4;
1049 spinlock_t lock;
1052 spinlock_t xpcs_lock;
1053 unsigned int xpcs_window_def_reg;
1054 unsigned int xpcs_window_sel_reg;
1055 unsigned int xpcs_window;
1056 unsigned int xpcs_window_size;
1057 unsigned int xpcs_window_mask;
1060 struct mutex rss_mutex;
1063 unsigned long dev_state;
1066 unsigned long tx_sec_period;
1067 unsigned long tx_ded_period;
1068 unsigned long rx_sec_period;
1069 unsigned long rx_ded_period;
1070 unsigned long desc_sec_period;
1071 unsigned long desc_ded_period;
1073 unsigned int tx_sec_count;
1074 unsigned int tx_ded_count;
1075 unsigned int rx_sec_count;
1076 unsigned int rx_ded_count;
1077 unsigned int desc_ded_count;
1078 unsigned int desc_sec_count;
1080 int dev_irq;
1081 int ecc_irq;
1082 int i2c_irq;
1083 int channel_irq[XGBE_MAX_DMA_CHANNELS];
1085 unsigned int per_channel_irq;
1086 unsigned int irq_count;
1087 unsigned int channel_irq_count;
1088 unsigned int channel_irq_mode;
1090 char ecc_name[IFNAMSIZ + 32];
1092 struct xgbe_hw_if hw_if;
1093 struct xgbe_phy_if phy_if;
1094 struct xgbe_desc_if desc_if;
1095 struct xgbe_i2c_if i2c_if;
1098 unsigned int coherent;
1099 unsigned int arcr;
1100 unsigned int awcr;
1101 unsigned int awarcr;
1104 struct workqueue_struct *dev_workqueue;
1105 struct work_struct service_work;
1106 struct timer_list service_timer;
1109 struct xgbe_channel *channel[XGBE_MAX_DMA_CHANNELS];
1110 unsigned int tx_max_channel_count;
1111 unsigned int rx_max_channel_count;
1112 unsigned int channel_count;
1113 unsigned int tx_ring_count;
1114 unsigned int tx_desc_count;
1115 unsigned int rx_ring_count;
1116 unsigned int rx_desc_count;
1118 unsigned int new_tx_ring_count;
1119 unsigned int new_rx_ring_count;
1121 unsigned int tx_max_q_count;
1122 unsigned int rx_max_q_count;
1123 unsigned int tx_q_count;
1124 unsigned int rx_q_count;
1127 unsigned int blen;
1128 unsigned int pbl;
1129 unsigned int aal;
1130 unsigned int rd_osr_limit;
1131 unsigned int wr_osr_limit;
1134 unsigned int tx_sf_mode;
1135 unsigned int tx_threshold;
1136 unsigned int tx_osp_mode;
1137 unsigned int tx_max_fifo_size;
1140 unsigned int rx_sf_mode;
1141 unsigned int rx_threshold;
1142 unsigned int rx_max_fifo_size;
1145 unsigned int tx_usecs;
1146 unsigned int tx_frames;
1149 unsigned int rx_riwt;
1150 unsigned int rx_usecs;
1151 unsigned int rx_frames;
1154 unsigned int rx_buf_size;
1157 unsigned int pause_autoneg;
1158 unsigned int tx_pause;
1159 unsigned int rx_pause;
1160 unsigned int rx_rfa[XGBE_MAX_QUEUES];
1161 unsigned int rx_rfd[XGBE_MAX_QUEUES];
1164 u8 rss_key[XGBE_RSS_HASH_KEY_SIZE];
1165 u32 rss_table[XGBE_RSS_MAX_TABLE_SIZE];
1166 u32 rss_options;
1169 u16 vxlan_port;
1172 unsigned char mac_addr[ETH_ALEN];
1173 netdev_features_t netdev_features;
1174 struct napi_struct napi;
1175 struct xgbe_mmc_stats mmc_stats;
1176 struct xgbe_ext_stats ext_stats;
1179 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
1182 struct clk *sysclk;
1183 unsigned long sysclk_rate;
1184 struct clk *ptpclk;
1185 unsigned long ptpclk_rate;
1188 spinlock_t tstamp_lock;
1189 struct ptp_clock_info ptp_clock_info;
1190 struct ptp_clock *ptp_clock;
1191 struct hwtstamp_config tstamp_config;
1192 struct cyclecounter tstamp_cc;
1193 struct timecounter tstamp_tc;
1194 unsigned int tstamp_addend;
1195 struct work_struct tx_tstamp_work;
1196 struct sk_buff *tx_tstamp_skb;
1197 u64 tx_tstamp;
1200 struct ieee_ets *ets;
1201 struct ieee_pfc *pfc;
1202 unsigned int q2tc_map[XGBE_MAX_QUEUES];
1203 unsigned int prio2q_map[IEEE_8021QAZ_MAX_TCS];
1204 unsigned int pfcq[XGBE_MAX_QUEUES];
1205 unsigned int pfc_rfa;
1206 u8 num_tcs;
1209 struct xgbe_hw_features hw_feat;
1212 struct work_struct restart_work;
1213 struct work_struct stopdev_work;
1216 unsigned int power_down;
1219 u32 msg_enable;
1222 phy_interface_t phy_mode;
1223 int phy_link;
1224 int phy_speed;
1227 unsigned int phy_started;
1228 void *phy_data;
1229 struct xgbe_phy phy;
1230 int mdio_mmd;
1231 unsigned long link_check;
1232 struct completion mdio_complete;
1234 unsigned int kr_redrv;
1236 char an_name[IFNAMSIZ + 32];
1237 struct workqueue_struct *an_workqueue;
1239 int an_irq;
1240 struct work_struct an_irq_work;
1243 unsigned int an_int;
1244 unsigned int an_status;
1245 struct mutex an_mutex;
1246 enum xgbe_an an_result;
1247 enum xgbe_an an_state;
1248 enum xgbe_rx kr_state;
1249 enum xgbe_rx kx_state;
1250 struct work_struct an_work;
1251 unsigned int an_again;
1252 unsigned int an_supported;
1253 unsigned int parallel_detect;
1254 unsigned int fec_ability;
1255 unsigned long an_start;
1256 enum xgbe_an_mode an_mode;
1259 struct xgbe_i2c i2c;
1260 struct mutex i2c_mutex;
1261 struct completion i2c_complete;
1262 char i2c_name[IFNAMSIZ + 32];
1264 unsigned int lpm_ctrl; /* CTRL1 for resume */
1288 struct xgbe_prv_data *xgbe_alloc_pdata(struct device *); argument