/linux-master/drivers/net/ethernet/dlink/ |
H A D | sundance.c | 422 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]; 761 static int mdio_read(struct net_device *dev, int phy_id, int location) argument 765 int mii_cmd = (0xf6 << 10) | (phy_id << 5) | location; 791 static void mdio_write(struct net_device *dev, int phy_id, int location, int value) argument 795 int mii_cmd = (0x5002 << 16) | (phy_id << 23) | (location<<18) | value; 822 int phy_id; local 826 phy_id = np->phys[0]; 829 bmsr = mdio_read(dev, phy_id, MII_BMS [all...] |
/linux-master/drivers/net/ethernet/sis/ |
H A D | sis900.c | 221 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; 894 * @phy_id: the phy address to read 902 static int mdio_read(struct net_device *net_dev, int phy_id, int location) argument 904 int mii_cmd = MIIread|(phy_id<<MIIpmdShift)|(location<<MIIregShift); 938 * @phy_id: the phy address to write 947 static void mdio_write(struct net_device *net_dev, int phy_id, int location, argument 950 int mii_cmd = MIIwrite|(phy_id<<MIIpmdShift)|(location<<MIIregShift); 2235 data->phy_id [all...] |
/linux-master/drivers/net/usb/ |
H A D | pegasus.c | 223 static int mdio_read(struct net_device *dev, int phy_id, int loc) argument 229 ret = read_mii_word(pegasus, phy_id, loc, &res); 236 static void mdio_write(struct net_device *dev, int phy_id, int loc, int val) argument 241 write_mii_word(pegasus, phy_id, loc, &data); 1193 pegasus->mii.phy_id = pegasus->phy;
|
/linux-master/drivers/net/ethernet/tundra/ |
H A D | tsi108_eth.c | 255 val = (*mii->mdio_read) (mii->dev, mii->phy_id, MII_BMSR); 259 advert = (*mii->mdio_read) (mii->dev, mii->phy_id, MII_ADVERTISE); 260 lpa = (*mii->mdio_read) (mii->dev, mii->phy_id, MII_LPA); 264 lpa2 = mii->mdio_read(mii->dev, mii->phy_id, MII_STAT1000); 1583 data->mii_if.phy_id = einfo->phy;
|
/linux-master/drivers/net/ethernet/intel/e1000/ |
H A D | e1000_hw.c | 97 switch (hw->phy_id) { 1032 e_dbg("Phy ID = %x\n", hw->phy_id); 1269 (hw->phy_id == M88E1111_I_PHY_ID)) { 3140 if (hw->phy_id != 0) 3148 hw->phy_id = (u32)(phy_id_high << 16); 3154 hw->phy_id |= (u32)(phy_id_low & PHY_REVISION_MASK); 3159 if (hw->phy_id == M88E1000_E_PHY_ID) 3163 if (hw->phy_id == M88E1000_I_PHY_ID) 3171 if (hw->phy_id == M88E1011_I_PHY_ID) 3175 if ((hw->phy_id [all...] |
/linux-master/drivers/net/ethernet/realtek/ |
H A D | 8139too.c | 641 static int mdio_read (struct net_device *dev, int phy_id, int location); 642 static void mdio_write (struct net_device *dev, int phy_id, int location, 1075 tp->mii.phy_id = tp->phys[0]; 1234 static int mdio_read (struct net_device *dev, int phy_id, int location) argument 1240 int mii_cmd = (0xf6 << 10) | (phy_id << 5) | location; 1244 if (phy_id > 31) { /* Really a 8139. Use internal registers. */ 1276 static void mdio_write (struct net_device *dev, int phy_id, int location, argument 1282 int mii_cmd = (0x5002 << 16) | (phy_id << 23) | (location << 18) | value; 1286 if (phy_id > 31) { /* Really a 8139. Use internal registers. */
|
/linux-master/drivers/net/ethernet/broadcom/ |
H A D | b44.c | 281 static int b44_mdio_read_mii(struct net_device *dev, int phy_id, int location) argument 285 int rc = __b44_readphy(bp, phy_id, location, &val); 291 static void b44_mdio_write_mii(struct net_device *dev, int phy_id, int location, argument 295 __b44_writephy(bp, phy_id, location, val); 298 static int b44_mdio_read_phylib(struct mii_bus *bus, int phy_id, int location) argument 302 int rc = __b44_readphy(bp, phy_id, location, &val); 308 static int b44_mdio_write_phylib(struct mii_bus *bus, int phy_id, int location, argument 312 return __b44_writephy(bp, phy_id, location, val); 2393 bp->mii_if.phy_id = bp->phy_addr;
|
H A D | bgmac-bcma.c | 210 (phydev->drv->phy_id & phydev->drv->phy_id_mask) == PHY_ID_BCM54210E)
|
/linux-master/drivers/net/ethernet/natsemi/ |
H A D | natsemi.c | 603 static int miiport_read(struct net_device *dev, int phy_id, int reg); 604 static void miiport_write(struct net_device *dev, int phy_id, int reg, u16 data); 1077 static int miiport_read(struct net_device *dev, int phy_id, int reg) argument 1087 cmd = (0x06 << 10) | (phy_id << 5) | reg; 1102 static void miiport_write(struct net_device *dev, int phy_id, int reg, u16 data) argument 1110 cmd = (0x5002 << 16) | (phy_id << 23) | (reg << 18) | data; 3079 data->phy_id = np->phy_addr_external; 3083 /* The phy_id is not enough to uniquely identify 3088 if ((data->phy_id & 0x1f) == np->phy_addr_external) 3094 move_int_phy(dev, data->phy_id [all...] |
/linux-master/drivers/net/ethernet/intel/igb/ |
H A D | e1000_phy.c | 58 u16 phy_id; local 64 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); 68 phy->id = (u32)(phy_id << 16); 70 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); 74 phy->id |= (u32)(phy_id & PHY_REVISION_MASK); 75 phy->revision = (u32)(phy_id & ~PHY_REVISION_MASK);
|
/linux-master/drivers/net/ethernet/adi/ |
H A D | adin1110.c | 440 static int adin1110_mdio_read(struct mii_bus *bus, int phy_id, int reg) argument 446 if (mdio_phy_id_is_c45(phy_id)) 451 val |= FIELD_PREP(ADIN1110_MDIO_PRTAD, phy_id); 476 static int adin1110_mdio_write(struct mii_bus *bus, int phy_id, argument 483 if (mdio_phy_id_is_c45(phy_id)) 488 val |= FIELD_PREP(ADIN1110_MDIO_PRTAD, phy_id);
|
/linux-master/drivers/scsi/isci/ |
H A D | host.c | 1927 u32 phy_id; local 1981 for (phy_id = 0; phy_id < SCI_MAX_PHYS; phy_id++) { 1982 struct scu_afe_transceiver __iomem *xcvr = &afe->scu_afe_xcvr[phy_id]; 1983 const struct sci_phy_oem_params *oem_phy = &oem->phys[phy_id]; 1985 is_long_cable(phy_id, cable_selection_mask); 1987 is_medium_cable(phy_id, cable_selection_mask);
|
/linux-master/drivers/net/ethernet/adaptec/ |
H A D | starfire.c | 567 static int mdio_read(struct net_device *dev, int phy_id, int location); 568 static void mdio_write(struct net_device *dev, int phy_id, int location, int value); 814 np->mii_if.phy_id = np->phys[0]; 834 static int mdio_read(struct net_device *dev, int phy_id, int location) argument 837 void __iomem *mdio_addr = np->base + MIICtrl + (phy_id<<7) + (location<<2); 851 static void mdio_write(struct net_device *dev, int phy_id, int location, int value) argument 854 void __iomem *mdio_addr = np->base + MIICtrl + (phy_id<<7) + (location<<2); 1919 if ((cmd == SIOCSMIIREG) && (data->phy_id == np->phys[0]))
|
/linux-master/drivers/net/phy/ |
H A D | nxp-tja11xx.c | 302 switch (phydev->phy_id & PHY_ID_MASK) { 633 if ((phydev->phy_id & PHY_ID_MASK) != PHY_ID_TJA1102)
|
H A D | dp83tc811.c | 389 .phy_id = DP83TC811_PHY_ID,
|
H A D | microchip.c | 378 .phy_id = 0x0007c132, 380 * LAN8742 (phy_id 0x0007c130 and 0x0007c131) 381 * and allows future phy_id revisions.
|
/linux-master/drivers/net/ethernet/atheros/alx/ |
H A D | hw.h | 492 u16 phy_id[2]; member in struct:alx_hw
|
/linux-master/drivers/net/ethernet/nxp/ |
H A D | lpc_eth.c | 670 static int lpc_mdio_read(struct mii_bus *bus, int phy_id, int phyreg) argument 676 writel(((phy_id << 8) | phyreg), LPC_ENET_MADR(pldat->net_base)); 692 static int lpc_mdio_write(struct mii_bus *bus, int phy_id, int phyreg, argument 698 writel(((phy_id << 8) | phyreg), LPC_ENET_MADR(pldat->net_base));
|
/linux-master/drivers/gpu/drm/amd/display/modules/hdcp/ |
H A D | hdcp_psp.h | 121 uint32_t phy_id; member in struct:ta_dtm_topology_update_input_v3
|
/linux-master/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | phy-ctxt.c | 159 .phy_id = cpu_to_le32(ctxt->id),
|
/linux-master/scripts/mod/ |
H A D | devicetable-offsets.c | 166 DEVID_FIELD(mdio_device_id, phy_id);
|
/linux-master/drivers/net/ethernet/intel/e1000e/ |
H A D | phy.h | 44 enum e1000_phy_type e1000e_get_phy_type_from_id(u32 phy_id);
|
/linux-master/drivers/net/ethernet/ti/icssg/ |
H A D | icssg_prueth.h | 149 const char *phy_id; member in struct:prueth_emac
|
/linux-master/drivers/net/ethernet/xircom/ |
H A D | xirc2ps_cs.c | 1426 data->phy_id, data->reg_num, data->val_in, data->val_out); 1433 data->phy_id = 0; /* we have only this address */ 1436 data->val_out = mii_rd(ioaddr, data->phy_id & 0x1f, 1440 mii_wr(ioaddr, data->phy_id & 0x1f, data->reg_num & 0x1f, data->val_in,
|
/linux-master/drivers/net/dsa/ |
H A D | rzn1_a5psw.c | 1055 static int a5psw_mdio_read(struct mii_bus *bus, int phy_id, int phy_reg) argument 1063 cmd |= FIELD_PREP(A5PSW_MDIO_COMMAND_PHY_ADDR, phy_id); 1080 static int a5psw_mdio_write(struct mii_bus *bus, int phy_id, int phy_reg, argument 1087 cmd |= FIELD_PREP(A5PSW_MDIO_COMMAND_PHY_ADDR, phy_id);
|