Lines Matching full:decimation
167 unsigned int *decimation; member
185 * @decimation: sampling rate supported for the channel.
201 unsigned int decimation; /* For Gen2 ADC_TM */ member
218 * @decimation: sampling rate supported for the channel.
235 unsigned int decimation; member
593 buf[2] |= FIELD_PREP(ADC_TM_GEN2_CTL_DEC_RATIO_MASK, channel->decimation); in adc_tm5_gen2_configure()
710 buf[0] = chip->decimation; in adc_tm_hc_init()
740 buf[0] = chip->decimation; in adc_tm5_init()
869 ret = of_property_read_u32(node, "qcom,decimation", &value); in adc_tm5_get_dt_channel_data()
871 ret = qcom_adc5_decimation_from_dt(value, adc_tm->data->decimation); in adc_tm5_get_dt_channel_data()
873 dev_err(dev, "invalid decimation %d\n", value); in adc_tm5_get_dt_channel_data()
876 channel->decimation = ret; in adc_tm5_get_dt_channel_data()
878 channel->decimation = ADC5_DECIMATION_DEFAULT; in adc_tm5_get_dt_channel_data()
899 .decimation = (unsigned int []) { 250, 420, 840 },
913 .decimation = (unsigned int []) { 256, 512, 1024 },
926 .decimation = (unsigned int []) { 85, 340, 1360 },
961 ret = of_property_read_u32(node, "qcom,decimation", &value); in adc_tm5_get_dt_data()
963 ret = qcom_adc5_decimation_from_dt(value, adc_tm->data->decimation); in adc_tm5_get_dt_data()
965 dev_err(dev, "invalid decimation %d\n", value); in adc_tm5_get_dt_data()
968 adc_tm->decimation = ret; in adc_tm5_get_dt_data()
970 adc_tm->decimation = ADC5_DECIMATION_DEFAULT; in adc_tm5_get_dt_data()