/openbmc/linux/drivers/net/ethernet/intel/igc/ |
H A D | igc_phy.c | 36 u16 phy_id; in igc_get_phy_id() local 38 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igc_get_phy_id() 42 phy->id = (u32)(phy_id << 16); in igc_get_phy_id() 44 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igc_get_phy_id() 48 phy->id |= (u32)(phy_id & PHY_REVISION_MASK); in igc_get_phy_id() 49 phy->revision = (u32)(phy_id & ~PHY_REVISION_MASK); in igc_get_phy_id()
|
/openbmc/u-boot/include/ |
H A D | phy.h | 141 u32 phy_id; member 147 int phy_id; member 258 int get_phy_id(struct mii_dev *bus, int addr, int devad, u32 *phy_id);
|
/openbmc/linux/drivers/phy/freescale/ |
H A D | phy-fsl-imx8qm-lvds-phy.c | 300 unsigned int phy_id; in mixel_lvds_phy_xlate() local 309 phy_id = args->args[0]; in mixel_lvds_phy_xlate() 311 if (phy_id >= PHY_NUM) { in mixel_lvds_phy_xlate() 312 dev_err(dev, "invalid PHY index(%d)\n", phy_id); in mixel_lvds_phy_xlate() 316 return priv->phys[phy_id]->phy; in mixel_lvds_phy_xlate()
|
/openbmc/linux/drivers/nfc/pn544/ |
H A D | pn544.c | 111 void *phy_id; member 138 r = info->phy_ops->enable(info->phy_id); in pn544_hci_open() 157 info->phy_ops->disable(info->phy_id); in pn544_hci_close() 329 return info->phy_ops->write(info->phy_id, skb); in pn544_hci_xmit() 778 return info->fw_download(info->phy_id, firmware_name, hdev->sw_romlib); in pn544_hci_fw_download() 903 int pn544_hci_probe(void *phy_id, const struct nfc_phy_ops *phy_ops, in pn544_hci_probe() argument 920 info->phy_id = phy_id; in pn544_hci_probe()
|
H A D | pn544.h | 19 int pn544_hci_probe(void *phy_id, const struct nfc_phy_ops *phy_ops,
|
/openbmc/linux/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) in mdio_read() argument 544 int read_cmd = (0xf6 << 10) | (phy_id << 5) | location; in mdio_read() 566 static void mdio_write(unsigned int ioaddr, int phy_id, int location, int value) in mdio_write() argument 568 int write_cmd = 0x50020000 | (phy_id << 23) | (location << 18) | value; in mdio_write() 1043 data->phy_id, data->reg_num, data->val_in, data->val_out); in el3_ioctl() 1047 data->phy_id = phy; in el3_ioctl() 1057 data->val_out = mdio_read(ioaddr, data->phy_id & 0x1f, in el3_ioctl() 1071 mdio_write(ioaddr, data->phy_id & 0x1f, in el3_ioctl()
|
/openbmc/linux/drivers/net/ethernet/intel/ |
H A D | e100.c | 1442 bmcr = mdio_read(netdev, nic->mii.phy_id, MII_BMCR); in e100_phy_init() 1463 "phy_addr = %d\n", nic->mii.phy_id); in e100_phy_init() 1474 if (addr != nic->mii.phy_id) { in e100_phy_init() 1488 mdio_write(netdev, nic->mii.phy_id, MII_BMCR, in e100_phy_init() 1519 mdio_write(netdev, nic->mii.phy_id, MII_NCONFIG, in e100_phy_init() 2367 mdio_write(nic->netdev, nic->mii.phy_id, MII_BMCR, in e100_loopback_test() 2463 buff[1 + i] = mdio_read(netdev, nic->mii.phy_id, in e100_get_regs() 2669 mdio_write(netdev, nic->mii.phy_id, led_reg, leds); in e100_set_phys_id() 3017 mdio_write(netdev, nic->mii.phy_id, in __e100_shutdown() 3064 u16 smartspeed = mdio_read(netdev, nic->mii.phy_id, in e100_resume() [all …]
|
/openbmc/linux/drivers/scsi/pm8001/ |
H A D | pm8001_hwi.c | 3024 phy_id, phy_op); in pm8001_mpi_local_phy_ctl() 3028 phy_id, phy_op); in pm8001_mpi_local_phy_ctl() 3171 u8 phy_id = in hw_event_sas_phy_up() local 3185 port_id, phy_id); in hw_event_sas_phy_up() 3248 u8 phy_id = in hw_event_sata_phy_up() local 3291 u8 phy_id = in hw_event_phy_down() local 3565 u8 phy_id = in mpi_hw_event() local 4184 payload.sas_identify.phy_id = phy_id; in pm8001_chip_phy_start_req() 4196 u8 phy_id) in pm8001_chip_phy_stop_req() argument 4204 payload.phy_id = cpu_to_le32(phy_id); in pm8001_chip_phy_stop_req() [all …]
|
/openbmc/linux/drivers/net/ethernet/smsc/ |
H A D | smc91c92_cs.c | 914 smc->mii_if.phy_id = (i < 32) ? i : -1; in smc91c92_config() 939 if (smc->mii_if.phy_id != -1) { in smc91c92_config() 941 smc->mii_if.phy_id, j); in smc91c92_config() 991 u_int cmd = (0x06<<10)|(phy_id<<5)|loc; in mdio_read() 1692 mdio_write(dev, smc->mii_if.phy_id, 0, 0x8000); in smc_reset() 1695 mdio_write(dev, smc->mii_if.phy_id, 4, 0x01e1); in smc_reset() 1698 mdio_write(dev, smc->mii_if.phy_id, 0, 0x0000); in smc_reset() 1699 mdio_write(dev, smc->mii_if.phy_id, 0, 0x1200); in smc_reset() 1768 if (smc->mii_if.phy_id < 0) in media_check() 1772 link = mdio_read(dev, smc->mii_if.phy_id, 1); in media_check() [all …]
|
/openbmc/linux/drivers/scsi/libsas/ |
H A D | sas_ata.c | 268 res = sas_get_report_phy_sata(dev->parent, phy->phy_id, in sas_get_ata_info() 273 phy->phy_id, res); in sas_get_ata_info() 675 struct domain_device *child, int phy_id) in sas_ata_add_dev() argument 692 SAS_ADDR(child->sas_addr), phy_id); in sas_ata_add_dev() 693 ret = sas_smp_phy_control(parent, phy_id, in sas_ata_add_dev() 697 SAS_ADDR(child->sas_addr), phy_id, ret); in sas_ata_add_dev() 701 SAS_ADDR(child->sas_addr), phy_id); in sas_ata_add_dev() 717 rphy->identify.phy_identifier = phy_id; in sas_ata_add_dev() 727 SAS_ADDR(parent->sas_addr), phy_id, ret); in sas_ata_add_dev()
|
/openbmc/linux/drivers/scsi/mvsas/ |
H A D | mv_sas.h | 134 void (*phy_set_link_rate)(struct mvs_info *mvi, u32 phy_id, 137 void (*phy_disable)(struct mvs_info *mvi, u32 phy_id); 138 void (*phy_enable)(struct mvs_info *mvi, u32 phy_id); 139 void (*phy_reset)(struct mvs_info *mvi, u32 phy_id, int hard); 140 void (*stp_reset)(struct mvs_info *mvi, u32 phy_id);
|
/openbmc/linux/include/linux/platform_data/ |
H A D | eth-ep93xx.h | 7 unsigned char phy_id; member
|
/openbmc/u-boot/include/net/pfe_eth/ |
H A D | pfe_mdio.h | 10 int pfe_phy_configure(struct pfe_eth_dev *priv, int dev_id, int phy_id);
|
/openbmc/linux/drivers/net/ethernet/via/ |
H A D | via-rhine.c | 901 int i, rc, phy_id; in rhine_init_one_common() local 927 phy_id = rp->quirks & rqIntPHY ? 1 : 0; in rhine_init_one_common() 949 if (!phy_id) in rhine_init_one_common() 950 phy_id = ioread8(ioaddr + 0x6C); in rhine_init_one_common() 999 int mii_status = mdio_read(dev, phy_id, 1); in rhine_init_one_common() 1001 mdio_write(dev, phy_id, MII_BMCR, mii_cmd); in rhine_init_one_common() 1006 phy_id, in rhine_init_one_common() 1008 mdio_read(dev, phy_id, 5)); in rhine_init_one_common() 1018 rp->mii_if.phy_id = phy_id; in rhine_init_one_common() 1630 iowrite8(phy_id, ioaddr + MIIPhyAddr); in mdio_read() [all …]
|
/openbmc/linux/drivers/nfc/st21nfca/ |
H A D | st21nfca.h | 149 void *phy_id; member 167 int st21nfca_hci_probe(void *phy_id, const struct nfc_phy_ops *phy_ops,
|
/openbmc/linux/include/net/ |
H A D | ethoc.h | 18 s8 phy_id; member
|
/openbmc/u-boot/drivers/net/ |
H A D | ns8382x.c | 250 static int mdio_read(struct eth_device *dev, int phy_id, int addr); 251 static void mdio_write(struct eth_device *dev, int phy_id, int addr, int value); 472 mdio_read(struct eth_device *dev, int phy_id, int addr) in mdio_read() argument 474 int mii_cmd = (0xf6 << 10) | (phy_id << 5) | addr; in mdio_read() 499 mdio_write(struct eth_device *dev, int phy_id, int addr, int value) in mdio_write() argument 501 int mii_cmd = (0x5002 << 16) | (phy_id << 23) | (addr << 18) | value; in mdio_write()
|
/openbmc/linux/drivers/net/phy/ |
H A D | bcm7xxx.c | 154 rev = phydev->phy_id & ~phydev->drv->phy_id_mask; in bcm7xxx_28nm_config_init() 390 u8 rev = phydev->phy_id & ~phydev->drv->phy_id_mask; in bcm7xxx_28nm_ephy_config_init() 845 .phy_id = (_oui), \ 862 .phy_id = (_oui), \ 879 .phy_id = (_oui), \ 892 .phy_id = (_oui), \
|
H A D | phy.c | 334 mii_data->phy_id = phydev->mdio.addr; in phy_mii_ioctl() 338 if (mdio_phy_id_is_c45(mii_data->phy_id)) { in phy_mii_ioctl() 339 prtad = mdio_phy_id_prtad(mii_data->phy_id); in phy_mii_ioctl() 340 devad = mdio_phy_id_devad(mii_data->phy_id); in phy_mii_ioctl() 346 phydev->mdio.bus, mii_data->phy_id, in phy_mii_ioctl() 352 if (mdio_phy_id_is_c45(mii_data->phy_id)) { in phy_mii_ioctl() 353 prtad = mdio_phy_id_prtad(mii_data->phy_id); in phy_mii_ioctl() 354 devad = mdio_phy_id_devad(mii_data->phy_id); in phy_mii_ioctl() 356 prtad = mii_data->phy_id; in phy_mii_ioctl() 397 if (mdio_phy_id_is_c45(mii_data->phy_id)) in phy_mii_ioctl()
|
H A D | bcm87xx.c | 200 .phy_id = PHY_ID_BCM8706, 211 .phy_id = PHY_ID_BCM8727,
|
/openbmc/linux/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) in davinci_mdio_read() argument 414 if (phy_reg & ~PHY_REG_MASK || phy_id & ~PHY_ID_MASK) in davinci_mdio_read() 422 (phy_id << 16)); in davinci_mdio_read() 449 static int davinci_mdio_write(struct mii_bus *bus, int phy_id, in davinci_mdio_write() argument 456 if (phy_reg & ~PHY_REG_MASK || phy_id & ~PHY_ID_MASK) in davinci_mdio_write() 464 (phy_id << 16) | (phy_data & USERACCESS_DATA)); in davinci_mdio_write()
|
/openbmc/linux/drivers/nfc/microread/ |
H A D | microread.h | 13 int microread_probe(void *phy_id, const struct nfc_phy_ops *phy_ops,
|
/openbmc/linux/drivers/nfc/nxp-nci/ |
H A D | firmware.c | 58 r = info->phy_ops->set_mode(info->phy_id, NXP_NCI_MODE_COLD); in nxp_nci_fw_work_complete() 119 r = info->phy_ops->write(info->phy_id, skb); in nxp_nci_fw_send_chunk() 221 r = info->phy_ops->set_mode(info->phy_id, NXP_NCI_MODE_FW); in nxp_nci_fw_download()
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | quota.c | 94 int i, phy_id = -1, beacon_int = 0; in iwl_mvm_adjust_quota_for_noa() local 103 phy_id = mvmvif->deflink.phy_ctxt->id; in iwl_mvm_adjust_quota_for_noa() 114 if (id != phy_id) in iwl_mvm_adjust_quota_for_noa()
|
/openbmc/linux/drivers/net/usb/ |
H A D | r8153_ecm.c | 71 static int r8153_ecm_mdio_read(struct net_device *netdev, int phy_id, int reg) in r8153_ecm_mdio_read() argument 86 static void r8153_ecm_mdio_write(struct net_device *netdev, int phy_id, int reg, int val) in r8153_ecm_mdio_write() argument
|