Home
last modified time | relevance | path

Searched refs:regmap_field_read (Results 1 – 25 of 44) sorted by relevance

12

/openbmc/linux/drivers/power/supply/
H A Dbd99954-charger.c186 ret = regmap_field_read(bd->rmap_fields[F_BATTEMP], &tmp); in bd9995x_get_prop_batt_health()
213 ret = regmap_field_read(bd->rmap_fields[F_CHGSTM_STATE], &tmp); in bd9995x_get_prop_charge_type()
236 ret = regmap_field_read(bd->rmap_fields[F_BATTEMP], &tmp); in bd9995x_get_prop_batt_present()
247 ret = regmap_field_read(bd->rmap_fields[F_VBAT_VAL], &tmp); in bd9995x_get_prop_batt_voltage()
260 ret = regmap_field_read(bd->rmap_fields[F_IBATP_VAL], &tmp); in bd9995x_get_prop_batt_current()
273 ret = regmap_field_read(bd->rmap_fields[F_THERM_VAL], &tmp); in bd9995x_get_prop_batt_temp()
340 ret = regmap_field_read(bd->rmap_fields[F_IBATP_VAL], &tmp); in bd9995x_power_supply_get_property()
347 ret = regmap_field_read(bd->rmap_fields[F_IBATP_AVE_VAL], &tmp); in bd9995x_power_supply_get_property()
366 ret = regmap_field_read(bd->rmap_fields[F_SEL_ILIM_VAL], &tmp); in bd9995x_power_supply_get_property()
378 ret = regmap_field_read(bd->rmap_fields[F_VFASTCHG_REG_SET1], in bd9995x_power_supply_get_property()
[all …]
H A Dmax77976_charger.c129 err = regmap_field_read(chg->rfield[CHG_DTLS], &regval); in max77976_get_status()
167 err = regmap_field_read(chg->rfield[CHG_DTLS], &regval); in max77976_get_charge_type()
205 err = regmap_field_read(chg->rfield[BAT_DTLS], &regval); in max77976_get_health()
239 err = regmap_field_read(chg->rfield[CHGIN_OK], &regval); in max77976_get_online()
255 err = regmap_field_read(chg->rfield[fidx], &regval); in max77976_get_integer()
405 err = regmap_field_read(chg->rfield[VERSION], &ver); in max77976_detect()
407 err = regmap_field_read(chg->rfield[REVISION], &rev); in max77976_detect()
H A Drt9471.c225 ret = regmap_field_read(chip->rm_fields[field], &sel); in rt9471_get_value_by_field_range()
257 ret = regmap_field_read(chip->rm_fields[F_TE], &chg_term_enable); in rt9471_get_ieoc()
274 ret = regmap_field_read(chip->rm_fields[F_IC_STAT], &ic_stat); in rt9471_get_status()
306 ret = regmap_field_read(chip->rm_fields[F_ST_VBUS_GD], &vbus_gd); in rt9471_get_vbus_good()
468 ret = regmap_field_read(chip->rm_fields[F_ST_VBUS_GD], &vbus_gd); in rt9471_detach_handler()
493 ret = regmap_field_read(chip->rm_fields[F_PORT_STAT], &port_stat); in rt9471_bc12_done_handler()
656 ret = regmap_field_read(chip->rm_fields[F_BATFET_DIS], &sysoff_enable); in sysoff_enable_show()
689 ret = regmap_field_read(chip->rm_fields[F_BC12_EN], &bc12_enable); in port_detect_enable_show()
813 ret = regmap_field_read(chip->rm_fields[F_DEVICE_ID], &dev_id); in rt9471_check_devinfo()
H A Drt9455_charger.c279 ret = regmap_field_read(info->regmap_fields[field], &v); in rt9455_get_field_val()
315 ret = regmap_field_read(info->regmap_fields[F_RST], &v); in rt9455_register_reset()
359 ret = regmap_field_read(info->regmap_fields[F_PWR_RDY], in rt9455_charger_get_status()
375 ret = regmap_field_read(info->regmap_fields[F_STAT], &v); in rt9455_charger_get_status()
471 ret = regmap_field_read(info->regmap_fields[F_STAT], &v); in rt9455_charger_get_health()
491 ret = regmap_field_read(info->regmap_fields[F_BATAB], &v); in rt9455_charger_get_battery_presence()
512 ret = regmap_field_read(info->regmap_fields[F_PWR_RDY], &v); in rt9455_charger_get_online()
1133 ret = regmap_field_read(info->regmap_fields[F_STAT], &status); in rt9455_irq_handler_thread()
1413 ret = regmap_field_read(info->regmap_fields[F_OPA_MODE], in rt9455_usb_event()
1420 ret = regmap_field_read(info->regmap_fields[F_IAICR], in rt9455_usb_event()
[all …]
H A Drt9467-charger.c359 ret = regmap_field_read(data->rm_field[field], &sel); in rt9467_get_value_from_ranges()
517 ret = regmap_field_read(data->rm_field[F_CHG_STAT], &status); in rt9467_psy_get_status()
665 return regmap_field_read(data->rm_field[F_PWR_RDY], &val->intval); in rt9467_psy_get_property()
798 ret = regmap_field_read(data->rm_field[F_SHIP_MODE], &sysoff_enable); in sysoff_enable_show()
855 ret = regmap_field_read(data->rm_field[F_CHG_MIVR], &mivr_act); in rt9467_mivr_handler()
926 ret = regmap_field_read(data->rm_field[F_USB_STATUS], &usb_stat); in rt9467_report_usb_state()
927 ret |= regmap_field_read(data->rm_field[F_PWR_RDY], &power_ready); in rt9467_report_usb_state()
1126 ret = regmap_field_read(data->rm_field[F_VENDOR], &vid); in rt9467_check_vendor_info()
H A Daxp20x_usb_power.c164 ret = regmap_field_read(power->curr_lim_fld, &v); in axp20x_usb_power_get_property()
211 ret = regmap_field_read(power->vbus_valid_bit, &v); in axp20x_usb_power_get_property()
/openbmc/linux/drivers/thermal/qcom/
H A Dtsens.c338 ret = regmap_field_read(priv->rf[field], &temp); in tsens_hw_to_mC()
469 ret = regmap_field_read(priv->rf[UPPER_STATUS_0 + hw_id], &d->up_viol); in tsens_threshold_violated()
472 ret = regmap_field_read(priv->rf[LOWER_STATUS_0 + hw_id], &d->low_viol); in tsens_threshold_violated()
477 ret = regmap_field_read(priv->rf[CRITICAL_STATUS_0 + hw_id], in tsens_threshold_violated()
495 ret = regmap_field_read(priv->rf[UP_INT_CLEAR_0 + hw_id], &d->up_irq_clear); in tsens_read_irq_state()
498 ret = regmap_field_read(priv->rf[LOW_INT_CLEAR_0 + hw_id], &d->low_irq_clear); in tsens_read_irq_state()
502 ret = regmap_field_read(priv->rf[UP_INT_MASK_0 + hw_id], &d->up_irq_mask); in tsens_read_irq_state()
505 ret = regmap_field_read(priv->rf[LOW_INT_MASK_0 + hw_id], &d->low_irq_mask); in tsens_read_irq_state()
508 ret = regmap_field_read(priv->rf[CRIT_INT_CLEAR_0 + hw_id], in tsens_read_irq_state()
512 ret = regmap_field_read(priv->rf[CRIT_INT_MASK_0 + hw_id], in tsens_read_irq_state()
[all …]
/openbmc/linux/drivers/clk/mstar/
H A Dclk-msc313-mpll.c51 regmap_field_read(mpll->input_div, &input_div); in msc313_mpll_recalc_rate()
52 regmap_field_read(mpll->output_div, &output_div); in msc313_mpll_recalc_rate()
53 regmap_field_read(mpll->loop_div_first, &loop_first); in msc313_mpll_recalc_rate()
54 regmap_field_read(mpll->loop_div_second, &loop_second); in msc313_mpll_recalc_rate()
/openbmc/linux/drivers/iio/gyro/
H A Dfxas21002c_core.c240 ret = regmap_field_read(data->regmap_fields[F_FS_DOUBLE], &fs_double); in fxas21002c_range_fs_from_value()
286 ret = regmap_field_read(data->regmap_fields[F_ACTIVE], &active); in fxas21002c_mode_get()
292 ret = regmap_field_read(data->regmap_fields[F_READY], &ready); in fxas21002c_mode_get()
392 ret = regmap_field_read(data->regmap_fields[F_TEMP], &temp); in fxas21002c_temp_get()
453 ret = regmap_field_read(data->regmap_fields[F_DR], &odr_bits); in fxas21002c_odr_get()
484 ret = regmap_field_read(data->regmap_fields[F_BW], &bw_bits); in fxas21002c_lpf_get()
528 ret = regmap_field_read(data->regmap_fields[F_SEL], &sel_bits); in fxas21002c_hpf_get()
560 ret = regmap_field_read(data->regmap_fields[F_FS], &fs_bits); in fxas21002c_scale_get()
762 ret = regmap_field_read(data->regmap_fields[F_WHO_AM_I], &chip_id); in fxas21002c_chip_init()
816 ret = regmap_field_read(data->regmap_fields[F_SRC_DRDY], &data_ready); in fxas21002c_data_rdy_thread()
/openbmc/linux/drivers/pinctrl/
H A Dpinctrl-st.c397 regmap_field_read(output_enable, &oe_value); in st_pinconf_set_config()
405 regmap_field_read(pull_up, &pu_value); in st_pinconf_set_config()
413 regmap_field_read(open_drain, &od_value); in st_pinconf_set_config()
432 regmap_field_read(alt, &val); in st_pctl_set_function()
447 regmap_field_read(alt, &val); in st_pctl_get_pin_function()
512 regmap_field_read(field, &val); in st_regmap_field_bit_set_clear_pin()
583 regmap_field_read(pc->oe, &oe_value); in st_pinconf_get_direction()
589 regmap_field_read(pc->pu, &pu_value); in st_pinconf_get_direction()
595 regmap_field_read(pc->od, &od_value); in st_pinconf_get_direction()
609 if (!regmap_field_read(rt_p->retime, &val) && (val & BIT(pin))) in st_pinconf_get_retime_packed()
[all …]
/openbmc/linux/drivers/iio/light/
H A Dstk3310.c262 ret = regmap_field_read(data->reg_ps_gain, &index); in stk3310_write_event()
293 ret = regmap_field_read(data->reg_int_ps, &event_val); in stk3310_read_event_config()
356 ret = regmap_field_read(data->reg_als_it, &index); in stk3310_read_raw()
358 ret = regmap_field_read(data->reg_ps_it, &index); in stk3310_read_raw()
367 ret = regmap_field_read(data->reg_als_gain, &index); in stk3310_read_raw()
369 ret = regmap_field_read(data->reg_ps_gain, &index); in stk3310_read_raw()
568 ret = regmap_field_read(data->reg_flag_nf, &dir); in stk3310_irq_event_handler()
H A Dltr501.c206 ret = regmap_field_read(data->reg_als_rate, &i); in ltr501_als_read_samp_freq()
224 ret = regmap_field_read(data->reg_ps_rate, &i); in ltr501_ps_read_samp_freq()
279 ret = regmap_field_read(data->reg_als_rate, &i); in ltr501_als_read_samp_period()
295 ret = regmap_field_read(data->reg_ps_rate, &i); in ltr501_ps_read_samp_period()
387 ret = regmap_field_read(data->reg_it, &index); in ltr501_read_it_time()
438 ret = regmap_field_read(data->reg_als_prst, &prst); in ltr501_read_intr_prst()
449 ret = regmap_field_read(data->reg_ps_prst, &prst); in ltr501_read_intr_prst()
1061 ret = regmap_field_read(data->reg_als_intr, &status); in ltr501_read_event_config()
1066 ret = regmap_field_read(data->reg_ps_intr, &status); in ltr501_read_event_config()
/openbmc/linux/drivers/thermal/st/
H A Dst_thermal.c88 ret = regmap_field_read(sensor->dcorrect, &val); in st_thermal_calibration()
116 ret = regmap_field_read(sensor->overflow, &overflow); in st_thermal_get_temp()
122 ret = regmap_field_read(sensor->temp_data, &temp); in st_thermal_get_temp()
/openbmc/linux/drivers/reset/sti/
H A Dreset-syscfg.c115 err = regmap_field_read(ch->ack, &ret_val); in syscfg_reset_status()
117 err = regmap_field_read(ch->reset, &ret_val); in syscfg_reset_status()
/openbmc/linux/drivers/hwspinlock/
H A Dqcom_hwspinlock.c38 ret = regmap_field_read(field, &lock_owner); in qcom_hwspinlock_trylock()
51 ret = regmap_field_read(field, &lock_owner); in qcom_hwspinlock_unlock()
/openbmc/linux/drivers/leds/rgb/
H A Dleds-mt6370-rgb.c271 return regmap_field_read(priv->fields[sel_field], level); in mt6370_get_led_brightness()
434 ret = regmap_field_read(priv->fields[F_RGB_EN], &enable); in mt6370_mc_brightness_set()
497 ret = regmap_field_read(priv->fields[F_RGB_EN], &enable); in mt6370_mc_blink_set()
551 ret = regmap_field_read(priv->fields[F_RGB_EN], &enable); in mt6370_mc_pattern_set()
618 ret = regmap_field_read(priv->fields[F_RGB_EN], &enable); in mt6370_isnk_brightness_set()
816 ret = regmap_field_read(priv->fields[F_RGB_EN], &enable); in mt6370_isnk_init_default_state()
/openbmc/linux/drivers/usb/isp1760/
H A Disp1760-core.h63 regmap_field_read(fields[field], &val); in isp1760_field_read()
/openbmc/linux/drivers/iio/accel/
H A Dmsa311.c413 err = regmap_field_read(msa311->fields[F_ODR], odr); in msa311_get_odr()
456 err = regmap_field_read(msa311->fields[F_PWR_MODE], &pwr_mode); in msa311_set_odr()
541 err = regmap_field_read(msa311->fields[F_PWR_MODE], &prev_mode); in msa311_set_pwr_mode()
637 err = regmap_field_read(msa311->fields[F_FS], &fs); in msa311_read_scale()
943 err = regmap_field_read(msa311->fields[F_NEW_DATA_INT_EN], in msa311_irq_thread()
/openbmc/linux/drivers/iio/health/
H A Dafe4404.c178 ret = regmap_field_read(afe->fields[afe440x_attr->field], &reg_val); in afe440x_show_register()
267 ret = regmap_field_read(afe->fields[offdac_field], val); in afe4404_read_raw()
277 ret = regmap_field_read(afe->fields[led_field], val); in afe4404_read_raw()
H A Dafe4403.c147 ret = regmap_field_read(afe->fields[afe440x_attr->field], &reg_val); in afe440x_show_register()
266 ret = regmap_field_read(afe->fields[field], val); in afe4403_read_raw()
/openbmc/linux/drivers/gpu/drm/sun4i/
H A Dsun4i_hdmi_ddc_clk.c78 regmap_field_read(ddc->reg, &reg); in sun4i_ddc_recalc_rate()
/openbmc/linux/drivers/iio/proximity/
H A Dirsd200.c411 ret = regmap_field_read(data->regfields[IRS_REGF_LP_FILTER], &regval); in irsd200_read_lp_filter()
452 ret = regmap_field_read(data->regfields[IRS_REGF_HP_FILTER], &regval); in irsd200_read_hp_filter()
638 ret = regmap_field_read( in irsd200_read_event_config()
/openbmc/linux/drivers/leds/flash/
H A Dleds-qcom-flash.c348 rc = regmap_field_read(flash_data->r_fields[REG_STATUS1], &val); in qcom_flash_fault_get()
362 rc = regmap_field_read(flash_data->r_fields[REG_STATUS2], &val); in qcom_flash_fault_get()
394 rc = regmap_field_read(flash_data->r_fields[REG_STATUS3], &val); in qcom_flash_fault_get()
/openbmc/linux/drivers/cpufreq/
H A Dsti-cpufreq.c126 ret = regmap_field_read(regmap_field, &value); in sti_cpufreq_fetch_regmap_field()
/openbmc/linux/drivers/regulator/
H A Dda9063-regulator.c262 ret = regmap_field_read(regl->mode, &val); in da9063_buck_get_mode()
279 ret = regmap_field_read(regl->sleep, &val); in da9063_buck_get_mode()
318 ret = regmap_field_read(regl->sleep, &val); in da9063_ldo_get_mode()

12