| /freebsd-12.1/sys/dev/isci/scil/ |
| H A D | scic_sds_phy_registers.h | 104 #define SCU_TLCR_READ(phy) \ argument 116 #define SCU_TLADTR_READ(phy) \ argument 122 #define SCU_TLADTR_WRITE(phy) \ argument 134 #define SCU_STPTLDARNI_READ(phy) \ argument 167 #define SCU_SAS_TIPID_READ(phy) \ argument 175 #define SCU_SAS_TIID_READ(phy) \ argument 183 #define SCU_SAS_TIDNH_READ(phy) \ argument 191 #define SCU_SAS_TIDNL_READ(phy) \ argument 215 #define SCU_SAS_PCFG_READ(phy) \ argument 231 #define SCU_SAS_CLKSM_READ(phy) \ argument [all …]
|
| H A D | scic_sds_phy.h | 348 ((phy)->phy_index) 360 (&(phy)->parent.state_machine) 380 (phy), \ 491 SCI_BASE_PHY_T *phy 495 SCI_BASE_PHY_T *phy 499 SCI_BASE_PHY_T * phy 503 SCI_BASE_PHY_T *phy 507 SCIC_SDS_PHY_T *phy, 512 SCIC_SDS_PHY_T *phy, 517 SCIC_SDS_PHY_T *phy [all …]
|
| H A D | scic_sds_port_configuration_agent.c | 145 SCIC_SDS_PHY_T * phy in scic_sds_port_configuration_agent_find_port() argument 159 controller, phy in scic_sds_port_configuration_agent_find_port() 482 SCIC_SDS_PHY_T * phy in scic_sds_mpc_agent_link_up() argument 489 controller, port_agent, port, phy in scic_sds_mpc_agent_link_up() 499 scic_sds_port_link_up(port, phy); in scic_sds_mpc_agent_link_up() 538 controller, port_agent, port, phy in scic_sds_mpc_agent_link_down() 568 scic_sds_port_link_down(port, phy); in scic_sds_mpc_agent_link_down() 659 controller, port_agent, phy, timeout in scic_sds_apc_agent_start_timer() 837 controller, port_agent, port, phy in scic_sds_apc_agent_link_up() 861 scic_sds_port_link_up(port, phy); in scic_sds_apc_agent_link_up() [all …]
|
| /freebsd-12.1/sys/net80211/ |
| H A D | ieee80211_phy.c | 94 [0] = { .phy = CCK, 1000, 0x00, B(2), 0 }, 95 [1] = { .phy = CCK, 2000, 0x04, B(4), 1 }, 96 [2] = { .phy = CCK, 5500, 0x04, B(11), 2 }, 97 [3] = { .phy = CCK, 11000, 0x04, B(22), 3 }, 98 [4] = { .phy = OFDM, 6000, 0x00, 12, 4 }, 105 [11] = { .phy = OFDM, 54000, 0x00, 108, 8 } 121 [7] = { .phy = OFDM, 54000, 0x00, 108, 4 } 137 [7] = { .phy = HALF, 27000, 0x00, 54, 4 } 324 if (rt->info[i].phy == IEEE80211_T_HT) { in ieee80211_setup_ratetable() 516 switch (rt->info[rix].phy) { in ieee80211_compute_duration() [all …]
|
| /freebsd-12.1/sys/dev/cxgb/common/ |
| H A D | cxgb_ael1002.c | 274 phy->modtype = err; in ael1002_reset() 349 struct cphy *phy = &pinfo->phy; in t3_ael1002_phy_prep() local 354 ael100x_txon(phy); in t3_ael1002_phy_prep() 359 phy->modtype = err; in t3_ael1002_phy_prep() 430 struct cphy *phy = &pinfo->phy; in t3_ael1006_phy_prep() local 436 ael100x_txon(phy); in t3_ael1006_phy_prep() 1389 struct cphy *phy = &pinfo->phy; in t3_ael2005_phy_prep() local 1427 phy->priv = edc_sr; in ael2020_setup_sr_edc() 2141 struct cphy *phy = &pinfo->phy; in t3_ael2020_phy_prep() local 2220 struct cphy *phy = &pinfo->phy; in t3_qt2045_phy_prep() local [all …]
|
| H A D | cxgb_aq100x.c | 111 err = aq100x_set_defaults(phy); in aq100x_reset() 128 AQ_WRITE_REGS(phy, imasks); in aq100x_intr_enable() 146 AQ_WRITE_REGS(phy, imasks); in aq100x_intr_disable() 152 aq100x_intr_clear(struct cphy *phy) in aq100x_intr_clear() argument 162 AQ_READ_REGS(phy, iclr); in aq100x_intr_clear() 184 phy->addr, aq100x_temperature(phy)); in aq100x_vendor_intr() 222 phy->addr, cause); in aq100x_intr_handler() 249 phy->addr, v); in aq100x_power_down() 261 err = aq100x_power_down(phy, 0); in aq100x_autoneg_enable() 468 struct cphy *phy = &pinfo->phy; in t3_aq100x_phy_prep() local [all …]
|
| H A D | cxgb_tn1010.c | 77 static int tn1010_reset(struct cphy *phy, int wait) in tn1010_reset() argument 79 int err = t3_phy_reset(phy, MDIO_DEV_PMA_PMD, wait); in tn1010_reset() 84 static int tn1010_power_down(struct cphy *phy, int enable) in tn1010_power_down() argument 90 static int tn1010_autoneg_enable(struct cphy *phy) in tn1010_autoneg_enable() argument 94 err = tn1010_power_down(phy, 0); in tn1010_autoneg_enable() 101 static int tn1010_autoneg_restart(struct cphy *phy) in tn1010_autoneg_restart() argument 105 err = tn1010_power_down(phy, 0); in tn1010_autoneg_restart() 124 err = mdio_write(phy, MDIO_DEV_ANEG, ANEG_ADVER, val); in tn1010_advertise() 129 return mdio_write(phy, MDIO_DEV_ANEG, ANEG_10G_CTRL, val | in tn1010_advertise() 151 err = mdio_read(phy, MDIO_DEV_ANEG, ANEG_LPA, &lpa); in tn1010_get_link_status() [all …]
|
| /freebsd-12.1/sys/dev/e1000/ |
| H A D | e1000_phy.c | 73 struct e1000_phy_info *phy = &hw->phy; in e1000_init_phy_ops_generic() local 221 struct e1000_phy_info *phy = &hw->phy; in e1000_get_phy_id() local 287 struct e1000_phy_info *phy = &hw->phy; in e1000_read_phy_reg_mdic() local 352 struct e1000_phy_info *phy = &hw->phy; in e1000_write_phy_reg_mdic() local 418 struct e1000_phy_info *phy = &hw->phy; in e1000_read_phy_reg_i2c() local 465 struct e1000_phy_info *phy = &hw->phy; in e1000_write_phy_reg_i2c() local 1115 struct e1000_phy_info *phy = &hw->phy; in e1000_copper_link_setup_m88() local 1267 struct e1000_phy_info *phy = &hw->phy; in e1000_copper_link_setup_m88_gen2() local 1364 struct e1000_phy_info *phy = &hw->phy; in e1000_copper_link_setup_igp() local 1474 struct e1000_phy_info *phy = &hw->phy; in e1000_phy_setup_autoneg() local [all …]
|
| H A D | e1000_82541.c | 88 struct e1000_phy_info *phy = &hw->phy; in e1000_init_phy_params_82541() local 93 phy->addr = 1; in e1000_init_phy_params_82541() 95 phy->reset_delay_us = 10000; in e1000_init_phy_params_82541() 96 phy->type = e1000_phy_igp; in e1000_init_phy_params_82541() 448 struct e1000_phy_info *phy = &hw->phy; in e1000_get_link_up_info_82541() local 536 struct e1000_phy_info *phy = &hw->phy; in e1000_setup_copper_link_82541() local 552 phy->mdix = 1; in e1000_setup_copper_link_82541() 672 struct e1000_phy_info *phy = &hw->phy; in e1000_config_dsp_after_link_change_82541() local 875 struct e1000_phy_info *phy = &hw->phy; in e1000_get_cable_length_igp_82541() local 926 phy->cable_length = (phy->min_cable_length + phy->max_cable_length) / 2; in e1000_get_cable_length_igp_82541() [all …]
|
| H A D | e1000_82575.c | 164 struct e1000_phy_info *phy = &hw->phy; in e1000_init_phy_params_82575() local 657 struct e1000_phy_info *phy = &hw->phy; in e1000_get_phy_id_82575() local 719 for (phy->addr = 1; phy->addr < 8; phy->addr++) { in e1000_get_phy_id_82575() 760 struct e1000_phy_info *phy = &hw->phy; in e1000_phy_hw_reset_sgmii_82575() local 807 struct e1000_phy_info *phy = &hw->phy; in e1000_set_d0_lplu_state_82575() local 893 struct e1000_phy_info *phy = &hw->phy; in e1000_set_d0_lplu_state_82580() local 940 struct e1000_phy_info *phy = &hw->phy; in e1000_set_d3_lplu_state_82580() local 1154 struct e1000_phy_info *phy = &hw->phy; in e1000_check_for_link_media_swap() local 1979 struct e1000_phy_info *phy = &hw->phy; in e1000_power_down_phy_copper_82575() local 2749 struct e1000_phy_info *phy = &hw->phy; in e1000_initialize_M88E1512_phy() local [all …]
|
| H A D | e1000_ich8lan.c | 224 if (hw->phy.id) { in e1000_phy_is_accessible_pchlan() 453 struct e1000_phy_info *phy = &hw->phy; in e1000_init_phy_params_pchlan() local 458 phy->addr = 1; in e1000_init_phy_params_pchlan() 491 if ((phy->id != 0) && (phy->id != PHY_REVISION_MASK)) in e1000_init_phy_params_pchlan() 509 phy->type = e1000_get_phy_type_from_id(phy->id); in e1000_init_phy_params_pchlan() 544 struct e1000_phy_info *phy = &hw->phy; in e1000_init_phy_params_ich8lan() local 550 phy->addr = 1; in e1000_init_phy_params_ich8lan() 580 phy->id = 0; in e1000_init_phy_params_ich8lan() 2262 struct e1000_phy_info *phy = &hw->phy; in e1000_sw_lcd_config_ich8lan() local 3213 struct e1000_phy_info *phy = &hw->phy; in e1000_set_d0_lplu_state_ich8lan() local [all …]
|
| H A D | e1000_82571.c | 94 struct e1000_phy_info *phy = &hw->phy; in e1000_init_phy_params_82571() local 100 phy->type = e1000_phy_none; in e1000_init_phy_params_82571() 104 phy->addr = 1; in e1000_init_phy_params_82571() 106 phy->reset_delay_us = 100; in e1000_init_phy_params_82571() 145 phy->type = e1000_phy_bm; in e1000_init_phy_params_82571() 463 struct e1000_phy_info *phy = &hw->phy; in e1000_get_phy_id_82571() local 494 phy->id |= (u32)(phy_id); in e1000_get_phy_id_82571() 873 struct e1000_phy_info *phy = &hw->phy; in e1000_set_d0_lplu_state_82571() local 879 if (!(phy->ops.read_reg)) in e1000_set_d0_lplu_state_82571() 1462 switch (hw->phy.type) { in e1000_setup_copper_link_82571() [all …]
|
| H A D | e1000_80003es2lan.c | 90 struct e1000_phy_info *phy = &hw->phy; in e1000_init_phy_params_80003es2lan() local 96 phy->type = e1000_phy_none; in e1000_init_phy_params_80003es2lan() 103 phy->addr = 1; in e1000_init_phy_params_80003es2lan() 105 phy->reset_delay_us = 100; in e1000_init_phy_params_80003es2lan() 106 phy->type = e1000_phy_gg82563; in e1000_init_phy_params_80003es2lan() 598 if (!(hw->phy.ops.read_reg)) in e1000_phy_force_speed_duplex_80003es2lan() 687 struct e1000_phy_info *phy = &hw->phy; in e1000_get_cable_length_80003es2lan() local 693 if (!(hw->phy.ops.read_reg)) in e1000_get_cable_length_80003es2lan() 708 phy->cable_length = (phy->min_cable_length + phy->max_cable_length) / 2; in e1000_get_cable_length_80003es2lan() 971 struct e1000_phy_info *phy = &hw->phy; in e1000_copper_link_setup_gg82563_80003es2lan() local [all …]
|
| /freebsd-12.1/sys/dev/bxe/ |
| H A D | bxe_elink.c | 7739 cur_link_up = phy->read_status(phy, params, in elink_link_update() 9113 if (params->phy[idx].type == phy->type) { in elink_get_edc_mode() 9133 if (&(params->phy[phy_idx]) == phy) { in elink_get_edc_mode() 9204 fw_cmd_param = ELINK_FW_PARAM_SET(phy->addr, phy->type, phy->mdio_ctrl); in elink_verify_sfp_module() 9650 phy = ¶ms->phy[ELINK_INT_PHY]; in elink_handle_module_detect_int() 9654 phy = ¶ms->phy[ELINK_EXT_PHY1]; in elink_handle_module_detect_int() 13122 phy->media_type, phy->flags, phy->supported); in elink_populate_int_phy() 13153 port, phy->addr, phy->mdio_ctrl); in elink_populate_int_phy() 13283 phy->addr, phy->mdio_ctrl); in elink_populate_ext_phy() 13374 phy->req_duplex, phy->req_line_speed, phy->req_flow_ctrl); in elink_phy_def_cfg() [all …]
|
| /freebsd-12.1/sys/dev/ixgbe/ |
| H A D | ixgbe_phy.c | 255 struct ixgbe_phy_info *phy = &hw->phy; in ixgbe_init_phy_ops_generic() local 305 hw->phy.type = ixgbe_get_phy_type_from_id(hw->phy.id); in ixgbe_probe_phy() 366 hw->phy.addr = 0; in ixgbe_identify_phy_generic() 1385 hw->phy.sfp_type = in ixgbe_identify_sfp_module_generic() 1484 hw->phy.type = in ixgbe_identify_sfp_module_generic() 1552 hw->phy.type = in ixgbe_identify_sfp_module_generic() 1568 hw->phy.id = 0; in ixgbe_identify_sfp_module_generic() 1736 hw->phy.sfp_type = in ixgbe_identify_qsfp_module_generic() 1739 hw->phy.sfp_type = in ixgbe_identify_qsfp_module_generic() 1805 hw->phy.type = in ixgbe_identify_qsfp_module_generic() [all …]
|
| /freebsd-12.1/tools/tools/net80211/wlantxtime/ |
| H A D | wlantxtime.c | 53 uint8_t phy; /* CCK/OFDM/TURBO */ member 117 [0] = { .phy = CCK, 1000, 0x00, B(2), 0 }, 118 [1] = { .phy = CCK, 2000, 0x04, B(4), 1 }, 119 [2] = { .phy = CCK, 5500, 0x04, B(11), 2 }, 120 [3] = { .phy = CCK, 11000, 0x04, B(22), 3 }, 128 [11] = { .phy = OFDM, 54000, 0x00, 108, 8 } 144 [7] = { .phy = OFDM, 54000, 0x00, 108, 4 } 160 [7] = { .phy = HALF, 27000, 0x00, 54, 4 } 341 switch (rt->info[rix].phy) { in ieee80211_compute_duration() 392 rt->info[rix].phy, rate); in ieee80211_compute_duration() [all …]
|
| /freebsd-12.1/sys/dev/etherswitch/arswitch/ |
| H A D | arswitch_reg.c | 74 *phy = (addr >> 6) & 0x7; in arswitch_split_setpage() 92 uint16_t phy, reg; in arswitch_readreg16() local 104 uint16_t phy, reg; in arswitch_writereg16() local 162 phy, reg, lo); in arswitch_reg_write32() 164 phy, reg + 1, hi); in arswitch_reg_write32() 167 phy, reg + 1, hi); in arswitch_reg_write32() 169 phy, reg, lo); in arswitch_reg_write32() 178 uint16_t phy, reg; in arswitch_readreg() local 188 uint16_t phy, reg; in arswitch_writereg() local 235 uint16_t phy, reg; in arswitch_modifyreg() local [all …]
|
| H A D | arswitch_phy.c | 81 ret = (MDIO_READREG(device_get_parent(dev), phy, reg)); in arswitch_readphy_external() 84 __func__, phy, reg, ret); in arswitch_readphy_external() 98 (void) MDIO_WRITEREG(device_get_parent(dev), phy, in arswitch_writephy_external() 102 __func__, phy, reg, data); in arswitch_writephy_external() 123 if (phy < 0 || phy >= 32) in arswitch_readphy_internal() 137 (phy << AR8X16_MDIO_CTRL_PHY_ADDR_SHIFT) | in arswitch_readphy_internal() 150 phy, reg, timeout); in arswitch_readphy_internal() 159 __func__, phy, reg, data); in arswitch_readphy_internal() 168 __func__, phy, reg, err); in arswitch_readphy_internal() 197 (phy << AR8X16_MDIO_CTRL_PHY_ADDR_SHIFT) | in arswitch_writephy_internal() [all …]
|
| /freebsd-12.1/sys/dev/bwi/ |
| H A D | bwiphy.c | 256 if (phy->phy_mode == IEEE80211_MODE_11G && phy->phy_rev == 1) { in bwi_phy_calibrate() 271 KASSERT(phy->phy_tbl_ctrl != 0 && phy->phy_tbl_data_lo != 0, in bwi_tbl_write_2() 273 phy->phy_tbl_ctrl, phy->phy_tbl_data_lo)); in bwi_tbl_write_2() 283 KASSERT(phy->phy_tbl_data_lo != 0 && phy->phy_tbl_data_hi != 0 && in bwi_tbl_write_4() 286 phy->phy_tbl_data_lo, phy->phy_tbl_data_hi, phy->phy_tbl_ctrl)); in bwi_tbl_write_4() 326 if (phy->phy_rev >= 2 || (phy->phy_flags & BWI_PHY_F_LINKED)) in bwi_phy_init_11g() 342 if (phy->phy_rev >= 2 || (phy->phy_flags & BWI_PHY_F_LINKED)) { in bwi_phy_init_11g() 365 if (phy->phy_rev >= 2 && (phy->phy_flags & BWI_PHY_F_LINKED)) in bwi_phy_init_11g() 397 if ((phy->phy_flags & BWI_PHY_F_LINKED) || phy->phy_rev >= 2) { in bwi_phy_init_11g() 532 if ((phy->phy_flags & BWI_PHY_F_LINKED) || phy->phy_rev >= 2) { in bwi_phy_init_11b_rev5() [all …]
|
| /freebsd-12.1/sys/gnu/dts/arm64/broadcom/stingray/ |
| H A D | stingray-sata.dtsi | 51 phy-names = "sata-phy"; 58 reg-names = "phy"; 65 #phy-cells = <0>; 81 phy-names = "sata-phy"; 88 reg-names = "phy"; 111 phy-names = "sata-phy"; 141 phy-names = "sata-phy"; 171 phy-names = "sata-phy"; 201 phy-names = "sata-phy"; 231 phy-names = "sata-phy"; [all …]
|
| /freebsd-12.1/sys/dev/bwn/ |
| H A D | if_bwn_phy_g.c | 638 if (phy->rev == 0 || !phy->gmode) in bwn_phy_g_im() 854 if (phy->rev >= 2 || phy->gmode) in bwn_phy_g_init_sub() 869 if (phy->gmode || phy->rev >= 2) { in bwn_phy_g_init_sub() 881 if ((phy->rev <= 2 && phy->gmode) || phy->rev >= 2) in bwn_phy_g_init_sub() 917 if (phy->gmode || phy->rev >= 2) { in bwn_phy_g_init_sub() 971 if (phy->gmode || phy->rev >= 2) { in bwn_phy_init_b5() 1282 if (phy->gmode || phy->rev >= 2) { in bwn_rf_init_bcm2050() 1289 if (phy->gmode || phy->rev >= 2) { in bwn_rf_init_bcm2050() 1308 if (phy->gmode || phy->rev >= 2) { in bwn_rf_init_bcm2050() 1315 if (phy->gmode || phy->rev >= 2) { in bwn_rf_init_bcm2050() [all …]
|
| /freebsd-12.1/sys/dev/axgbe/ |
| H A D | xgbe-mdio.c | 756 if (pdata->phy.link) { in xgbe_phy_adjust_link() 932 pdata->phy.tx_pause = 0; in xgbe_phy_status_aneg() 933 pdata->phy.rx_pause = 0; in xgbe_phy_status_aneg() 936 pdata->phy.tx_pause = 1; in xgbe_phy_status_aneg() 937 pdata->phy.rx_pause = 1; in xgbe_phy_status_aneg() 992 pdata->phy.link = 0; in xgbe_phy_status() 1005 if (pdata->phy.link) { in xgbe_phy_status() 1041 pdata->phy.link = 0; in xgbe_phy_stop() 1137 pdata->phy.advertising = pdata->phy.supported; in xgbe_phy_init() 1139 pdata->phy.address = 0; in xgbe_phy_init() [all …]
|
| /freebsd-12.1/sys/gnu/dts/arm64/freescale/ |
| H A D | fsl-ls1043a-rdb.dts | 112 phy-handle = <&qsgmii_phy1>; 117 phy-handle = <&qsgmii_phy2>; 122 phy-handle = <&rgmii_phy1>; 127 phy-handle = <&rgmii_phy2>; 132 phy-handle = <&qsgmii_phy3>; 137 phy-handle = <&qsgmii_phy4>; 142 phy-handle = <&aqr105_phy>; 147 rgmii_phy1: ethernet-phy@1 { 151 rgmii_phy2: ethernet-phy@2 { 155 qsgmii_phy1: ethernet-phy@4 { [all …]
|
| /freebsd-12.1/sys/dev/extres/phy/ |
| H A D | phy.c | 299 struct phy *phy; in phy_create() local 303 phy = malloc(sizeof(struct phy), M_PHY, M_WAITOK | M_ZERO); in phy_create() 304 phy->cdev = cdev; in phy_create() 313 return (phy); in phy_create() 329 phy->enable_cnt++; in phy_enable() 349 phy->enable_cnt--; in phy_disable() 372 phy_t *phy) in phy_get_by_id() argument 401 phy->enable_cnt--; in phy_release() 409 free(phy, M_PHY); in phy_release() 484 phy_t *phy) in phy_get_by_ofw_name() argument [all …]
|
| /freebsd-12.1/sys/dev/etherswitch/mtkswitch/ |
| H A D | mtkswitch.c | 112 int phy, err = 0; in mtkswitch_attach_phys() local 117 for (phy = 0; phy < sc->numphys; phy++) { in mtkswitch_attach_phys() 119 sc->ifp[phy] = NULL; in mtkswitch_attach_phys() 136 if_initname(sc->ifp[phy], sc->ifname[phy], in mtkswitch_attach_phys() 138 err = mii_attach(sc->sc_dev, &sc->miibus[phy], sc->ifp[phy], in mtkswitch_attach_phys() 144 phy); in mtkswitch_attach_phys() 261 int phy; in mtkswitch_detach() local 265 for (phy = 0; phy < MTKSWITCH_MAX_PHYS; phy++) { in mtkswitch_detach() 284 return (phy); in mtkswitch_portforphy() 299 if (phy < 0 || phy >= MTKSWITCH_MAX_PHYS || sc->miibus[phy] == NULL) in mtkswitch_miiforport() [all …]
|