/linux-master/drivers/net/mdio/ |
H A D | mdio-cavium.c | 29 int phy_id, int devad, int regnum) 43 smi_cmd.s.phy_adr = phy_id; 60 int cavium_mdiobus_read_c22(struct mii_bus *bus, int phy_id, int regnum) argument 71 smi_cmd.s.phy_adr = phy_id; 90 int cavium_mdiobus_read_c45(struct mii_bus *bus, int phy_id, int devad, argument 99 r = cavium_mdiobus_c45_addr(p, phy_id, devad, regnum); 105 smi_cmd.s.phy_adr = phy_id; 124 int cavium_mdiobus_write_c22(struct mii_bus *bus, int phy_id, int regnum, argument 140 smi_cmd.s.phy_adr = phy_id; 159 int cavium_mdiobus_write_c45(struct mii_bus *bus, int phy_id, in argument 28 cavium_mdiobus_c45_addr(struct cavium_mdiobus *p, int phy_id, int devad, int regnum) argument [all...] |
H A D | mdio-cavium.h | 117 int cavium_mdiobus_read_c22(struct mii_bus *bus, int phy_id, int regnum); 118 int cavium_mdiobus_write_c22(struct mii_bus *bus, int phy_id, int regnum, 120 int cavium_mdiobus_read_c45(struct mii_bus *bus, int phy_id, int devad, 122 int cavium_mdiobus_write_c45(struct mii_bus *bus, int phy_id, int devad,
|
H A D | mdio-mux.c | 38 static int mdio_mux_read(struct mii_bus *bus, int phy_id, int regnum) argument 51 r = pb->mii_bus->read(pb->mii_bus, phy_id, regnum); 58 static int mdio_mux_read_c45(struct mii_bus *bus, int phy_id, int dev_addr, argument 72 r = pb->mii_bus->read_c45(pb->mii_bus, phy_id, dev_addr, regnum); 82 static int mdio_mux_write(struct mii_bus *bus, int phy_id, argument 97 r = pb->mii_bus->write(pb->mii_bus, phy_id, regnum, val); 104 static int mdio_mux_write_c45(struct mii_bus *bus, int phy_id, int dev_addr, argument 119 r = pb->mii_bus->write_c45(pb->mii_bus, phy_id, dev_addr, regnum, val);
|
/linux-master/drivers/gpu/drm/amd/display/dc/dcn32/ |
H A D | dcn32_dio_link_encoder.c | 67 uint8_t phy_id; local 71 phy_id = 0; 74 phy_id = 1; 77 phy_id = 2; 80 phy_id = 3; 83 phy_id = 4; 86 phy_id = 5; 89 phy_id = 6; 92 phy_id = 0; 95 return phy_id; [all...] |
/linux-master/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_phy.c | 28 u16 phy_addr = aq_hw->phy_id << 5 | mmd; 54 u16 phy_addr = aq_hw->phy_id << 5 | mmd; 117 for (aq_hw->phy_id = 0; aq_hw->phy_id < HW_ATL_PHY_ID_MAX; 118 ++aq_hw->phy_id) { 133 if (aq_hw->phy_id == HW_ATL_PHY_ID_MAX) 146 aq_hw->phy_id = HW_ATL_PHY_ID_MAX;
|
/linux-master/drivers/net/phy/ |
H A D | vitesse.c | 288 (phydev->drv->phy_id == PHY_ID_VSC8234 || 289 phydev->drv->phy_id == PHY_ID_VSC8244 || 290 phydev->drv->phy_id == PHY_ID_VSC8572 || 291 phydev->drv->phy_id == PHY_ID_VSC8601) ? 313 if (phydev->drv->phy_id == PHY_ID_VSC8244 || 314 phydev->drv->phy_id == PHY_ID_VSC8572 || 315 phydev->drv->phy_id == PHY_ID_VSC8601) 407 .phy_id = PHY_ID_VSC8234, 416 .phy_id = PHY_ID_VSC8244, 425 .phy_id [all...] |
/linux-master/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc_mdio.c | 58 int enetc_mdio_write_c22(struct mii_bus *bus, int phy_id, int regnum, argument 77 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); 91 int enetc_mdio_write_c45(struct mii_bus *bus, int phy_id, int dev_addr, argument 108 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); 129 int enetc_mdio_read_c22(struct mii_bus *bus, int phy_id, int regnum) argument 147 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); 161 phy_id, dev_addr, regnum); 171 int enetc_mdio_read_c45(struct mii_bus *bus, int phy_id, int dev_addr, argument 189 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); 210 phy_id, dev_add [all...] |
/linux-master/drivers/net/ethernet/freescale/ |
H A D | fec_mpc52xx_phy.c | 29 static int mpc52xx_fec_mdio_transfer(struct mii_bus *bus, int phy_id, argument 36 value |= (phy_id << FEC_MII_DATA_PA_SHIFT) & FEC_MII_DATA_PA_MSK; 53 static int mpc52xx_fec_mdio_read(struct mii_bus *bus, int phy_id, int reg) argument 55 return mpc52xx_fec_mdio_transfer(bus, phy_id, reg, FEC_MII_READ_FRAME); 58 static int mpc52xx_fec_mdio_write(struct mii_bus *bus, int phy_id, int reg, argument 61 return mpc52xx_fec_mdio_transfer(bus, phy_id, reg,
|
/linux-master/drivers/net/ethernet/xilinx/ |
H A D | xilinx_axienet_mdio.c | 70 * @phy_id: Address of the PHY device 79 static int axienet_mdio_read(struct mii_bus *bus, int phy_id, int reg) argument 94 (((phy_id << XAE_MDIO_MCR_PHYAD_SHIFT) & 109 dev_dbg(lp->dev, "axienet_mdio_read(phy_id=%i, reg=%x) == %x\n", 110 phy_id, reg, rc); 119 * @phy_id: Address of the PHY device 129 static int axienet_mdio_write(struct mii_bus *bus, int phy_id, int reg, argument 135 dev_dbg(lp->dev, "axienet_mdio_write(phy_id=%i, reg=%x, val=%x)\n", 136 phy_id, reg, val); 148 (((phy_id << XAE_MDIO_MCR_PHYAD_SHIF [all...] |
/linux-master/drivers/scsi/isci/ |
H A D | sas.h | 128 u8 phy_id; /* byte 9 */ member in struct:smp_req_phy_id 146 u8 phy_id; /* byte 9 */ member in struct:smp_req_conf_rtinfo 169 u8 phy_id; /* byte 9 */ member in struct:smp_req_phycntl
|
/linux-master/drivers/char/tpm/st33zp24/ |
H A D | spi.c | 90 * @param: phy_id, the phy description 96 static int st33zp24_spi_send(void *phy_id, u8 tpm_register, u8 *tpm_data, argument 100 struct st33zp24_spi_phy *phy = phy_id; 133 * @param: phy_id, the phy description 139 static int st33zp24_spi_read8_reg(void *phy_id, u8 tpm_register, u8 *tpm_data, argument 143 struct st33zp24_spi_phy *phy = phy_id; 174 * @param: phy_id, the phy description 180 static int st33zp24_spi_recv(void *phy_id, u8 tpm_register, u8 *tpm_data, argument 185 ret = st33zp24_spi_read8_reg(phy_id, tpm_register, tpm_data, tpm_size); 191 static int st33zp24_spi_evaluate_latency(void *phy_id) argument [all...] |
H A D | st33zp24.c | 71 tpm_dev->ops->recv(tpm_dev->phy_id, TPM_INT_STATUS, &interrupt, 1); 72 tpm_dev->ops->send(tpm_dev->phy_id, TPM_INT_STATUS, &interrupt, 1); 85 tpm_dev->ops->send(tpm_dev->phy_id, TPM_STS, &data, 1); 96 tpm_dev->ops->recv(tpm_dev->phy_id, TPM_STS, &data, 1); 109 status = tpm_dev->ops->recv(tpm_dev->phy_id, TPM_ACCESS, &data, 1); 129 ret = tpm_dev->ops->send(tpm_dev->phy_id, TPM_ACCESS, &data, 1); 153 tpm_dev->ops->send(tpm_dev->phy_id, TPM_ACCESS, &data, 1); 168 status = tpm_dev->ops->recv(tpm_dev->phy_id, TPM_STS + 1, 174 status = tpm_dev->ops->recv(tpm_dev->phy_id, TPM_STS + 2, 277 ret = tpm_dev->ops->recv(tpm_dev->phy_id, TPM_DATA_FIF 446 st33zp24_probe(void *phy_id, const struct st33zp24_phy_ops *ops, struct device *dev, int irq) argument [all...] |
/linux-master/drivers/net/ethernet/sis/ |
H A D | sis190.c | 297 int phy_id; member in struct:sis190_phy 383 static void mdio_write(void __iomem *ioaddr, int phy_id, int reg, int val) argument 386 (((u32) reg) << EhnMIIregShift) | (phy_id << EhnMIIpmdShift) | 390 static int mdio_read(void __iomem *ioaddr, int phy_id, int reg) argument 393 (((u32) reg) << EhnMIIregShift) | (phy_id << EhnMIIpmdShift)); 398 static void __mdio_write(struct net_device *dev, int phy_id, int reg, int val) argument 402 mdio_write(tp->mmio_addr, phy_id, reg, val); 405 static int __mdio_read(struct net_device *dev, int phy_id, int reg) argument 409 return mdio_read(tp->mmio_addr, phy_id, reg); 412 static u16 mdio_read_latched(void __iomem *ioaddr, int phy_id, in argument 922 int phy_id = tp->mii_if.phy_id; local 1325 sis190_init_phy(struct net_device *dev, struct sis190_private *tp, struct sis190_phy *phy, unsigned int phy_id, u16 mii_status) argument 1367 int phy_id = tp->mii_if.phy_id; local 1395 int phy_id; local 1728 int phy_id = tp->mii_if.phy_id; local [all...] |
/linux-master/drivers/nfc/nxp-nci/ |
H A D | nxp-nci.h | 54 void *phy_id; member in struct:nxp_nci_info 72 int nxp_nci_probe(void *phy_id, struct device *pdev,
|
/linux-master/drivers/nfc/st-nci/ |
H A D | spi.c | 44 static int st_nci_spi_enable(void *phy_id) argument 46 struct st_nci_spi_phy *phy = phy_id; 61 static void st_nci_spi_disable(void *phy_id) argument 63 struct st_nci_spi_phy *phy = phy_id; 74 static int st_nci_spi_write(void *phy_id, struct sk_buff *skb) argument 77 struct st_nci_spi_phy *phy = phy_id; 169 static irqreturn_t st_nci_irq_thread_fn(int irq, void *phy_id) argument 171 struct st_nci_spi_phy *phy = phy_id;
|
H A D | i2c.c | 43 static int st_nci_i2c_enable(void *phy_id) argument 45 struct st_nci_i2c_phy *phy = phy_id; 60 static void st_nci_i2c_disable(void *phy_id) argument 62 struct st_nci_i2c_phy *phy = phy_id; 73 static int st_nci_i2c_write(void *phy_id, struct sk_buff *skb) argument 76 struct st_nci_i2c_phy *phy = phy_id; 157 static irqreturn_t st_nci_irq_thread_fn(int irq, void *phy_id) argument 159 struct st_nci_i2c_phy *phy = phy_id;
|
H A D | ndlc.c | 49 ndlc->ops->enable(ndlc->phy_id); 63 ndlc->ops->enable(ndlc->phy_id); 69 ndlc->ops->disable(ndlc->phy_id); 101 r = ndlc->ops->write(ndlc->phy_id, skb); 252 int ndlc_probe(void *phy_id, const struct nfc_phy_ops *phy_ops, argument 263 ndlc->phy_id = phy_id;
|
/linux-master/include/linux/ |
H A D | phy_fixed.h | 21 extern int fixed_phy_add(unsigned int irq, int phy_id, 37 static inline int fixed_phy_add(unsigned int irq, int phy_id, argument
|
/linux-master/arch/powerpc/platforms/85xx/ |
H A D | mpc85xx_mds.c | 284 char phy_id[20]; local 294 snprintf(phy_id, sizeof(phy_id), "%llx:%02x", 297 phy_register_fixup_for_id(phy_id, mpc8568_fixup_125_clock); 298 phy_register_fixup_for_id(phy_id, mpc8568_mds_phy_fixups); 301 snprintf(phy_id, sizeof(phy_id), "%llx:%02x", 303 phy_register_fixup_for_id(phy_id, mpc8568_mds_phy_fixups);
|
/linux-master/drivers/net/usb/ |
H A D | asix_devices.c | 73 u32 phy_id; local 78 phy_reg = asix_mdio_read(dev->net, dev->mii.phy_id, MII_PHYSID1); 89 phy_id = (phy_reg & 0xffff) << 16; 91 phy_reg = asix_mdio_read(dev->net, dev->mii.phy_id, MII_PHYSID2); 95 phy_id |= (phy_reg & 0xffff); 97 return phy_id; 208 asix_mdio_write(dev->net, dev->mii.phy_id, MII_BMCR, reset_bits); 210 /* give phy_id a chance to process reset */ 215 if (asix_mdio_read(dev->net, dev->mii.phy_id, MII_BMCR) 222 netdev_err(dev->net, "BMCR_RESET timeout on phy_id [all...] |
H A D | asix_common.c | 497 static int __asix_mdio_read(struct net_device *netdev, int phy_id, int loc, argument 512 ret = asix_read_cmd(dev, AX_CMD_READ_MII_REG, phy_id, (__u16)loc, 2, 521 netdev_dbg(dev->net, "asix_mdio_read() phy_id=0x%02x, loc=0x%02x, returns=0x%04x\n", 522 phy_id, loc, le16_to_cpu(res)); 527 int asix_mdio_read(struct net_device *netdev, int phy_id, int loc) argument 529 return __asix_mdio_read(netdev, phy_id, loc, false); 532 static int __asix_mdio_write(struct net_device *netdev, int phy_id, int loc, argument 539 netdev_dbg(dev->net, "asix_mdio_write() phy_id=0x%02x, loc=0x%02x, val=0x%04x\n", 540 phy_id, loc, val); 548 ret = asix_write_cmd(dev, AX_CMD_WRITE_MII_REG, phy_id, (__u1 560 asix_mdio_write(struct net_device *netdev, int phy_id, int loc, int val) argument 566 asix_mdio_bus_read(struct mii_bus *bus, int phy_id, int regnum) argument 573 asix_mdio_bus_write(struct mii_bus *bus, int phy_id, int regnum, u16 val) argument 580 asix_mdio_read_nopm(struct net_device *netdev, int phy_id, int loc) argument 586 asix_mdio_write_nopm(struct net_device *netdev, int phy_id, int loc, int val) argument [all...] |
/linux-master/drivers/scsi/pm8001/ |
H A D | pm8001_sas.c | 161 int rc = 0, phy_id = sas_phy->id; local 168 phy = &pm8001_ha->phy[phy_id]; 169 pm8001_ha->phy[phy_id].enable_completion = &completion; 185 pm8001_ha->phy[phy_id].minimum_linkrate = 189 pm8001_ha->phy[phy_id].maximum_linkrate = 192 if (pm8001_ha->phy[phy_id].phy_state == PHY_LINK_DISABLE) { 193 PM8001_CHIP_DISP->phy_start_req(pm8001_ha, phy_id); 196 PM8001_CHIP_DISP->phy_ctl_req(pm8001_ha, phy_id, 200 if (pm8001_ha->phy[phy_id].phy_state == PHY_LINK_DISABLE) { 201 PM8001_CHIP_DISP->phy_start_req(pm8001_ha, phy_id); 656 int phy_id; local 1001 u32 phy_id, port_id; local [all...] |
/linux-master/drivers/scsi/mvsas/ |
H A D | mv_64xx.c | 28 static void mvs_64xx_enable_xmt(struct mvs_info *mvi, int phy_id) argument 35 tmp |= 1 << (phy_id + PCS_EN_PORT_XMT_SHIFT); 37 tmp |= 1 << (phy_id + PCS_EN_PORT_XMT_SHIFT2); 67 static void mvs_64xx_stp_reset(struct mvs_info *mvi, u32 phy_id) argument 73 if (phy_id < MVS_SOC_PORTS) 82 if (phy_id < MVS_SOC_PORTS) 83 tmp |= (1U << phy_id) << PCTL_LINK_OFFS; 85 tmp |= (1U << (phy_id - MVS_SOC_PORTS)) << PCTL_LINK_OFFS; 88 if (phy_id < MVS_SOC_PORTS) { 104 static void mvs_64xx_phy_reset(struct mvs_info *mvi, u32 phy_id, in argument 194 mvs_64xx_phy_disable(struct mvs_info *mvi, u32 phy_id) argument 216 mvs_64xx_phy_enable(struct mvs_info *mvi, u32 phy_id) argument 621 mvs_64xx_phy_set_link_rate(struct mvs_info *mvi, u32 phy_id, struct sas_phy_linkrates *rates) argument [all...] |
/linux-master/drivers/net/dsa/b53/ |
H A D | b53_mdio.c | 295 u32 phy_id; local 308 phy_id = mdiobus_read(mdiodev->bus, 0, 2) << 16; 309 phy_id |= mdiobus_read(mdiodev->bus, 0, 3); 315 if ((phy_id & 0xfffffc00) != B53_BRCM_OUI_1 && 316 (phy_id & 0xfffffc00) != B53_BRCM_OUI_2 && 317 (phy_id & 0xfffffc00) != B53_BRCM_OUI_3 && 318 (phy_id & 0xfffffc00) != B53_BRCM_OUI_4 && 319 (phy_id & 0xfffffc00) != B53_BRCM_OUI_5) { 320 dev_err(&mdiodev->dev, "Unsupported device: 0x%08x\n", phy_id);
|
/linux-master/drivers/message/fusion/ |
H A D | mptsas.h | 102 u8 phy_id; member in struct:mptsas_hotplug_event 135 u8 phy_id; /* phy number of parent device */ member in struct:mptsas_devinfo 161 u8 phy_id; /* phy index */ member in struct:mptsas_phyinfo
|