Home
last modified time | relevance | path

Searched refs:phy (Results 1 – 25 of 137) sorted by relevance

123456

/illumos-gate/usr/src/uts/common/io/e1000api/
H A De1000_phy.c72 struct e1000_phy_info *phy = &hw->phy; in e1000_init_phy_ops_generic() local
220 struct e1000_phy_info *phy = &hw->phy; in e1000_get_phy_id() local
286 struct e1000_phy_info *phy = &hw->phy; in e1000_read_phy_reg_mdic() local
351 struct e1000_phy_info *phy = &hw->phy; in e1000_write_phy_reg_mdic() local
417 struct e1000_phy_info *phy = &hw->phy; in e1000_read_phy_reg_i2c() local
464 struct e1000_phy_info *phy = &hw->phy; in e1000_write_phy_reg_i2c() local
1114 struct e1000_phy_info *phy = &hw->phy; in e1000_copper_link_setup_m88() local
1266 struct e1000_phy_info *phy = &hw->phy; in e1000_copper_link_setup_m88_gen2() local
1363 struct e1000_phy_info *phy = &hw->phy; in e1000_copper_link_setup_igp() local
1473 struct e1000_phy_info *phy = &hw->phy; in e1000_phy_setup_autoneg() local
[all …]
H A De1000_82541.c87 struct e1000_phy_info *phy = &hw->phy; in e1000_init_phy_params_82541() local
92 phy->addr = 1; in e1000_init_phy_params_82541()
94 phy->reset_delay_us = 10000; in e1000_init_phy_params_82541()
95 phy->type = e1000_phy_igp; in e1000_init_phy_params_82541()
447 struct e1000_phy_info *phy = &hw->phy; in e1000_get_link_up_info_82541() local
535 struct e1000_phy_info *phy = &hw->phy; in e1000_setup_copper_link_82541() local
551 phy->mdix = 1; in e1000_setup_copper_link_82541()
671 struct e1000_phy_info *phy = &hw->phy; in e1000_config_dsp_after_link_change_82541() local
874 struct e1000_phy_info *phy = &hw->phy; in e1000_get_cable_length_igp_82541() local
925 phy->cable_length = (phy->min_cable_length + phy->max_cable_length) / 2; in e1000_get_cable_length_igp_82541()
[all …]
H A De1000_82575.c166 struct e1000_phy_info *phy = &hw->phy; in e1000_init_phy_params_82575() local
663 struct e1000_phy_info *phy = &hw->phy; in e1000_get_phy_id_82575() local
725 for (phy->addr = 1; phy->addr < 8; phy->addr++) { in e1000_get_phy_id_82575()
766 struct e1000_phy_info *phy = &hw->phy; in e1000_phy_hw_reset_sgmii_82575() local
813 struct e1000_phy_info *phy = &hw->phy; in e1000_set_d0_lplu_state_82575() local
899 struct e1000_phy_info *phy = &hw->phy; in e1000_set_d0_lplu_state_82580() local
946 struct e1000_phy_info *phy = &hw->phy; in e1000_set_d3_lplu_state_82580() local
1236 struct e1000_phy_info *phy = &hw->phy; in e1000_check_for_link_media_swap() local
2061 struct e1000_phy_info *phy = &hw->phy; in e1000_power_down_phy_copper_82575() local
2831 struct e1000_phy_info *phy = &hw->phy; in e1000_initialize_M88E1512_phy() local
[all …]
H A De1000_ich8lan.c223 if (hw->phy.id) { in e1000_phy_is_accessible_pchlan()
460 struct e1000_phy_info *phy = &hw->phy; in e1000_init_phy_params_pchlan() local
465 phy->addr = 1; in e1000_init_phy_params_pchlan()
498 if ((phy->id != 0) && (phy->id != PHY_REVISION_MASK)) in e1000_init_phy_params_pchlan()
524 phy->type = e1000_get_phy_type_from_id(phy->id); in e1000_init_phy_params_pchlan()
559 struct e1000_phy_info *phy = &hw->phy; in e1000_init_phy_params_ich8lan() local
565 phy->addr = 1; in e1000_init_phy_params_ich8lan()
595 phy->id = 0; in e1000_init_phy_params_ich8lan()
2299 struct e1000_phy_info *phy = &hw->phy; in e1000_sw_lcd_config_ich8lan() local
3256 struct e1000_phy_info *phy = &hw->phy; in e1000_set_d0_lplu_state_ich8lan() local
[all …]
H A De1000_82571.c96 struct e1000_phy_info *phy = &hw->phy; in e1000_init_phy_params_82571() local
102 phy->type = e1000_phy_none; in e1000_init_phy_params_82571()
106 phy->addr = 1; in e1000_init_phy_params_82571()
108 phy->reset_delay_us = 100; in e1000_init_phy_params_82571()
148 phy->type = e1000_phy_bm; in e1000_init_phy_params_82571()
466 struct e1000_phy_info *phy = &hw->phy; in e1000_get_phy_id_82571() local
497 phy->id |= (u32)(phy_id); in e1000_get_phy_id_82571()
988 struct e1000_phy_info *phy = &hw->phy; in e1000_set_d0_lplu_state_82571() local
994 if (!(phy->ops.read_reg)) in e1000_set_d0_lplu_state_82571()
1582 switch (hw->phy.type) { in e1000_setup_copper_link_82571()
[all …]
H A De1000_82540.c68 struct e1000_phy_info *phy = &hw->phy; in e1000_init_phy_params_82540() local
71 phy->addr = 1; in e1000_init_phy_params_82540()
73 phy->reset_delay_us = 10000; in e1000_init_phy_params_82540()
74 phy->type = e1000_phy_m88; in e1000_init_phy_params_82540()
78 phy->ops.commit = e1000_phy_sw_reset_generic; in e1000_init_phy_params_82540()
82 phy->ops.read_reg = e1000_read_phy_reg_m88; in e1000_init_phy_params_82540()
83 phy->ops.reset = e1000_phy_hw_reset_generic; in e1000_init_phy_params_82540()
84 phy->ops.write_reg = e1000_write_phy_reg_m88; in e1000_init_phy_params_82540()
85 phy->ops.get_info = e1000_get_phy_info_m88; in e1000_init_phy_params_82540()
100 if (phy->id == M88E1011_I_PHY_ID) in e1000_init_phy_params_82540()
[all …]
H A De1000_80003es2lan.c91 struct e1000_phy_info *phy = &hw->phy; in e1000_init_phy_params_80003es2lan() local
97 phy->type = e1000_phy_none; in e1000_init_phy_params_80003es2lan()
104 phy->addr = 1; in e1000_init_phy_params_80003es2lan()
106 phy->reset_delay_us = 100; in e1000_init_phy_params_80003es2lan()
107 phy->type = e1000_phy_gg82563; in e1000_init_phy_params_80003es2lan()
670 if (!(hw->phy.ops.read_reg)) in e1000_phy_force_speed_duplex_80003es2lan()
759 struct e1000_phy_info *phy = &hw->phy; in e1000_get_cable_length_80003es2lan() local
765 if (!(hw->phy.ops.read_reg)) in e1000_get_cable_length_80003es2lan()
780 phy->cable_length = (phy->min_cable_length + phy->max_cable_length) / 2; in e1000_get_cable_length_80003es2lan()
1043 struct e1000_phy_info *phy = &hw->phy; in e1000_copper_link_setup_gg82563_80003es2lan() local
[all …]
H A De1000_82543.c86 struct e1000_phy_info *phy = &hw->phy; in e1000_init_phy_params_82543() local
92 phy->type = e1000_phy_none; in e1000_init_phy_params_82543()
99 phy->addr = 1; in e1000_init_phy_params_82543()
101 phy->reset_delay_us = 10000; in e1000_init_phy_params_82543()
102 phy->type = e1000_phy_m88; in e1000_init_phy_params_82543()
127 ret_val = phy->ops.reset(hw); in e1000_init_phy_params_82543()
142 if (phy->id != M88E1000_E_PHY_ID) { in e1000_init_phy_params_82543()
774 if (!(hw->phy.ops.write_reg)) in e1000_polarity_reversal_workaround_82543()
887 if (!(hw->phy.ops.get_cfg_done)) in e1000_phy_hw_reset_82543()
1078 ret_val = hw->phy.ops.reset(hw); in e1000_setup_copper_link_82543()
[all …]
H A De1000_api.c100 if (hw->phy.ops.init_params) { in e1000_init_phy_params()
1057 if (hw->phy.ops.read_reg) in e1000_read_phy_reg()
1074 if (hw->phy.ops.write_reg) in e1000_write_phy_reg()
1089 if (hw->phy.ops.release) in e1000_release_phy()
1090 hw->phy.ops.release(hw); in e1000_release_phy()
1102 if (hw->phy.ops.acquire) in e1000_acquire_phy()
1176 if (hw->phy.ops.get_info) in e1000_get_phy_info()
1191 if (hw->phy.ops.reset) in e1000_phy_hw_reset()
1206 if (hw->phy.ops.commit) in e1000_phy_commit()
1407 if (hw->phy.ops.power_up) in e1000_power_up_phy()
[all …]
/illumos-gate/usr/src/uts/common/io/igc/core/
H A Digc_phy.c19 struct igc_phy_info *phy = &hw->phy; in igc_init_phy_ops_generic() local
132 struct igc_phy_info *phy = &hw->phy; in igc_get_phy_id() local
168 struct igc_phy_info *phy = &hw->phy; in igc_read_phy_reg_mdic() local
227 struct igc_phy_info *phy = &hw->phy; in igc_write_phy_reg_mdic() local
287 struct igc_phy_info *phy = &hw->phy; in igc_phy_setup_autoneg() local
295 phy->autoneg_advertised &= phy->autoneg_mask; in igc_phy_setup_autoneg()
471 struct igc_phy_info *phy = &hw->phy; in igc_copper_link_autoneg() local
480 phy->autoneg_advertised &= phy->autoneg_mask; in igc_copper_link_autoneg()
655 struct igc_phy_info *phy = &hw->phy; in igc_set_d3_lplu_state_generic() local
739 struct igc_phy_info *phy = &hw->phy; in igc_check_downshift_generic() local
[all …]
H A Digc_api.c72 if (hw->phy.ops.init_params) { in igc_init_phy_params()
453 if (hw->phy.ops.read_reg) in igc_read_phy_reg()
470 if (hw->phy.ops.write_reg) in igc_write_phy_reg()
485 if (hw->phy.ops.release) in igc_release_phy()
486 hw->phy.ops.release(hw); in igc_release_phy()
498 if (hw->phy.ops.acquire) in igc_acquire_phy()
514 if (hw->phy.ops.get_info) in igc_get_phy_info()
529 if (hw->phy.ops.reset) in igc_phy_hw_reset()
699 if (hw->phy.ops.power_up) in igc_power_up_phy()
700 hw->phy.ops.power_up(hw); in igc_power_up_phy()
[all …]
/illumos-gate/usr/src/uts/intel/io/dnet/
H A Ddnet_mii.c114 if (!mac || phy < 0 || phy > 31) in mii_probe_phy()
154 if ((mac == (mii_handle_t)NULL) || phy < 0 || phy > 31) in mii_init_phy()
160 if (mac->phys[phy]) in mii_init_phy()
204 mac->phys[phy] = NULL; in mii_init_phy()
278 (void) mii_sync(mac, phy); in mii_init_phy()
282 (void) mii_dump_phy(mac, phy); in mii_init_phy()
337 (void) mii_sync(mac, phy); in mii_reset_phy()
388 phyd->phy_postreset(mac, phy); in mii_sync()
766 if (!mac || phy > 31 || phy < 0 || !mac->phys[phy]) { in mii_get_valid_phydata()
770 return (mac->phys[phy]); in mii_get_valid_phydata()
[all …]
H A Ddnet_mii.h59 typedef ushort_t (*mii_readfunc_t)(dev_info_t *, int phy, int reg);
73 int mii_init_phy(mii_handle_t, int phy);
79 int mii_probe_phy(mii_handle_t, int phy);
88 int mii_autoneg_enab(mii_handle_t mac, int phy);
94 int mii_disable_fullduplex(mii_handle_t, int phy);
97 int mii_linkup(mii_handle_t, int phy);
100 int mii_sync(mii_handle_t, int phy);
103 int mii_isolate(mii_handle_t, int phy);
106 int mii_unisolate(mii_handle_t, int phy);
109 int mii_dump_phy(mii_handle_t, int phy);
[all …]
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/common/
H A Dbnxe_clc.c7585 cur_link_up = phy->read_status(phy, params, in elink_link_update()
9091 if (params->phy[idx].type == phy->type) { in elink_get_edc_mode()
9112 if (&(params->phy[phy_idx]) == phy) { in elink_get_edc_mode()
9208 fw_cmd_param = ELINK_FW_PARAM_SET(phy->addr, phy->type, phy->mdio_ctrl); in elink_verify_sfp_module()
9694 phy = &params->phy[ELINK_INT_PHY]; in elink_handle_module_detect_int()
9698 phy = &params->phy[ELINK_EXT_PHY1]; in elink_handle_module_detect_int()
13234 port, phy->addr, phy->mdio_ctrl); in elink_populate_int_phy()
13380 phy->addr, phy->mdio_ctrl); in elink_populate_ext_phy()
13535 phy = &params->phy[actual_phy_idx]; in elink_phy_probe()
13598 phy = &params->phy[phy_index]; in elink_phy_is_temperature_support()
[all …]
/illumos-gate/usr/src/uts/common/io/ixgbe/core/
H A Dixgbe_phy.c255 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 …]
H A Dixgbe_x550.c477 hw->phy.autoneg_advertised = hw->phy.speeds_supported; in ixgbe_get_phy_id_fw()
483 if (!hw->phy.id || hw->phy.id == IXGBE_PHY_REVISION_MASK) in ixgbe_get_phy_id_fw()
608 struct ixgbe_phy_info *phy = &hw->phy; in ixgbe_init_ops_X550EM() local
775 hw->phy.eee_speeds_advertised = hw->phy.eee_speeds_supported; in ixgbe_setup_eee_fw()
830 hw->phy.eee_speeds_advertised = hw->phy.eee_speeds_supported; in ixgbe_init_ops_X550EM_a()
2255 hw->phy.addr = (hw->phy.nw_mng_if_sel & in ixgbe_read_mng_if_sel_x550em()
2273 struct ixgbe_phy_info *phy = &hw->phy; in ixgbe_init_phy_ops_X550em() local
2330 phy->ops.reset = NULL; in ixgbe_init_phy_ops_X550em()
2479 if (!hw->phy.reset_disable && hw->phy.ops.reset) { in ixgbe_reset_hw_X550em()
2763 if (hw->phy.addr == 0x0 || hw->phy.addr == 0xFFFF) { in ixgbe_setup_mac_link_sfp_x550a()
[all …]
H A Dixgbe_82598.c123 struct ixgbe_phy_info *phy = &hw->phy; in ixgbe_init_ops_82598() local
195 struct ixgbe_phy_info *phy = &hw->phy; in ixgbe_init_phy_ops_82598() local
202 phy->ops.identify(hw); in ixgbe_init_phy_ops_82598()
211 switch (hw->phy.type) { in ixgbe_init_phy_ops_82598()
215 phy->ops.get_firmware_version = in ixgbe_init_phy_ops_82598()
363 switch (hw->phy.type) { in ixgbe_get_media_type_82598()
872 hw->phy.ops.reset(hw); in ixgbe_reset_hw_82598()
1155 hw->phy.ops.write_reg_mdi(hw, in ixgbe_read_i2c_phy_82598()
1238 hw->phy.ops.identify(hw); in ixgbe_get_supported_physical_layer_82598()
1242 switch (hw->phy.type) { in ixgbe_get_supported_physical_layer_82598()
[all …]
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Dtlan.c416 u32 phy; in TLan_FinishReset() local
425 phy = priv->phy[priv->phyNum]; in TLan_FinishReset()
1436 u32 phy; local
1452 for (phy = 0; phy <= TLAN_PHY_MAX_ADDR; phy++) {
1462 priv->phy[1] = phy;
1526 u16 phy; local
1529 phy = priv->phy[priv->phyNum];
1557 u16 phy; local
1561 phy = priv->phy[priv->phyNum];
1654 phy = priv->phy[priv->phyNum];
[all …]
/illumos-gate/usr/src/lib/sun_sas/common/
H A DSun_sasGetPhyStatistics.c73 handle, phy); in Sun_sasGetPhyStatistics()
82 "Verify Adapter failed for phyIndex: %08lx", phy); in Sun_sasGetPhyStatistics()
97 "Invalid port index of phyIndex: %08lx", phy); in Sun_sasGetPhyStatistics()
104 log(LOG_DEBUG, ROUTINE, "Invalid phy index %08lx", phy); in Sun_sasGetPhyStatistics()
113 if (phy == phy_ptr->index) in Sun_sasGetPhyStatistics()
118 log(LOG_DEBUG, ROUTINE, "Invalid phy index %08lx", phy); in Sun_sasGetPhyStatistics()
148 path, phy, strerror(errno)); in Sun_sasGetPhyStatistics()
173 path, phy); in Sun_sasGetPhyStatistics()
194 strerror(errno), phy); in Sun_sasGetPhyStatistics()
203 kstat_name, phy); in Sun_sasGetPhyStatistics()
[all …]
/illumos-gate/usr/src/uts/common/io/bnxe/
H A Dbnxe_illumos.c93 struct elink_phy *phy; in bnxe_phy_to_media() local
99 phy = &params->phy[phyid]; in bnxe_phy_to_media()
101 switch (phy->media_type) { in bnxe_phy_to_media()
114 if (phy->sfp_media == map->bmm_sfp && in bnxe_phy_to_media()
176 struct elink_phy *phy; in bnxe_transceiver_info() local
187 phy = &params->phy[phyid]; in bnxe_transceiver_info()
189 switch (phy->media_type) { in bnxe_transceiver_info()
218 if ((phy->flags & ELINK_FLAGS_SFP_NOT_APPROVED) == 0) in bnxe_transceiver_info()
235 struct elink_phy *phy; in bnxe_transceiver_read() local
253 phy = &um->lm_dev.params.link.phy[phyid]; in bnxe_transceiver_read()
[all …]
/illumos-gate/usr/src/uts/common/io/chxge/com/
H A Dch_subr.c161 struct cphy *phy = adapter->port[port_id].phy; in link_changed() local
209 struct cphy *phy = adapter->port[p].phy; in fpga_phy_intr_handler() local
846 phy->ops->reset(phy, 0); in t1_link_start()
855 phy->ops->reset(phy, 0); in t1_link_start()
881 phy = adapter->port[i].phy; in elmer0_ext_intr_handler()
890 phy = adapter->port[0].phy; in elmer0_ext_intr_handler()
905 phy = adapter->port[p].phy; in elmer0_ext_intr_handler()
917 phy = adapter->port[0].phy; in elmer0_ext_intr_handler()
957 phy = adapter->port[i].phy; in elmer0_ext_intr_handler()
1306 struct cphy *phy = adapter->port[i].phy; in t1_free_sw_modules() local
[all …]
H A Dcphy.h67 int (*advertise)(struct cphy *phy, unsigned int advertise_map);
69 int (*set_speed_duplex)(struct cphy *phy, int speed, int duplex);
70 int (*get_link_status)(struct cphy *phy, int *link_ok, int *speed,
123 static inline void cphy_init(struct cphy *phy, adapter_t *adapter, in cphy_init() argument
127 phy->adapter = adapter; in cphy_init()
128 phy->addr = phy_addr; in cphy_init()
129 phy->ops = phy_ops; in cphy_init()
131 phy->mdio_read = mdio_ops->read; in cphy_init()
132 phy->mdio_write = mdio_ops->write; in cphy_init()
/illumos-gate/usr/src/uts/common/io/ntxn/
H A Dniu.c102 long phy = adapter->physical_port; in unm_niu_gbe_phy_read() local
135 address.phy_addr = (unm_crbword_t)phy; in unm_niu_gbe_phy_read()
180 int phy = adapter->physical_port; in unm_niu_macaddr_get() local
184 if ((phy < 0) || (phy > 3)) in unm_niu_macaddr_get()
193 UNM_NIU_GB_STATION_ADDR_1(phy))) >> 16; in unm_niu_macaddr_get()
214 int phy = adapter->physical_port; in unm_niu_macaddr_set() local
216 if ((phy < 0) || (phy > 3)) in unm_niu_macaddr_set()
481 int phy = adapter->physical_port; in unm_niu_xg_macaddr_set() local
485 if ((phy < 0) || (phy > 3)) in unm_niu_xg_macaddr_set()
488 switch (phy) { in unm_niu_xg_macaddr_set()
[all …]
/illumos-gate/usr/src/uts/common/io/ixgbe/
H A Dixgbe_transceiver.c108 switch (hw->phy.media_type) { in ixgbe_phy_to_media()
147 if (hw->phy.ops.read_i2c_eeprom == NULL) in ixgbe_transceiver_is_8472()
150 ret = hw->phy.ops.read_i2c_eeprom(hw, IXGBE_SFF_SFF_8472_COMP, &rev); in ixgbe_transceiver_is_8472()
200 (void) hw->phy.ops.identify_sfp(hw); in ixgbe_transceiver_info()
201 if (hw->phy.type == ixgbe_phy_none || in ixgbe_transceiver_info()
202 (hw->phy.type == ixgbe_phy_unknown && in ixgbe_transceiver_info()
203 hw->phy.sfp_type == ixgbe_sfp_type_not_present)) { in ixgbe_transceiver_info()
208 usable = hw->phy.type != ixgbe_phy_sfp_unsupported; in ixgbe_transceiver_info()
252 if (hw->phy.ops.read_i2c_eeprom == NULL) { in ixgbe_transceiver_read()
271 ret = hw->phy.ops.read_i2c_eeprom(hw, offset, buf); in ixgbe_transceiver_read()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/pmcs/
H A Dpmcs.c478 pmcs_phy_t phy; in pmcs_utarget_walk_cb() local
486 if (phy.configured && (phy.target == NULL)) { in pmcs_utarget_walk_cb()
783 if (xs.phy) { in display_targets()
784 if (MDB_RD(&phy, sizeof (phy), xs.phy) == -1) { in display_targets()
906 if (wp->phy) { in display_one_work()
907 if (MDB_RD(&phy, sizeof (phy), wp->phy) == -1) { in display_one_work()
1553 if (MDB_RD(phy, sizeof (*phy), _phy) == -1) { in get_devid_from_ob_iomb()
1988 } else if ((phy.dtype == EXPANDER) && phy.configured) { in display_phy()
2016 phy.device_id, phy.phynum, speed, dtype); in display_phy()
2072 phy.enum_attempts, phy.reenumerate, phy.phy_lock); in display_phy()
[all …]

123456