Home
last modified time | relevance | path

Searched refs:regfield (Results 1 – 2 of 2) sorted by relevance

/drivers/phy/ti/
Dphy-gmii-sel.c63 struct regmap_field *regfield; in phy_gmii_sel_mode() local
103 regfield = if_phy->fields[PHY_GMII_SEL_PORT_MODE]; in phy_gmii_sel_mode()
104 ret = regmap_field_write(regfield, gmii_sel_mode); in phy_gmii_sel_mode()
112 regfield = if_phy->fields[PHY_GMII_SEL_RGMII_ID_MODE]; in phy_gmii_sel_mode()
113 ret = regmap_field_write(regfield, rgmii_id); in phy_gmii_sel_mode()
120 regfield = if_phy->fields[PHY_GMII_SEL_RMII_IO_CLK_EN]; in phy_gmii_sel_mode()
121 ret = regmap_field_write(regfield, in phy_gmii_sel_mode()
254 struct regmap_field *regfield; in phy_gmii_init_phy() local
267 regfield = devm_regmap_field_alloc(dev, priv->regmap, field); in phy_gmii_init_phy()
268 if (IS_ERR(regfield)) in phy_gmii_init_phy()
[all …]
/drivers/net/ethernet/mscc/
Docelot_io.c106 struct reg_field regfield = {}; in ocelot_regfields_init() local
114 regfield.reg = ocelot->map[target][reg & REG_MASK]; in ocelot_regfields_init()
115 regfield.lsb = regfields[i].lsb; in ocelot_regfields_init()
116 regfield.msb = regfields[i].msb; in ocelot_regfields_init()
117 regfield.id_size = regfields[i].id_size; in ocelot_regfields_init()
118 regfield.id_offset = regfields[i].id_offset; in ocelot_regfields_init()
123 regfield); in ocelot_regfields_init()