Lines Matching refs:regfield
72 struct regmap_field *regfield; in phy_gmii_sel_mode() local
119 regfield = if_phy->fields[PHY_GMII_SEL_PORT_MODE]; in phy_gmii_sel_mode()
120 ret = regmap_field_write(regfield, gmii_sel_mode); in phy_gmii_sel_mode()
128 regfield = if_phy->fields[PHY_GMII_SEL_RGMII_ID_MODE]; in phy_gmii_sel_mode()
129 ret = regmap_field_write(regfield, rgmii_id); in phy_gmii_sel_mode()
136 regfield = if_phy->fields[PHY_GMII_SEL_RMII_IO_CLK_EN]; in phy_gmii_sel_mode()
137 ret = regmap_field_write(regfield, in phy_gmii_sel_mode()
301 struct regmap_field *regfield; in phy_gmii_init_phy() local
314 regfield = devm_regmap_field_alloc(dev, priv->regmap, field); in phy_gmii_init_phy()
315 if (IS_ERR(regfield)) in phy_gmii_init_phy()
316 return PTR_ERR(regfield); in phy_gmii_init_phy()
317 if_phy->fields[PHY_GMII_SEL_PORT_MODE] = regfield; in phy_gmii_init_phy()
322 regfield = devm_regmap_field_alloc(dev, in phy_gmii_init_phy()
325 if (IS_ERR(regfield)) in phy_gmii_init_phy()
326 return PTR_ERR(regfield); in phy_gmii_init_phy()
327 if_phy->fields[PHY_GMII_SEL_RGMII_ID_MODE] = regfield; in phy_gmii_init_phy()
335 regfield = devm_regmap_field_alloc(dev, in phy_gmii_init_phy()
338 if (IS_ERR(regfield)) in phy_gmii_init_phy()
339 return PTR_ERR(regfield); in phy_gmii_init_phy()
340 if_phy->fields[PHY_GMII_SEL_RMII_IO_CLK_EN] = regfield; in phy_gmii_init_phy()