Home
last modified time | relevance | path

Searched refs:decimation (Results 1 – 17 of 17) sorted by relevance

/linux/arch/arm64/boot/dts/qcom/
H A Dpm660.dtsi112 qcom,decimation = <1024>;
119 qcom,decimation = <1024>;
126 qcom,decimation = <1024>;
134 qcom,decimation = <1024>;
143 qcom,decimation = <1024>;
152 qcom,decimation = <1024>;
161 qcom,decimation = <1024>;
170 qcom,decimation = <1024>;
179 qcom,decimation = <1024>;
187 qcom,decimation = <1024>;
[all …]
/linux/drivers/thermal/qcom/
H A Dqcom-spmi-adc-tm5.c167 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
590 buf[2] |= FIELD_PREP(ADC_TM_GEN2_CTL_DEC_RATIO_MASK, channel->decimation); in adc_tm5_gen2_configure()
707 buf[0] = chip->decimation; in adc_tm_hc_init()
737 buf[0] = chip->decimation; in adc_tm5_init()
866 ret = of_property_read_u32(node, "qcom,decimation", &value); in adc_tm5_get_dt_channel_data()
868 ret = qcom_adc5_decimation_from_dt(value, adc_tm->data->decimation); in adc_tm5_get_dt_channel_data()
[all...]
/linux/include/linux/iio/adc/
H A Dqcom-vadc-common.h132 unsigned int *decimation; member
164 int qcom_adc5_decimation_from_dt(u32 value, const unsigned int *decimation);
H A Dqcom-adc5-gen3-common.h148 * @decimation: sampling rate supported for the channel.
162 unsigned int decimation; member
/linux/drivers/iio/adc/
H A Dqcom-spmi-adc5.c73 * Conversion time varies based on the decimation, clock rate, fast average
107 * @decimation: sampling rate supported for the channel.
122 unsigned int decimation; member
230 /* Update decimation ratio select */ in adc5_update_dig_param()
232 *data |= (prop->decimation << ADC5_USR_DIG_PARAM_DEC_RATIO_SEL_SHIFT); in adc5_update_dig_param()
676 ret = fwnode_property_read_u32(fwnode, "qcom,decimation", &value); in adc5_get_fw_channel_data()
678 ret = qcom_adc5_decimation_from_dt(value, data->decimation); in adc5_get_fw_channel_data()
680 dev_err(dev, "%02x invalid decimation %d\n", in adc5_get_fw_channel_data()
684 prop->decimation = ret; in adc5_get_fw_channel_data()
686 prop->decimation in adc5_get_fw_channel_data()
[all...]
H A Dqcom-spmi-vadc.c78 * @decimation: sampling rate supported for the channel.
91 unsigned int decimation; member
212 u8 decimation, mode_ctrl; in vadc_configure() local
228 decimation = prop->decimation << VADC_ADC_DIG_DEC_RATIO_SEL_SHIFT; in vadc_configure()
229 ret = vadc_write(vadc, VADC_ADC_DIG_PARAM, decimation); in vadc_configure()
689 ret = fwnode_property_read_u32(fwnode, "qcom,decimation", &value); in vadc_get_fw_channel_data()
693 dev_err(dev, "%02x invalid decimation %d\n", in vadc_get_fw_channel_data()
697 prop->decimation = ret; in vadc_get_fw_channel_data()
699 prop->decimation in vadc_get_fw_channel_data()
[all...]
H A Dqcom-spmi-adc5-gen3.c113 /* Update calibration select and decimation ratio select */ in adc5_gen3_update_dig_param()
116 *data |= FIELD_PREP(ADC5_GEN3_DIG_PARAM_DEC_RATIO_SEL_MASK, prop->decimation); in adc5_gen3_update_dig_param()
475 value = data->decimation[ADC5_DECIMATION_DEFAULT]; in adc5_gen3_get_fw_channel_data()
476 fwnode_property_read_u32(fwnode, "qcom,decimation", &value); in adc5_gen3_get_fw_channel_data()
477 ret = qcom_adc5_decimation_from_dt(value, data->decimation); in adc5_gen3_get_fw_channel_data()
479 return dev_err_probe(dev, ret, "%#x invalid decimation %d\n", in adc5_gen3_get_fw_channel_data()
481 prop->common_props.decimation = ret; in adc5_gen3_get_fw_channel_data()
533 .decimation = (unsigned int [ADC5_DECIMATION_SAMPLES_MAX])
H A Dqcom-pm8xxx-xoadc.c98 * On a later ADC the decimation factors are defined as
374 * @decimation: 0,1,2,3
382 u8 decimation:2; member
508 ch->decimation << ADC_DIG_PARAM_DEC_SHIFT); in pm8xxx_read_channel_rsv()
781 /* Everyone seems to use default ("type 2") decimation */ in pm8xxx_xoadc_parse_channel()
782 ch->decimation = VADC_DEF_DECIMATION; in pm8xxx_xoadc_parse_channel()
796 /* Optional decimation, if omitted we use the default */ in pm8xxx_xoadc_parse_channel()
797 ret = fwnode_property_read_u32(fwnode, "qcom,decimation", &dec); in pm8xxx_xoadc_parse_channel()
801 dev_err(dev, "%s invalid decimation %d\n", in pm8xxx_xoadc_parse_channel()
805 ch->decimation in pm8xxx_xoadc_parse_channel()
[all...]
H A Dqcom-vadc-common.c748 int qcom_adc5_decimation_from_dt(u32 value, const unsigned int *decimation) in qcom_adc5_decimation_from_dt() argument
753 if (value == decimation[i]) in qcom_adc5_decimation_from_dt()
/linux/drivers/media/pci/zoran/
H A Dzr36016.c222 cap->decimation); in zr36016_set_video()
248 ptr->xdec = ((cap->decimation & 0xff) == 1) ? 0 : 1; in zr36016_set_video()
249 ptr->ydec = (((cap->decimation >> 8) & 0xff) == 1) ? 0 : 1; in zr36016_set_video()
H A Dzr36060.c492 cap->x, cap->y, cap->width, cap->height, cap->decimation); in zr36060_set_video()
498 ptr->width = cap->width / (cap->decimation & 0xff); in zr36060_set_video()
499 ptr->height = cap->height / (cap->decimation >> 8); in zr36060_set_video()
519 switch (cap->decimation & 0xff) { in zr36060_set_video()
533 switch (cap->decimation >> 8) { in zr36060_set_video()
H A Dzr36050.c553 cap->decimation, cap->quality); in zr36050_set_video()
558 ptr->width = cap->width / (cap->decimation & 0xff); in zr36050_set_video()
559 ptr->height = cap->height / ((cap->decimation >> 8) & 0xff); in zr36050_set_video()
H A Dvideocodec.h216 __u16 decimation; /* Decimation divider */ member
H A Dzoran_device.c617 cap.decimation = in zr36057_enable_jpg()
/linux/sound/soc/atmel/
H A DKconfig170 decimation filter and outputs 24-bit audio words.
/linux/drivers/media/usb/gspca/
H A Dcpia1.c309 u8 decimation; member
683 params->compression.decimation = NO_DECIMATION; in reset_camera_params()
938 sd->params.compression.decimation, 0, 0); in command_setcompression()
/linux/Documentation/userspace-api/media/v4l/
H A Ddiff-v4l.rst471 :c:type:`v4l2_crop`. The ``decimation`` field was dropped. In