Lines Matching defs:regaddr
73 static int pcie_mdioop(pcicore_info_t *pi, uint physmedia, uint regaddr, bool write, uint *val);
74 static int pciegen1_mdioop(pcicore_info_t *pi, uint physmedia, uint regaddr, bool write,
76 static int pciegen2_mdioop(pcicore_info_t *pi, uint physmedia, uint regaddr, bool write,
385 pcie_mdioop(pcicore_info_t *pi, uint physmedia, uint regaddr, bool write, uint *val)
388 return (pciegen1_mdioop(pi, physmedia, regaddr, write, val));
390 return (pciegen2_mdioop(pi, physmedia, regaddr, write, val, 0));
396 pciegen2_mdioop(pcicore_info_t *pi, uint physmedia, uint regaddr, bool write, uint *val,
410 mdio_ctrl |= (regaddr << MDIOCTL2_REGADDR_SHF);
440 pciegen1_mdioop(pcicore_info_t *pi, uint physmedia, uint regaddr, bool write, uint *val)
458 (regaddr << MDIODATA_REGADDR_SHF);
462 (regaddr << MDIODATA_REGADDR_SHF_OLD);
498 pcie_mdioread(pcicore_info_t *pi, uint physmedia, uint regaddr, uint *regval)
500 return pcie_mdioop(pi, physmedia, regaddr, FALSE, regval);
505 pcie_mdiowrite(pcicore_info_t *pi, uint physmedia, uint regaddr, uint val)
507 return pcie_mdioop(pi, physmedia, regaddr, TRUE, &val);