Lines Matching defs:hw

40 static uint32_t e1000g_read_phy_stat(struct e1000_hw *hw, int reg);
152 struct e1000_hw *hw;
169 hw = &Adapter->shared;
215 e1000g_ksp->Mpc.value.ul += E1000_READ_REG(hw, E1000_MPC);
216 e1000g_ksp->Rlec.value.ul += E1000_READ_REG(hw, E1000_RLEC);
217 e1000g_ksp->Xonrxc.value.ul += E1000_READ_REG(hw, E1000_XONRXC);
218 e1000g_ksp->Xontxc.value.ul += E1000_READ_REG(hw, E1000_XONTXC);
219 e1000g_ksp->Xoffrxc.value.ul += E1000_READ_REG(hw, E1000_XOFFRXC);
220 e1000g_ksp->Xofftxc.value.ul += E1000_READ_REG(hw, E1000_XOFFTXC);
221 e1000g_ksp->Fcruc.value.ul += E1000_READ_REG(hw, E1000_FCRUC);
223 if ((hw->mac.type != e1000_ich8lan) &&
224 (hw->mac.type != e1000_ich9lan) &&
225 (hw->mac.type != e1000_ich10lan) &&
226 (hw->mac.type != e1000_pchlan)) {
228 E1000_READ_REG(hw, E1000_SYMERRS);
231 E1000_READ_REG(hw, E1000_PRC64);
233 E1000_READ_REG(hw, E1000_PRC127);
235 E1000_READ_REG(hw, E1000_PRC255);
237 E1000_READ_REG(hw, E1000_PRC511);
239 E1000_READ_REG(hw, E1000_PRC1023);
241 E1000_READ_REG(hw, E1000_PRC1522);
244 E1000_READ_REG(hw, E1000_PTC64);
246 E1000_READ_REG(hw, E1000_PTC127);
248 E1000_READ_REG(hw, E1000_PTC255);
250 E1000_READ_REG(hw, E1000_PTC511);
252 E1000_READ_REG(hw, E1000_PTC1023);
254 E1000_READ_REG(hw, E1000_PTC1522);
258 e1000g_ksp->Gprc.value.ul += E1000_READ_REG(hw, E1000_GPRC);
259 e1000g_ksp->Gptc.value.ul += E1000_READ_REG(hw, E1000_GPTC);
260 e1000g_ksp->Rfc.value.ul += E1000_READ_REG(hw, E1000_RFC);
261 e1000g_ksp->Tncrs.value.ul += e1000g_read_phy_stat(hw, E1000_TNCRS);
262 e1000g_ksp->Tsctc.value.ul += E1000_READ_REG(hw, E1000_TSCTC);
263 e1000g_ksp->Tsctfc.value.ul += E1000_READ_REG(hw, E1000_TSCTFC);
268 hw->mac.tx_packet_delta = E1000_READ_REG(hw, E1000_TPT);
269 Adapter->opackets += hw->mac.tx_packet_delta;
276 low_val = E1000_READ_REG(hw, E1000_GORCL);
277 high_val = E1000_READ_REG(hw, E1000_GORCH);
284 low_val = E1000_READ_REG(hw, E1000_GOTCL);
285 high_val = E1000_READ_REG(hw, E1000_GOTCH);
292 low_val = E1000_READ_REG(hw, E1000_TORL);
293 high_val = E1000_READ_REG(hw, E1000_TORH);
297 low_val = E1000_READ_REG(hw, E1000_TOTL);
298 high_val = E1000_READ_REG(hw, E1000_TOTH);
316 struct e1000_hw *hw = &Adapter->shared;
336 E1000_READ_REG(hw, E1000_MPRC);
342 E1000_READ_REG(hw, E1000_BPRC);
348 E1000_READ_REG(hw, E1000_MPTC);
354 E1000_READ_REG(hw, E1000_BPTC);
360 E1000_READ_REG(hw, E1000_RNBC);
366 E1000_READ_REG(hw, E1000_RXERRC);
368 E1000_READ_REG(hw, E1000_ALGNERRC);
370 E1000_READ_REG(hw, E1000_RLEC);
372 E1000_READ_REG(hw, E1000_CRCERRS);
374 E1000_READ_REG(hw, E1000_CEXTERR);
388 e1000g_read_phy_stat(hw, E1000_ECOL);
394 e1000g_read_phy_stat(hw, E1000_COLC);
404 low_val = E1000_READ_REG(hw, E1000_TORL);
405 high_val = E1000_READ_REG(hw, E1000_TORH);
413 E1000_READ_REG(hw, E1000_TPR);
423 low_val = E1000_READ_REG(hw, E1000_TOTL);
424 high_val = E1000_READ_REG(hw, E1000_TOTH);
432 E1000_READ_REG(hw, E1000_TPT);
438 E1000_READ_REG(hw, E1000_ALGNERRC);
444 E1000_READ_REG(hw, E1000_CRCERRS);
450 E1000_READ_REG(hw, E1000_SEC);
456 E1000_READ_REG(hw, E1000_CEXTERR);
462 e1000g_read_phy_stat(hw, E1000_ECOL);
468 e1000g_read_phy_stat(hw, E1000_LATECOL);
474 e1000g_read_phy_stat(hw, E1000_DC);
480 e1000g_read_phy_stat(hw, E1000_SCC);
486 e1000g_read_phy_stat(hw, E1000_MCC);
492 E1000_READ_REG(hw, E1000_RXERRC);
498 e1000g_read_phy_stat(hw, E1000_ECOL);
504 E1000_READ_REG(hw, E1000_ROC);
510 E1000_READ_REG(hw, E1000_RUC);
516 E1000_READ_REG(hw, E1000_RJC);
526 *val = hw->phy.id | hw->phy.revision;
533 (hw->phy.media_type == e1000_media_type_copper) ?
538 (hw->phy.media_type == e1000_media_type_copper) ?
620 *val = hw->mac.autoneg;
668 *val = hw->mac.autoneg;
883 e1000g_read_phy_stat(struct e1000_hw *hw, int reg)
889 if ((hw->phy.type == e1000_phy_82578) ||
890 (hw->phy.type == e1000_phy_82577)) {
894 (void) e1000_read_phy_reg(hw, HV_SCC_UPPER, &phy_high);
895 (void) e1000_read_phy_reg(hw, HV_SCC_LOWER, &phy_low);
900 (void) e1000_read_phy_reg(hw, HV_MCC_UPPER, &phy_high);
901 (void) e1000_read_phy_reg(hw, HV_MCC_LOWER, &phy_low);
906 (void) e1000_read_phy_reg(hw, HV_ECOL_UPPER, &phy_high);
907 (void) e1000_read_phy_reg(hw, HV_ECOL_LOWER, &phy_low);
912 (void) e1000_read_phy_reg(hw, HV_COLC_UPPER, &phy_high);
913 (void) e1000_read_phy_reg(hw, HV_COLC_LOWER, &phy_low);
918 (void) e1000_read_phy_reg(hw, HV_LATECOL_UPPER,
920 (void) e1000_read_phy_reg(hw, HV_LATECOL_LOWER,
926 (void) e1000_read_phy_reg(hw, HV_DC_UPPER, &phy_high);
927 (void) e1000_read_phy_reg(hw, HV_DC_LOWER, &phy_low);
932 (void) e1000_read_phy_reg(hw, HV_TNCRS_UPPER,
934 (void) e1000_read_phy_reg(hw, HV_TNCRS_LOWER,
945 val = E1000_READ_REG(hw, reg);
959 struct e1000_hw *hw = &Adapter->shared;
976 low_val = E1000_READ_REG(hw, E1000_TORL);
977 high_val = E1000_READ_REG(hw, E1000_TORH);
985 E1000_READ_REG(hw, E1000_TPR);