Home
last modified time | relevance | path

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

12

/illumos-gate/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
/illumos-gate/usr/src/uts/common/io/scsi/adapters/mpt_sas/
H A Dmptsas_smhba.c128 uint8_t phy_id, uint16_t *attached_devhdl) in mptsas_smhba_create_phy_props() argument
131 (void) nvlist_add_uint8(*phy_props, SAS_PHY_ID, phy_id); in mptsas_smhba_create_phy_props()
187 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
192 ASSERT(phy_id < mpt->m_num_phys); in mptsas_smhba_set_one_phy_props()
195 &mpt->m_phy_info[phy_id].smhba_info, phy_id, attached_devhdl); in mptsas_smhba_set_one_phy_props()
253 phynum = phyp->phy_id; in mptsas_smhba_log_sysevent()
391 page_address = (MPI2_SAS_PHY_PGAD_FORM_PHY_NUMBER | pptr->phy_id); in mptsas_update_phy_stats()
467 mpt->m_phy_info[i].smhba_info.phy_id = (uint8_t)i; in mptsas_smhba_phy_init()
/illumos-gate/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 Dtg3.c1385 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()
2473 tp->phy_id = eeprom_phy_id; in tg3_phy_probe()
2529 if (tp->phy_id == PHY_ID_SERDES) { in tg3_phy_probe()
2541 if (tp->phy_id == PHY_ID_SERDES) in tg3_phy_probe()
[all …]
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 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 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 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);
/illumos-gate/usr/src/uts/common/io/igc/core/
H A Digc_phy.c134 u16 phy_id; in igc_get_phy_id() local
141 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igc_get_phy_id()
145 phy->id = (u32)(phy_id << 16); in igc_get_phy_id()
147 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igc_get_phy_id()
151 phy->id |= (u32)(phy_id & PHY_REVISION_MASK); in igc_get_phy_id()
152 phy->revision = (u32)(phy_id & ~PHY_REVISION_MASK); in igc_get_phy_id()
/illumos-gate/usr/src/uts/common/io/bnx/570x/driver/common/lmdev/
H A Dbnx_hw_phy.c315 pdev->hw_info.phy_id = val << 16; in init_utp()
319 pdev->hw_info.phy_id |= val & 0xffff; in init_utp()
324 pdev->hw_info.phy_id == 0); in init_utp()
962 pdev->hw_info.phy_id = val << 16; in init_5708_serdes()
974 pdev->hw_info.phy_id == 0); in init_5708_serdes()
1527 pdev->hw_info.phy_id = val << 16; in init_5709_serdes()
1674 pdev->hw_info.phy_id = val << 16; in init_5706_serdes()
1682 pdev->hw_info.phy_id == 0); in init_5706_serdes()
1874 pdev->hw_info.phy_id = val << 16; in init_serdes_or_phy_loopback()
1882 pdev->hw_info.phy_id == 0); in init_serdes_or_phy_loopback()
[all …]
/illumos-gate/usr/src/uts/common/sys/scsi/adapters/mpt_sas/
H A Dmptsas_smhba.h70 uint8_t phy_id, uint16_t *attached_devhdl);
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/usr/src/uts/common/io/i40e/
H A Di40e_stats.c897 *val = i40e->i40e_phy.phy_id[3] << 24 | in i40e_m_stat()
898 i40e->i40e_phy.phy_id[2] << 16 | in i40e_m_stat()
899 i40e->i40e_phy.phy_id[1] << 8; in i40e_m_stat()
906 *val = i40e->i40e_phy.phy_id[0] | in i40e_m_stat()
907 i40e->i40e_phy.phy_id[1] << 8 | in i40e_m_stat()
908 i40e->i40e_phy.phy_id[2] << 16; in i40e_m_stat()

12