Home
last modified time | relevance | path

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

12

/external/syslinux/gpxe/src/drivers/net/
Dsis190.c100 static void mdio_write(void *ioaddr, int phy_id, int reg, int val) in mdio_write() argument
103 (((u32) reg) << EhnMIIregShift) | (phy_id << EhnMIIpmdShift) | in mdio_write()
107 static int mdio_read(void *ioaddr, int phy_id, int reg) in mdio_read() argument
110 (((u32) reg) << EhnMIIregShift) | (phy_id << EhnMIIpmdShift)); in mdio_read()
115 static void __mdio_write(struct net_device *dev, int phy_id, int reg, int val) in __mdio_write() argument
119 mdio_write(tp->mmio_addr, phy_id, reg, val); in __mdio_write()
122 static int __mdio_read(struct net_device *dev, int phy_id, int reg) in __mdio_read() argument
126 return mdio_read(tp->mmio_addr, phy_id, reg); in __mdio_read()
129 static u16 mdio_read_latched(void *ioaddr, int phy_id, int reg) in mdio_read_latched() argument
131 mdio_read(ioaddr, phy_id, reg); in mdio_read_latched()
[all …]
Dw89c840.c262 static int mdio_read(int base_address, int phy_id, int location);
264 static void mdio_write(int base_address, int phy_id, int location, int value);
806 static int mdio_read(int base_address, int phy_id, int location) in mdio_read() argument
809 int mii_cmd = (0xf6 << 10) | (phy_id << 5) | location; in mdio_read()
836 static void mdio_write(int base_address, int phy_id, int location, int value)
839 int mii_cmd = (0x5002 << 16) | (phy_id << 23) | (location<<18) | value;
842 if (location == 4 && phy_id == w840private.phys[0])
Dsundance.c285 static int mdio_read(struct nic *nic, int phy_id, unsigned int location);
286 static void mdio_write(struct nic *nic, int phy_id, unsigned int location,
631 sdc->mii_if.phy_id = sdc->phys[0]; in sundance_probe()
801 mdio_read(struct nic *nic __unused, int phy_id, unsigned int location) in mdio_read() argument
804 int mii_cmd = (0xf6 << 10) | (phy_id << 5) | location; in mdio_read()
833 mdio_write(struct nic *nic __unused, int phy_id, in mdio_write() argument
838 (0x5002 << 16) | (phy_id << 23) | (location << 18) | value; in mdio_write()
Dpcnet32.c254 static int mdio_read(struct nic *nic __unused, int phy_id, int reg_num);
256 static void mdio_write(struct nic *nic __unused, int phy_id, int reg_num,
930 lp->mii_if.phy_id = lp->phys[0]; in pcnet32_probe()
960 static int mdio_read(struct nic *nic __unused, int phy_id, int reg_num) in mdio_read() argument
971 ((phy_id & 0x1f) << 5) | (reg_num & 0x1f)); in mdio_read()
979 static void mdio_write(struct nic *nic __unused, int phy_id, int reg_num,
990 ((phy_id & 0x1f) << 5) | (reg_num & 0x1f));
Dtg3.c719 if ((tp->phy_id & PHY_ID_MASK) == PHY_ID_BCM5401) { in tg3_setup_copper_phy()
741 if ((tp->phy_id & PHY_ID_REV_MASK) == PHY_REV_BCM5401_B0 && in tg3_setup_copper_phy()
872 if ((tp->phy_id & PHY_ID_MASK) == PHY_ID_BCM5411 && in tg3_setup_copper_phy()
1405 if (tp->phy_id == PHY_ID_SERDES) { in tg3_setup_phy()
1843 if (tp->phy_id == PHY_ID_SERDES) { in tg3_setup_hw()
2235 if (tp->phy_id == PHY_ID_SERDES) { in tg3_setup_hw()
2413 uint32_t phy_id; member
2467 tp->phy_id = PHY_ID_INVALID; in tg3_phy_probe()
2472 tp->phy_id = subsys_id_to_phy_id[i].phy_id; in tg3_phy_probe()
2547 tp->phy_id = hw_phy_id; in tg3_phy_probe()
[all …]
Dsis900.c149 static u16 sis900_mdio_read(int phy_id, int location);
151 static void sis900_mdio_write(int phy_id, int location, int val);
535 static u16 sis900_mdio_read(int phy_id, int location) in sis900_mdio_read() argument
538 int mii_cmd = MIIread|(phy_id<<MIIpmdShift)|(location<<MIIregShift); in sis900_mdio_read()
566 static void sis900_mdio_write(int phy_id, int location, int value)
569 int mii_cmd = MIIwrite|(phy_id<<MIIpmdShift)|(location<<MIIregShift);
Depic100.c62 static int mii_read(int phy_id, int location);
502 mii_read(int phy_id, int location) in mii_read() argument
506 outl((phy_id << 9) | (location << 4) | MII_READOP, mmctl); in mii_read()
Deepro100.c616 static int ifec_mdio_read ( struct net_device *netdev, int phy_id, in ifec_mdio_read() argument
626 outl ( 0x08000000 | ( location << 16 ) | ( phy_id << 21 ), in ifec_mdio_read()
681 int phy_id, int location, int value ) in ifec_mdio_write() argument
690 outl ( 0x04000000 | ( location << 16 ) | ( phy_id << 21 ) | value, in ifec_mdio_write()
Dtulip.c493 static int mdio_read(struct nic *nic, int phy_id, int location);
494 static void mdio_write(struct nic *nic, int phy_id, int location, int value);
582 int mdio_read(struct nic *nic __unused, int phy_id, int location) in mdio_read() argument
585 int read_cmd = (0xf6 << 10) | (phy_id << 5) | location; in mdio_read()
595 outl(0x60020000 + (phy_id<<23) + (location<<18), ioaddr + 0xA0); in mdio_read()
605 if (phy_id == 1) { in mdio_read()
643 void mdio_write(struct nic *nic __unused, int phy_id, int location, int value) in mdio_write() argument
646 int cmd = (0x5002 << 16) | (phy_id << 23) | (location<<18) | value; in mdio_write()
664 if (phy_id != 1) in mdio_write()
Dsis190.h271 int phy_id; member
Dvia-velocity.c729 vptr->phy_id = MII_GET_PHY_ID(vptr->mac_regs); in velocity_probe()
1311 switch (PHYID_GET_PHY_ID(vptr->phy_id)) { in mii_init()
1629 if (PHYID_GET_PHY_ID(vptr->phy_id) == PHYID_CICADA_CS8201) { in velocity_set_media_mode()
Datl1e.c173 static int atl1e_mdio_read(struct net_device *netdev, int phy_id __unused, in atl1e_mdio_read()
183 static void atl1e_mdio_write(struct net_device *netdev, int phy_id __unused, in atl1e_mdio_write()
Dmtd80x.c365 static int mdio_read(struct nic * , int phy_id, int location);
Dvia-velocity.h1829 u32 phy_id; member
Dbnx2.c1127 bp->phy_id = val << 16; in bnx2_init_phy()
1129 bp->phy_id |= val & 0xffff; in bnx2_init_phy()
Dtg3.h2031 uint32_t phy_id; member
Dbnx2.h4097 u32 phy_id; member
/external/syslinux/gpxe/src/net/
Dmii.c44 mii->mdio_read ( mii->dev, mii->phy_id, MII_BMSR ); in mii_link_ok()
45 if ( mii->mdio_read ( mii->dev, mii->phy_id, MII_BMSR ) & BMSR_LSTATUS ) in mii_link_ok()
120 advertise = mii->mdio_read ( mii->dev, mii->phy_id, MII_ADVERTISE ); in mii_check_media()
123 lpa = mii->mdio_read ( mii->dev, mii->phy_id, MII_LPA ); in mii_check_media()
125 lpa2 = mii->mdio_read ( mii->dev, mii->phy_id, MII_STAT1000 ); in mii_check_media()
/external/syslinux/gpxe/src/include/
Dmii.h146 int phy_id; member
156 int (*mdio_read) (struct net_device *dev, int phy_id, int location);
157 void (*mdio_write) (struct net_device *dev, int phy_id, int location, int val);
/external/wpa_supplicant_8/src/drivers/
Ddriver_roboswitch.c90 mii->phy_id = ROBO_PHY_ADDR; in wpa_driver_roboswitch_mdio_read()
107 mii->phy_id = ROBO_PHY_ADDR; in wpa_driver_roboswitch_mdio_write()
405 if (if_mii(&drv->ifr)->phy_id != ROBO_PHY_ADDR && in wpa_driver_roboswitch_init()
406 if_mii(&drv->ifr)->phy_id != 0) { in wpa_driver_roboswitch_init()
/external/kernel-headers/original/uapi/linux/
Dmii.h156 __u16 phy_id; member
/external/iw/
Dinfo.c114 static int64_t phy_id = -1; in print_phy_handler() local
123 if (nla_get_u32(tb_msg[NL80211_ATTR_WIPHY]) == phy_id) in print_phy_handler()
127 phy_id = nla_get_u32(tb_msg[NL80211_ATTR_WIPHY]); in print_phy_handler()
/external/syslinux/gpxe/src/drivers/net/e1000/
De1000_hw.c171 switch (hw->phy_id) { in e1000_set_phy_type()
1467 DEBUGOUT1("Phy ID = %#08x \n", hw->phy_id); in e1000_copper_link_preconfig()
1861 (hw->phy_id == M88E1111_I_PHY_ID)) { in e1000_copper_link_mgp_setup()
4109 if (hw->phy_id != 0) in e1000_detect_gig_phy()
4117 hw->phy_id = IGP01E1000_I_PHY_ID; in e1000_detect_gig_phy()
4136 hw->phy_id = (uint32_t) (phy_id_high << 16); in e1000_detect_gig_phy()
4142 hw->phy_id |= (uint32_t) (phy_id_low & PHY_REVISION_MASK); in e1000_detect_gig_phy()
4147 if (hw->phy_id == M88E1000_E_PHY_ID) match = TRUE; in e1000_detect_gig_phy()
4150 if (hw->phy_id == M88E1000_I_PHY_ID) match = TRUE; in e1000_detect_gig_phy()
4157 if (hw->phy_id == M88E1011_I_PHY_ID) match = TRUE; in e1000_detect_gig_phy()
[all …]
De1000_hw.h1412 uint32_t phy_id; member
/external/valgrind/coregrind/m_syswrap/
Dsyswrap-linux.c5937 … (Addr)&((struct vki_mii_ioctl_data *)&((struct vki_ifreq *)ARG3)->vki_ifr_data)->phy_id, in PRE()
5938 … sizeof(((struct vki_mii_ioctl_data *)&((struct vki_ifreq *)ARG3)->vki_ifr_data)->phy_id) ); in PRE()
6047 … (Addr)&((struct vki_mii_ioctl_data *)&((struct vki_ifreq *)ARG3)->vki_ifr_data)->phy_id, in PRE()
6048 … sizeof(((struct vki_mii_ioctl_data *)&((struct vki_ifreq *)ARG3)->vki_ifr_data)->phy_id) ); in PRE()
8756 … (Addr)&((struct vki_mii_ioctl_data *)&((struct vki_ifreq *)ARG3)->vki_ifr_data)->phy_id, in POST()
8757 … sizeof(((struct vki_mii_ioctl_data *)&((struct vki_ifreq *)ARG3)->vki_ifr_data)->phy_id) ); in POST()

12