Lines Matching refs:param
231 const struct meson_sar_adc_param *param; member
283 return clamp(tmp, 0, (1 << priv->data->param->resolution) - 1); in meson_sar_adc_calib_val()
335 fifo_val &= GENMASK(priv->data->param->resolution - 1, 0); in meson_sar_adc_read_raw_sample()
454 if (priv->data->param->has_bl30_integration) { in meson_sar_adc_lock()
482 if (priv->data->param->has_bl30_integration) in meson_sar_adc_unlock()
566 *val2 = priv->data->param->resolution; in meson_sar_adc_iio_info_read_raw()
645 if (priv->data->param->has_bl30_integration) { in meson_sar_adc_init()
725 ret = clk_set_rate(priv->adc_clk, priv->data->param->clock_rate); in meson_sar_adc_init()
738 const struct meson_sar_adc_param *param = priv->data->param; in meson_sar_adc_set_bandgap() local
741 if (param->bandgap_reg == MESON_SAR_ADC_REG11) in meson_sar_adc_set_bandgap()
746 regmap_update_bits(priv->regmap, param->bandgap_reg, enable_mask, in meson_sar_adc_set_bandgap()
858 nominal0 = (1 << priv->data->param->resolution) / 4; in meson_sar_adc_calib()
859 nominal1 = (1 << priv->data->param->resolution) * 3 / 4; in meson_sar_adc_calib()
922 .param = &meson_sar_adc_meson8_param,
927 .param = &meson_sar_adc_meson8_param,
932 .param = &meson_sar_adc_meson8_param,
937 .param = &meson_sar_adc_gxbb_param,
942 .param = &meson_sar_adc_gxl_param,
947 .param = &meson_sar_adc_gxl_param,
952 .param = &meson_sar_adc_gxl_param,
1027 priv->data->param->regmap_config); in meson_sar_adc_probe()