/illumos-gate/usr/src/lib/sun_sas/common/ |
H A D | Sun_sasGetSASPhyAttributes.c | 33 HBA_UINT32 port, HBA_UINT32 phy, SMHBA_SAS_PHY *pAttributes) 76 /* match phy index. */ 77 if (phy >= hba_port_ptr->port_attributes.PortSpecificAttribute. 79 log(LOG_DEBUG, ROUTINE, "Invalid phy index %d", phy); 85 if (phy == phy_ptr->index) { 88 (void) memcpy(pAttributes, &phy_ptr->phy, 97 log(LOG_DEBUG, ROUTINE, "Illegal phy index %d", phy); 32 Sun_sasGetSASPhyAttributes(HBA_HANDLE handle, HBA_UINT32 port, HBA_UINT32 phy, SMHBA_SAS_PHY *pAttributes) argument
|
H A D | Sun_sasGetPhyStatistics.c | 31 * Retrieves the statistics for a specified port.phy on an adapter 34 HBA_UINT32 port, HBA_UINT32 phy, SMHBA_PHYSTATISTICS *pStatistics) { 54 "NULL Phy Statistics buffer of phyIndex: %08lx", phy); 60 "NULL SAS Phy Statistics buffer of phyIndex: %08lx", phy); 69 handle, phy); 78 "Verify Adapter failed for phyIndex: %08lx", phy); 93 "Invalid port index of phyIndex: %08lx", phy); 98 if (phy >= hba_port_ptr->port_attributes.PortSpecificAttribute. 100 log(LOG_DEBUG, ROUTINE, "Invalid phy index %08lx", phy); 33 Sun_sasGetPhyStatistics(HBA_HANDLE handle, HBA_UINT32 port, HBA_UINT32 phy, SMHBA_PHYSTATISTICS *pStatistics) argument [all...] |
H A D | sun_sas.h | 149 SMHBA_SAS_PHY phy; member in struct:phy_info
|
/illumos-gate/usr/src/uts/common/io/atge/ |
H A D | atge_mii.c | 64 atge_mii_read(void *arg, uint8_t phy, uint8_t reg) argument 86 phy, reg); 107 atge_mii_write(void *arg, uint8_t phy, uint8_t reg, uint16_t val) argument 130 " val :%d", phy, reg, val); 350 atge_l1c_mii_read(void *arg, uint8_t phy, uint8_t reg) argument 353 if (phy != 0) { 358 return (atge_mii_read(arg, phy, reg)); 362 atge_l1c_mii_write(void *arg, uint8_t phy, uint8_t reg, uint16_t val) argument 365 if (phy != 0) { 378 atge_mii_write(arg, phy, re [all...] |
/illumos-gate/usr/src/uts/common/io/e1000api/ |
H A D | e1000_82540.c | 68 struct e1000_phy_info *phy = &hw->phy; local 71 phy->addr = 1; 72 phy->autoneg_mask = AUTONEG_ADVERTISE_SPEED_DEFAULT; 73 phy->reset_delay_us = 10000; 74 phy->type = e1000_phy_m88; 77 phy->ops.check_polarity = e1000_check_polarity_m88; 78 phy->ops.commit = e1000_phy_sw_reset_generic; 79 phy->ops.force_speed_duplex = e1000_phy_force_speed_duplex_m88; 80 phy [all...] |
H A D | e1000_82542.c | 60 struct e1000_phy_info *phy = &hw->phy; local 65 phy->type = e1000_phy_none; 107 hw->phy.media_type = e1000_media_type_fiber; 126 /* phy/fiber/serdes setup */ 165 hw->phy.ops.init_params = e1000_init_phy_params_82542;
|
H A D | e1000_80003es2lan.c | 91 struct e1000_phy_info *phy = &hw->phy; local 96 if (hw->phy.media_type != e1000_media_type_copper) { 97 phy->type = e1000_phy_none; 100 phy->ops.power_up = e1000_power_up_phy_copper; 101 phy->ops.power_down = e1000_power_down_phy_copper_80003es2lan; 104 phy->addr = 1; 105 phy->autoneg_mask = AUTONEG_ADVERTISE_SPEED_DEFAULT; 106 phy->reset_delay_us = 100; 107 phy 759 struct e1000_phy_info *phy = &hw->phy; local 1043 struct e1000_phy_info *phy = &hw->phy; local [all...] |
H A D | e1000_82541.c | 87 struct e1000_phy_info *phy = &hw->phy; local 92 phy->addr = 1; 93 phy->autoneg_mask = AUTONEG_ADVERTISE_SPEED_DEFAULT; 94 phy->reset_delay_us = 10000; 95 phy->type = e1000_phy_igp; 98 phy->ops.check_polarity = e1000_check_polarity_igp; 99 phy->ops.force_speed_duplex = e1000_phy_force_speed_duplex_igp; 100 phy->ops.get_cable_length = e1000_get_cable_length_igp_82541; 101 phy 447 struct e1000_phy_info *phy = &hw->phy; local 535 struct e1000_phy_info *phy = &hw->phy; local 671 struct e1000_phy_info *phy = &hw->phy; local 874 struct e1000_phy_info *phy = &hw->phy; local 947 struct e1000_phy_info *phy = &hw->phy; local [all...] |
H A D | e1000_82543.c | 86 struct e1000_phy_info *phy = &hw->phy; local 91 if (hw->phy.media_type != e1000_media_type_copper) { 92 phy->type = e1000_phy_none; 95 phy->ops.power_up = e1000_power_up_phy_copper; 96 phy->ops.power_down = e1000_power_down_phy_copper; 99 phy->addr = 1; 100 phy->autoneg_mask = AUTONEG_ADVERTISE_SPEED_DEFAULT; 101 phy->reset_delay_us = 10000; 102 phy [all...] |
H A D | e1000_82571.c | 96 struct e1000_phy_info *phy = &hw->phy; local 101 if (hw->phy.media_type != e1000_media_type_copper) { 102 phy->type = e1000_phy_none; 106 phy->addr = 1; 107 phy->autoneg_mask = AUTONEG_ADVERTISE_SPEED_DEFAULT; 108 phy->reset_delay_us = 100; 110 phy->ops.check_reset_block = e1000_check_reset_block_generic; 111 phy->ops.reset = e1000_phy_hw_reset_generic; 112 phy 466 struct e1000_phy_info *phy = &hw->phy; local 988 struct e1000_phy_info *phy = &hw->phy; local 1972 struct e1000_phy_info *phy = &hw->phy; local [all...] |
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/x86pi/ |
H A D | x86pi_bay.c | 188 bay_update_tnode(topo_mod_t *mod, tnode_t *tnodep, uint16_t bdf, int phy) argument 215 if (phy == x86pi_phy(mod, sib)) 234 if (phy == minor_cnt++) { 237 "%s: phy(%d) minor name(%s)\n", 238 f, phy, minor_name);
|
H A D | x86pi_subr.c | 688 * Return PHY from "sata-phy" devinfo proporty. 693 int *phy; local 695 if (di_prop_lookup_ints(DDI_DEV_T_ANY, node, "sata-phy", &phy) < 0) { 696 topo_mod_dprintf(mod, "couldn't get \"sata-phy\" prop: %s.\n", 701 return (*phy);
|
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/ |
H A D | pi_bay.c | 207 di_minor_t *minorp, int phy) 222 if (phy == pi_get_phynum(mod, sib)) { 237 if (phy == pi_get_phynum(mod, gsib)) { 275 pi_bay_update_node(topo_mod_t *mod, tnode_t *t_node, uint8_t phy, argument 335 pi_bay_find_nodes(mod, &dnode, &sib, &minor, phy); 338 "PHY %d.\n", phy); 363 uint8_t *phy = NULL; local 368 nphy = pi_get_priphy(mod, mdp, mde_node, phy); 375 phy = topo_mod_alloc(mod, (nphy * sizeof (uint8_t))); 376 if (phy 206 pi_bay_find_nodes(topo_mod_t *mod, di_node_t *nodep, di_node_t *sibp, di_minor_t *minorp, int phy) argument [all...] |
H A D | pi_subr.c | 729 * If the phy pointer is NULL just return the number of 'phy_number' properties 760 * Return "phy-num" devinfo/pathinfo property. 765 int phy; local 777 if (strcmp("phy-num", 780 bcopy(buf, &phy, sizeof (int)); 790 if (strncmp("phy-num", di_prop_name(di_prop), 791 strlen("phy-num")) == 0) { 795 bcopy(chbuf, &phy, sizeof (uint_t)); 805 topo_mod_dprintf(mod, "pi_get_phynum: phy = %d\n", phy); [all...] |
/illumos-gate/usr/src/uts/common/io/chxge/com/ |
H A D | cphy.h | 69 int (*advertise)(struct cphy *phy, unsigned int advertise_map); 71 int (*set_speed_duplex)(struct cphy *phy, int speed, int duplex); 72 int (*get_link_status)(struct cphy *phy, int *link_ok, int *speed, 125 static inline void cphy_init(struct cphy *phy, adapter_t *adapter, argument 129 phy->adapter = adapter; 130 phy->addr = phy_addr; 131 phy->ops = phy_ops; 133 phy->mdio_read = mdio_ops->read; 134 phy->mdio_write = mdio_ops->write;
|
H A D | mv88e1xxx.c | 113 /* Disable all phy interrupts. */ 153 static int mv88e1xxx_set_speed_duplex(struct cphy *phy, int speed, int duplex) argument 157 (void) simple_mdio_read(phy, MII_BMCR, &ctl); 172 (void) simple_mdio_write(phy, MII_BMCR, ctl); 226 static int mv88e1xxx_advertise(struct cphy *phy, unsigned int advertise_map) argument 232 (void) simple_mdio_read(phy, MII_GBCR, &val); 239 (void) simple_mdio_write(phy, MII_GBCR, val); 254 (void) simple_mdio_write(phy, MII_ADVERTISE, val);
|
/illumos-gate/usr/src/uts/common/io/ntxn/ |
H A D | niu.c | 91 * [15:8] phy id 102 long phy = adapter->physical_port; local 135 address.phy_addr = (unm_crbword_t)phy; 180 int phy = adapter->physical_port; local 184 if ((phy < 0) || (phy > 3)) 193 UNM_NIU_GB_STATION_ADDR_1(phy))) >> 16; 195 adapter, UNM_NIU_GB_STATION_ADDR_0(phy)))) << 16; 214 int phy = adapter->physical_port; local 216 if ((phy < 484 int phy = adapter->physical_port; local [all...] |
/illumos-gate/usr/src/uts/common/io/nxge/npi/ |
H A D | npi_espc.c | 233 phy_type_t phy; local 235 NXGE_REG_RD64(handle, ESPC_PHY_TYPE, &phy.value); 236 data[0] = phy.bits.w0.pt0_phy_type; 237 data[1] = phy.bits.w0.pt1_phy_type; 238 data[2] = phy.bits.w0.pt2_phy_type; 239 data[3] = phy.bits.w0.pt3_phy_type; 247 phy_type_t phy; local 251 NXGE_REG_RD64(handle, ESPC_PHY_TYPE, &phy.value); 254 *data = phy.bits.w0.pt0_phy_type; 257 *data = phy [all...] |
/illumos-gate/usr/src/uts/common/io/chxge/ |
H A D | oschtoe.h | 103 uint32_t phy_tx_fifo; /* phy's tx fifo depth */ 104 uint32_t phy_rx_fifo; /* phy's rx fifo depth */ 179 struct cphy *phy; member in struct:pe_port_t
|
/illumos-gate/usr/src/uts/intel/io/dnet/ |
H A D | dnet_mii.c | 61 static struct phydata *mii_get_valid_phydata(mii_handle_t mac, int phy); 71 static void postreset_ICS1890(mii_handle_t mac, int phy); 72 static void postreset_NS83840(mii_handle_t mac, int phy); 103 * Returns true if PHY at address phy is accessible. This should be 109 mii_probe_phy(mii_handle_t mac, int phy) argument 114 if (!mac || phy < 0 || phy > 31) 120 mac->mii_read(dip, phy, MII_STATUS); 121 status = mac->mii_read(dip, phy, MII_STATUS); 124 mac->mii_read(dip, phy, MII_CONTRO 148 mii_init_phy(mii_handle_t mac, int phy) argument 292 mii_reset_phy(mii_handle_t mac, int phy, enum mii_wait_type wait) argument 352 mii_sync(mii_handle_t mac, int phy) argument 405 mii_disable_fullduplex(mii_handle_t mac, int phy) argument 449 mii_autoneg_enab(mii_handle_t mac, int phy) argument 463 mii_linkup(mii_handle_t mac, int phy) argument 486 mii_getspeed(mii_handle_t mac, int phy, int *speed, int *fulld) argument 514 mii_fixspeed(mii_handle_t mac, int phy, int speed, int fullduplex) argument 551 mii_isolate(mii_handle_t mac, int phy) argument 567 mii_unisolate(mii_handle_t mac, int phy) argument 584 mii_rsan(mii_handle_t mac, int phy, enum mii_wait_type wait) argument 627 mii_dump_phy(mii_handle_t mac, int phy) argument 764 mii_get_valid_phydata(mii_handle_t mac, int phy) argument 778 dump_NS83840(mii_handle_t mac, int phy) argument 813 getspeed_NS83840(mii_handle_t mac, int phy, int *speed, int *fulld) argument 857 getspeed_82553(mii_handle_t mac, int phy, int *speed, int *fulld) argument 870 getspeed_ICS1890(mii_handle_t mac, int phy, int *speed, int *fulld) argument 879 dump_ICS1890(mii_handle_t mac, int phy) argument 889 postreset_NS83840(mii_handle_t mac, int phy) argument 929 postreset_ICS1890(mii_handle_t mac, int phy) argument 939 getspeed_generic(mii_handle_t mac, int phy, int *speed, int *fulld) argument [all...] |
/illumos-gate/usr/src/uts/common/io/ixgbe/core/ |
H A D | ixgbe_x540.c | 62 struct ixgbe_phy_info *phy = &hw->phy; local 83 phy->ops.init = ixgbe_init_phy_ops_generic; 84 phy->ops.reset = NULL; 85 phy->ops.set_phy_power = ixgbe_set_copper_phy_power; 197 return hw->phy.ops.setup_link_speed(hw, speed, autoneg_wait_to_complete); 327 hw->phy.ops.read_reg(hw, IXGBE_MDIO_PHY_EXT_ABILITY,
|
H A D | ixgbe_82598.c | 122 struct ixgbe_phy_info *phy = &hw->phy; local 131 phy->ops.init = ixgbe_init_phy_ops_82598; 164 phy->ops.read_i2c_eeprom = ixgbe_read_i2c_eeprom_82598; 165 phy->ops.read_i2c_sff8472 = ixgbe_read_i2c_sff8472_82598; 194 struct ixgbe_phy_info *phy = &hw->phy; local 201 phy->ops.identify(hw); 210 switch (hw->phy.type) { 212 phy [all...] |
/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | epic100.c | 103 unsigned int phy, phy_idx; local 184 for (phy = 0, phy_idx = 0; phy < 32 && phy_idx < sizeof(phys); phy++) { 185 int mii_status = mii_read(phy, 0); 188 phys[phy_idx++] = phy; 190 printf("MII transceiver found at address %d.\n", phy);
|
/illumos-gate/usr/src/uts/common/io/efe/ |
H A D | efe.c | 498 efe_mii_read(void *arg, uint8_t phy, uint8_t reg) argument 503 reg << MMCTL_PHYREG | phy << MMCTL_PHYADDR); 517 efe_mii_write(void *arg, uint8_t phy, uint8_t reg, uint16_t data) argument 524 reg << MMCTL_PHYREG | phy << MMCTL_PHYADDR);
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | ip_netinfo.c | 799 phy_if_t phy; local 806 phy = ill->ill_phyint->phyint_ifindex; 810 return (phy);
|