Lines Matching refs:mii_reg
69 void (*funct)(uint mii_reg, struct net_device *dev, uint data);
246 static void mii_queue_relink(uint mii_reg, struct net_device *dev, uint data);
661 uint mii_reg; in fec_enet_mii() local
665 mii_reg = ep->fec_mii_data; in fec_enet_mii()
679 (*(mip->mii_func))(mii_reg, dev, mip->mii_data); in fec_enet_mii()
766 static void mii_parse_sr(uint mii_reg, struct net_device *dev, uint data) in mii_parse_sr() argument
773 if (mii_reg & 0x0004) in mii_parse_sr()
775 if (mii_reg & 0x0010) in mii_parse_sr()
777 if (mii_reg & 0x0020) in mii_parse_sr()
783 static void mii_parse_cr(uint mii_reg, struct net_device *dev, uint data) in mii_parse_cr() argument
790 if (mii_reg & 0x1000) in mii_parse_cr()
792 if (mii_reg & 0x4000) in mii_parse_cr()
796 static void mii_parse_anar(uint mii_reg, struct net_device *dev, uint data) in mii_parse_anar() argument
803 if (mii_reg & 0x0020) in mii_parse_anar()
805 if (mii_reg & 0x0040) in mii_parse_anar()
807 if (mii_reg & 0x0080) in mii_parse_anar()
809 if (mii_reg & 0x00100) in mii_parse_anar()
813 static void mii_disp_reg(uint mii_reg, struct net_device *dev)
815 printk("reg %u = 0x%04x\n", (mii_reg >> 18) & 0x1f, mii_reg & 0xffff);
830 static void mii_parse_lxt970_csr(uint mii_reg, struct net_device *dev, uint data) in mii_parse_lxt970_csr() argument
837 if (mii_reg & 0x0800) { in mii_parse_lxt970_csr()
838 if (mii_reg & 0x1000) in mii_parse_lxt970_csr()
844 if (mii_reg & 0x1000) in mii_parse_lxt970_csr()
912 static void mii_parse_lxt971_sr2(uint mii_reg, struct net_device *dev, uint data) in mii_parse_lxt971_sr2() argument
919 if (mii_reg & 0x4000) { in mii_parse_lxt971_sr2()
920 if (mii_reg & 0x0200) in mii_parse_lxt971_sr2()
926 if (mii_reg & 0x0200) in mii_parse_lxt971_sr2()
931 if (mii_reg & 0x0008) in mii_parse_lxt971_sr2()
990 static void mii_parse_qs6612_pcr(uint mii_reg, struct net_device *dev, uint data) in mii_parse_qs6612_pcr() argument
997 switch((mii_reg >> 2) & 7) { in mii_parse_qs6612_pcr()
1063 static void mii_parse_dp83843_physts(uint mii_reg, struct net_device *dev, uint data) in mii_parse_dp83843_physts() argument
1070 if (mii_reg & 0x0002) in mii_parse_dp83843_physts()
1072 if (mii_reg & 0x0004) in mii_parse_dp83843_physts()
1079 if (mii_reg & 0x0004) in mii_parse_dp83843_physts()
1129 static void mii_parse_dp83846a_physts(uint mii_reg, struct net_device *dev, uint data) in mii_parse_dp83846a_physts() argument
1137 if (mii_reg & 0x0002) { in mii_parse_dp83846a_physts()
1138 if (mii_reg & 0x0004) in mii_parse_dp83846a_physts()
1144 if (mii_reg & 0x0004) in mii_parse_dp83846a_physts()
1154 mii_queue_relink(mii_reg, dev, 0); in mii_parse_dp83846a_physts()
1307 static void mii_queue_relink(uint mii_reg, struct net_device *dev, uint data) in mii_queue_relink() argument
1316 static void mii_queue_config(uint mii_reg, struct net_device *dev, uint data) in mii_queue_config() argument
1337 mii_discover_phy3(uint mii_reg, struct net_device *dev, uint data) in mii_discover_phy3() argument
1343 fep->phy_id |= (mii_reg & 0xffff); in mii_discover_phy3()
1364 mii_discover_phy(uint mii_reg, struct net_device *dev, uint data) in mii_discover_phy() argument
1371 if ((phytype = (mii_reg & 0xffff)) != 0xffff) { in mii_discover_phy()