Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/net/ethernet/mscc/
Docelot_io.c63 const struct reg_field *const regfields) in ocelot_regfields_init() argument
70 u32 reg = regfields[i].reg; in ocelot_regfields_init()
75 target = regfields[i].reg >> TARGET_OFFSET; in ocelot_regfields_init()
78 regfield.lsb = regfields[i].lsb; in ocelot_regfields_init()
79 regfield.msb = regfields[i].msb; in ocelot_regfields_init()
81 ocelot->regfields[i] = in ocelot_regfields_init()
86 if (IS_ERR(ocelot->regfields[i])) in ocelot_regfields_init()
87 return PTR_ERR(ocelot->regfields[i]); in ocelot_regfields_init()
Docelot_board.c219 regmap_field_write(ocelot->regfields[SYS_RESET_CFG_MEM_INIT], 1); in mscc_ocelot_probe()
220 regmap_field_write(ocelot->regfields[SYS_RESET_CFG_MEM_ENA], 1); in mscc_ocelot_probe()
224 regmap_field_read(ocelot->regfields[SYS_RESET_CFG_MEM_INIT], in mscc_ocelot_probe()
228 regmap_field_write(ocelot->regfields[SYS_RESET_CFG_MEM_ENA], 1); in mscc_ocelot_probe()
229 regmap_field_write(ocelot->regfields[SYS_RESET_CFG_CORE_ENA], 1); in mscc_ocelot_probe()
Docelot.h477 struct regmap_field *regfields[REGFIELD_MAX]; member
555 const struct reg_field *const regfields);
560 #define ocelot_field_write(ocelot, reg, val) regmap_field_write((ocelot)->regfields[(reg)], (val))
561 #define ocelot_field_read(ocelot, reg, val) regmap_field_read((ocelot)->regfields[(reg)], (val))
Docelot.c1685 regmap_field_write(ocelot->regfields[ANA_ADVLEARN_VLAN_CHK], 1); in ocelot_init()
/Linux-v4.19/drivers/media/platform/atmel/
Datmel-isc.c2000 const struct reg_field regfields[ISC_PIPE_LINE_NODE_NUM] = { in isc_pipeline_init() local
2015 regs = devm_regmap_field_alloc(dev, regmap, regfields[i]); in isc_pipeline_init()