Lines Matching refs:regfield
59 struct regmap_field *regfield; in phy_gmii_sel_mode() local
99 regfield = if_phy->fields[PHY_GMII_SEL_PORT_MODE]; in phy_gmii_sel_mode()
100 ret = regmap_field_write(regfield, gmii_sel_mode); in phy_gmii_sel_mode()
108 regfield = if_phy->fields[PHY_GMII_SEL_RGMII_ID_MODE]; in phy_gmii_sel_mode()
109 ret = regmap_field_write(regfield, rgmii_id); in phy_gmii_sel_mode()
116 regfield = if_phy->fields[PHY_GMII_SEL_RMII_IO_CLK_EN]; in phy_gmii_sel_mode()
117 ret = regmap_field_write(regfield, in phy_gmii_sel_mode()
243 struct regmap_field *regfield; in phy_gmii_sel_init_ports() local
252 regfield = devm_regmap_field_alloc(dev, priv->regmap, *field); in phy_gmii_sel_init_ports()
253 if (IS_ERR(regfield)) in phy_gmii_sel_init_ports()
254 return PTR_ERR(regfield); in phy_gmii_sel_init_ports()
255 if_phys[i].fields[PHY_GMII_SEL_PORT_MODE] = regfield; in phy_gmii_sel_init_ports()
259 regfield = devm_regmap_field_alloc(dev, in phy_gmii_sel_init_ports()
262 if (IS_ERR(regfield)) in phy_gmii_sel_init_ports()
263 return PTR_ERR(regfield); in phy_gmii_sel_init_ports()
265 regfield; in phy_gmii_sel_init_ports()
270 regfield = devm_regmap_field_alloc(dev, in phy_gmii_sel_init_ports()
273 if (IS_ERR(regfield)) in phy_gmii_sel_init_ports()
274 return PTR_ERR(regfield); in phy_gmii_sel_init_ports()
276 regfield; in phy_gmii_sel_init_ports()