| /f-stack/freebsd/mips/cavium/octe/ |
| H A D | ethernet-mv88e61xx.c | 82 cvm_oct_mv88e61xx_smi_read(struct ifnet *ifp, int phy_id, int location) in cvm_oct_mv88e61xx_smi_read() argument 91 cvm_oct_mdio_write(ifp, priv->phy_id, MV88E61XX_SMI_REG_CMD, in cvm_oct_mv88e61xx_smi_read() 93 MV88E61XX_SMI_CMD_READ | MV88E61XX_SMI_CMD_PHY(phy_id) | in cvm_oct_mv88e61xx_smi_read() 100 return (cvm_oct_mdio_read(ifp, priv->phy_id, MV88E61XX_SMI_REG_DAT)); in cvm_oct_mv88e61xx_smi_read() 104 cvm_oct_mv88e61xx_smi_write(struct ifnet *ifp, int phy_id, int location, int val) in cvm_oct_mv88e61xx_smi_write() argument 109 cvm_oct_mdio_write(ifp, priv->phy_id, MV88E61XX_SMI_REG_DAT, val); in cvm_oct_mv88e61xx_smi_write() 110 cvm_oct_mdio_write(ifp, priv->phy_id, MV88E61XX_SMI_REG_CMD, in cvm_oct_mv88e61xx_smi_write() 112 MV88E61XX_SMI_CMD_WRITE | MV88E61XX_SMI_CMD_PHY(phy_id) | in cvm_oct_mv88e61xx_smi_write() 125 cmd = cvm_oct_mdio_read(ifp, priv->phy_id, MV88E61XX_SMI_REG_CMD); in cvm_oct_mv88e61xx_smi_wait()
|
| H A D | ethernet-mdio.c | 62 int cvm_oct_mdio_read(struct ifnet *ifp, int phy_id, int location) in cvm_oct_mdio_read() argument 70 smi_cmd.s.phy_adr = phy_id; in cvm_oct_mdio_read() 95 void cvm_oct_mdio_write(struct ifnet *ifp, int phy_id, int location, int val) in cvm_oct_mdio_write() argument 107 smi_cmd.s.phy_adr = phy_id; in cvm_oct_mdio_write() 129 priv->phy_id = cvmx_helper_board_get_mii_address(priv->port); in cvm_oct_mdio_setup_device()
|
| H A D | ethernet-mdio.h | 38 int cvm_oct_mdio_read(struct ifnet *ifp, int phy_id, int location); 39 void cvm_oct_mdio_write(struct ifnet *ifp, int phy_id, int location, int val);
|
| H A D | octe.c | 149 if (priv->phy_id != -1) { in octe_attach() 153 BMSR_DEFCAPMASK, priv->phy_id, MII_OFFSET_ANY, 0); in octe_attach() 159 device_printf(dev, "missing phy %u device %s\n", priv->phy_id, priv->phy_device); in octe_attach() 235 KASSERT(phy == priv->phy_id, in octe_miibus_readreg() 236 ("read from phy %u but our phy is %u", phy, priv->phy_id)); in octe_miibus_readreg() 258 KASSERT(phy == priv->phy_id, in octe_miibus_writereg() 259 ("write to phy %u but our phy is %u", phy, priv->phy_id)); in octe_miibus_writereg()
|
| H A D | cavium-ethernet.h | 77 int phy_id; member
|
| H A D | ethernet-common.c | 324 if (priv->phy_id == 16) in cvm_oct_common_init()
|
| /f-stack/freebsd/contrib/octeon-sdk/ |
| H A D | cvmx-mdio.h | 379 static inline int cvmx_mdio_read(int bus_id, int phy_id, int location) in cvmx_mdio_read() argument 391 rv = mdiobus_read(bus, phy_id, location); in cvmx_mdio_read() 405 smi_cmd.s.phy_adr = phy_id; in cvmx_mdio_read() 431 static inline int cvmx_mdio_write(int bus_id, int phy_id, int location, int val) in cvmx_mdio_write() argument 443 rv = mdiobus_write(bus, phy_id, location, (u16)val); in cvmx_mdio_write() 461 smi_cmd.s.phy_adr = phy_id; in cvmx_mdio_write() 487 static inline int cvmx_mdio_45_read(int bus_id, int phy_id, int device, int location) in cvmx_mdio_45_read() argument 504 smi_cmd.s.phy_adr = phy_id; in cvmx_mdio_45_read() 517 smi_cmd.s.phy_adr = phy_id; in cvmx_mdio_45_read() 568 smi_cmd.s.phy_adr = phy_id; in cvmx_mdio_45_write() [all …]
|
| /f-stack/freebsd/arm64/broadcom/brcmmdio/ |
| H A D | mdio_ns2_pcie_phy.c | 53 uint32_t phy_id; member 91 err = MDIO_WRITEREG(device_get_parent(dev), sc->phy_id, in ns2_pci_phy_init() 97 err = MDIO_WRITEREG(device_get_parent(dev), sc->phy_id, in ns2_pci_phy_init() 156 sc->phy_id = buf[0]; in ns2_pcie_phy_fdt_attach()
|
| /f-stack/freebsd/contrib/device-tree/Bindings/net/ |
| H A D | cpsw.txt | 52 - phy_id : Specifies slave phy id (deprecated, use phy-handle) 61 Note: Exactly one of phy_id, phy-handle, or fixed-link must be specified. 88 phy_id = <&davinci_mdio>, <0>; 95 phy_id = <&davinci_mdio>, <1>; 119 phy_id = <&davinci_mdio>, <0>; 126 phy_id = <&davinci_mdio>, <1>;
|
| /f-stack/dpdk/drivers/net/pfe/ |
| H A D | pfe_mod.h | 36 uint32_t phy_id; /* Link phy ID */ member
|
| H A D | pfe_eth.h | 32 u32 phy_id; member
|
| H A D | pfe_ethdev.c | 881 unsigned int ii = 0, phy_id = 0; in pfe_get_gemac_if_proprties() local 912 phy_id = rte_be_to_cpu_32((unsigned int)*addr); in pfe_get_gemac_if_proprties() 913 pdata->ls1012a_eth_pdata[port].mdio_muxval = phy_id; in pfe_get_gemac_if_proprties() 915 if (pdata->ls1012a_eth_pdata[port].phy_id < 32) in pfe_get_gemac_if_proprties() 916 pfe->mdio_muxval[pdata->ls1012a_eth_pdata[port].phy_id] = in pfe_get_gemac_if_proprties()
|
| /f-stack/dpdk/drivers/net/txgbe/base/ |
| H A D | txgbe_phy.c | 146 u16 phy_id = 0; in txgbe_validate_phy_addr() local 153 TXGBE_MD_DEV_PMA_PMD, &phy_id); in txgbe_validate_phy_addr() 155 if (phy_id != 0xFFFF && phy_id != 0x0) in txgbe_validate_phy_addr() 158 DEBUGOUT("PHY ID HIGH is 0x%04X\n", phy_id); in txgbe_validate_phy_addr() 199 enum txgbe_phy_type txgbe_get_phy_type_from_id(u32 phy_id) in txgbe_get_phy_type_from_id() argument 205 switch (phy_id) { in txgbe_get_phy_type_from_id()
|
| H A D | txgbe_phy.h | 327 enum txgbe_phy_type txgbe_get_phy_type_from_id(u32 phy_id);
|
| /f-stack/dpdk/drivers/net/e1000/base/ |
| H A D | e1000_82571.c | 438 u16 phy_id = 0; in e1000_get_phy_id_82571() local 457 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in e1000_get_phy_id_82571() 461 phy->id = (u32)(phy_id << 16); in e1000_get_phy_id_82571() 463 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in e1000_get_phy_id_82571() 467 phy->id |= (u32)(phy_id); in e1000_get_phy_id_82571() 468 phy->revision = (u32)(phy_id & ~PHY_REVISION_MASK); in e1000_get_phy_id_82571()
|
| H A D | e1000_phy.c | 205 u16 phy_id; in e1000_get_phy_id() local 214 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in e1000_get_phy_id() 218 phy->id = (u32)(phy_id << 16); in e1000_get_phy_id() 220 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in e1000_get_phy_id() 224 phy->id |= (u32)(phy_id & PHY_REVISION_MASK); in e1000_get_phy_id() 225 phy->revision = (u32)(phy_id & ~PHY_REVISION_MASK); in e1000_get_phy_id() 2974 enum e1000_phy_type e1000_get_phy_type_from_id(u32 phy_id) in e1000_get_phy_type_from_id() argument 2978 switch (phy_id) { in e1000_get_phy_type_from_id()
|
| H A D | e1000_phy.h | 59 enum e1000_phy_type e1000_get_phy_type_from_id(u32 phy_id);
|
| H A D | e1000_ich8lan.c | 173 u32 phy_id = 0; in e1000_phy_is_accessible_pchlan() local 182 phy_id = (u32)(phy_reg << 16); in e1000_phy_is_accessible_pchlan() 186 phy_id = 0; in e1000_phy_is_accessible_pchlan() 189 phy_id |= (u32)(phy_reg & PHY_REVISION_MASK); in e1000_phy_is_accessible_pchlan() 194 if (hw->phy.id == phy_id) in e1000_phy_is_accessible_pchlan() 196 } else if (phy_id) { in e1000_phy_is_accessible_pchlan() 197 hw->phy.id = phy_id; in e1000_phy_is_accessible_pchlan()
|
| H A D | e1000_82575.c | 591 u16 phy_id; in e1000_get_phy_id_82575() local 652 ret_val = e1000_read_phy_reg_sgmii_82575(hw, PHY_ID1, &phy_id); in e1000_get_phy_id_82575() 655 phy_id, phy->addr); in e1000_get_phy_id_82575() 660 if (phy_id == M88_VENDOR) in e1000_get_phy_id_82575()
|
| /f-stack/dpdk/drivers/net/ixgbe/base/ |
| H A D | ixgbe_phy.h | 130 enum ixgbe_phy_type ixgbe_get_phy_type_from_id(u32 phy_id);
|
| H A D | ixgbe_phy.c | 372 u16 phy_id = 0; in ixgbe_validate_phy_addr() local 379 IXGBE_MDIO_PMA_PMD_DEV_TYPE, &phy_id); in ixgbe_validate_phy_addr() 381 if (phy_id != 0xFFFF && phy_id != 0x0) in ixgbe_validate_phy_addr() 384 DEBUGOUT1("PHY ID HIGH is 0x%04X\n", phy_id); in ixgbe_validate_phy_addr() 425 enum ixgbe_phy_type ixgbe_get_phy_type_from_id(u32 phy_id) in ixgbe_get_phy_type_from_id() argument 431 switch (phy_id) { in ixgbe_get_phy_type_from_id()
|
| /f-stack/dpdk/drivers/net/igc/base/ |
| H A D | igc_phy.c | 204 u16 phy_id; in igc_get_phy_id() local 213 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igc_get_phy_id() 217 phy->id = (u32)(phy_id << 16); in igc_get_phy_id() 219 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igc_get_phy_id() 223 phy->id |= (u32)(phy_id & PHY_REVISION_MASK); in igc_get_phy_id() 224 phy->revision = (u32)(phy_id & ~PHY_REVISION_MASK); in igc_get_phy_id() 3014 enum igc_phy_type igc_get_phy_type_from_id(u32 phy_id) in igc_get_phy_type_from_id() argument 3018 switch (phy_id) { in igc_get_phy_type_from_id()
|
| H A D | igc_phy.h | 59 enum igc_phy_type igc_get_phy_type_from_id(u32 phy_id);
|
| /f-stack/freebsd/contrib/alpine-hal/eth/ |
| H A D | al_hal_eth_mac_regs.h | 365 uint32_t phy_id[2]; member
|
| /f-stack/freebsd/arm/ti/cpsw/ |
| H A D | if_cpsw.c | 744 pcell_t phy_id[3], vlan_id; in cpsw_get_fdt_data() local 770 if (OF_getencprop(child, "phy_id", phy_id, len) > 0) in cpsw_get_fdt_data() 771 phy = phy_id[1]; in cpsw_get_fdt_data()
|