Home
last modified time | relevance | path

Searched refs:phy_id (Results 326 - 350 of 659) sorted by relevance

1...<<11121314151617181920>>...27

/kernel/linux/linux-6.6/drivers/net/ethernet/dlink/
H A Dsundance.c422 static int mdio_read(struct net_device *dev, int phy_id, int location);
423 static void mdio_write(struct net_device *dev, int phy_id, int location, int value);
621 np->mii_if.phy_id = np->phys[0]; in sundance_probe1()
761 static int mdio_read(struct net_device *dev, int phy_id, int location) in mdio_read() argument
765 int mii_cmd = (0xf6 << 10) | (phy_id << 5) | location; in mdio_read()
791 static void mdio_write(struct net_device *dev, int phy_id, int location, int value) in mdio_write() argument
795 int mii_cmd = (0x5002 << 16) | (phy_id << 23) | (location<<18) | value; in mdio_write()
822 int phy_id; in mdio_wait_link() local
826 phy_id = np->phys[0]; in mdio_wait_link()
829 bmsr = mdio_read(dev, phy_id, MII_BMS in mdio_wait_link()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/packetengines/
H A Dyellowfin.c342 static int mdio_read(void __iomem *ioaddr, int phy_id, int location);
343 static void mdio_write(void __iomem *ioaddr, int phy_id, int location, int value);
545 static int mdio_read(void __iomem *ioaddr, int phy_id, int location) in mdio_read() argument
549 iowrite16((phy_id<<8) + location, ioaddr + MII_Addr); in mdio_read()
557 static void mdio_write(void __iomem *ioaddr, int phy_id, int location, int value) in mdio_write() argument
561 iowrite16((phy_id<<8) + location, ioaddr + MII_Addr); in mdio_write()
1360 data->phy_id = np->phys[0] & 0x1f; in netdev_ioctl()
1364 data->val_out = mdio_read(ioaddr, data->phy_id & 0x1f, data->reg_num & 0x1f); in netdev_ioctl()
1368 if (data->phy_id == np->phys[0]) { in netdev_ioctl()
1381 mdio_write(ioaddr, data->phy_id in netdev_ioctl()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/sis/
H A Dsis900.c221 static int mdio_read(struct net_device *net_dev, int phy_id, int location);
222 static void mdio_write(struct net_device *net_dev, int phy_id, int location, int val);
772 sis_priv->mii_info.phy_id = sis_priv->cur_phy; in sis900_default_phy()
894 * @phy_id: the phy address to read
902 static int mdio_read(struct net_device *net_dev, int phy_id, int location) in mdio_read() argument
904 int mii_cmd = MIIread|(phy_id<<MIIpmdShift)|(location<<MIIregShift); in mdio_read()
938 * @phy_id: the phy address to write
947 static void mdio_write(struct net_device *net_dev, int phy_id, int location, in mdio_write() argument
950 int mii_cmd = MIIwrite|(phy_id<<MIIpmdShift)|(location<<MIIregShift); in mdio_write()
2235 data->phy_id in mii_ioctl()
[all...]
/kernel/linux/linux-5.10/drivers/message/fusion/
H A Dmptsas.c857 port_details->phy_bitmask &= ~ (1 << phy_info->phy_id); in mptsas_setup_wide_ports()
863 phy_info->phy_id, phy_info->phy)); in mptsas_setup_wide_ports()
875 dsaswideprintk(ioc, printk(MYIOC_s_DEBUG_FMT "phy_id=%d sas_address=0x%018llX\n", in mptsas_setup_wide_ports()
890 if (phy_info->phy_id < 64 ) in mptsas_setup_wide_ports()
892 (1 << phy_info->phy_id); in mptsas_setup_wide_ports()
895 "phy_id=%d sas_address=0x%018llX\n", in mptsas_setup_wide_ports()
932 if (phy_info_cmp->phy_id < 64 ) in mptsas_setup_wide_ports()
934 (1 << phy_info_cmp->phy_id); in mptsas_setup_wide_ports()
946 "%s: [%p]: phy_id=%02d num_phys=%02d " in mptsas_setup_wide_ports()
1461 phy_info->attached.phy_id, (unsigne in mptsas_add_end_device()
[all...]
/kernel/linux/linux-6.6/drivers/message/fusion/
H A Dmptsas.c883 port_details->phy_bitmask &= ~ (1 << phy_info->phy_id); in mptsas_setup_wide_ports()
889 phy_info->phy_id, phy_info->phy)); in mptsas_setup_wide_ports()
901 dsaswideprintk(ioc, printk(MYIOC_s_DEBUG_FMT "phy_id=%d sas_address=0x%018llX\n", in mptsas_setup_wide_ports()
916 if (phy_info->phy_id < 64 ) in mptsas_setup_wide_ports()
918 (1 << phy_info->phy_id); in mptsas_setup_wide_ports()
921 "phy_id=%d sas_address=0x%018llX\n", in mptsas_setup_wide_ports()
958 if (phy_info_cmp->phy_id < 64 ) in mptsas_setup_wide_ports()
960 (1 << phy_info_cmp->phy_id); in mptsas_setup_wide_ports()
972 "%s: [%p]: phy_id=%02d num_phys=%02d " in mptsas_setup_wide_ports()
1489 phy_info->attached.phy_id, (unsigne in mptsas_add_end_device()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/dec/tulip/
H A Dtulip.h498 int tulip_mdio_read(struct net_device *dev, int phy_id, int location);
499 void tulip_mdio_write(struct net_device *dev, int phy_id, int location, int value);
/kernel/linux/linux-6.6/drivers/net/ethernet/dec/tulip/
H A Dtulip.h497 int tulip_mdio_read(struct net_device *dev, int phy_id, int location);
498 void tulip_mdio_write(struct net_device *dev, int phy_id, int location, int value);
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/
H A Dpcnet32.c321 static int mdio_read(struct net_device *dev, int phy_id, int reg_num);
322 static void mdio_write(struct net_device *dev, int phy_id, int reg_num,
1936 /* Set the mii phy_id so that we can query the link state */ in pcnet32_probe1()
1940 lp->mii_if.phy_id = ((lp->a->read_bcr(ioaddr, 33)) >> 5) & 0x1f; in pcnet32_probe1()
1955 lp->mii_if.phy_id = i; in pcnet32_probe1()
1960 lp->a->write_bcr(ioaddr, 33, (lp->mii_if.phy_id) << 5); in pcnet32_probe1()
2229 lp->mii_if.phy_id = i; in pcnet32_open()
2238 lp->mii_if.phy_id = first_phy; in pcnet32_open()
2739 static int mdio_read(struct net_device *dev, int phy_id, int reg_num) in mdio_read() argument
2748 lp->a->write_bcr(ioaddr, 33, ((phy_id in mdio_read()
2755 mdio_write(struct net_device *dev, int phy_id, int reg_num, int val) mdio_write() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/amd/
H A Dpcnet32.c321 static int mdio_read(struct net_device *dev, int phy_id, int reg_num);
322 static void mdio_write(struct net_device *dev, int phy_id, int reg_num,
1946 /* Set the mii phy_id so that we can query the link state */ in pcnet32_probe1()
1950 lp->mii_if.phy_id = ((lp->a->read_bcr(ioaddr, 33)) >> 5) & 0x1f; in pcnet32_probe1()
1965 lp->mii_if.phy_id = i; in pcnet32_probe1()
1970 lp->a->write_bcr(ioaddr, 33, (lp->mii_if.phy_id) << 5); in pcnet32_probe1()
2239 lp->mii_if.phy_id = i; in pcnet32_open()
2248 lp->mii_if.phy_id = first_phy; in pcnet32_open()
2749 static int mdio_read(struct net_device *dev, int phy_id, int reg_num) in mdio_read() argument
2758 lp->a->write_bcr(ioaddr, 33, ((phy_id in mdio_read()
2765 mdio_write(struct net_device *dev, int phy_id, int reg_num, int val) mdio_write() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/dsa/
H A Dqca8k.c92 qca8k_mii_read32(struct mii_bus *bus, int phy_id, u32 regnum) in qca8k_mii_read32() argument
97 ret = bus->read(bus, phy_id, regnum); in qca8k_mii_read32()
100 ret = bus->read(bus, phy_id, regnum + 1); in qca8k_mii_read32()
114 qca8k_mii_write32(struct mii_bus *bus, int phy_id, u32 regnum, u32 val) in qca8k_mii_write32() argument
122 ret = bus->write(bus, phy_id, regnum, lo); in qca8k_mii_write32()
124 ret = bus->write(bus, phy_id, regnum + 1, hi); in qca8k_mii_write32()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/e1000e/
H A D82571.c392 u16 phy_id = 0; in e1000_get_phy_id_82571() local
408 ret_val = e1e_rphy(hw, MII_PHYSID1, &phy_id); in e1000_get_phy_id_82571()
412 phy->id = (u32)(phy_id << 16); in e1000_get_phy_id_82571()
414 ret_val = e1e_rphy(hw, MII_PHYSID2, &phy_id); in e1000_get_phy_id_82571()
418 phy->id |= (u32)(phy_id); in e1000_get_phy_id_82571()
419 phy->revision = (u32)(phy_id & ~PHY_REVISION_MASK); in e1000_get_phy_id_82571()
/kernel/linux/linux-5.10/drivers/net/ethernet/sgi/
H A Dioc3-eth.c596 ip->mii.phy_id = i; in ioc3_mii_init()
600 ip->mii.phy_id = -1; in ioc3_mii_init()
915 if (ip->mii.phy_id == -1) { in ioc3eth_probe()
932 sw_physid1 = ioc3_mdio_read(dev, ip->mii.phy_id, MII_PHYSID1); in ioc3eth_probe()
933 sw_physid2 = ioc3_mdio_read(dev, ip->mii.phy_id, MII_PHYSID2); in ioc3eth_probe()
946 ip->mii.phy_id, vendor, model, rev); in ioc3eth_probe()
/kernel/linux/linux-5.10/include/linux/
H A Dphy.h475 * @phy_id: UID for this device found during discovery
547 u32 phy_id; member
677 * @phy_id: The result of reading the UID registers of this PHY
681 * @phy_id_mask: Defines the important bits of the phy_id
698 u32 phy_id; member
770 * phy_id and phy_id_mask.
885 #define PHY_ID_MATCH_EXACT(id) .phy_id = (id), .phy_id_mask = GENMASK(31, 0)
886 #define PHY_ID_MATCH_MODEL(id) .phy_id = (id), .phy_id_mask = GENMASK(31, 4)
887 #define PHY_ID_MATCH_VENDOR(id) .phy_id = (id), .phy_id_mask = GENMASK(31, 10)
1349 struct phy_device *phy_device_create(struct mii_bus *bus, int addr, u32 phy_id,
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/e1000e/
H A D82571.c392 u16 phy_id = 0; in e1000_get_phy_id_82571() local
408 ret_val = e1e_rphy(hw, MII_PHYSID1, &phy_id); in e1000_get_phy_id_82571()
412 phy->id = (u32)(phy_id << 16); in e1000_get_phy_id_82571()
414 ret_val = e1e_rphy(hw, MII_PHYSID2, &phy_id); in e1000_get_phy_id_82571()
418 phy->id |= (u32)(phy_id); in e1000_get_phy_id_82571()
419 phy->revision = (u32)(phy_id & ~PHY_REVISION_MASK); in e1000_get_phy_id_82571()
/kernel/linux/linux-6.6/drivers/net/ethernet/sgi/
H A Dioc3-eth.c596 ip->mii.phy_id = i; in ioc3_mii_init()
600 ip->mii.phy_id = -1; in ioc3_mii_init()
915 if (ip->mii.phy_id == -1) { in ioc3eth_probe()
932 sw_physid1 = ioc3_mdio_read(dev, ip->mii.phy_id, MII_PHYSID1); in ioc3eth_probe()
933 sw_physid2 = ioc3_mdio_read(dev, ip->mii.phy_id, MII_PHYSID2); in ioc3eth_probe()
946 ip->mii.phy_id, vendor, model, rev); in ioc3eth_probe()
/kernel/linux/linux-6.6/drivers/net/phy/
H A Dmarvell10g.c262 if (phydev->drv->phy_id != MARVELL_PHY_ID_88X3310) in mv3310_hwmon_config()
338 if (phydev->drv->phy_id != MARVELL_PHY_ID_88X3310 || in mv3310_power_up()
1343 .phy_id = MARVELL_PHY_ID_88X3310,
1364 .phy_id = MARVELL_PHY_ID_88X3310,
1383 .phy_id = MARVELL_PHY_ID_88E2110,
1403 .phy_id = MARVELL_PHY_ID_88E2110,
H A Ddp83848.c137 .phy_id = _id, \
H A Dnational.c161 .phy_id = DP83865_PHY_ID,
/kernel/linux/linux-6.6/drivers/scsi/mpt3sas/
H A Dmpt3sas_transport.c537 (unsigned long long) sas_address, mpt3sas_phy->phy_id); in _transport_delete_phy()
559 sas_address, mpt3sas_phy->phy_id); in _transport_add_phy()
801 mpt3sas_phy->phy_id); in mpt3sas_transport_port_add()
998 mpt3sas_phy->phy_id); in mpt3sas_transport_port_remove()
1026 int phy_index = mpt3sas_phy->phy_id; in mpt3sas_transport_add_host_phy()
1048 phy->identify.phy_identifier = mpt3sas_phy->phy_id; in mpt3sas_transport_add_host_phy()
1096 int phy_index = mpt3sas_phy->phy_id; in mpt3sas_transport_add_expander_phy()
1118 phy->identify.phy_identifier = mpt3sas_phy->phy_id; in mpt3sas_transport_add_expander_phy()
1196 (1 << mpt3sas_phy->phy_id); in mpt3sas_transport_update_links()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/e1000/
H A De1000_hw.c96 switch (hw->phy_id) { in e1000_set_phy_type()
1031 e_dbg("Phy ID = %x\n", hw->phy_id); in e1000_copper_link_preconfig()
1267 (hw->phy_id == M88E1111_I_PHY_ID)) { in e1000_copper_link_mgp_setup()
3138 if (hw->phy_id != 0) in e1000_detect_gig_phy()
3146 hw->phy_id = (u32)(phy_id_high << 16); in e1000_detect_gig_phy()
3152 hw->phy_id |= (u32)(phy_id_low & PHY_REVISION_MASK); in e1000_detect_gig_phy()
3157 if (hw->phy_id == M88E1000_E_PHY_ID) in e1000_detect_gig_phy()
3161 if (hw->phy_id == M88E1000_I_PHY_ID) in e1000_detect_gig_phy()
3169 if (hw->phy_id == M88E1011_I_PHY_ID) in e1000_detect_gig_phy()
3173 if ((hw->phy_id in e1000_detect_gig_phy()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/e1000/
H A De1000_hw.c96 switch (hw->phy_id) { in e1000_set_phy_type()
1031 e_dbg("Phy ID = %x\n", hw->phy_id); in e1000_copper_link_preconfig()
1268 (hw->phy_id == M88E1111_I_PHY_ID)) { in e1000_copper_link_mgp_setup()
3139 if (hw->phy_id != 0) in e1000_detect_gig_phy()
3147 hw->phy_id = (u32)(phy_id_high << 16); in e1000_detect_gig_phy()
3153 hw->phy_id |= (u32)(phy_id_low & PHY_REVISION_MASK); in e1000_detect_gig_phy()
3158 if (hw->phy_id == M88E1000_E_PHY_ID) in e1000_detect_gig_phy()
3162 if (hw->phy_id == M88E1000_I_PHY_ID) in e1000_detect_gig_phy()
3170 if (hw->phy_id == M88E1011_I_PHY_ID) in e1000_detect_gig_phy()
3174 if ((hw->phy_id in e1000_detect_gig_phy()
[all...]
/kernel/linux/linux-5.10/arch/arm/mach-davinci/
H A Dboard-sffsdr.c131 soc_info->emac_pdata->phy_id = SFFSDR_PHY_ID; in davinci_sffsdr_init()
/kernel/linux/linux-5.10/arch/arm/mach-ep93xx/
H A Dsnappercl15.c118 .phy_id = 1,
/kernel/linux/linux-5.10/drivers/net/phy/
H A Drockchip.c175 .phy_id = INTERNAL_EPHY_ID,
H A Dnational.c131 .phy_id = DP83865_PHY_ID,

Completed in 49 milliseconds

1...<<11121314151617181920>>...27