Lines Matching defs:xgbe_prv_data

1055 struct xgbe_prv_data {  struct
1056 struct net_device *netdev;
1057 struct pci_dev *pcidev;
1058 struct platform_device *platdev;
1059 struct acpi_device *adev;
1060 struct device *dev;
1061 struct platform_device *phy_platdev;
1062 struct device *phy_dev;
1065 struct xgbe_version_data *vdata;
1068 unsigned int use_acpi;
1071 void __iomem *xgmac_regs; /* XGMAC CSRs */
1072 void __iomem *xpcs_regs; /* XPCS MMD registers */
1073 void __iomem *rxtx_regs; /* SerDes Rx/Tx CSRs */
1074 void __iomem *sir0_regs; /* SerDes integration registers (1/2) */
1075 void __iomem *sir1_regs; /* SerDes integration registers (2/2) */
1076 void __iomem *xprop_regs; /* XGBE property registers */
1077 void __iomem *xi2c_regs; /* XGBE I2C CSRs */
1080 unsigned int pp0;
1081 unsigned int pp1;
1082 unsigned int pp2;
1083 unsigned int pp3;
1084 unsigned int pp4;
1087 spinlock_t lock;
1090 spinlock_t xpcs_lock;
1091 unsigned int xpcs_window_def_reg;
1092 unsigned int xpcs_window_sel_reg;
1093 unsigned int xpcs_window;
1094 unsigned int xpcs_window_size;
1095 unsigned int xpcs_window_mask;
1098 struct mutex rss_mutex;
1101 unsigned long dev_state;
1104 unsigned long tx_sec_period;
1105 unsigned long tx_ded_period;
1106 unsigned long rx_sec_period;
1107 unsigned long rx_ded_period;
1108 unsigned long desc_sec_period;
1109 unsigned long desc_ded_period;
1111 unsigned int tx_sec_count;
1112 unsigned int tx_ded_count;
1113 unsigned int rx_sec_count;
1114 unsigned int rx_ded_count;
1115 unsigned int desc_ded_count;
1116 unsigned int desc_sec_count;
1118 int dev_irq;
1119 int ecc_irq;
1120 int i2c_irq;
1121 int channel_irq[XGBE_MAX_DMA_CHANNELS];
1123 unsigned int per_channel_irq;
1124 unsigned int irq_count;
1125 unsigned int channel_irq_count;
1126 unsigned int channel_irq_mode;
1128 char ecc_name[IFNAMSIZ + 32];
1130 struct xgbe_hw_if hw_if;
1131 struct xgbe_phy_if phy_if;
1132 struct xgbe_desc_if desc_if;
1133 struct xgbe_i2c_if i2c_if;
1136 unsigned int coherent;
1137 unsigned int arcr;
1138 unsigned int awcr;
1139 unsigned int awarcr;
1142 struct workqueue_struct *dev_workqueue;
1143 struct work_struct service_work;
1144 struct timer_list service_timer;
1147 struct xgbe_channel *channel[XGBE_MAX_DMA_CHANNELS];
1148 unsigned int tx_max_channel_count;
1149 unsigned int rx_max_channel_count;
1150 unsigned int channel_count;
1151 unsigned int tx_ring_count;
1152 unsigned int tx_desc_count;
1153 unsigned int rx_ring_count;
1154 unsigned int rx_desc_count;
1156 unsigned int new_tx_ring_count;
1157 unsigned int new_rx_ring_count;
1159 unsigned int tx_max_q_count;
1160 unsigned int rx_max_q_count;
1161 unsigned int tx_q_count;
1162 unsigned int rx_q_count;
1165 unsigned int blen;
1166 unsigned int pbl;
1167 unsigned int aal;
1168 unsigned int rd_osr_limit;
1169 unsigned int wr_osr_limit;
1172 unsigned int tx_sf_mode;
1173 unsigned int tx_threshold;
1174 unsigned int tx_osp_mode;
1175 unsigned int tx_max_fifo_size;
1178 unsigned int rx_sf_mode;
1179 unsigned int rx_threshold;
1180 unsigned int rx_max_fifo_size;
1183 unsigned int tx_usecs;
1184 unsigned int tx_frames;
1187 unsigned int rx_riwt;
1188 unsigned int rx_usecs;
1189 unsigned int rx_frames;
1192 unsigned int rx_buf_size;
1195 unsigned int pause_autoneg;
1196 unsigned int tx_pause;
1197 unsigned int rx_pause;
1198 unsigned int rx_rfa[XGBE_MAX_QUEUES];
1199 unsigned int rx_rfd[XGBE_MAX_QUEUES];
1202 u8 rss_key[XGBE_RSS_HASH_KEY_SIZE];
1203 u32 rss_table[XGBE_RSS_MAX_TABLE_SIZE];
1204 u32 rss_options;
1207 u16 vxlan_port;
1210 unsigned char mac_addr[ETH_ALEN];
1211 netdev_features_t netdev_features;
1212 struct napi_struct napi;
1213 struct xgbe_mmc_stats mmc_stats;
1214 struct xgbe_ext_stats ext_stats;
1217 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
1220 struct clk *sysclk;
1221 unsigned long sysclk_rate;
1222 struct clk *ptpclk;
1223 unsigned long ptpclk_rate;
1226 spinlock_t tstamp_lock;
1227 struct ptp_clock_info ptp_clock_info;
1228 struct ptp_clock *ptp_clock;
1229 struct hwtstamp_config tstamp_config;
1230 struct cyclecounter tstamp_cc;
1231 struct timecounter tstamp_tc;
1232 unsigned int tstamp_addend;
1233 struct work_struct tx_tstamp_work;
1234 struct sk_buff *tx_tstamp_skb;
1235 u64 tx_tstamp;
1238 struct ieee_ets *ets;
1239 struct ieee_pfc *pfc;
1240 unsigned int q2tc_map[XGBE_MAX_QUEUES];
1241 unsigned int prio2q_map[IEEE_8021QAZ_MAX_TCS];
1242 unsigned int pfcq[XGBE_MAX_QUEUES];
1243 unsigned int pfc_rfa;
1244 u8 num_tcs;
1247 struct xgbe_hw_features hw_feat;
1250 struct work_struct restart_work;
1251 struct work_struct stopdev_work;
1254 unsigned int power_down;
1257 u32 msg_enable;
1260 phy_interface_t phy_mode;
1261 int phy_link;
1262 int phy_speed;
1265 unsigned int phy_started;
1266 void *phy_data;
1267 struct xgbe_phy phy;
1268 int mdio_mmd;
1269 unsigned long link_check;
1270 struct completion mdio_complete;
1272 unsigned int kr_redrv;
1274 char an_name[IFNAMSIZ + 32];
1275 struct workqueue_struct *an_workqueue;
1277 int an_irq;
1278 struct work_struct an_irq_work;
1281 unsigned int an_int;
1282 unsigned int an_status;
1283 struct mutex an_mutex;
1284 enum xgbe_an an_result;
1285 enum xgbe_an an_state;
1286 enum xgbe_rx kr_state;
1287 enum xgbe_rx kx_state;
1288 struct work_struct an_work;
1289 unsigned int an_again;
1290 unsigned int an_supported;
1291 unsigned int parallel_detect;
1292 unsigned int fec_ability;
1293 unsigned long an_start;
1294 unsigned long kr_start_time;
1295 enum xgbe_an_mode an_mode;
1298 struct xgbe_i2c i2c;
1299 struct mutex i2c_mutex;
1300 struct completion i2c_complete;
1301 char i2c_name[IFNAMSIZ + 32];
1303 unsigned int lpm_ctrl; /* CTRL1 for resume */
1305 unsigned int isr_as_bh_work;
1306 struct work_struct dev_bh_work;
1307 struct work_struct ecc_bh_work;
1331 struct xgbe_prv_data *xgbe_alloc_pdata(struct device *); argument