/linux-6.12.1/drivers/net/ethernet/mscc/ |
D | ocelot_io.c | 117 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()
|
D | ocelot.c | 3121 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/ |
D | rtc-rx8111.c | 147 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], ®val); 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/ |
D | phy-gmii-sel.c | 52 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/ |
D | irsd200.c | 122 struct regmap_field *regfields[IRS_REGF_MAX]; member 410 ret = regmap_field_read(data->regfields[IRS_REGF_LP_FILTER], ®val); 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], ®val); 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/ |
D | xrs700x.c | 189 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/ |
D | ocelot_ext.c | 54 .regfields = vsc7514_regfields,
|
D | felix.h | 29 const struct reg_field *regfields; member
|
D | seville_vsc9953.c | 955 .regfields = vsc9953_regfields,
|
D | felix.c | 1536 err = ocelot_regfields_init(ocelot, felix->info->regfields); in felix_init_structs()
|
D | felix_vsc9959.c | 2654 .regfields = vsc9959_regfields,
|
/linux-6.12.1/include/soc/mscc/ |
D | ocelot.h | 812 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/ |
D | atmel-isc-base.c | 1967 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/ |
D | microchip-isc-base.c | 1882 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()
|