Lines Matching defs:ifp
68 cvm_oct_mv88e61xx_setup_device(struct ifnet *ifp)
70 cvm_oct_private_t *priv = (cvm_oct_private_t *)ifp->if_softc;
80 cvm_oct_mv88e61xx_smi_read(struct ifnet *ifp, int phy_id, int location)
82 cvm_oct_private_t *priv = (cvm_oct_private_t *)ifp->if_softc;
85 error = cvm_oct_mv88e61xx_smi_wait(ifp);
89 cvm_oct_mdio_write(ifp, priv->phy_id, MV88E61XX_SMI_REG_CMD,
94 error = cvm_oct_mv88e61xx_smi_wait(ifp);
98 return (cvm_oct_mdio_read(ifp, priv->phy_id, MV88E61XX_SMI_REG_DAT));
102 cvm_oct_mv88e61xx_smi_write(struct ifnet *ifp, int phy_id, int location, int val)
104 cvm_oct_private_t *priv = (cvm_oct_private_t *)ifp->if_softc;
106 cvm_oct_mv88e61xx_smi_wait(ifp);
107 cvm_oct_mdio_write(ifp, priv->phy_id, MV88E61XX_SMI_REG_DAT, val);
108 cvm_oct_mdio_write(ifp, priv->phy_id, MV88E61XX_SMI_REG_CMD,
112 cvm_oct_mv88e61xx_smi_wait(ifp);
116 cvm_oct_mv88e61xx_smi_wait(struct ifnet *ifp)
118 cvm_oct_private_t *priv = (cvm_oct_private_t *)ifp->if_softc;
123 cmd = cvm_oct_mdio_read(ifp, priv->phy_id, MV88E61XX_SMI_REG_CMD);