Lines Matching refs:regfield
71 struct regmap_field *regfield; in phy_gmii_sel_mode() local
118 regfield = if_phy->fields[PHY_GMII_SEL_PORT_MODE]; in phy_gmii_sel_mode()
119 ret = regmap_field_write(regfield, gmii_sel_mode); in phy_gmii_sel_mode()
127 regfield = if_phy->fields[PHY_GMII_SEL_RGMII_ID_MODE]; in phy_gmii_sel_mode()
128 ret = regmap_field_write(regfield, rgmii_id); in phy_gmii_sel_mode()
135 regfield = if_phy->fields[PHY_GMII_SEL_RMII_IO_CLK_EN]; in phy_gmii_sel_mode()
136 ret = regmap_field_write(regfield, in phy_gmii_sel_mode()
285 struct regmap_field *regfield; in phy_gmii_init_phy() local
298 regfield = devm_regmap_field_alloc(dev, priv->regmap, field); in phy_gmii_init_phy()
299 if (IS_ERR(regfield)) in phy_gmii_init_phy()
300 return PTR_ERR(regfield); in phy_gmii_init_phy()
301 if_phy->fields[PHY_GMII_SEL_PORT_MODE] = regfield; in phy_gmii_init_phy()
306 regfield = devm_regmap_field_alloc(dev, in phy_gmii_init_phy()
309 if (IS_ERR(regfield)) in phy_gmii_init_phy()
310 return PTR_ERR(regfield); in phy_gmii_init_phy()
311 if_phy->fields[PHY_GMII_SEL_RGMII_ID_MODE] = regfield; in phy_gmii_init_phy()
319 regfield = devm_regmap_field_alloc(dev, in phy_gmii_init_phy()
322 if (IS_ERR(regfield)) in phy_gmii_init_phy()
323 return PTR_ERR(regfield); in phy_gmii_init_phy()
324 if_phy->fields[PHY_GMII_SEL_RMII_IO_CLK_EN] = regfield; in phy_gmii_init_phy()