Lines Matching full:mii
21 #include <linux/mii.h>
416 mii_check_link(&ks->mii); in ks8851_irq()
509 mii_check_link(&ks->mii); in ks8851_net_open()
688 return generic_mii_ioctl(&ks->mii, if_mii(req), cmd, NULL); in ks8851_net_ioctl()
728 mii_ethtool_get_link_ksettings(&ks->mii, cmd); in ks8851_get_link_ksettings()
737 return mii_ethtool_set_link_ksettings(&ks->mii, cmd); in ks8851_set_link_ksettings()
743 return mii_link_ok(&ks->mii); in ks8851_get_link()
749 return mii_nway_restart(&ks->mii); in ks8851_nway_reset()
908 /* MII interface controls */
911 * ks8851_phy_reg - convert MII register into a KS8851 register
912 * @reg: MII register number.
914 * Return the KS8851 register number for the corresponding MII PHY register
915 * if possible. Return zero if the MII register has no direct mapping to the
939 * ks8851_phy_read - MII interface PHY register read.
945 * device does not support all the MII registers, the non-existent values
948 * We return zero for unsupported registers as the MII code does not check
950 * caller. The mii-tool that the driver was tested with takes any -ve error
1113 /* setup mii state */ in ks8851_probe_common()
1114 ks->mii.dev = netdev; in ks8851_probe_common()
1115 ks->mii.phy_id = 1, in ks8851_probe_common()
1116 ks->mii.phy_id_mask = 1; in ks8851_probe_common()
1117 ks->mii.reg_num_mask = 0xf; in ks8851_probe_common()
1118 ks->mii.mdio_read = ks8851_phy_read; in ks8851_probe_common()
1119 ks->mii.mdio_write = ks8851_phy_write; in ks8851_probe_common()