/freebsd/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/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/sys/contrib/dev/mediatek/mt76/ |
H A D | channel.c | 22 mt76_phy_update_channel(struct mt76_phy *phy, in mt76_phy_update_channel() 36 struct mt76_phy *phy = hw->priv; in mt76_add_chanctx() local 62 struct mt76_phy *phy = hw->priv; in mt76_remove_chanctx() local 84 struct mt76_phy *phy = ctx->phy; in mt76_change_chanctx() local 109 struct mt76_phy *phy = ctx->phy; in mt76_assign_vif_chanctx() local 160 struct mt76_phy *phy = ctx->phy; in mt76_unassign_vif_chanctx() local 199 struct mt76_phy *phy = hw->priv; in mt76_switch_vif_chanctx() local 266 struct mt76_vif_link *mt76_get_vif_phy_link(struct mt76_phy *phy, in mt76_get_vif_phy_link() 300 void mt76_put_vif_phy_link(struct mt76_phy *phy, struct ieee80211_vif *vif, in mt76_put_vif_phy_link() 312 static void mt76_roc_complete(struct mt76_phy *phy) in mt76_roc_complete() [all …]
|
H A D | mac80211.c | 205 static int mt76_led_init(struct mt76_phy *phy) in mt76_led_init() 252 static void mt76_led_cleanup(struct mt76_phy *phy) in mt76_led_cleanup() 261 static void mt76_init_stream_cap(struct mt76_phy *phy, in mt76_init_stream_cap() 303 void mt76_set_stream_caps(struct mt76_phy *phy, bool vht) in mt76_set_stream_caps() 315 mt76_init_sband(struct mt76_phy *phy, struct mt76_sband *msband, in mt76_init_sband() 372 mt76_init_sband_2g(struct mt76_phy *phy, struct ieee80211_rate *rates, in mt76_init_sband_2g() 383 mt76_init_sband_5g(struct mt76_phy *phy, struct ieee80211_rate *rates, in mt76_init_sband_5g() 394 mt76_init_sband_6g(struct mt76_phy *phy, struct ieee80211_rate *rates, in mt76_init_sband_6g() 405 mt76_check_sband(struct mt76_phy *phy, struct mt76_sband *msband, in mt76_check_sband() 437 mt76_phy_init(struct mt76_phy *phy, struct ieee80211_hw *hw) in mt76_phy_init() [all …]
|
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 | scan.c | 9 struct mt76_phy *phy = dev->scan.phy; in mt76_scan_complete() local 39 struct mt76_phy *phy = dev->scan.phy; in mt76_scan_send_probe() local 80 struct mt76_phy *phy = dev->scan.phy; in mt76_scan_work() local 124 struct mt76_phy *phy = hw->priv; in mt76_hw_scan() local 164 struct mt76_phy *phy = hw->priv; in mt76_cancel_hw_scan() local
|
H A D | tx.c | 260 struct mt76_phy *phy = hw->priv; in __mt76_tx_complete_skb() local 299 __mt76_tx_queue_skb(struct mt76_phy *phy, int qid, struct sk_buff *skb, in __mt76_tx_queue_skb() 332 mt76_tx(struct mt76_phy *phy, struct ieee80211_sta *sta, in mt76_tx() 372 mt76_txq_dequeue(struct mt76_phy *phy, struct mt76_txq *mtxq) in mt76_txq_dequeue() 389 mt76_queue_ps_skb(struct mt76_phy *phy, struct ieee80211_sta *sta, in mt76_queue_ps_skb() 410 struct mt76_phy *phy = hw->priv; in mt76_release_buffered_frames() local 457 mt76_txq_send_burst(struct mt76_phy *phy, struct mt76_queue *q, in mt76_txq_send_burst() 523 mt76_txq_schedule_list(struct mt76_phy *phy, enum mt76_txq_id qid) in mt76_txq_schedule_list() 579 void mt76_txq_schedule(struct mt76_phy *phy, enum mt76_txq_id qid) in mt76_txq_schedule() 601 mt76_txq_schedule_pending_wcid(struct mt76_phy *phy, struct mt76_wcid *wcid, in mt76_txq_schedule_pending_wcid() [all …]
|
/freebsd/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/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/sys/contrib/dev/mediatek/mt76/mt7915/ |
H A D | init.c | 54 struct mt7915_phy *phy = dev_get_drvdata(dev); in mt7915_thermal_temp_show() local 82 struct mt7915_phy *phy = dev_get_drvdata(dev); in mt7915_thermal_temp_store() local 139 struct mt7915_phy *phy = cdev->devdata; in mt7915_thermal_get_cur_throttle_state() local 150 struct mt7915_phy *phy = cdev->devdata; in mt7915_thermal_set_cur_throttle_state() local 184 static void mt7915_unregister_thermal(struct mt7915_phy *phy) in mt7915_unregister_thermal() 196 static int mt7915_thermal_init(struct mt7915_phy *phy) in mt7915_thermal_init() 298 static void __mt7915_init_txpower(struct mt7915_phy *phy, in __mt7915_init_txpower() 331 void mt7915_init_txpower(struct mt7915_phy *phy) in mt7915_init_txpower() 351 struct mt7915_phy *phy = mphy->priv; in mt7915_regd_notifier() local 366 mt7915_init_wiphy(struct mt7915_phy *phy) in mt7915_init_wiphy() [all …]
|
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 | 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 292 struct mt7915_phy *phy = mt7915_hw_phy(hw); in mt7915_remove_interface() local 325 struct mt7915_phy *phy = mphy->priv; in mt7915_set_channel() local 360 struct mt7915_phy *phy = mt7915_hw_phy(hw); in mt7915_set_key() local 433 struct mt7915_phy *phy = mt7915_hw_phy(hw); in mt7915_set_sar_specs() local 455 struct mt7915_phy *phy = mt7915_hw_phy(hw); in mt7915_config() local 526 struct mt7915_phy *phy = mt7915_hw_phy(hw); in mt7915_configure_filter() local [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7996/ |
H A D | init.c | 74 struct mt7996_phy *phy = dev_get_drvdata(dev); in mt7996_thermal_temp_show() local 100 struct mt7996_phy *phy = dev_get_drvdata(dev); in mt7996_thermal_temp_store() local 159 struct mt7996_phy *phy = cdev->devdata; in mt7996_thermal_get_cur_throttle_state() local 170 struct mt7996_phy *phy = cdev->devdata; in mt7996_thermal_set_cur_throttle_state() local 201 static void mt7996_unregister_thermal(struct mt7996_phy *phy) in mt7996_unregister_thermal() 214 static int mt7996_thermal_init(struct mt7996_phy *phy) in mt7996_thermal_init() 318 static void __mt7996_init_txpower(struct mt7996_phy *phy, in __mt7996_init_txpower() 343 void mt7996_init_txpower(struct mt7996_phy *phy) in mt7996_init_txpower() 362 struct mt7996_phy *phy; in mt7996_regd_notifier() local 378 mt7996_init_wiphy_band(struct ieee80211_hw *hw, struct mt7996_phy *phy) in mt7996_init_wiphy_band() [all …]
|
H A D | main.c | 10 int mt7996_run(struct mt7996_phy *phy) in mt7996_run() 69 static void mt7996_stop_phy(struct mt7996_phy *phy) in mt7996_stop_phy() 168 struct mt7996_phy *phy; in mt7996_set_hw_key() local 233 struct mt7996_phy *phy = mphy->priv; in mt7996_vif_link_add() local 304 struct mt7996_phy *phy = mphy->priv; in mt7996_vif_link_remove() local 329 static void mt7996_phy_set_rxfilter(struct mt7996_phy *phy) in mt7996_phy_set_rxfilter() 353 static void mt7996_set_monitor(struct mt7996_phy *phy, bool enabled) in mt7996_set_monitor() 385 struct mt7996_phy *phy = dev->radio_phy[i]; in mt7996_add_interface() local 436 struct mt7996_phy *phy = dev->radio_phy[i]; in mt7996_remove_interface() local 449 struct mt7996_phy *phy = mphy->priv; in mt7996_set_channel() local [all …]
|
/freebsd/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/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 252 struct mt7615_phy *phy = mt7615_hw_phy(hw); in mt7615_remove_interface() local 286 struct mt7615_phy *phy = mphy->priv; in mt7615_set_channel() local 340 struct mt7615_phy *phy = mt7615_hw_phy(hw); in mt7615_set_key() local 407 struct mt7615_phy *phy = mt7615_hw_phy(hw); in mt7615_set_sar_specs() local 426 struct mt7615_phy *phy = mt7615_hw_phy(hw); in mt7615_config() local 486 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/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/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()
|
/freebsd/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/sys/dev/mdio/ |
H A D | mdio.c | 64 mdio_readreg(device_t dev, int phy, int reg) in mdio_readreg() 71 mdio_writereg(device_t dev, int phy, int reg, int val) in mdio_writereg() 78 mdio_readextreg(device_t dev, int phy, int devad, int reg) in mdio_readextreg() 85 mdio_writeextreg(device_t dev, int phy, int devad, int reg, in mdio_writeextreg()
|
/freebsd/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() 219 int __mt7921_start(struct mt792x_phy *phy) in __mt7921_start() 266 struct mt792x_phy *phy = mt792x_hw_phy(hw); in mt7921_start() local 297 struct mt792x_phy *phy = mt792x_hw_phy(hw); in mt7921_add_interface() local 358 struct mt792x_phy *phy = priv; in mt7921_roc_iter() local 365 struct mt792x_phy *phy = &dev->phy; in mt7921_roc_abort_sync() local 378 struct mt792x_phy *phy; in mt7921_roc_work() local 394 static int mt7921_abort_roc(struct mt792x_phy *phy, struct mt792x_vif *vif) in mt7921_abort_roc() 409 static int mt7921_set_roc(struct mt792x_phy *phy, in mt7921_set_roc() [all …]
|