Lines Matching defs:wm_softc
302 struct wm_softc;
338 struct wm_softc *txq_sc; /* shortcut (skip struct wm_queue) */
429 struct wm_softc *rxq_sc; /* shortcut (skip struct wm_queue) */
487 int (*acquire)(struct wm_softc *) __attribute__((warn_unused_result));
488 void (*release)(struct wm_softc *);
496 int (*acquire)(struct wm_softc *) __attribute__((warn_unused_result));
497 void (*release)(struct wm_softc *);
498 int (*read)(struct wm_softc *, int, int, uint16_t *);
504 struct wm_softc {
830 static inline uint32_t wm_io_read(struct wm_softc *, int);
832 static inline void wm_io_write(struct wm_softc *, int, uint32_t);
833 static inline void wm_82575_write_8bit_ctlr_reg(struct wm_softc *, uint32_t,
863 static uint16_t wm_check_alt_mac_addr(struct wm_softc *);
864 static int wm_read_mac_addr(struct wm_softc *, uint8_t *);
865 static void wm_set_ral(struct wm_softc *, const uint8_t *, int);
866 static uint32_t wm_mchash(struct wm_softc *, const uint8_t *);
867 static int wm_rar_count(struct wm_softc *);
868 static void wm_set_filter(struct wm_softc *);
870 static void wm_set_vlan(struct wm_softc *);
871 static void wm_set_pcie_completion_timeout(struct wm_softc *);
872 static void wm_get_auto_rd_done(struct wm_softc *);
873 static void wm_lan_init_done(struct wm_softc *);
874 static void wm_get_cfg_done(struct wm_softc *);
875 static int wm_phy_post_reset(struct wm_softc *);
876 static int wm_write_smbus_addr(struct wm_softc *);
877 static int wm_init_lcd_from_nvm(struct wm_softc *);
878 static int wm_oem_bits_config_ich8lan(struct wm_softc *, bool);
879 static void wm_initialize_hardware_bits(struct wm_softc *);
881 static int wm_reset_phy(struct wm_softc *);
882 static void wm_flush_desc_rings(struct wm_softc *);
883 static void wm_reset(struct wm_softc *);
886 static void wm_init_rss(struct wm_softc *);
887 static void wm_adjust_qnum(struct wm_softc *, int);
888 static inline bool wm_is_using_msix(struct wm_softc *);
889 static inline bool wm_is_using_multiqueue(struct wm_softc *);
890 static int wm_softint_establish_queue(struct wm_softc *, int, int);
891 static int wm_setup_legacy(struct wm_softc *);
892 static int wm_setup_msix(struct wm_softc *);
895 static void wm_init_sysctls(struct wm_softc *);
896 static void wm_update_stats(struct wm_softc *);
897 static void wm_clear_evcnt(struct wm_softc *);
898 static void wm_unset_stopping_flags(struct wm_softc *);
899 static void wm_set_stopping_flags(struct wm_softc *);
902 static void wm_dump_mbuf_chain(struct wm_softc *, struct mbuf *);
904 static int wm_82547_txfifo_bugchk(struct wm_softc *, struct mbuf *);
905 static void wm_itrs_writereg(struct wm_softc *, struct wm_queue *);
907 static int wm_alloc_tx_descs(struct wm_softc *, struct wm_txqueue *);
908 static void wm_free_tx_descs(struct wm_softc *, struct wm_txqueue *);
909 static void wm_init_tx_descs(struct wm_softc *, struct wm_txqueue *);
910 static void wm_init_tx_regs(struct wm_softc *, struct wm_queue *,
912 static int wm_alloc_rx_descs(struct wm_softc *, struct wm_rxqueue *);
913 static void wm_free_rx_descs(struct wm_softc *, struct wm_rxqueue *);
914 static void wm_init_rx_regs(struct wm_softc *, struct wm_queue *,
916 static int wm_alloc_tx_buffer(struct wm_softc *, struct wm_txqueue *);
917 static void wm_free_tx_buffer(struct wm_softc *, struct wm_txqueue *);
918 static void wm_init_tx_buffer(struct wm_softc *, struct wm_txqueue *);
919 static int wm_alloc_rx_buffer(struct wm_softc *, struct wm_rxqueue *);
920 static void wm_free_rx_buffer(struct wm_softc *, struct wm_rxqueue *);
921 static int wm_init_rx_buffer(struct wm_softc *, struct wm_rxqueue *);
922 static void wm_init_tx_queue(struct wm_softc *, struct wm_queue *,
924 static int wm_init_rx_queue(struct wm_softc *, struct wm_queue *,
926 static int wm_alloc_txrx_queues(struct wm_softc *);
927 static void wm_free_txrx_queues(struct wm_softc *);
928 static int wm_init_txrx_queues(struct wm_softc *);
930 static void wm_tx_offload(struct wm_softc *, struct wm_txqueue *,
939 static void wm_nq_tx_offload(struct wm_softc *, struct wm_txqueue *,
954 static void wm_linkintr_gmii(struct wm_softc *, uint32_t);
955 static void wm_linkintr_tbi(struct wm_softc *, uint32_t);
956 static void wm_linkintr_serdes(struct wm_softc *, uint32_t);
957 static void wm_linkintr(struct wm_softc *, uint32_t);
961 static void wm_itrs_calculate(struct wm_softc *, struct wm_queue *);
970 static void wm_tbi_serdes_set_linkled(struct wm_softc *);
972 static void wm_gmii_reset(struct wm_softc *);
973 static void wm_gmii_setup_phytype(struct wm_softc *, uint32_t, uint16_t);
974 static int wm_get_phy_id_82575(struct wm_softc *);
975 static void wm_gmii_mediainit(struct wm_softc *, pci_product_id_t);
978 static void wm_i82543_mii_sendbits(struct wm_softc *, uint32_t, int);
979 static uint16_t wm_i82543_mii_recvbits(struct wm_softc *);
1010 static int wm_kmrn_readreg(struct wm_softc *, int, uint16_t *);
1011 static int wm_kmrn_readreg_locked(struct wm_softc *, int, uint16_t *);
1012 static int wm_kmrn_writereg(struct wm_softc *, int, uint16_t);
1013 static int wm_kmrn_writereg_locked(struct wm_softc *, int, uint16_t);
1019 static bool wm_sgmii_uses_mdio(struct wm_softc *);
1020 static void wm_sgmii_sfp_preconfig(struct wm_softc *);
1026 static bool wm_tbi_havesignal(struct wm_softc *, uint32_t);
1027 static void wm_tbi_mediainit(struct wm_softc *);
1030 static int wm_check_for_link(struct wm_softc *);
1031 static void wm_tbi_tick(struct wm_softc *);
1033 static void wm_serdes_power_up_link_82575(struct wm_softc *);
1036 static void wm_serdes_tick(struct wm_softc *);
1038 static int wm_sfp_read_data_byte(struct wm_softc *, uint16_t, uint8_t *);
1039 static uint32_t wm_sfp_get_media_type(struct wm_softc *);
1046 static void wm_eeprom_sendbits(struct wm_softc *, uint32_t, int);
1047 static void wm_eeprom_recvbits(struct wm_softc *, uint32_t *, int);
1048 static int wm_nvm_set_addrbits_size_eecd(struct wm_softc *);
1050 static int wm_nvm_read_uwire(struct wm_softc *, int, int, uint16_t *);
1052 static int wm_nvm_ready_spi(struct wm_softc *);
1053 static int wm_nvm_read_spi(struct wm_softc *, int, int, uint16_t *);
1055 static int wm_poll_eerd_eewr_done(struct wm_softc *, int);
1056 static int wm_nvm_read_eerd(struct wm_softc *, int, int, uint16_t *);
1058 static int wm_nvm_valid_bank_detect_ich8lan(struct wm_softc *,
1060 static int32_t wm_ich8_cycle_init(struct wm_softc *);
1061 static int32_t wm_ich8_flash_cycle(struct wm_softc *, uint32_t);
1062 static int32_t wm_read_ich8_data(struct wm_softc *, uint32_t, uint32_t,
1064 static int32_t wm_read_ich8_byte(struct wm_softc *, uint32_t, uint8_t *);
1065 static int32_t wm_read_ich8_word(struct wm_softc *, uint32_t, uint16_t *);
1066 static int32_t wm_read_ich8_dword(struct wm_softc *, uint32_t, uint32_t *);
1067 static int wm_nvm_read_ich8(struct wm_softc *, int, int, uint16_t *);
1068 static int wm_nvm_read_spt(struct wm_softc *, int, int, uint16_t *);
1070 static int wm_nvm_read_word_invm(struct wm_softc *, uint16_t, uint16_t *);
1071 static int wm_nvm_read_invm(struct wm_softc *, int, int, uint16_t *);
1073 static int wm_nvm_is_onboard_eeprom(struct wm_softc *);
1074 static int wm_nvm_flash_presence_i210(struct wm_softc *);
1075 static int wm_nvm_validate_checksum(struct wm_softc *);
1076 static void wm_nvm_version_invm(struct wm_softc *);
1077 static void wm_nvm_version(struct wm_softc *);
1078 static int wm_nvm_read(struct wm_softc *, int, int, uint16_t *);
1084 static int wm_get_null(struct wm_softc *);
1085 static void wm_put_null(struct wm_softc *);
1086 static int wm_get_eecd(struct wm_softc *);
1087 static void wm_put_eecd(struct wm_softc *);
1088 static int wm_get_swsm_semaphore(struct wm_softc *); /* 8257[123] */
1089 static void wm_put_swsm_semaphore(struct wm_softc *);
1090 static int wm_get_swfw_semaphore(struct wm_softc *, uint16_t);
1091 static void wm_put_swfw_semaphore(struct wm_softc *, uint16_t);
1092 static int wm_get_nvm_80003(struct wm_softc *);
1093 static void wm_put_nvm_80003(struct wm_softc *);
1094 static int wm_get_nvm_82571(struct wm_softc *);
1095 static void wm_put_nvm_82571(struct wm_softc *);
1096 static int wm_get_phy_82575(struct wm_softc *);
1097 static void wm_put_phy_82575(struct wm_softc *);
1098 static int wm_get_swfwhw_semaphore(struct wm_softc *); /* For 574/583 */
1099 static void wm_put_swfwhw_semaphore(struct wm_softc *);
1100 static int wm_get_swflag_ich8lan(struct wm_softc *); /* For PHY */
1101 static void wm_put_swflag_ich8lan(struct wm_softc *);
1102 static int wm_get_nvm_ich8lan(struct wm_softc *);
1103 static void wm_put_nvm_ich8lan(struct wm_softc *);
1104 static int wm_get_hw_semaphore_82573(struct wm_softc *);
1105 static void wm_put_hw_semaphore_82573(struct wm_softc *);
1112 static int wm_check_mng_mode(struct wm_softc *);
1113 static int wm_check_mng_mode_ich8lan(struct wm_softc *);
1114 static int wm_check_mng_mode_82574(struct wm_softc *);
1115 static int wm_check_mng_mode_generic(struct wm_softc *);
1117 static int wm_enable_mng_pass_thru(struct wm_softc *);
1118 static bool wm_phy_resetisblocked(struct wm_softc *);
1119 static void wm_get_hw_control(struct wm_softc *);
1120 static void wm_release_hw_control(struct wm_softc *);
1121 static void wm_gate_hw_phy_config_ich8lan(struct wm_softc *, bool);
1122 static int wm_init_phy_workarounds_pchlan(struct wm_softc *);
1123 static void wm_init_manageability(struct wm_softc *);
1124 static void wm_release_manageability(struct wm_softc *);
1125 static void wm_get_wakeup(struct wm_softc *);
1126 static int wm_ulp_disable(struct wm_softc *);
1127 static int wm_enable_phy_wakeup(struct wm_softc *);
1128 static void wm_igp3_phy_powerdown_workaround_ich8lan(struct wm_softc *);
1129 static void wm_suspend_workarounds_ich8lan(struct wm_softc *);
1130 static int wm_resume_workarounds_pchlan(struct wm_softc *);
1131 static void wm_enable_wakeup(struct wm_softc *);
1132 static void wm_disable_aspm(struct wm_softc *);
1134 static void wm_lplu_d0_disable(struct wm_softc *);
1136 static int wm_set_eee_i350(struct wm_softc *);
1137 static int wm_set_eee_pchlan(struct wm_softc *);
1138 static int wm_set_eee(struct wm_softc *);
1144 static int wm_kmrn_lock_loss_workaround_ich8lan(struct wm_softc *);
1145 static void wm_gig_downshift_workaround_ich8lan(struct wm_softc *);
1146 static int wm_hv_phy_workarounds_ich8lan(struct wm_softc *);
1147 static void wm_copy_rx_addrs_to_phy_ich8lan(struct wm_softc *);
1148 static void wm_copy_rx_addrs_to_phy_ich8lan_locked(struct wm_softc *);
1149 static int wm_lv_jumbo_workaround_ich8lan(struct wm_softc *, bool);
1150 static int wm_lv_phy_workarounds_ich8lan(struct wm_softc *);
1151 static int wm_k1_workaround_lpt_lp(struct wm_softc *, bool);
1152 static int wm_k1_gig_workaround_hv(struct wm_softc *, int);
1153 static int wm_k1_workaround_lv(struct wm_softc *);
1154 static int wm_link_stall_workaround_hv(struct wm_softc *);
1155 static int wm_set_mdio_slow_mode_hv(struct wm_softc *);
1156 static int wm_set_mdio_slow_mode_hv_locked(struct wm_softc *);
1157 static void wm_configure_k1_ich8lan(struct wm_softc *, int);
1158 static void wm_reset_init_script_82575(struct wm_softc *);
1159 static void wm_reset_mdicnfg_82580(struct wm_softc *);
1160 static bool wm_phy_is_accessible_pchlan(struct wm_softc *);
1161 static void wm_toggle_lanphypc_pch_lpt(struct wm_softc *);
1162 static int wm_platform_pm_pch_lpt(struct wm_softc *, bool);
1163 static int wm_pll_workaround_i210(struct wm_softc *);
1164 static void wm_legacy_irq_quirk_spt(struct wm_softc *);
1165 static bool wm_phy_need_linkdown_discard(struct wm_softc *);
1166 static void wm_set_linkdown_discard(struct wm_softc *);
1167 static void wm_clear_linkdown_discard(struct wm_softc *);
1175 CFATTACH_DECL3_NEW(wm, sizeof(struct wm_softc),
1845 wm_io_read(struct wm_softc *sc, int reg)
1854 wm_io_write(struct wm_softc *sc, int reg, uint32_t val)
1862 wm_82575_write_8bit_ctlr_reg(struct wm_softc *sc, uint32_t reg, uint32_t off,
1897 struct wm_softc *sc = txq->txq_sc;
1916 struct wm_softc *sc = rxq->rxq_sc;
1925 struct wm_softc *sc = rxq->rxq_sc;
2008 struct wm_softc *sc = device_private(self);
3545 struct wm_softc *sc = device_private(self);
3750 struct wm_softc *sc = device_private(self);
3762 struct wm_softc *sc = device_private(self);
3809 struct wm_softc *sc = ifp->if_softc;
3841 struct wm_softc * const sc = arg;
3879 struct wm_softc *sc = ifp->if_softc;
3946 struct wm_softc *sc = arg;
3996 struct wm_softc *sc = ifp->if_softc;
4047 wm_phy_need_linkdown_discard(struct wm_softc *sc)
4064 wm_set_linkdown_discard(struct wm_softc *sc)
4077 wm_clear_linkdown_discard(struct wm_softc *sc)
4097 struct wm_softc *sc = ifp->if_softc;
4211 wm_check_alt_mac_addr(struct wm_softc *sc)
4241 wm_read_mac_addr(struct wm_softc *sc, uint8_t *enaddr)
4300 wm_set_ral(struct wm_softc *sc, const uint8_t *enaddr, int idx)
4376 wm_mchash(struct wm_softc *sc, const uint8_t *enaddr)
4404 wm_rar_count(struct wm_softc *sc)
4452 wm_set_filter(struct wm_softc *sc)
4606 wm_set_vlan(struct wm_softc *sc)
4623 wm_set_pcie_completion_timeout(struct wm_softc *sc)
4653 wm_get_auto_rd_done(struct wm_softc *sc)
4690 wm_lan_init_done(struct wm_softc *sc)
4729 wm_get_cfg_done(struct wm_softc *sc)
4813 wm_phy_post_reset(struct wm_softc *sc)
4874 wm_write_smbus_addr(struct wm_softc *sc)
4915 wm_init_lcd_from_nvm(struct wm_softc *sc)
5031 wm_oem_bits_config_ich8lan(struct wm_softc *sc, bool d0_state)
5090 wm_initialize_hardware_bits(struct wm_softc *sc)
5352 wm_reset_phy(struct wm_softc *sc)
5400 wm_flush_desc_rings(struct wm_softc *sc)
5492 wm_reset(struct wm_softc *sc)
5942 struct wm_softc *sc = rxq->rxq_sc;
5999 struct wm_softc *sc = rxq->rxq_sc;
6021 wm_init_rss(struct wm_softc *sc)
6085 wm_adjust_qnum(struct wm_softc *sc, int nvectors)
6162 wm_is_using_msix(struct wm_softc *sc)
6169 wm_is_using_multiqueue(struct wm_softc *sc)
6176 wm_softint_establish_queue(struct wm_softc *sc, int qidx, int intr_idx)
6198 wm_setup_legacy(struct wm_softc *sc)
6230 wm_setup_msix(struct wm_softc *sc)
6347 wm_unset_stopping_flags(struct wm_softc *sc)
6371 wm_set_stopping_flags(struct wm_softc *sc)
6398 wm_itrs_writereg(struct wm_softc *sc, struct wm_queue *wmq)
6444 wm_itrs_calculate(struct wm_softc *sc, struct wm_queue *wmq)
6496 wm_init_sysctls(struct wm_softc *sc)
6638 wm_update_stats(struct wm_softc *sc)
6841 wm_clear_evcnt(struct wm_softc *sc)
7012 struct wm_softc *sc = ifp->if_softc;
7030 struct wm_softc *sc = ifp->if_softc;
7626 struct wm_softc *sc = ifp->if_softc;
7650 struct wm_softc *sc = ifp->if_softc;
7754 wm_dump_mbuf_chain(struct wm_softc *sc, struct mbuf *m0)
7777 struct wm_softc *sc = arg;
7835 wm_82547_txfifo_bugchk(struct wm_softc *sc, struct mbuf *m0)
7865 wm_alloc_tx_descs(struct wm_softc *sc, struct wm_txqueue *txq)
7933 wm_free_tx_descs(struct wm_softc *sc, struct wm_txqueue *txq)
7944 wm_alloc_rx_descs(struct wm_softc *sc, struct wm_rxqueue *rxq)
8013 wm_free_rx_descs(struct wm_softc *sc, struct wm_rxqueue *rxq)
8025 wm_alloc_tx_buffer(struct wm_softc *sc, struct wm_txqueue *txq)
8056 wm_free_tx_buffer(struct wm_softc *sc, struct wm_txqueue *txq)
8068 wm_alloc_rx_buffer(struct wm_softc *sc, struct wm_rxqueue *rxq)
8097 wm_free_rx_buffer(struct wm_softc *sc, struct wm_rxqueue *rxq)
8113 wm_alloc_txrx_queues(struct wm_softc *sc)
8260 wm_free_txrx_queues(struct wm_softc *sc)
8327 wm_init_tx_descs(struct wm_softc *sc __unused, struct wm_txqueue *txq)
8341 wm_init_tx_regs(struct wm_softc *sc, struct wm_queue *wmq,
8388 wm_init_tx_buffer(struct wm_softc *sc __unused, struct wm_txqueue *txq)
8403 wm_init_tx_queue(struct wm_softc *sc, struct wm_queue *wmq,
8429 wm_init_rx_regs(struct wm_softc *sc, struct wm_queue *wmq,
8504 wm_init_rx_buffer(struct wm_softc *sc, struct wm_rxqueue *rxq)
8543 wm_init_rx_queue(struct wm_softc *sc, struct wm_queue *wmq,
8567 wm_init_txrx_queues(struct wm_softc *sc)
8613 wm_tx_offload(struct wm_softc *sc, struct wm_txqueue *txq,
8844 struct wm_softc *sc = ifp->if_softc;
8873 struct wm_softc *sc = ifp->if_softc;
8890 struct wm_softc *sc = ifp->if_softc;
8900 struct wm_softc *sc = ifp->if_softc;
8938 struct wm_softc *sc = ifp->if_softc;
9275 wm_nq_tx_offload(struct wm_softc *sc, struct wm_txqueue *txq,
9480 struct wm_softc *sc = ifp->if_softc;
9497 struct wm_softc *sc = ifp->if_softc;
9507 struct wm_softc *sc = ifp->if_softc;
9556 struct wm_softc *sc = ifp->if_softc;
9858 struct wm_softc *sc = txq->txq_sc;
9889 struct wm_softc *sc = txq->txq_sc;
10004 struct wm_softc *sc = rxq->rxq_sc;
10019 struct wm_softc *sc = rxq->rxq_sc;
10034 struct wm_softc *sc = rxq->rxq_sc;
10047 struct wm_softc *sc = rxq->rxq_sc;
10061 struct wm_softc *sc = rxq->rxq_sc;
10074 struct wm_softc *sc = rxq->rxq_sc;
10086 wm_rxdesc_is_set_status(struct wm_softc *sc, uint32_t status,
10099 wm_rxdesc_is_set_error(struct wm_softc *sc, uint32_t error,
10125 struct wm_softc *sc = rxq->rxq_sc;
10154 struct wm_softc *sc = rxq->rxq_sc;
10183 struct wm_softc *sc = rxq->rxq_sc;
10220 struct wm_softc *sc = rxq->rxq_sc;
10407 wm_linkintr_gmii(struct wm_softc *sc, uint32_t icr)
10719 wm_linkintr_tbi(struct wm_softc *sc, uint32_t icr)
10775 wm_linkintr_serdes(struct wm_softc *sc, uint32_t icr)
10851 wm_linkintr(struct wm_softc *sc, uint32_t icr)
10867 wm_sched_handle_queue(struct wm_softc *sc, struct wm_queue *wmq)
10881 wm_legacy_intr_disable(struct wm_softc *sc)
10888 wm_legacy_intr_enable(struct wm_softc *sc)
10902 struct wm_softc *sc = arg;
11010 struct wm_softc *sc = wmq->wmq_txq.txq_sc;
11030 struct wm_softc *sc = wmq->wmq_txq.txq_sc;
11061 struct wm_softc *sc = txq->txq_sc;
11122 struct wm_softc *sc = txq->txq_sc;
11174 struct wm_softc *sc = arg;
11252 wm_tbi_serdes_set_linkled(struct wm_softc *sc)
11274 wm_gmii_reset(struct wm_softc *sc)
11457 wm_gmii_setup_phytype(struct wm_softc *sc, uint32_t phy_oui,
11721 wm_get_phy_id_82575(struct wm_softc *sc)
11759 wm_gmii_mediainit(struct wm_softc *sc, pci_product_id_t prodid)
11910 struct wm_softc *sc = ifp->if_softc;
11991 struct wm_softc *sc = ifp->if_softc;
12037 wm_i82543_mii_sendbits(struct wm_softc *sc, uint32_t data, int nbits)
12063 wm_i82543_mii_recvbits(struct wm_softc *sc)
12116 struct wm_softc *sc = device_private(dev);
12138 struct wm_softc *sc = device_private(dev);
12156 struct wm_softc *sc = device_private(dev);
12209 struct wm_softc *sc = device_private(dev);
12260 struct wm_softc *sc = device_private(dev);
12279 struct wm_softc *sc = device_private(dev);
12314 struct wm_softc *sc = device_private(dev);
12332 struct wm_softc *sc = device_private(dev);
12369 struct wm_softc *sc = device_private(dev);
12429 struct wm_softc *sc = device_private(dev);
12488 struct wm_softc *sc = device_private(dev);
12536 struct wm_softc *sc = device_private(dev);
12586 struct wm_softc *sc = device_private(dev);
12642 struct wm_softc *sc = device_private(dev);
12690 struct wm_softc *sc = device_private(dev);
12754 struct wm_softc *sc = device_private(dev);
12820 struct wm_softc *sc = device_private(dev);
12841 struct wm_softc *sc = device_private(dev);
12907 struct wm_softc *sc = device_private(dev);
12939 struct wm_softc *sc = device_private(dev);
12971 struct wm_softc *sc = device_private(dev);
13007 struct wm_softc *sc = device_private(dev);
13042 struct wm_softc *sc = ifp->if_softc;
13104 wm_kmrn_readreg(struct wm_softc *sc, int reg, uint16_t *val)
13129 wm_kmrn_readreg_locked(struct wm_softc *sc, int reg, uint16_t *val)
13149 wm_kmrn_writereg(struct wm_softc *sc, int reg, uint16_t val)
13174 wm_kmrn_writereg_locked(struct wm_softc *sc, int reg, uint16_t val)
13190 struct wm_softc *sc = device_private(dev);
13227 wm_sgmii_uses_mdio(struct wm_softc *sc)
13255 wm_sgmii_sfp_preconfig(struct wm_softc *sc)
13295 struct wm_softc *sc = device_private(dev);
13313 struct wm_softc *sc = device_private(dev);
13353 struct wm_softc *sc = device_private(dev);
13372 struct wm_softc *sc = device_private(dev);
13406 wm_tbi_havesignal(struct wm_softc *sc, uint32_t ctrl)
13428 wm_tbi_mediainit(struct wm_softc *sc)
13539 struct wm_softc *sc = ifp->if_softc;
13653 struct wm_softc *sc = ifp->if_softc;
13684 wm_check_for_link(struct wm_softc *sc)
13768 wm_tbi_tick(struct wm_softc *sc)
13831 wm_serdes_power_up_link_82575(struct wm_softc *sc)
13857 struct wm_softc *sc = ifp->if_softc;
13937 struct wm_softc *sc = ifp->if_softc;
14029 wm_serdes_tick(struct wm_softc *sc)
14073 wm_sfp_read_data_byte(struct wm_softc *sc, uint16_t offset, uint8_t *data)
14099 wm_sfp_get_media_type(struct wm_softc *sc)
14176 wm_eeprom_sendbits(struct wm_softc *sc, uint32_t bits, int nbits)
14206 wm_eeprom_recvbits(struct wm_softc *sc, uint32_t *valp, int nbits)
14235 wm_nvm_read_uwire(struct wm_softc *sc, int word, int wordcnt, uint16_t *data)
14303 wm_nvm_set_addrbits_size_eecd(struct wm_softc *sc)
14371 wm_nvm_ready_spi(struct wm_softc *sc)
14398 wm_nvm_read_spi(struct wm_softc *sc, int word, int wordcnt, uint16_t *data)
14455 wm_poll_eerd_eewr_done(struct wm_softc *sc, int rw)
14475 wm_nvm_read_eerd(struct wm_softc *sc, int offset, int wordcnt, uint16_t *data)
14506 wm_nvm_valid_bank_detect_ich8lan(struct wm_softc *sc, unsigned int *bank)
14586 wm_ich8_cycle_init(struct wm_softc *sc)
14676 wm_ich8_flash_cycle(struct wm_softc *sc, uint32_t timeout)
14722 wm_read_ich8_data(struct wm_softc *sc, uint32_t index,
14823 wm_read_ich8_byte(struct wm_softc *sc, uint32_t index, uint8_t* data)
14845 wm_read_ich8_word(struct wm_softc *sc, uint32_t index, uint16_t *data)
14867 wm_read_ich8_dword(struct wm_softc *sc, uint32_t index, uint32_t *data)
14885 wm_nvm_read_ich8(struct wm_softc *sc, int offset, int words, uint16_t *data)
14946 wm_nvm_read_spt(struct wm_softc *sc, int offset, int words, uint16_t *data)
15005 wm_nvm_read_word_invm(struct wm_softc *sc, uint16_t address, uint16_t *data)
15039 wm_nvm_read_invm(struct wm_softc *sc, int offset, int words, uint16_t *data)
15118 wm_nvm_is_onboard_eeprom(struct wm_softc *sc)
15137 wm_nvm_flash_presence_i210(struct wm_softc *sc)
15154 wm_nvm_validate_checksum(struct wm_softc *sc)
15223 wm_nvm_version_invm(struct wm_softc *sc)
15243 wm_nvm_version(struct wm_softc *sc)
15395 wm_nvm_read(struct wm_softc *sc, int word, int wordcnt, uint16_t *data)
15416 wm_get_null(struct wm_softc *sc)
15425 wm_put_null(struct wm_softc *sc)
15434 wm_get_eecd(struct wm_softc *sc)
15467 wm_nvm_eec_clock_raise(struct wm_softc *sc, uint32_t *eecd)
15480 wm_nvm_eec_clock_lower(struct wm_softc *sc, uint32_t *eecd)
15493 wm_put_eecd(struct wm_softc *sc)
15526 wm_get_swsm_semaphore(struct wm_softc *sc)
15593 wm_put_swsm_semaphore(struct wm_softc *sc)
15610 wm_get_swfw_semaphore(struct wm_softc *sc, uint16_t mask)
15650 wm_put_swfw_semaphore(struct wm_softc *sc, uint16_t mask)
15668 wm_get_nvm_80003(struct wm_softc *sc)
15693 wm_put_nvm_80003(struct wm_softc *sc)
15705 wm_get_nvm_82571(struct wm_softc *sc)
15735 wm_put_nvm_82571(struct wm_softc *sc)
15754 wm_get_phy_82575(struct wm_softc *sc)
15763 wm_put_phy_82575(struct wm_softc *sc)
15772 wm_get_swfwhw_semaphore(struct wm_softc *sc)
15798 wm_put_swfwhw_semaphore(struct wm_softc *sc)
15813 wm_get_swflag_ich8lan(struct wm_softc *sc)
15855 wm_put_swflag_ich8lan(struct wm_softc *sc)
15872 wm_get_nvm_ich8lan(struct wm_softc *sc)
15883 wm_put_nvm_ich8lan(struct wm_softc *sc)
15892 wm_get_hw_semaphore_82573(struct wm_softc *sc)
15922 wm_put_hw_semaphore_82573(struct wm_softc *sc)
15941 wm_check_mng_mode(struct wm_softc *sc)
15977 wm_check_mng_mode_ich8lan(struct wm_softc *sc)
15991 wm_check_mng_mode_82574(struct wm_softc *sc)
16004 wm_check_mng_mode_generic(struct wm_softc *sc)
16018 wm_enable_mng_pass_thru(struct wm_softc *sc)
16057 wm_phy_resetisblocked(struct wm_softc *sc)
16108 wm_get_hw_control(struct wm_softc *sc)
16125 wm_release_hw_control(struct wm_softc *sc)
16142 wm_gate_hw_phy_config_ich8lan(struct wm_softc *sc, bool gate)
16163 wm_init_phy_workarounds_pchlan(struct wm_softc *sc)
16290 wm_init_manageability(struct wm_softc *sc)
16316 wm_release_manageability(struct wm_softc *sc)
16331 wm_get_wakeup(struct wm_softc *sc)
16389 wm_ulp_disable(struct wm_softc *sc)
16501 wm_enable_phy_wakeup(struct wm_softc *sc)
16585 wm_igp3_phy_powerdown_workaround_ich8lan(struct wm_softc *sc)
16636 wm_suspend_workarounds_ich8lan(struct wm_softc *sc)
16745 wm_resume_workarounds_pchlan(struct wm_softc *sc)
16804 wm_enable_wakeup(struct wm_softc *sc)
16877 wm_disable_aspm(struct wm_softc *sc)
16937 wm_lplu_d0_disable(struct wm_softc *sc)
16997 wm_set_eee_i350(struct wm_softc *sc)
17028 wm_set_eee_pchlan(struct wm_softc *sc)
17116 wm_set_eee(struct wm_softc *sc)
17141 wm_kmrn_lock_loss_workaround_ich8lan(struct wm_softc *sc)
17202 wm_gig_downshift_workaround_ich8lan(struct wm_softc *sc)
17223 wm_hv_phy_workarounds_ich8lan(struct wm_softc *sc)
17322 wm_copy_rx_addrs_to_phy_ich8lan(struct wm_softc *sc)
17337 wm_copy_rx_addrs_to_phy_ich8lan_locked(struct wm_softc *sc)
17376 wm_lv_jumbo_workaround_ich8lan(struct wm_softc *sc, bool enable)
17551 wm_lv_phy_workarounds_ich8lan(struct wm_softc *sc)
17591 wm_k1_workaround_lpt_lp(struct wm_softc *sc, bool link)
17666 wm_k1_gig_workaround_hv(struct wm_softc *sc, int link)
17704 wm_k1_workaround_lv(struct wm_softc *sc)
17756 wm_link_stall_workaround_hv(struct wm_softc *sc)
17788 wm_set_mdio_slow_mode_hv(struct wm_softc *sc)
17807 wm_set_mdio_slow_mode_hv_locked(struct wm_softc *sc)
17829 wm_configure_k1_ich8lan(struct wm_softc *sc, int k1_enable)
17873 wm_reset_init_script_82575(struct wm_softc *sc)
17903 wm_reset_mdicnfg_82580(struct wm_softc *sc)
17933 wm_phy_is_accessible_pchlan(struct wm_softc *sc)
17997 wm_toggle_lanphypc_pch_lpt(struct wm_softc *sc)
18034 wm_platform_pm_pch_lpt(struct wm_softc *sc, bool link)
18154 wm_pll_workaround_i210(struct wm_softc *sc)
18234 wm_legacy_irq_quirk_spt(struct wm_softc *sc)
18259 struct wm_softc *sc = txq->txq_sc;
18273 struct wm_softc *sc = txq->txq_sc;
18286 struct wm_softc *sc = (struct wm_softc *)node.sysctl_data;