Lines Matching refs:muxval
45 static const char *ls1043aqds_mdio_name_for_muxval(u8 muxval) in ls1043aqds_mdio_name_for_muxval() argument
47 return mdio_names[muxval]; in ls1043aqds_mdio_name_for_muxval()
50 struct mii_dev *mii_dev_for_muxval(u8 muxval) in mii_dev_for_muxval() argument
55 if (muxval > EMI2) in mii_dev_for_muxval()
58 name = ls1043aqds_mdio_name_for_muxval(muxval); in mii_dev_for_muxval()
61 printf("No bus for muxval %x\n", muxval); in mii_dev_for_muxval()
76 u8 muxval; member
80 static void ls1043aqds_mux_mdio(u8 muxval) in ls1043aqds_mux_mdio() argument
84 if (muxval < 7) { in ls1043aqds_mux_mdio()
87 brdcfg4 |= (muxval << BRDCFG4_EMISEL_SHIFT); in ls1043aqds_mux_mdio()
97 ls1043aqds_mux_mdio(priv->muxval); in ls1043aqds_mdio_read()
107 ls1043aqds_mux_mdio(priv->muxval); in ls1043aqds_mdio_write()
120 static int ls1043aqds_mdio_init(char *realbusname, u8 muxval) in ls1043aqds_mdio_init() argument
140 strcpy(bus->name, ls1043aqds_mdio_name_for_muxval(muxval)); in ls1043aqds_mdio_init()
151 pmdio->muxval = muxval; in ls1043aqds_mdio_init()