Lines Matching refs:val
45 u32 val;
47 (void) simple_mdio_read(cphy, reg, &val);
48 (void) simple_mdio_write(cphy, reg, val | bitval);
56 u32 val;
58 (void) simple_mdio_read(cphy, reg, &val);
59 (void) simple_mdio_write(cphy, reg, val & ~bitval);
228 u32 val = 0;
232 (void) simple_mdio_read(phy, MII_GBCR, &val);
233 val &= ~(GBCR_ADV_1000HALF | GBCR_ADV_1000FULL);
235 val |= GBCR_ADV_1000HALF;
237 val |= GBCR_ADV_1000FULL;
239 (void) simple_mdio_write(phy, MII_GBCR, val);
241 val = 1;
243 val |= ADVERTISE_10HALF;
245 val |= ADVERTISE_10FULL;
247 val |= ADVERTISE_100HALF;
249 val |= ADVERTISE_100FULL;
251 val |= ADVERTISE_PAUSE;
253 val |= ADVERTISE_PAUSE_ASYM;
254 (void) simple_mdio_write(phy, MII_ADVERTISE, val);
301 u32 val;
303 (void) simple_mdio_read(cphy, MV88E1XXX_EXT_PHY_SPECIFIC_CNTRL_REGISTER, &val);
309 val &= ~(V_DOWNSHIFT_ENABLE | V_DOWNSHIFT_CNT(M_DOWNSHIFT_CNT));
312 val |= V_DOWNSHIFT_ENABLE | V_DOWNSHIFT_CNT(2);
313 (void) simple_mdio_write(cphy, MV88E1XXX_EXT_PHY_SPECIFIC_CNTRL_REGISTER, val);