Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/ethernet/mscc/
Docelot_io.c100 const struct reg_field *const regfields) in ocelot_regfields_init() argument
107 u32 reg = regfields[i].reg; in ocelot_regfields_init()
112 target = regfields[i].reg >> TARGET_OFFSET; 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()
120 ocelot->regfields[i] = in ocelot_regfields_init()
125 if (IS_ERR(ocelot->regfields[i])) in ocelot_regfields_init()
126 return PTR_ERR(ocelot->regfields[i]); in ocelot_regfields_init()
Docelot_vsc7514.c735 regmap_field_write(ocelot->regfields[SYS_RESET_CFG_MEM_INIT], 1); in ocelot_reset()
736 regmap_field_write(ocelot->regfields[SYS_RESET_CFG_MEM_ENA], 1); in ocelot_reset()
740 regmap_field_read(ocelot->regfields[SYS_RESET_CFG_MEM_INIT], in ocelot_reset()
747 regmap_field_write(ocelot->regfields[SYS_RESET_CFG_MEM_ENA], 1); in ocelot_reset()
748 regmap_field_write(ocelot->regfields[SYS_RESET_CFG_CORE_ENA], 1); in ocelot_reset()
Docelot.c1554 regmap_field_write(ocelot->regfields[ANA_ADVLEARN_VLAN_CHK], 1); in ocelot_init()
/kernel/linux/linux-5.10/drivers/phy/ti/
Dphy-gmii-sel.c44 const struct reg_field (*regfields)[PHY_GMII_SEL_LAST]; member
147 .regfields = phy_gmii_sel_fields_am33xx,
163 .regfields = phy_gmii_sel_fields_dra7,
170 .regfields = phy_gmii_sel_fields_am33xx,
188 .regfields = phy_gmii_sel_fields_am654,
261 fields = soc_data->regfields[port - 1]; in phy_gmii_init_phy()
/kernel/linux/linux-5.10/include/soc/mscc/
Docelot.h602 struct regmap_field *regfields[REGFIELD_MAX]; member
680 #define ocelot_field_write(ocelot, reg, val) regmap_field_write((ocelot)->regfields[(reg)], (val))
681 #define ocelot_field_read(ocelot, reg, val) regmap_field_read((ocelot)->regfields[(reg)], (val))
682 #define ocelot_fields_write(ocelot, id, reg, val) regmap_fields_write((ocelot)->regfields[(reg)], (…
683 #define ocelot_fields_read(ocelot, id, reg, val) regmap_fields_read((ocelot)->regfields[(reg)], (id…
718 const struct reg_field *const regfields);
/kernel/linux/linux-5.10/drivers/net/dsa/ocelot/
Dfelix.h15 const struct reg_field *regfields; member
Dfelix.c490 err = ocelot_regfields_init(ocelot, felix->info->regfields); in felix_init_structs()
Dseville_vsc9953.c1178 .regfields = vsc9953_regfields,
Dfelix_vsc9959.c1353 .regfields = vsc9959_regfields,
/kernel/linux/linux-5.10/drivers/media/platform/atmel/
Datmel-isc-base.c2342 const struct reg_field regfields[ISC_PIPE_LINE_NODE_NUM] = { in isc_pipeline_init() local
2357 regs = devm_regmap_field_alloc(dev, regmap, regfields[i]); in isc_pipeline_init()