/freebsd-src/sys/dev/isci/scil/ |
H A D | scic_sds_phy_registers.h | 78 #define scu_transport_layer_read(phy, reg) \ argument 88 #define scu_transport_layer_write(phy, reg, value) \ argument 102 #define SCU_TLCR_READ(phy) \ argument 108 #define SCU_TLCR_WRITE(phy, value) \ argument 114 #define SCU_TLADTR_READ(phy) \ argument 120 #define SCU_TLADTR_WRITE(phy) \ argument 126 #define SCU_STPTLDARNI_WRITE(phy, index) \ argument 132 #define SCU_STPTLDARNI_READ(phy) \ argument 143 #define scu_link_layer_register_read(phy, reg) \ argument 153 #define scu_link_layer_register_write(phy, reg, value) \ argument [all …]
|
/freebsd-src/sys/dev/cxgb/common/ |
H A D | cxgb_ael1002.c | 99 static int set_phy_regs(struct cphy *phy, const struct reg_val *rv) in set_phy_regs() 115 static void ael100x_txon(struct cphy *phy) in ael100x_txon() 127 static int ael_i2c_rd(struct cphy *phy, int dev_addr, int word_addr) in ael_i2c_rd() 158 static int ael_i2c_wr(struct cphy *phy, int dev_addr, int word_addr, int data) in ael_i2c_wr() 185 static int get_phytrans_type(struct cphy *phy) in get_phytrans_type() 196 static int ael_laser_down(struct cphy *phy, int enable) in ael_laser_down() 234 static int ael1002_power_down(struct cphy *phy, int enable) in ael1002_power_down() 245 static int ael1002_get_module_type(struct cphy *phy, int delay_ms) in ael1002_get_module_type() 257 static int ael1002_reset(struct cphy *phy, int wait) in ael1002_reset() 277 static int ael1002_intr_noop(struct cphy *phy) in ael1002_intr_noop() [all …]
|
H A D | cxgb_aq100x.c | 66 #define AQ_WRITE_REGS(phy, regs) do { \ argument 72 #define AQ_READ_REGS(phy, regs) do { \ argument 83 aq100x_temperature(struct cphy *phy) in aq100x_temperature() 98 aq100x_set_defaults(struct cphy *phy) in aq100x_set_defaults() 104 aq100x_reset(struct cphy *phy, int wait) in aq100x_reset() 114 aq100x_intr_enable(struct cphy *phy) in aq100x_intr_enable() 132 aq100x_intr_disable(struct cphy *phy) in aq100x_intr_disable() 150 aq100x_intr_clear(struct cphy *phy) in aq100x_intr_clear() 166 aq100x_vendor_intr(struct cphy *phy, int *rc) in aq100x_vendor_intr() 202 aq100x_intr_handler(struct cphy *phy) in aq100x_intr_handler() [all …]
|
H A D | cxgb_tn1010.c | 75 static int tn1010_reset(struct cphy *phy, int wait) in tn1010_reset() 82 static int tn1010_power_down(struct cphy *phy, int enable) in tn1010_power_down() 88 static int tn1010_autoneg_enable(struct cphy *phy) in tn1010_autoneg_enable() 99 static int tn1010_autoneg_restart(struct cphy *phy) in tn1010_autoneg_restart() 110 static int tn1010_advertise(struct cphy *phy, unsigned int advert) in tn1010_advertise() 131 static int tn1010_get_link_status(struct cphy *phy, int *link_state, in tn1010_get_link_status() 176 static int tn1010_set_speed_duplex(struct cphy *phy, int speed, int duplex) in tn1010_set_speed_duplex()
|
/freebsd-src/sys/dev/etherswitch/arswitch/ |
H A D | arswitch_reg.c | 65 arswitch_split_setpage(device_t dev, uint32_t addr, uint16_t *phy, in arswitch_split_setpage() 90 uint16_t phy, reg; in arswitch_readreg16() local 102 uint16_t phy, reg; in arswitch_writereg16() local 109 arswitch_writedbg(device_t dev, int phy, uint16_t dbg_addr, in arswitch_writedbg() 119 arswitch_writemmd(device_t dev, int phy, uint16_t dbg_addr, in arswitch_writemmd() 129 arswitch_reg_read32(device_t dev, int phy, int reg) in arswitch_reg_read32() 139 arswitch_reg_write32(device_t dev, int phy, int reg, uint32_t value) in arswitch_reg_write32() 167 uint16_t phy, reg; in arswitch_readreg() local 176 uint16_t phy, reg; in arswitch_writereg() local 221 uint16_t phy, reg; in arswitch_modifyreg() local [all …]
|
H A D | arswitch_phy.c | 71 arswitch_readphy_external(device_t dev, int phy, int reg) in arswitch_readphy_external() 89 arswitch_writephy_external(device_t dev, int phy, int reg, int data) in arswitch_writephy_external() 111 arswitch_readphy_internal(device_t dev, int phy, int reg) in arswitch_readphy_internal() 172 arswitch_writephy_internal(device_t dev, int phy, int reg, int data) in arswitch_writephy_internal()
|
/freebsd-src/sys/dev/etherswitch/ar40xx/ |
H A D | ar40xx_phy.c | 82 int phy; in ar40xx_phy_tick() local 132 ar40xx_portforphy(int phy) in ar40xx_portforphy() 141 int phy; in ar40xx_phy_miiforport() local 153 int phy; in ar40xx_phy_ifpforport() local 196 int phy, err = 0; in ar40xx_attach_phys() local 232 int phy; in ar40xx_hw_phy_get_ids() local
|
/freebsd-src/sys/contrib/dev/mediatek/mt76/ |
H A D | testmode.c | 31 void mt76_testmode_tx_pending(struct mt76_phy *phy) in mt76_testmode_tx_pending() 71 mt76_testmode_max_mpdu_len(struct mt76_phy *phy, u8 tx_rate_mode) in mt76_testmode_max_mpdu_len() 93 mt76_testmode_free_skb(struct mt76_phy *phy) in mt76_testmode_free_skb() 101 int mt76_testmode_alloc_skb(struct mt76_phy *phy, u32 len) in mt76_testmode_alloc_skb() 178 mt76_testmode_tx_init(struct mt76_phy *phy) in mt76_testmode_tx_init() 270 mt76_testmode_tx_start(struct mt76_phy *phy) in mt76_testmode_tx_start() 282 mt76_testmode_tx_stop(struct mt76_phy *phy) in mt76_testmode_tx_stop() 312 mt76_testmode_init_defaults(struct mt76_phy *phy) in mt76_testmode_init_defaults() 330 __mt76_testmode_set_state(struct mt76_phy *phy, enum mt76_testmode_state state) in __mt76_testmode_set_state() 364 int mt76_testmode_set_state(struct mt76_phy *phy, enum mt76_testmode_state state) in mt76_testmode_set_state() [all …]
|
H A D | mac80211.c | 206 static int mt76_led_init(struct mt76_phy *phy) in mt76_led_init() 244 static void mt76_led_cleanup(struct mt76_phy *phy) in mt76_led_cleanup() 253 static void mt76_init_stream_cap(struct mt76_phy *phy, in mt76_init_stream_cap() 295 void mt76_set_stream_caps(struct mt76_phy *phy, bool vht) in mt76_set_stream_caps() 307 mt76_init_sband(struct mt76_phy *phy, struct mt76_sband *msband, in mt76_init_sband() 364 mt76_init_sband_2g(struct mt76_phy *phy, struct ieee80211_rate *rates, in mt76_init_sband_2g() 375 mt76_init_sband_5g(struct mt76_phy *phy, struct ieee80211_rate *rates, in mt76_init_sband_5g() 386 mt76_init_sband_6g(struct mt76_phy *phy, struct ieee80211_rate *rates, in mt76_init_sband_6g() 397 mt76_check_sband(struct mt76_phy *phy, struct mt76_sband *msband, in mt76_check_sband() 426 mt76_phy_init(struct mt76_phy *phy, struct ieee80211_hw *hw) in mt76_phy_init() [all …]
|
/freebsd-src/sys/contrib/dev/mediatek/mt76/mt7915/ |
H A D | testmode.c | 38 mt7915_tm_set_tx_power(struct mt7915_phy *phy) in mt7915_tm_set_tx_power() 74 mt7915_tm_set_freq_offset(struct mt7915_phy *phy, bool en, u32 val) in mt7915_tm_set_freq_offset() 106 mt7915_tm_set_trx(struct mt7915_phy *phy, int type, bool en) in mt7915_tm_set_trx() 122 mt7915_tm_clean_hwq(struct mt7915_phy *phy, u8 wcid) in mt7915_tm_clean_hwq() 137 mt7915_tm_set_slot_time(struct mt7915_phy *phy, u8 slot_time, u8 sifs) in mt7915_tm_set_slot_time() 155 mt7915_tm_set_tam_arb(struct mt7915_phy *phy, bool enable, bool mu) in mt7915_tm_set_tam_arb() 171 mt7915_tm_set_wmm_qid(struct mt7915_phy *phy, u8 qid, u8 aifs, u8 cw_min, in mt7915_tm_set_wmm_qid() 190 mt7915_tm_set_ipg_params(struct mt7915_phy *phy, u32 ipg, u8 mode) in mt7915_tm_set_ipg_params() 255 mt7915_tm_set_tx_len(struct mt7915_phy *phy, u32 tx_time) in mt7915_tm_set_tx_len() 335 mt7915_tm_reg_backup_restore(struct mt7915_phy *phy) in mt7915_tm_reg_backup_restore() [all …]
|
H A D | init.c | 54 struct mt7915_phy *phy = dev_get_drvdata(dev); in mt7915_thermal_temp_show() local 80 struct mt7915_phy *phy = dev_get_drvdata(dev); in mt7915_thermal_temp_store() local 138 struct mt7915_phy *phy = cdev->devdata; in mt7915_thermal_get_cur_throttle_state() local 149 struct mt7915_phy *phy = cdev->devdata; in mt7915_thermal_set_cur_throttle_state() local 181 static void mt7915_unregister_thermal(struct mt7915_phy *phy) in mt7915_unregister_thermal() 193 static int mt7915_thermal_init(struct mt7915_phy *phy) in mt7915_thermal_init() 333 struct mt7915_phy *phy = mphy->priv; in mt7915_regd_notifier() local 350 mt7915_init_wiphy(struct mt7915_phy *phy) in mt7915_init_wiphy() 644 struct mt7915_phy *phy; in mt7915_alloc_ext_phy() local 665 mt7915_register_ext_phy(struct mt7915_dev *dev, struct mt7915_phy *phy) in mt7915_register_ext_phy() [all …]
|
H A D | main.c | 13 struct mt7915_phy *phy; in mt7915_dev_running() local 26 struct mt7915_phy *phy = mt7915_hw_phy(hw); in mt7915_run() local 114 struct mt7915_phy *phy = mt7915_hw_phy(hw); in mt7915_stop() local 209 struct mt7915_phy *phy = mt7915_hw_phy(hw); in mt7915_add_interface() local 290 struct mt7915_phy *phy = mt7915_hw_phy(hw); in mt7915_remove_interface() local 320 int mt7915_set_channel(struct mt7915_phy *phy) in mt7915_set_channel() 368 struct mt7915_phy *phy = mt7915_hw_phy(hw); in mt7915_set_key() local 434 struct mt7915_phy *phy = mt7915_hw_phy(hw); in mt7915_set_sar_specs() local 456 struct mt7915_phy *phy = mt7915_hw_phy(hw); in mt7915_config() local 523 struct mt7915_phy *phy = mt7915_hw_phy(hw); in mt7915_configure_filter() local [all …]
|
/freebsd-src/sys/contrib/dev/mediatek/mt76/mt7615/ |
H A D | main.c | 17 struct mt7615_phy *phy; in mt7615_dev_running() local 30 struct mt7615_phy *phy = mt7615_hw_phy(hw); in mt7615_start() local 97 struct mt7615_phy *phy = mt7615_hw_phy(hw); in mt7615_stop() local 184 struct mt7615_phy *phy = mt7615_hw_phy(hw); in mt7615_add_interface() local 253 struct mt7615_phy *phy = mt7615_hw_phy(hw); in mt7615_remove_interface() local 285 int mt7615_set_channel(struct mt7615_phy *phy) in mt7615_set_channel() 348 struct mt7615_phy *phy = mt7615_hw_phy(hw); in mt7615_set_key() local 415 struct mt7615_phy *phy = mt7615_hw_phy(hw); in mt7615_set_sar_specs() local 438 struct mt7615_phy *phy = mt7615_hw_phy(hw); in mt7615_config() local 500 struct mt7615_phy *phy = mt7615_hw_phy(hw); in mt7615_configure_filter() local [all …]
|
H A D | testmode.c | 48 mt7615_tm_set_tx_power(struct mt7615_phy *phy) in mt7615_tm_set_tx_power() 98 mt7615_tm_reg_backup_restore(struct mt7615_phy *phy) in mt7615_tm_reg_backup_restore() 133 mt7615_tm_init(struct mt7615_phy *phy) in mt7615_tm_init() 172 mt7615_tm_set_tx_antenna(struct mt7615_phy *phy, bool en) in mt7615_tm_set_tx_antenna() 225 mt7615_tm_set_tx_frames(struct mt7615_phy *phy, bool en) in mt7615_tm_set_tx_frames() 242 mt7615_tm_update_params(struct mt7615_phy *phy, u32 changed) in mt7615_tm_update_params() 261 struct mt7615_phy *phy = mphy->priv; in mt7615_tm_set_state() local 300 struct mt7615_phy *phy = mphy->priv; in mt7615_tm_set_params() local 326 struct mt7615_phy *phy = mphy->priv; in mt7615_tm_dump_stats() local
|
/freebsd-src/sys/dev/bwn/ |
H A D | if_bwn_phy_g.c | 152 struct bwn_phy *phy = &mac->mac_phy; in bwn_phy_g_attach() local 239 struct bwn_phy *phy = &mac->mac_phy; in bwn_phy_g_init_pre() local 272 struct bwn_phy *phy = &mac->mac_phy; in bwn_phy_g_prepare_hw() local 443 struct bwn_phy *phy = &mac->mac_phy; in bwn_phy_g_txctl() local 522 struct bwn_phy *phy = &mac->mac_phy; in bwn_phy_g_rf_onoff() local 577 struct bwn_phy *phy = &mac->mac_phy; in bwn_phy_g_set_antenna() local 630 struct bwn_phy *phy = &mac->mac_phy; in bwn_phy_g_im() local 646 struct bwn_phy *phy = &mac->mac_phy; in bwn_phy_g_recalc_txpwr() local 698 struct bwn_phy *phy = &mac->mac_phy; in bwn_phy_g_set_txpwr() local 757 struct bwn_phy *phy = &mac->mac_phy; in bwn_phy_g_task_15s() local [all …]
|
/freebsd-src/sys/dev/bwi/ |
H A D | bwiphy.c | 156 struct bwi_phy *phy = &mac->mac_phy; in bwi_phy_attach() local 225 struct bwi_phy *phy = &mac->mac_phy; in bwi_phy_set_bbp_atten() local 244 struct bwi_phy *phy = &mac->mac_phy; in bwi_phy_calibrate() local 266 struct bwi_phy *phy = &mac->mac_phy; in bwi_tbl_write_2() local 278 struct bwi_phy *phy = &mac->mac_phy; in bwi_tbl_write_4() local 314 struct bwi_phy *phy = &mac->mac_phy; in bwi_phy_init_11g() local 507 struct bwi_phy *phy = &mac->mac_phy; in bwi_phy_init_11b_rev5() local 609 struct bwi_phy *phy = &mac->mac_phy; in bwi_phy_init_11b_rev6() local 749 struct bwi_phy *phy = &mac->mac_phy; in bwi_phy_config_11g() local 881 struct bwi_phy *phy = &mac->mac_phy; in bwi_phy_config_agc() local [all …]
|
/freebsd-src/sys/dev/phy/ |
H A D | phy.c | 315 struct phy *phy; in phy_create() local 333 phy_enable(phy_t phy) in phy_enable() 351 phy_disable(phy_t phy) in phy_disable() 371 phy_set_mode(phy_t phy, phy_mode_t mode, phy_submode_t submode) in phy_set_mode() 387 phy_status(phy_t phy, int *status) in phy_status() 404 phy_t *phy) in phy_get_by_id() 422 phy_release(phy_t phy) in phy_release() 479 phy_get_by_ofw_idx(device_t consumer_dev, phandle_t cnode, int idx, phy_t *phy) in phy_get_by_ofw_idx() 516 phy_t *phy) in phy_get_by_ofw_name() 535 phy_t *phy) in phy_get_by_ofw_property()
|
H A D | phy_internal.h | 60 struct phy { struct 62 struct phynode *phynode; argument 63 TAILQ_ENTRY(phy) link; /* Consumers list entry */ argument 69 #define PHY_TOPO_SLOCK() sx_slock(&phynode_topo_lock) argument
|
/freebsd-src/sys/contrib/dev/mediatek/mt76/mt7921/ |
H A D | main.c | 13 mt7921_init_he_caps(struct mt792x_phy *phy, enum nl80211_band band, in mt7921_init_he_caps() 188 void mt7921_set_stream_he_caps(struct mt792x_phy *phy) in mt7921_set_stream_he_caps() 222 int __mt7921_start(struct mt792x_phy *phy) in __mt7921_start() 255 struct mt792x_phy *phy = mt792x_hw_phy(hw); in mt7921_start() local 268 struct mt792x_phy *phy = mt792x_hw_phy(hw); in mt7921_stop() local 289 struct mt792x_phy *phy = mt792x_hw_phy(hw); in mt7921_add_interface() local 345 struct mt792x_phy *phy = priv; in mt7921_roc_iter() local 352 struct mt792x_phy *phy; in mt7921_roc_work() local 368 static int mt7921_abort_roc(struct mt792x_phy *phy, struct mt792x_vif *vif) in mt7921_abort_roc() 383 static int mt7921_set_roc(struct mt792x_phy *phy, in mt7921_set_roc() [all …]
|
/freebsd-src/sys/contrib/dev/mediatek/mt76/mt7996/ |
H A D | init.c | 137 struct mt7996_phy *phy = mt7996_hw_phy(hw); in mt7996_regd_notifier() local 156 struct mt7996_phy *phy = mt7996_hw_phy(hw); in mt7996_init_wiphy() local 339 static int mt7996_register_phy(struct mt7996_dev *dev, struct mt7996_phy *phy, in mt7996_register_phy() 424 mt7996_unregister_phy(struct mt7996_phy *phy, enum mt76_band_id band) in mt7996_unregister_phy() 497 void mt7996_set_stream_vht_txbf_caps(struct mt7996_phy *phy) in mt7996_set_stream_vht_txbf_caps() 525 mt7996_set_stream_he_txbf_caps(struct mt7996_phy *phy, in mt7996_set_stream_he_txbf_caps() 597 mt7996_init_he_caps(struct mt7996_phy *phy, enum nl80211_band band, in mt7996_init_he_caps() 724 mt7996_init_eht_caps(struct mt7996_phy *phy, enum nl80211_band band, in mt7996_init_eht_caps() 819 __mt7996_set_stream_he_eht_caps(struct mt7996_phy *phy, in __mt7996_set_stream_he_eht_caps() 849 void mt7996_set_stream_he_eht_caps(struct mt7996_phy *phy) in mt7996_set_stream_he_eht_caps()
|
H A D | main.c | 12 struct mt7996_phy *phy; in mt7996_dev_running() local 29 struct mt7996_phy *phy = mt7996_hw_phy(hw); in mt7996_run() local 83 struct mt7996_phy *phy = mt7996_hw_phy(hw); in mt7996_stop() local 168 struct mt7996_phy *phy = mt7996_hw_phy(hw); in mt7996_add_interface() local 248 struct mt7996_phy *phy = mt7996_hw_phy(hw); in mt7996_remove_interface() local 274 int mt7996_set_channel(struct mt7996_phy *phy) in mt7996_set_channel() 314 struct mt7996_phy *phy = mt7996_hw_phy(hw); in mt7996_set_key() local 380 struct mt7996_phy *phy = mt7996_hw_phy(hw); in mt7996_config() local 431 struct mt7996_phy *phy = mt7996_hw_phy(hw); in mt7996_configure_filter() local 559 struct mt7996_phy *phy = mt7996_hw_phy(hw); in mt7996_bss_info_changed() local [all …]
|
/freebsd-src/sys/dev/bxe/ |
H A D | bxe_elink.c | 3413 struct elink_phy *phy, in elink_cl22_write() 3448 struct elink_phy *phy, in elink_cl22_read() 3489 static elink_status_t elink_cl45_read(struct bxe_softc *sc, struct elink_phy *phy, in elink_cl45_read() 3566 static elink_status_t elink_cl45_write(struct bxe_softc *sc, struct elink_phy *phy, in elink_cl45_write() 3779 static elink_status_t elink_eee_disable(struct elink_phy *phy, in elink_eee_disable() 3795 static elink_status_t elink_eee_advertise(struct elink_phy *phy, in elink_eee_advertise() 3832 static void elink_eee_an_resolve(struct elink_phy *phy, in elink_eee_an_resolve() 3992 static void elink_cl45_read_or_write(struct bxe_softc *sc, struct elink_phy *phy, in elink_cl45_read_or_write() 4001 struct elink_phy *phy, in elink_cl45_read_and_write() 4043 static uint8_t elink_get_warpcore_lane(struct elink_phy *phy, in elink_get_warpcore_lane() [all …]
|
/freebsd-src/sys/dev/mdio/ |
H A D | mdio.c | 71 mdio_writereg(device_t dev, int phy, int reg, int val) in mdio_readreg() argument 78 mdio_readextreg(device_t dev, int phy, int devad, int reg) in mdio_writereg() argument 85 mdio_writeextreg(device_t dev, int phy, int devad, int reg, in mdio_readextreg() argument 92 mdio_writeextreg(device_t dev,int phy,int devad,int reg,int val) mdio_writeextreg() argument
|
/freebsd-src/sys/dev/igc/ |
H A D | igc_phy.c | 20 struct igc_phy_info *phy = &hw->phy; in igc_init_phy_ops_generic() local 133 struct igc_phy_info *phy = &hw->phy; in igc_get_phy_id() local 169 struct igc_phy_info *phy = &hw->phy; in igc_read_phy_reg_mdic() local 228 struct igc_phy_info *phy = &hw->phy; in igc_write_phy_reg_mdic() local 288 struct igc_phy_info *phy = &hw->phy; in igc_phy_setup_autoneg() local 472 struct igc_phy_info *phy = &hw->phy; in igc_copper_link_autoneg() local 656 struct igc_phy_info *phy = &hw->phy; in igc_set_d3_lplu_state_generic() local 740 struct igc_phy_info *phy = &hw->phy; in igc_check_downshift_generic() local 855 struct igc_phy_info *phy = &hw->phy; in igc_phy_hw_reset_generic() local
|
/freebsd-src/sys/dev/etherswitch/ip17x/ |
H A D | ip17x_phy.c | 54 ip17x_readphy(device_t dev, int phy, int reg) in ip17x_readphy() 75 ip17x_writephy(device_t dev, int phy, int reg, int data) in ip17x_writephy() 96 ip17x_updatephy(device_t dev, int phy, int reg, int mask, int value) in ip17x_updatephy()
|