Home
last modified time | relevance | path

Searched refs:phy_id (Results 1 – 25 of 41) sorted by relevance

12

/titanic_41/usr/src/uts/common/io/mii/
H A Dmii_natsemi.c65 if ((MII_PHY_MFG(ph->phy_id) != MII_OUI_NATIONAL_SEMI) && in phy_natsemi_probe()
66 (MII_PHY_MFG(ph->phy_id) != MII_OUI_NATIONAL_SEMI_2)) { in phy_natsemi_probe()
71 switch (MII_PHY_MODEL(ph->phy_id)) { in phy_natsemi_probe()
H A Dmii_other.c127 uint32_t vid = MII_PHY_MFG(ph->phy_id); in phy_other_probe()
128 uint32_t pid = MII_PHY_MODEL(ph->phy_id); in phy_other_probe()
130 if ((ph->phy_id == 0) || (ph->phy_id == 0xffffffffU)) { in phy_other_probe()
H A Dmii_cicada.c75 switch (MII_PHY_MFG(ph->phy_id)) { in phy_cicada_probe()
78 switch (MII_PHY_MODEL(ph->phy_id)) { in phy_cicada_probe()
H A Dmii_intel.c98 if (MII_PHY_MFG(ph->phy_id) != MII_OUI_INTEL) { in phy_intel_probe()
102 switch (MII_PHY_MODEL(ph->phy_id)) { in phy_intel_probe()
H A Dmii_qualsemi.c94 if ((MII_PHY_MFG(ph->phy_id) == MII_OUI_QUALITY_SEMI) && in phy_qualsemi_probe()
95 (MII_PHY_MODEL(ph->phy_id) == MII_MODEL_QUALITY_SEMI_QS6612)) { in phy_qualsemi_probe()
H A Dmii_realtek.c50 if ((ph->phy_id == 0) && in phy_realtek_probe()
56 } else if (ph->phy_id == 0x8201) { in phy_realtek_probe()
H A Dmii_marvell.c254 if (MII_PHY_REV(ph->phy_id) == 0) { in mvphy_reset_88e1149()
455 switch (MII_PHY_MFG(ph->phy_id)) { in phy_marvell_probe()
458 switch (MII_PHY_MODEL(ph->phy_id)) { in phy_marvell_probe()
H A Dmiipriv.h52 uint32_t phy_id; member
/titanic_41/usr/src/uts/common/io/scsi/adapters/mpt_sas/
H A Dmptsas_smhba.c127 uint8_t phy_id, uint16_t *attached_devhdl) in mptsas_smhba_create_phy_props() argument
130 (void) nvlist_add_uint8(*phy_props, SAS_PHY_ID, phy_id); in mptsas_smhba_create_phy_props()
186 mptsas_smhba_set_one_phy_props(mptsas_t *mpt, dev_info_t *dip, uint8_t phy_id, in mptsas_smhba_set_one_phy_props() argument
191 ASSERT(phy_id < mpt->m_num_phys); in mptsas_smhba_set_one_phy_props()
194 &mpt->m_phy_info[phy_id].smhba_info, phy_id, attached_devhdl); in mptsas_smhba_set_one_phy_props()
252 phynum = phyp->phy_id; in mptsas_smhba_log_sysevent()
390 page_address = (MPI2_SAS_PHY_PGAD_FORM_PHY_NUMBER | pptr->phy_id); in mptsas_update_phy_stats()
466 mpt->m_phy_info[i].smhba_info.phy_id = (uint8_t)i; in mptsas_smhba_phy_init()
/titanic_41/usr/src/grub/grub-0.97/netboot/
H A Dsundance.c70 int phy_id; member
310 static int mdio_read(struct nic *nic, int phy_id, unsigned int location);
311 static void mdio_write(struct nic *nic, int phy_id, unsigned int location,
649 sdc->mii_if.phy_id = sdc->phys[0]; in sundance_probe()
805 mdio_read(struct nic *nic __unused, int phy_id, unsigned int location) in mdio_read() argument
808 int mii_cmd = (0xf6 << 10) | (phy_id << 5) | location; in mdio_read()
837 mdio_write(struct nic *nic __unused, int phy_id, in mdio_write() argument
842 (0x5002 << 16) | (phy_id << 23) | (location << 18) | value; in mdio_write()
H A Dw89c840.c265 static int mdio_read(int base_address, int phy_id, int location);
267 static void mdio_write(int base_address, int phy_id, int location, int value);
794 static int mdio_read(int base_address, int phy_id, int location) in mdio_read() argument
797 int mii_cmd = (0xf6 << 10) | (phy_id << 5) | location; in mdio_read()
824 static void mdio_write(int base_address, int phy_id, int location, int value)
827 int mii_cmd = (0x5002 << 16) | (phy_id << 23) | (location<<18) | value;
830 if (location == 4 && phy_id == w840private.phys[0])
H A Dpcnet32.c247 int phy_id; member
280 static int mdio_read(struct nic *nic __unused, int phy_id, int reg_num);
282 static void mdio_write(struct nic *nic __unused, int phy_id, int reg_num,
929 lp->mii_if.phy_id = lp->phys[0]; in pcnet32_probe()
955 static int mdio_read(struct nic *nic __unused, int phy_id, int reg_num) in mdio_read() argument
966 ((phy_id & 0x1f) << 5) | (reg_num & 0x1f)); in mdio_read()
974 static void mdio_write(struct nic *nic __unused, int phy_id, int reg_num,
985 ((phy_id & 0x1f) << 5) | (reg_num & 0x1f));
H A Deepro100.c286 static int mdio_write(int phy_id, int location, int value) in mdio_write() argument
290 outl(0x04000000 | (location<<16) | (phy_id<<21) | value, in mdio_write()
309 static int mdio_read(int phy_id, int location) in mdio_read() argument
312 outl(0x08000000 | (location<<16) | (phy_id<<21), ioaddr + SCBCtrlMDI); in mdio_read()
H A Dtg3.c699 if ((tp->phy_id & PHY_ID_MASK) == PHY_ID_BCM5401) { in tg3_setup_copper_phy()
721 if ((tp->phy_id & PHY_ID_REV_MASK) == PHY_REV_BCM5401_B0 && in tg3_setup_copper_phy()
852 if ((tp->phy_id & PHY_ID_MASK) == PHY_ID_BCM5411 && in tg3_setup_copper_phy()
1385 if (tp->phy_id == PHY_ID_SERDES) { in tg3_setup_phy()
1779 if (tp->phy_id == PHY_ID_SERDES) { in tg3_setup_hw()
2156 if (tp->phy_id == PHY_ID_SERDES) { in tg3_setup_hw()
2333 uint32_t phy_id; member
2383 tp->phy_id = PHY_ID_INVALID; in tg3_phy_probe()
2388 tp->phy_id = subsys_id_to_phy_id[i].phy_id; in tg3_phy_probe()
2463 tp->phy_id = hw_phy_id; in tg3_phy_probe()
[all …]
H A Depic100.c59 static int mii_read(int phy_id, int location);
494 mii_read(int phy_id, int location) in mii_read() argument
498 outl((phy_id << 9) | (location << 4) | MII_READOP, mmctl); in mii_read()
H A Dsis900.c134 static u16 sis900_mdio_read(int phy_id, int location);
136 static void sis900_mdio_write(int phy_id, int location, int val);
515 static u16 sis900_mdio_read(int phy_id, int location) in sis900_mdio_read() argument
518 int mii_cmd = MIIread|(phy_id<<MIIpmdShift)|(location<<MIIregShift); in sis900_mdio_read()
546 static void sis900_mdio_write(int phy_id, int location, int value)
549 int mii_cmd = MIIwrite|(phy_id<<MIIpmdShift)|(location<<MIIregShift);
H A Dnatsemi.c215 static int mdio_read(int phy_id, int location);
388 static int mdio_read(int phy_id, int location) in mdio_read() argument
390 if (phy_id == 1 && location < 32) in mdio_read()
H A Dtulip.c479 static int mdio_read(struct nic *nic, int phy_id, int location);
480 static void mdio_write(struct nic *nic, int phy_id, int location, int value);
566 int mdio_read(struct nic *nic __unused, int phy_id, int location) in mdio_read() argument
569 int read_cmd = (0xf6 << 10) | (phy_id << 5) | location; in mdio_read()
579 outl(0x60020000 + (phy_id<<23) + (location<<18), ioaddr + 0xA0); in mdio_read()
589 if (phy_id == 1) { in mdio_read()
627 void mdio_write(struct nic *nic __unused, int phy_id, int location, int value) in mdio_write() argument
630 int cmd = (0x5002 << 16) | (phy_id << 23) | (location<<18) | value; in mdio_write()
648 if (phy_id != 1) in mdio_write()
H A De1000.c740 switch(hw->phy_id) { in e1000_set_phy_type()
1570 DEBUGOUT1("Phy ID = %x \n", hw->phy_id);
3091 hw->phy_id = (uint32_t) (phy_id_high << 16);
3096 hw->phy_id |= (uint32_t) (phy_id_low & PHY_REVISION_MASK);
3103 if(hw->phy_id == M88E1000_E_PHY_ID) match = TRUE;
3106 if(hw->phy_id == M88E1000_I_PHY_ID) match = TRUE;
3113 if(hw->phy_id == M88E1011_I_PHY_ID) match = TRUE;
3119 if(hw->phy_id == IGP01E1000_I_PHY_ID) match = TRUE;
3128 DEBUGOUT1("PHY ID 0x%X detected\n", hw->phy_id);
3131 DEBUGOUT1("Invalid PHY ID 0x%X\n", hw->phy_id);
/titanic_41/usr/src/uts/common/sys/scsi/adapters/mpt_sas/
H A Dmptsas_smhba.h70 uint8_t phy_id, uint16_t *attached_devhdl);
/titanic_41/usr/src/uts/common/io/nge/
H A Dnge_xmii.c187 ngep->phy_id = in nge_phy_probe()
190 phy_status, ngep->phy_id)); in nge_phy_probe()
268 if (MII_PHY_MFG(ngep->phy_id) == MII_ID_CICADA) { in nge_phy_restart()
/titanic_41/usr/src/uts/common/io/ixgbe/
H A Dixgbe_phy.h100 enum ixgbe_phy_type ixgbe_get_phy_type_from_id(u32 phy_id);
H A Dixgbe_phy.c141 u16 phy_id = 0; in ixgbe_validate_phy_addr() local
148 IXGBE_MDIO_PMA_PMD_DEV_TYPE, &phy_id); in ixgbe_validate_phy_addr()
150 if (phy_id != 0xFFFF && phy_id != 0x0) in ixgbe_validate_phy_addr()
189 enum ixgbe_phy_type ixgbe_get_phy_type_from_id(u32 phy_id) in ixgbe_get_phy_type_from_id() argument
195 switch (phy_id) { in ixgbe_get_phy_type_from_id()
/titanic_41/usr/src/uts/common/io/i40e/
H A Di40e_stats.c894 *val = i40e->i40e_phy.phy_id[3] << 24 | in i40e_m_stat()
895 i40e->i40e_phy.phy_id[2] << 16 | in i40e_m_stat()
896 i40e->i40e_phy.phy_id[1] << 8; in i40e_m_stat()
903 *val = i40e->i40e_phy.phy_id[0] | in i40e_m_stat()
904 i40e->i40e_phy.phy_id[1] << 8 | in i40e_m_stat()
905 i40e->i40e_phy.phy_id[2] << 16; in i40e_m_stat()
/titanic_41/usr/src/uts/common/io/e1000api/
H A De1000_82571.c468 u16 phy_id = 0; in e1000_get_phy_id_82571() local
487 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in e1000_get_phy_id_82571()
491 phy->id = (u32)(phy_id << 16); in e1000_get_phy_id_82571()
493 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in e1000_get_phy_id_82571()
497 phy->id |= (u32)(phy_id); in e1000_get_phy_id_82571()
498 phy->revision = (u32)(phy_id & ~PHY_REVISION_MASK); in e1000_get_phy_id_82571()

12