Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/mscc/
Docelot_io.c117 const struct reg_field *const regfields) in ocelot_regfields_init() argument
124 u32 reg = regfields[i].reg; in ocelot_regfields_init()
129 target = regfields[i].reg >> TARGET_OFFSET; in ocelot_regfields_init()
132 regfield.lsb = regfields[i].lsb; in ocelot_regfields_init()
133 regfield.msb = regfields[i].msb; in ocelot_regfields_init()
134 regfield.id_size = regfields[i].id_size; in ocelot_regfields_init()
135 regfield.id_offset = regfields[i].id_offset; in ocelot_regfields_init()
137 ocelot->regfields[i] = in ocelot_regfields_init()
142 if (IS_ERR(ocelot->regfields[i])) in ocelot_regfields_init()
143 return PTR_ERR(ocelot->regfields[i]); in ocelot_regfields_init()
Docelot.c3121 err = regmap_field_read(ocelot->regfields[SYS_RESET_CFG_MEM_INIT], in ocelot_mem_init_status()
3132 err = regmap_field_write(ocelot->regfields[SYS_RESET_CFG_MEM_INIT], 1); in ocelot_reset()
3136 err = regmap_field_write(ocelot->regfields[SYS_RESET_CFG_MEM_ENA], 1); in ocelot_reset()
3148 err = regmap_field_write(ocelot->regfields[SYS_RESET_CFG_MEM_ENA], 1); in ocelot_reset()
3152 return regmap_field_write(ocelot->regfields[SYS_RESET_CFG_CORE_ENA], 1); in ocelot_reset()
3230 regmap_field_write(ocelot->regfields[ANA_ADVLEARN_VLAN_CHK], 1); in ocelot_init()
/linux-6.12.1/drivers/rtc/
Drtc-rx8111.c147 struct regmap_field *regfields[RX8111_REGF_MAX]; member
156 ret = regmap_field_read(data->regfields[RX8111_REGF_VLF], vlval); in rx8111_read_vl_flag()
189 ret = regmap_field_read(data->regfields[RX8111_REGF_STOP], &regval); in rx8111_read_time()
239 ret = regmap_field_write(data->regfields[RX8111_REGF_STOP], 1); in rx8111_set_time()
260 ret = regmap_field_write(data->regfields[RX8111_REGF_STOP], 0); in rx8111_set_time()
284 ret = regmap_field_read(data->regfields[RX8111_REGF_VLOW], in rx8111_ioctl()
325 data->regfields[i] = devm_regmap_field_alloc( in rx8111_probe()
327 if (IS_ERR(data->regfields[i])) { in rx8111_probe()
330 return PTR_ERR(data->regfields[i]); in rx8111_probe()
/linux-6.12.1/drivers/phy/ti/
Dphy-gmii-sel.c52 const struct reg_field (*regfields)[PHY_GMII_SEL_LAST]; member
185 .regfields = phy_gmii_sel_fields_am33xx,
201 .regfields = phy_gmii_sel_fields_dra7,
208 .regfields = phy_gmii_sel_fields_am33xx,
226 .regfields = phy_gmii_sel_fields_am654,
232 .regfields = phy_gmii_sel_fields_am654,
241 .regfields = phy_gmii_sel_fields_am654,
250 .regfields = phy_gmii_sel_fields_am654,
339 fields = soc_data->regfields[port - 1]; in phy_gmii_init_phy()
/linux-6.12.1/drivers/iio/proximity/
Dirsd200.c122 struct regmap_field *regfields[IRS_REGF_MAX]; member
410 ret = regmap_field_read(data->regfields[IRS_REGF_LP_FILTER], &regval); in irsd200_read_lp_filter()
435 ret = regmap_field_write(data->regfields[IRS_REGF_LP_FILTER], idx); in irsd200_write_lp_filter()
451 ret = regmap_field_read(data->regfields[IRS_REGF_HP_FILTER], &regval); in irsd200_read_hp_filter()
480 ret = regmap_field_write(data->regfields[IRS_REGF_HP_FILTER], idx); in irsd200_write_hp_filter()
638 data->regfields[IRS_REGF_INTR_COUNT_THR_OR], &val); in irsd200_read_event_config()
665 data->regfields[IRS_REGF_INTR_COUNT_THR_OR], !!state); in irsd200_write_event_config()
782 ret = regmap_field_write(data->regfields[IRS_REGF_INTR_DATA], state); in irsd200_set_trigger_state()
872 data->regfields[i] = devm_regmap_field_alloc( in irsd200_probe()
874 if (IS_ERR(data->regfields[i])) in irsd200_probe()
[all …]
/linux-6.12.1/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.12.1/drivers/net/dsa/ocelot/
Docelot_ext.c54 .regfields = vsc7514_regfields,
Dfelix.h29 const struct reg_field *regfields; member
Dseville_vsc9953.c955 .regfields = vsc9953_regfields,
Dfelix.c1536 err = ocelot_regfields_init(ocelot, felix->info->regfields); in felix_init_structs()
Dfelix_vsc9959.c2654 .regfields = vsc9959_regfields,
/linux-6.12.1/include/soc/mscc/
Docelot.h812 struct regmap_field *regfields[REGFIELD_MAX]; member
928 regmap_field_write((ocelot)->regfields[(reg)], (val))
930 regmap_field_read((ocelot)->regfields[(reg)], (val))
932 regmap_fields_write((ocelot)->regfields[(reg)], (id), (val))
934 regmap_fields_read((ocelot)->regfields[(reg)], (id), (val))
990 const struct reg_field *const regfields);
/linux-6.12.1/drivers/staging/media/deprecated/atmel/
Datmel-isc-base.c1967 const struct reg_field regfields[ISC_PIPE_LINE_NODE_NUM] = { in atmel_isc_pipeline_init() local
1986 regs = devm_regmap_field_alloc(dev, regmap, regfields[i]); in atmel_isc_pipeline_init()
/linux-6.12.1/drivers/media/platform/microchip/
Dmicrochip-isc-base.c1882 const struct reg_field regfields[ISC_PIPE_LINE_NODE_NUM] = { in microchip_isc_pipeline_init() local
1901 regs = devm_regmap_field_alloc(dev, regmap, regfields[i]); in microchip_isc_pipeline_init()