/linux-master/drivers/net/mdio/ |
H A D | fwnode_mdio.c | 120 u32 phy_id; local 134 if (is_c45 || fwnode_get_phy_id(child, &phy_id)) 137 phy = phy_device_create(bus, addr, phy_id, 0, NULL);
|
H A D | mdio-xgene.c | 80 int xgene_mdio_rgmii_read(struct mii_bus *bus, int phy_id, int reg) argument 86 data = SET_VAL(PHY_ADDR, phy_id) | SET_VAL(REG_ADDR, reg); 106 int xgene_mdio_rgmii_write(struct mii_bus *bus, int phy_id, int reg, u16 data) argument 112 val = SET_VAL(PHY_ADDR, phy_id) | SET_VAL(REG_ADDR, reg); 211 static int xgene_xfi_mdio_write(struct mii_bus *bus, int phy_id, argument 218 val = SET_VAL(HSTPHYADX, phy_id) | SET_VAL(HSTREGADX, reg) | 235 static int xgene_xfi_mdio_read(struct mii_bus *bus, int phy_id, int reg) argument 241 val = SET_VAL(HSTPHYADX, phy_id) | SET_VAL(HSTREGADX, reg);
|
H A D | mdio-bcm-unimac.c | 91 static int unimac_mdio_read(struct mii_bus *bus, int phy_id, int reg) argument 102 cmd = MDIO_RD | (phy_id << MDIO_PMD_SHIFT) | (reg << MDIO_REG_SHIFT); 119 if (!(bus->phy_ignore_ta_mask & 1 << phy_id) && (cmd & MDIO_READ_FAIL)) { 130 static int unimac_mdio_write(struct mii_bus *bus, int phy_id, argument 142 cmd = MDIO_WR | (phy_id << MDIO_PMD_SHIFT) |
|
/linux-master/drivers/nfc/ |
H A D | mei_phy.c | 247 static int nfc_mei_phy_write(void *phy_id, struct sk_buff *skb) argument 249 struct nfc_mei_phy *phy = phy_id; 314 static int nfc_mei_phy_enable(void *phy_id) argument 317 struct nfc_mei_phy *phy = phy_id; 356 static void nfc_mei_phy_disable(void *phy_id) argument 358 struct nfc_mei_phy *phy = phy_id;
|
/linux-master/drivers/net/ethernet/ibm/emac/ |
H A D | phy.c | 288 .phy_id = 0x00000000, 353 .phy_id = 0x000fc410, 361 .phy_id = 0x0143bc00, 433 .phy_id = 0x0282f000, 453 .phy_id = 0x01410CC0, 468 .phy_id = 0x01410C90, 493 .phy_id = 0x004dd070, 530 if ((id & def->phy_id_mask) == def->phy_id)
|
/linux-master/drivers/net/phy/ |
H A D | cicada.c | 129 .phy_id = 0x000fc410, 137 .phy_id = 0x000fc440,
|
H A D | ste10Xp.c | 104 .phy_id = STE101P_PHY_ID, 114 .phy_id = STE100P_PHY_ID,
|
H A D | uPD60620.c | 82 .phy_id = UPD60620_PHY_ID,
|
H A D | teranetics.c | 77 .phy_id = PHY_ID_TN2020,
|
H A D | lxt.c | 310 .phy_id = 0x78100000, 318 .phy_id = 0x001378e0, 327 .phy_id = 0x00137a10, 338 .phy_id = 0x00137a10,
|
H A D | bcm54140.c | 125 #define BCM54140_PHY_ID_REV(phy_id) ((phy_id) & 0x7) 510 u32 phy_id; local 518 * same phy_id like we do. Step 1 will scan forward, step 2 548 phy_id = tmp << 16; 552 phy_id |= tmp; 555 if ((phy_id & phydev->drv->phy_id_mask) != 556 (phydev->drv->phy_id & phydev->drv->phy_id_mask)) { 618 if (BCM54140_PHY_ID_REV(phydev->phy_id) == BCM54140_REV_B0) { 866 .phy_id [all...] |
/linux-master/include/linux/mdio/ |
H A D | mdio-xgene.h | 130 int xgene_mdio_rgmii_read(struct mii_bus *bus, int phy_id, int reg); 131 int xgene_mdio_rgmii_write(struct mii_bus *bus, int phy_id, int reg, u16 data);
|
/linux-master/drivers/nfc/st21nfca/ |
H A D | i2c.c | 132 static int st21nfca_hci_i2c_enable(void *phy_id) argument 134 struct st21nfca_i2c_phy *phy = phy_id; 145 static void st21nfca_hci_i2c_disable(void *phy_id) argument 147 struct st21nfca_i2c_phy *phy = phy_id; 182 static int st21nfca_hci_i2c_write(void *phy_id, struct sk_buff *skb) argument 185 struct st21nfca_i2c_phy *phy = phy_id; 419 static irqreturn_t st21nfca_hci_irq_thread_fn(int irq, void *phy_id) argument 421 struct st21nfca_i2c_phy *phy = phy_id;
|
/linux-master/drivers/phy/ti/ |
H A D | phy-gmii-sel.c | 303 int phy_id = args->args[0]; local 312 if (phy_id > priv->num_ports) 314 if (phy_id != priv->if_phys[phy_id - 1].id) 317 phy_id--; 319 priv->if_phys[phy_id].rmii_clock_external = args->args[1]; 321 priv->if_phys[phy_id].id, args->args[1]); 323 return priv->if_phys[phy_id].if_phy;
|
/linux-master/drivers/net/usb/ |
H A D | sr9700.c | 177 static int sr_mdio_read(struct net_device *netdev, int phy_id, int loc) argument 183 if (phy_id) { 202 netdev_dbg(netdev, "sr_mdio_read() phy_id=0x%02x, loc=0x%02x, returns=0x%04x\n", 203 phy_id, loc, res); 208 static void sr_mdio_write(struct net_device *netdev, int phy_id, int loc, argument 214 if (phy_id) { 219 netdev_dbg(netdev, "sr_mdio_write() phy_id=0x%02x, loc=0x%02x, val=0x%04x\n", 220 phy_id, loc, val); 372 sr_mdio_write(netdev, mii->phy_id, MII_BMCR, BMCR_RESET); 373 sr_mdio_write(netdev, mii->phy_id, MII_ADVERTIS [all...] |
H A D | sr9800.c | 335 static int sr_mdio_read(struct net_device *net, int phy_id, int loc) argument 342 sr_read_cmd(dev, SR_CMD_READ_MII_REG, phy_id, (__u16)loc, 2, &res); 347 "%s : phy_id=0x%02x, loc=0x%02x, returns=0x%04x\n", __func__, 348 phy_id, loc, le16_to_cpu(res)); 354 sr_mdio_write(struct net_device *net, int phy_id, int loc, int val) argument 360 "%s : phy_id=0x%02x, loc=0x%02x, val=0x%04x\n", __func__, 361 phy_id, loc, val); 364 sr_write_cmd(dev, SR_CMD_WRITE_MII_REG, phy_id, (__u16)loc, 2, &res); 373 u32 phy_id; local 378 phy_reg = sr_mdio_read(dev->net, dev->mii.phy_id, MII_PHYSID [all...] |
H A D | ch9200.c | 177 static int ch9200_mdio_read(struct net_device *netdev, int phy_id, int loc) argument 182 netdev_dbg(netdev, "%s phy_id:%02x loc:%02x\n", 183 __func__, phy_id, loc); 185 if (phy_id != 0) 195 int phy_id, int loc, int val) 200 netdev_dbg(netdev, "%s() phy_id=%02x loc:%02x\n", 201 __func__, phy_id, loc); 203 if (phy_id != 0) 194 ch9200_mdio_write(struct net_device *netdev, int phy_id, int loc, int val) argument
|
/linux-master/drivers/gpu/drm/amd/display/dc/dcn31/ |
H A D | dcn31_dio_link_encoder.c | 72 uint8_t phy_id; local 76 phy_id = 0; 79 phy_id = 1; 82 phy_id = 2; 85 phy_id = 3; 88 phy_id = 4; 91 phy_id = 5; 94 phy_id = 6; 97 phy_id = 0; 100 return phy_id; [all...] |
/linux-master/drivers/scsi/aic94xx/ |
H A D | aic94xx_hwi.c | 66 phy->identify_frame->phy_id = phy->sas_phy.id; 1255 * @phy_id: the PHY id whose LED we want to manupulate 1258 void asd_turn_led(struct asd_ha_struct *asd_ha, int phy_id, int op) argument 1260 if (phy_id < ASD_MAX_PHYS) { 1261 u32 v = asd_read_reg_dword(asd_ha, LmCONTROL(phy_id)); 1266 asd_write_reg_dword(asd_ha, LmCONTROL(phy_id), v); 1273 * @phy_id: integer, the phy id 1279 void asd_control_led(struct asd_ha_struct *asd_ha, int phy_id, int op) argument 1281 if (phy_id < ASD_MAX_PHYS) { 1286 v |= (1 << phy_id); 1302 asd_enable_phy(struct asd_ha_struct *asd_ha, int phy_id) argument [all...] |
/linux-master/drivers/net/ethernet/freescale/fs_enet/ |
H A D | mii-fec.c | 54 static int fs_enet_fec_mii_read(struct mii_bus *bus , int phy_id, int location) argument 63 out_be32(&fecp->fec_mii_data, (phy_id << 23) | mk_mii_read(location)); 77 static int fs_enet_fec_mii_write(struct mii_bus *bus, int phy_id, int location, u16 val) argument 87 out_be32(&fecp->fec_mii_data, (phy_id << 23) | mk_mii_write(location, val));
|
/linux-master/drivers/net/ethernet/asix/ |
H A D | ax88796c_ioctl.c | 171 int ax88796c_mdio_read(struct mii_bus *mdiobus, int phy_id, int loc) argument 178 | MDIOCR_FADDR(phy_id) | MDIOCR_READ, P2_MDIOCR); 193 ax88796c_mdio_write(struct mii_bus *mdiobus, int phy_id, int loc, u16 val) argument 202 MDIOCR_RADDR(loc) | MDIOCR_FADDR(phy_id)
|
/linux-master/arch/powerpc/platforms/pasemi/ |
H A D | gpio_mdio.c | 115 static int gpio_mdio_read(struct mii_bus *bus, int phy_id, int location) argument 119 u8 addr = phy_id & 0xff; 154 static int gpio_mdio_write(struct mii_bus *bus, int phy_id, int location, u16 val) argument 158 u8 addr = phy_id & 0xff;
|
/linux-master/drivers/scsi/libsas/ |
H A D | sas_internal.h | 87 int sas_smp_phy_control(struct domain_device *dev, int phy_id, 93 struct domain_device *sas_ex_to_ata(struct domain_device *ex_dev, int phy_id); 95 int sas_get_report_phy_sata(struct domain_device *dev, int phy_id, 97 int sas_get_phy_attached_dev(struct domain_device *dev, int phy_id,
|
/linux-master/drivers/scsi/pm8001/ |
H A D | pm80xx_hwi.c | 3097 u8 phy_id = (u8)((phyid_npip_portstate & 0xFF0000) >> 16); local 3102 struct pm8001_phy *phy = &pm8001_ha->phy[phy_id]; 3107 pm80xx_chip_phy_ctl_req(pm8001_ha, phy_id, 3111 port->wide_port_phymap |= (1U << phy_id); 3135 u8 phy_id = local 3140 struct pm8001_phy *phy = &pm8001_ha->phy[phy_id]; 3146 port->wide_port_phymap |= (1U << phy_id); 3150 port_id, phy_id, link_rate, portstate, deviceType); 3158 pm80xx_chip_phy_ctl_req(pm8001_ha, phy_id, 3195 pm8001_bytes_dmaed(pm8001_ha, phy_id); 3214 u8 phy_id = local 3262 u8 phy_id = local 3335 u32 phy_id = local 3398 u8 phy_id = local 4631 pm80xx_chip_phy_start_req(struct pm8001_hba_info *pm8001_ha, u8 phy_id) argument 4668 pm80xx_chip_phy_stop_req(struct pm8001_hba_info *pm8001_ha, u8 phy_id) argument 4692 u32 linkrate, phy_id; local [all...] |
/linux-master/drivers/net/ethernet/8390/ |
H A D | axnet_cs.c | 91 static int mdio_read(unsigned int addr, int phy_id, int loc); 92 static void mdio_write(unsigned int addr, int phy_id, int loc, int value); 117 int phy_id; member in struct:axnet_dev 350 info->phy_id = (i < 32) ? i : -1; 361 if (info->phy_id != -1) { 363 info->phy_id, j); 429 static int mdio_read(unsigned int addr, int phy_id, int loc) argument 431 u_int cmd = (0xf6<<10)|(phy_id<<5)|loc; 448 static void mdio_write(unsigned int addr, int phy_id, int loc, int value) argument 450 u_int cmd = (0x05<<28)|(phy_id<<2 [all...] |