/linux-master/include/linux/ |
H A D | mdio.h | 120 static inline bool mdio_phy_id_is_c45(int phy_id) argument 122 return (phy_id & MDIO_PHY_ID_C45) && !(phy_id & ~MDIO_PHY_ID_C45_MASK); 125 static inline __u16 mdio_phy_id_prtad(int phy_id) argument 127 return (phy_id & MDIO_PHY_ID_PRTAD) >> 5; 130 static inline __u16 mdio_phy_id_devad(int phy_id) argument 132 return phy_id & MDIO_PHY_ID_DEVAD;
|
H A D | mii.h | 19 int phy_id; member in struct:mii_if_info 29 int (*mdio_read) (struct net_device *dev, int phy_id, int location); 30 void (*mdio_write) (struct net_device *dev, int phy_id, int location, int val);
|
/linux-master/drivers/net/ethernet/3com/ |
H A D | 3c574_cs.c | 221 static int mdio_read(unsigned int ioaddr, int phy_id, int location); 222 static void mdio_write(unsigned int ioaddr, int phy_id, int location, 541 static int mdio_read(unsigned int ioaddr, int phy_id, int location) argument 544 int read_cmd = (0xf6 << 10) | (phy_id << 5) | location; 566 static void mdio_write(unsigned int ioaddr, int phy_id, int location, int value) argument 568 int write_cmd = 0x50020000 | (phy_id << 23) | (location << 18) | value; 1043 data->phy_id, data->reg_num, data->val_in, data->val_out); 1047 data->phy_id = phy; 1057 data->val_out = mdio_read(ioaddr, data->phy_id & 0x1f, 1071 mdio_write(ioaddr, data->phy_id [all...] |
/linux-master/drivers/nfc/pn544/ |
H A D | i2c.c | 240 static int pn544_hci_i2c_enable(void *phy_id) argument 242 struct pn544_i2c_phy *phy = phy_id; 251 static void pn544_hci_i2c_disable(void *phy_id) argument 253 struct pn544_i2c_phy *phy = phy_id; 293 static int pn544_hci_i2c_write(void *phy_id, struct sk_buff *skb) argument 296 struct pn544_i2c_phy *phy = phy_id; 480 static irqreturn_t pn544_hci_i2c_irq_thread_fn(int irq, void *phy_id) argument 482 struct pn544_i2c_phy *phy = phy_id; 524 static int pn544_hci_i2c_fw_download(void *phy_id, const char *firmware_name, argument 527 struct pn544_i2c_phy *phy = phy_id; [all...] |
H A D | pn544.c | 111 void *phy_id; member in struct:pn544_hci_info 138 r = info->phy_ops->enable(info->phy_id); 157 info->phy_ops->disable(info->phy_id); 329 return info->phy_ops->write(info->phy_id, skb); 778 return info->fw_download(info->phy_id, firmware_name, hdev->sw_romlib); 903 int pn544_hci_probe(void *phy_id, const struct nfc_phy_ops *phy_ops, argument 920 info->phy_id = phy_id;
|
/linux-master/drivers/net/phy/ |
H A D | phy_device.c | 408 * @phy_uid: Used to match against phydev->phy_id (the UID of the PHY) 410 * @phy_uid_mask: Applied to phydev->phy_id and fixup->phy_uid before 454 * @phy_uid: A phy id matches fixup->phy_id (or PHY_ANY_UID) in phy_fixup_list 506 if (!phy_id_compare(phydev->phy_id, fixup->phy_uid, 555 phydrv->phy_id, phydrv->phy_id_mask)) 560 return phy_id_compare(phydev->phy_id, phydrv->phy_id, 570 return sysfs_emit(buf, "0x%.8lx\n", (unsigned long)phydev->phy_id); 572 static DEVICE_ATTR_RO(phy_id); 625 static int phy_request_driver_module(struct phy_device *dev, u32 phy_id) argument 645 phy_device_create(struct mii_bus *bus, int addr, u32 phy_id, bool is_c45, struct phy_c45_device_ids *c45_ids) argument 892 get_phy_c22_id(struct mii_bus *bus, int addr, u32 *phy_id) argument 924 fwnode_get_phy_id(struct fwnode_handle *fwnode, u32 *phy_id) argument 964 u32 phy_id = 0; local [all...] |
H A D | dp83848.c | 137 .phy_id = _id, \
|
H A D | qsemi.c | 147 .phy_id = 0x00181440,
|
H A D | rockchip.c | 175 .phy_id = INTERNAL_EPHY_ID,
|
H A D | phylink.c | 2826 static int phylink_phy_read(struct phylink *pl, unsigned int phy_id, argument 2832 if (mdio_phy_id_is_c45(phy_id)) { 2833 prtad = mdio_phy_id_prtad(phy_id); 2834 devad = mdio_phy_id_devad(phy_id); 2860 prtad = phy_id; 2865 return mdiobus_read(pl->phydev->mdio.bus, phy_id, reg); 2868 static int phylink_phy_write(struct phylink *pl, unsigned int phy_id, argument 2874 if (mdio_phy_id_is_c45(phy_id)) { 2875 prtad = mdio_phy_id_prtad(phy_id); 2876 devad = mdio_phy_id_devad(phy_id); 2909 phylink_mii_read(struct phylink *pl, unsigned int phy_id, unsigned int reg) argument 2937 phylink_mii_write(struct phylink *pl, unsigned int phy_id, unsigned int reg, unsigned int val) argument [all...] |
H A D | marvell.c | 762 switch (MARVELL_PHY_FAMILY_ID(phydev->phy_id)) { 3275 .phy_id = MARVELL_PHY_ID_88E1101, 3293 .phy_id = MARVELL_PHY_ID_88E1112, 3313 .phy_id = MARVELL_PHY_ID_88E1111, 3334 .phy_id = MARVELL_PHY_ID_88E1111_FINISAR, 3355 .phy_id = MARVELL_PHY_ID_88E1118, 3373 .phy_id = MARVELL_PHY_ID_88E1121R, 3395 .phy_id = MARVELL_PHY_ID_88E1318S, 3421 .phy_id = MARVELL_PHY_ID_88E1145, 3441 .phy_id [all...] |
H A D | phy.c | 338 mii_data->phy_id = phydev->mdio.addr; 342 if (mdio_phy_id_is_c45(mii_data->phy_id)) { 343 prtad = mdio_phy_id_prtad(mii_data->phy_id); 344 devad = mdio_phy_id_devad(mii_data->phy_id); 350 phydev->mdio.bus, mii_data->phy_id, 356 if (mdio_phy_id_is_c45(mii_data->phy_id)) { 357 prtad = mdio_phy_id_prtad(mii_data->phy_id); 358 devad = mdio_phy_id_devad(mii_data->phy_id); 360 prtad = mii_data->phy_id; 401 if (mdio_phy_id_is_c45(mii_data->phy_id)) [all...] |
/linux-master/drivers/net/ethernet/smsc/ |
H A D | smc91c92_cs.c | 285 static int mdio_read(struct net_device *dev, int phy_id, int loc); 286 static void mdio_write(struct net_device *dev, int phy_id, int loc, int value); 914 smc->mii_if.phy_id = (i < 32) ? i : -1; 939 if (smc->mii_if.phy_id != -1) { 941 smc->mii_if.phy_id, j); 988 static int mdio_read(struct net_device *dev, int phy_id, int loc) argument 991 u_int cmd = (0x06<<10)|(phy_id<<5)|loc; 1008 static void mdio_write(struct net_device *dev, int phy_id, int loc, int value) argument 1011 u_int cmd = (0x05<<28)|(phy_id<<23)|(loc<<18)|(1<<17)|value; 1692 mdio_write(dev, smc->mii_if.phy_id, [all...] |
/linux-master/drivers/net/ethernet/ti/ |
H A D | davinci_mdio.c | 408 static int davinci_mdio_read(struct mii_bus *bus, int phy_id, int phy_reg) argument 414 if (phy_reg & ~PHY_REG_MASK || phy_id & ~PHY_ID_MASK) 422 (phy_id << 16)); 449 static int davinci_mdio_write(struct mii_bus *bus, int phy_id, argument 456 if (phy_reg & ~PHY_REG_MASK || phy_id & ~PHY_ID_MASK) 464 (phy_id << 16) | (phy_data & USERACCESS_DATA));
|
/linux-master/drivers/net/phy/mscc/ |
H A D | mscc_main.c | 1733 switch (phydev->phy_id & phydev->drv->phy_id_mask) { 1834 int rc, i, phy_id; local 1849 phy_id = phydev->drv->phy_id & phydev->drv->phy_id_mask; 1850 if (PHY_ID_VSC8531 == phy_id || PHY_ID_VSC8541 == phy_id || 1851 PHY_ID_VSC8530 == phy_id || PHY_ID_VSC8540 == phy_id) { 2271 if ((phydev->phy_id & MSCC_DEV_REV_MASK) != VSC8584_REVB) { 2341 .phy_id [all...] |
/linux-master/drivers/scsi/aic94xx/ |
H A D | aic94xx_hwi.h | 371 void asd_build_control_phy(struct asd_ascb *ascb, int phy_id, u8 subfunc); 372 void asd_control_led(struct asd_ha_struct *asd_ha, int phy_id, int op); 373 void asd_turn_led(struct asd_ha_struct *asd_ha, int phy_id, int op);
|
/linux-master/drivers/scsi/esas2r/ |
H A D | atioctl.h | 373 u8 phy_id; member in struct:atto_csmi_set_phy_info 390 u8 phy_id; member in struct:atto_csmi_get_link_errors 412 u8 phy_id; member in struct:atto_csmi_smp_passthru 436 u8 phy_id; member in struct:atto_csmi_ssp_passthru 470 u8 phy_id; member in struct:atto_csmi_stp_passthru 494 u8 phy_id; member in struct:atto_csmi_get_sata_sig 617 u8 phy_id; member in struct:atto_csmi_phy_ctrl 948 u8 phy_id[ATTO_SDI_MAX_PHYS_WIDE_PORT]; /* IDs of parent exp/adapt */ member in struct:atto_hba_sas_device_info 1200 u8 phy_id; member in struct:atto_ioctl_smp
|
/linux-master/drivers/scsi/libsas/ |
H A D | sas_ata.c | 268 res = sas_get_report_phy_sata(dev->parent, phy->phy_id, 273 phy->phy_id, res); 675 struct domain_device *child, int phy_id) 692 SAS_ADDR(child->sas_addr), phy_id); 693 ret = sas_smp_phy_control(parent, phy_id, 697 SAS_ADDR(child->sas_addr), phy_id, ret); 701 SAS_ADDR(child->sas_addr), phy_id); 717 rphy->identify.phy_identifier = phy_id; 727 SAS_ADDR(parent->sas_addr), phy_id, ret); 674 sas_ata_add_dev(struct domain_device *parent, struct ex_phy *phy, struct domain_device *child, int phy_id) argument
|
/linux-master/drivers/net/ethernet/ |
H A D | jme.c | 105 jme->mii_if.phy_id, 111 jme->mii_if.phy_id, 116 jme->mii_if.phy_id, 120 jme->mii_if.phy_id, 390 phylink = jme_mdio_read(jme->dev, jme->mii_if.phy_id, 17); 391 bmsr = jme_mdio_read(jme->dev, jme->mii_if.phy_id, MII_BMSR); 401 jme_mdio_write(jme->dev, jme->mii_if.phy_id, 27, 0x0004); 407 jme_mdio_write(jme->dev, jme->mii_if.phy_id, 27, 0x0000); 434 jme->mii_if.phy_id, 1606 bmcr = jme_mdio_read(jme->dev, jme->mii_if.phy_id, MII_BMC [all...] |
/linux-master/drivers/scsi/pm8001/ |
H A D | pm8001_hwi.c | 2962 u32 phy_id = le32_to_cpu(pPayload->phyop_phyid) & ID_BITS; local 2968 phy_id, phy_op); 2972 phy_id, phy_op); 2973 pm8001_ha->phy[phy_id].reset_success = true; 2975 if (pm8001_ha->phy[phy_id].enable_completion) { 2976 complete(pm8001_ha->phy[phy_id].enable_completion); 2977 pm8001_ha->phy[phy_id].enable_completion = NULL; 3115 u8 phy_id = local 3120 struct pm8001_phy *phy = &pm8001_ha->phy[phy_id]; 3129 port_id, phy_id); 3192 u8 phy_id = local 3235 u8 phy_id = local 3509 u8 phy_id = local 4107 pm8001_chip_phy_start_req(struct pm8001_hba_info *pm8001_ha, u8 phy_id) argument 4139 pm8001_chip_phy_stop_req(struct pm8001_hba_info *pm8001_ha, u8 phy_id) argument 4163 u32 linkrate, phy_id; local [all...] |
/linux-master/drivers/net/usb/ |
H A D | smsc95xx.c | 164 static u32 mii_address_cmd(int phy_id, int idx, u16 op) argument 166 return (phy_id & 0x1f) << 11 | (idx & 0x1f) << 6 | op; 169 static int smsc95xx_mdio_read(struct usbnet *dev, int phy_id, int idx) argument 184 addr = mii_address_cmd(phy_id, idx, MII_READ_ | MII_BUSY_); 216 static void smsc95xx_mdio_write(struct usbnet *dev, int phy_id, int idx, argument 240 addr = mii_address_cmd(phy_id, idx, MII_WRITE_ | MII_BUSY_); 295 static int smsc95xx_mdiobus_read(struct mii_bus *bus, int phy_id, int idx) argument 299 return smsc95xx_mdio_read(dev, phy_id, idx); 302 static int smsc95xx_mdiobus_write(struct mii_bus *bus, int phy_id, int idx, argument 307 smsc95xx_mdio_write(dev, phy_id, id 1352 int ret, phy_id = pdata->phydev->mdio.addr; local [all...] |
/linux-master/drivers/net/dsa/qca/ |
H A D | qca8k-8xxx.c | 41 qca8k_mii_write_lo(struct mii_bus *bus, int phy_id, u32 regnum, u32 val) argument 47 ret = bus->write(bus, phy_id, regnum, lo); 56 qca8k_mii_write_hi(struct mii_bus *bus, int phy_id, u32 regnum, u32 val) argument 62 ret = bus->write(bus, phy_id, regnum, hi); 71 qca8k_mii_read_lo(struct mii_bus *bus, int phy_id, u32 regnum, u32 *val) argument 75 ret = bus->read(bus, phy_id, regnum); 91 qca8k_mii_read_hi(struct mii_bus *bus, int phy_id, u32 regnum, u32 *val) argument 95 ret = bus->read(bus, phy_id, regnum); 111 qca8k_mii_read32(struct mii_bus *bus, int phy_id, u32 regnum, u32 *val) argument 118 ret = qca8k_mii_read_lo(bus, phy_id, regnu 133 qca8k_mii_write32(struct mii_bus *bus, int phy_id, u32 regnum, u32 val) argument [all...] |
/linux-master/drivers/net/ethernet/via/ |
H A D | via-rhine.c | 498 static int mdio_read(struct net_device *dev, int phy_id, int location); 499 static void mdio_write(struct net_device *dev, int phy_id, int location, int value); 901 int i, rc, phy_id; local 927 phy_id = rp->quirks & rqIntPHY ? 1 : 0; 948 /* For Rhine-I/II, phy_id is loaded from EEPROM */ 949 if (!phy_id) 950 phy_id = ioread8(ioaddr + 0x6C); 999 int mii_status = mdio_read(dev, phy_id, 1); 1000 mii_cmd = mdio_read(dev, phy_id, MII_BMCR) & ~BMCR_ISOLATE; 1001 mdio_write(dev, phy_id, MII_BMC 1621 mdio_read(struct net_device *dev, int phy_id, int regnum) argument 1640 mdio_write(struct net_device *dev, int phy_id, int regnum, int value) argument [all...] |
/linux-master/drivers/net/ethernet/ni/ |
H A D | nixge.c | 1082 static int nixge_mdio_read_c22(struct mii_bus *bus, int phy_id, int reg) argument 1092 NIXGE_MDIO_ADDR(phy_id) | NIXGE_MDIO_MMD(device); 1109 static int nixge_mdio_read_c45(struct mii_bus *bus, int phy_id, int device, argument 1120 NIXGE_MDIO_ADDR(phy_id) | NIXGE_MDIO_MMD(device); 1133 NIXGE_MDIO_ADDR(phy_id) | NIXGE_MDIO_MMD(device); 1150 static int nixge_mdio_write_c22(struct mii_bus *bus, int phy_id, int reg, argument 1161 NIXGE_MDIO_ADDR(phy_id) | NIXGE_MDIO_MMD(device); 1175 static int nixge_mdio_write_c45(struct mii_bus *bus, int phy_id, argument 1186 NIXGE_MDIO_ADDR(phy_id) | NIXGE_MDIO_MMD(device); 1199 NIXGE_MDIO_ADDR(phy_id) | NIXGE_MDIO_MM [all...] |
/linux-master/drivers/net/ethernet/cirrus/ |
H A D | ep93xx_eth.c | 184 static int ep93xx_mdio_read(struct net_device *dev, int phy_id, int reg) argument 190 wrl(ep, REG_MIICMD, REG_MIICMD_READ | (phy_id << 5) | reg); 208 static void ep93xx_mdio_write(struct net_device *dev, int phy_id, int reg, int data) argument 214 wrl(ep, REG_MIICMD, REG_MIICMD_WRITE | (phy_id << 5) | reg); 552 if ((ep93xx_mdio_read(dev, ep->mii.phy_id, MII_BMSR) & 0x0040) != 0) 833 ep->mii.phy_id = data->phy_id;
|