Lines Matching refs:ifp
67 cvm_oct_mv88e61xx_setup_device(struct ifnet *ifp)
69 cvm_oct_private_t *priv = (cvm_oct_private_t *)ifp->if_softc;
79 cvm_oct_mv88e61xx_smi_read(struct ifnet *ifp, int phy_id, int location)
81 cvm_oct_private_t *priv = (cvm_oct_private_t *)ifp->if_softc;
84 error = cvm_oct_mv88e61xx_smi_wait(ifp);
88 cvm_oct_mdio_write(ifp, priv->phy_id, MV88E61XX_SMI_REG_CMD,
93 error = cvm_oct_mv88e61xx_smi_wait(ifp);
97 return (cvm_oct_mdio_read(ifp, priv->phy_id, MV88E61XX_SMI_REG_DAT));
101 cvm_oct_mv88e61xx_smi_write(struct ifnet *ifp, int phy_id, int location, int val)
103 cvm_oct_private_t *priv = (cvm_oct_private_t *)ifp->if_softc;
105 cvm_oct_mv88e61xx_smi_wait(ifp);
106 cvm_oct_mdio_write(ifp, priv->phy_id, MV88E61XX_SMI_REG_DAT, val);
107 cvm_oct_mdio_write(ifp, priv->phy_id, MV88E61XX_SMI_REG_CMD,
111 cvm_oct_mv88e61xx_smi_wait(ifp);
115 cvm_oct_mv88e61xx_smi_wait(struct ifnet *ifp)
117 cvm_oct_private_t *priv = (cvm_oct_private_t *)ifp->if_softc;
122 cmd = cvm_oct_mdio_read(ifp, priv->phy_id, MV88E61XX_SMI_REG_CMD);