Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/net/ethernet/mscc/
A 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()
A Docelot.c2725 err = regmap_field_read(ocelot->regfields[SYS_RESET_CFG_MEM_INIT], in ocelot_mem_init_status()
2736 err = regmap_field_write(ocelot->regfields[SYS_RESET_CFG_MEM_INIT], 1); in ocelot_reset()
2740 err = regmap_field_write(ocelot->regfields[SYS_RESET_CFG_MEM_ENA], 1); in ocelot_reset()
2752 err = regmap_field_write(ocelot->regfields[SYS_RESET_CFG_MEM_ENA], 1); in ocelot_reset()
2756 return regmap_field_write(ocelot->regfields[SYS_RESET_CFG_CORE_ENA], 1); in ocelot_reset()
2834 regmap_field_write(ocelot->regfields[ANA_ADVLEARN_VLAN_CHK], 1); in ocelot_init()
/linux-6.3-rc2/drivers/phy/ti/
A Dphy-gmii-sel.c50 const struct reg_field (*regfields)[PHY_GMII_SEL_LAST]; member
168 .regfields = phy_gmii_sel_fields_am33xx,
184 .regfields = phy_gmii_sel_fields_dra7,
191 .regfields = phy_gmii_sel_fields_am33xx,
209 .regfields = phy_gmii_sel_fields_am654,
215 .regfields = phy_gmii_sel_fields_am654,
224 .regfields = phy_gmii_sel_fields_am654,
308 fields = soc_data->regfields[port - 1]; in phy_gmii_init_phy()
/linux-6.3-rc2/drivers/net/dsa/xrs700x/
A 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.3-rc2/include/soc/mscc/
A Docelot.h799 struct regmap_field *regfields[REGFIELD_MAX]; member
915 regmap_field_write((ocelot)->regfields[(reg)], (val))
917 regmap_field_read((ocelot)->regfields[(reg)], (val))
919 regmap_fields_write((ocelot)->regfields[(reg)], (id), (val))
921 regmap_fields_read((ocelot)->regfields[(reg)], (id), (val))
968 const struct reg_field *const regfields);
/linux-6.3-rc2/drivers/net/dsa/ocelot/
A Dfelix.h27 const struct reg_field *regfields; member
A Docelot_ext.c54 .regfields = vsc7514_regfields,
A Dseville_vsc9953.c966 .regfields = vsc9953_regfields,
A Dfelix.c1416 err = ocelot_regfields_init(ocelot, felix->info->regfields); in felix_init_structs()
A Dfelix_vsc9959.c2585 .regfields = vsc9959_regfields,
/linux-6.3-rc2/drivers/staging/media/deprecated/atmel/
A Datmel-isc-base.c1968 const struct reg_field regfields[ISC_PIPE_LINE_NODE_NUM] = { in atmel_isc_pipeline_init() local
1987 regs = devm_regmap_field_alloc(dev, regmap, regfields[i]); in atmel_isc_pipeline_init()
/linux-6.3-rc2/drivers/media/platform/microchip/
A Dmicrochip-isc-base.c1921 const struct reg_field regfields[ISC_PIPE_LINE_NODE_NUM] = { in microchip_isc_pipeline_init() local
1940 regs = devm_regmap_field_alloc(dev, regmap, regfields[i]); in microchip_isc_pipeline_init()

Completed in 50 milliseconds