Home
last modified time | relevance | path

Searched refs:regfields (Results 1 – 11 of 11) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/mscc/
Docelot_io.c113 const struct reg_field *const regfields) in ocelot_regfields_init() argument
120 u32 reg = regfields[i].reg; in ocelot_regfields_init()
125 target = regfields[i].reg >> TARGET_OFFSET; in ocelot_regfields_init()
128 regfield.lsb = regfields[i].lsb; in ocelot_regfields_init()
129 regfield.msb = regfields[i].msb; in ocelot_regfields_init()
130 regfield.id_size = regfields[i].id_size; in ocelot_regfields_init()
131 regfield.id_offset = regfields[i].id_offset; in ocelot_regfields_init()
133 ocelot->regfields[i] = in ocelot_regfields_init()
138 if (IS_ERR(ocelot->regfields[i])) in ocelot_regfields_init()
139 return PTR_ERR(ocelot->regfields[i]); in ocelot_regfields_init()
Docelot_vsc7514.c203 err = regmap_field_read(ocelot->regfields[SYS_RESET_CFG_MEM_INIT], in ocelot_mem_init_status()
214 err = regmap_field_write(ocelot->regfields[SYS_RESET_CFG_MEM_INIT], 1); in ocelot_reset()
218 err = regmap_field_write(ocelot->regfields[SYS_RESET_CFG_MEM_ENA], 1); in ocelot_reset()
230 err = regmap_field_write(ocelot->regfields[SYS_RESET_CFG_MEM_ENA], 1); in ocelot_reset()
234 return regmap_field_write(ocelot->regfields[SYS_RESET_CFG_CORE_ENA], 1); in ocelot_reset()
Docelot.c2788 regmap_field_write(ocelot->regfields[ANA_ADVLEARN_VLAN_CHK], 1); in ocelot_init()
/linux-6.1.9/drivers/phy/ti/
Dphy-gmii-sel.c50 const struct reg_field (*regfields)[PHY_GMII_SEL_LAST]; member
167 .regfields = phy_gmii_sel_fields_am33xx,
183 .regfields = phy_gmii_sel_fields_dra7,
190 .regfields = phy_gmii_sel_fields_am33xx,
208 .regfields = phy_gmii_sel_fields_am654,
214 .regfields = phy_gmii_sel_fields_am654,
292 fields = soc_data->regfields[port - 1]; in phy_gmii_init_phy()
/linux-6.1.9/drivers/net/dsa/xrs700x/
Dxrs700x.c189 struct xrs700x_regfield regfields[] = { in xrs700x_setup_regmap_range() local
217 for (; i < ARRAY_SIZE(regfields); i++) { in xrs700x_setup_regmap_range()
218 *regfields[i].rmf = devm_regmap_field_alloc(priv->dev, in xrs700x_setup_regmap_range()
220 regfields[i].rf); in xrs700x_setup_regmap_range()
221 if (IS_ERR(*regfields[i].rmf)) in xrs700x_setup_regmap_range()
222 return PTR_ERR(*regfields[i].rmf); in xrs700x_setup_regmap_range()
/linux-6.1.9/drivers/net/dsa/ocelot/
Dfelix.h26 const struct reg_field *regfields; member
Dseville_vsc9953.c996 .regfields = vsc9953_regfields,
Dfelix.c1409 err = ocelot_regfields_init(ocelot, felix->info->regfields); in felix_init_structs()
Dfelix_vsc9959.c2575 .regfields = vsc9959_regfields,
/linux-6.1.9/include/soc/mscc/
Docelot.h968 struct regmap_field *regfields[REGFIELD_MAX]; member
1082 regmap_field_write((ocelot)->regfields[(reg)], (val))
1084 regmap_field_read((ocelot)->regfields[(reg)], (val))
1086 regmap_fields_write((ocelot)->regfields[(reg)], (id), (val))
1088 regmap_fields_read((ocelot)->regfields[(reg)], (id), (val))
1135 const struct reg_field *const regfields);
/linux-6.1.9/drivers/media/platform/atmel/
Datmel-isc-base.c1968 const struct reg_field regfields[ISC_PIPE_LINE_NODE_NUM] = { in isc_pipeline_init() local
1987 regs = devm_regmap_field_alloc(dev, regmap, regfields[i]); in isc_pipeline_init()