Lines Matching refs:prop

221 			struct adc5_channel_prop *prop, u8 *data)  in adc5_update_dig_param()  argument
225 *data |= (prop->cal_val << ADC5_USR_DIG_PARAM_CAL_VAL_SHIFT); in adc5_update_dig_param()
229 *data |= (prop->cal_method << ADC5_USR_DIG_PARAM_CAL_SEL_SHIFT); in adc5_update_dig_param()
233 *data |= (prop->decimation << ADC5_USR_DIG_PARAM_DEC_RATIO_SEL_SHIFT); in adc5_update_dig_param()
237 struct adc5_channel_prop *prop) in adc5_configure() argument
248 adc5_update_dig_param(adc, prop, &buf[0]); in adc5_configure()
252 buf[1] |= prop->avg_samples; in adc5_configure()
255 buf[2] = prop->channel; in adc5_configure()
259 buf[3] |= prop->hw_settle_time; in adc5_configure()
274 struct adc5_channel_prop *prop) in adc7_configure() argument
279 ret = adc5_masked_write(adc, ADC_APP_SID, ADC_APP_SID_MASK, prop->sid); in adc7_configure()
288 adc5_update_dig_param(adc, prop, &buf[0]); in adc7_configure()
292 buf[1] |= prop->avg_samples; in adc7_configure()
295 buf[2] = prop->channel; in adc7_configure()
299 buf[3] |= prop->hw_settle_time; in adc7_configure()
315 struct adc5_channel_prop *prop, in adc5_do_conversion() argument
323 ret = adc5_configure(adc, prop); in adc5_do_conversion()
356 struct adc5_channel_prop *prop, in adc7_do_conversion() argument
365 ret = adc7_configure(adc, prop); in adc7_do_conversion()
393 struct adc5_channel_prop *prop,
440 struct adc5_channel_prop *prop; in adc_read_raw_common() local
444 prop = &adc->chan_props[chan->address]; in adc_read_raw_common()
448 ret = do_conv(adc, prop, chan, in adc_read_raw_common()
453 ret = qcom_adc5_hw_scale(prop->scale_fn_type, in adc_read_raw_common()
454 prop->prescale, in adc_read_raw_common()
629 struct adc5_channel_prop *prop, in adc5_get_fw_channel_data() argument
668 prop->channel = chan; in adc5_get_fw_channel_data()
669 prop->sid = sid; in adc5_get_fw_channel_data()
675 prop->channel_name = channel_name; in adc5_get_fw_channel_data()
685 prop->decimation = ret; in adc5_get_fw_channel_data()
687 prop->decimation = ADC5_DECIMATION_DEFAULT; in adc5_get_fw_channel_data()
698 prop->prescale = ret; in adc5_get_fw_channel_data()
700 prop->prescale = in adc5_get_fw_channel_data()
701 adc->data->adc_chans[prop->channel].prescale_index; in adc5_get_fw_channel_data()
730 prop->hw_settle_time = ret; in adc5_get_fw_channel_data()
732 prop->hw_settle_time = VADC_DEF_HW_SETTLE_TIME; in adc5_get_fw_channel_data()
743 prop->avg_samples = ret; in adc5_get_fw_channel_data()
745 prop->avg_samples = VADC_DEF_AVG_SAMPLES; in adc5_get_fw_channel_data()
749 prop->cal_method = ADC5_RATIOMETRIC_CAL; in adc5_get_fw_channel_data()
751 prop->cal_method = ADC5_ABSOLUTE_CAL; in adc5_get_fw_channel_data()
757 prop->cal_val = ADC5_TIMER_CAL; in adc5_get_fw_channel_data()
827 struct adc5_channel_prop prop, *chan_props; in adc5_get_fw_data() local
853 ret = adc5_get_fw_channel_data(adc, &prop, child, adc->data); in adc5_get_fw_data()
859 prop.scale_fn_type = in adc5_get_fw_data()
860 adc->data->adc_chans[prop.channel].scale_fn_type; in adc5_get_fw_data()
861 *chan_props = prop; in adc5_get_fw_data()
862 adc_chan = &adc->data->adc_chans[prop.channel]; in adc5_get_fw_data()
864 iio_chan->channel = prop.channel; in adc5_get_fw_data()
866 iio_chan->extend_name = prop.channel_name; in adc5_get_fw_data()