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

/linux-master/include/linux/iio/adc/
H A Dqcom-vadc-common.h35 /* Default decimation - 1024 for rev2, 840 for pmic5 */
131 unsigned int *decimation; member in struct:adc5_data
163 int qcom_adc5_decimation_from_dt(u32 value, const unsigned int *decimation);
/linux-master/drivers/thermal/qcom/
H A Dqcom-spmi-adc-tm5.c167 unsigned int *decimation; member in struct:adc_tm5_data
185 * @decimation: sampling rate supported for the channel.
201 unsigned int decimation; /* For Gen2 ADC_TM */ member in struct:adc_tm5_channel
218 * @decimation: sampling rate supported for the channel.
235 unsigned int decimation; member in struct:adc_tm5_chip
593 buf[2] |= FIELD_PREP(ADC_TM_GEN2_CTL_DEC_RATIO_MASK, channel->decimation);
710 buf[0] = chip->decimation;
740 buf[0] = chip->decimation;
872 ret = of_property_read_u32(node, "qcom,decimation", &value);
874 ret = qcom_adc5_decimation_from_dt(value, adc_tm->data->decimation);
[all...]
/linux-master/drivers/media/pci/zoran/
H A Dzr36016.c222 cap->decimation);
248 ptr->xdec = ((cap->decimation & 0xff) == 1) ? 0 : 1;
249 ptr->ydec = (((cap->decimation >> 8) & 0xff) == 1) ? 0 : 1;
H A Dvideocodec.h216 __u16 decimation; /* Decimation divider */ member in struct:vfe_settings
H A Dzr36060.c242 /* horizontal 422 decimation setup (maybe we support 411 or so later, too) */
492 cap->x, cap->y, cap->width, cap->height, cap->decimation);
498 ptr->width = cap->width / (cap->decimation & 0xff);
499 ptr->height = cap->height / (cap->decimation >> 8);
519 switch (cap->decimation & 0xff) {
533 switch (cap->decimation >> 8) {
618 * buz can't handle more at decimation=1... Use low_bitrate if
H A Dzoran.h144 int decimation; member in struct:zoran_jpg_settings
145 /* capture decimation settings (tmp_dcm=1 means both fields) */
H A Dzoran_card.c726 __func__, settings->decimation, settings->hor_dcm,
731 /* Check decimation, set default values for decimation = 1, 2, 4 */
732 switch (settings->decimation) {
836 pci_err(zr->pci_dev, "%s - error in params for decimation = 0\n", __func__);
841 pci_err(zr->pci_dev, "%s - decimation = %d, must be 0, 1, 2 or 4\n",
842 __func__, settings->decimation);
967 zr->jpg_settings.decimation = 1;
1200 seq_printf(seq, "JPG decimation %u\n", zr->jpg_settings.decimation);
[all...]
H A Dzr36050.c265 /* horizontal 422 decimation setup (maybe we support 411 or so later, too) */
553 cap->decimation, cap->quality);
558 ptr->width = cap->width / (cap->decimation & 0xff);
559 ptr->height = cap->height / ((cap->decimation >> 8) & 0xff);
H A Dzoran_driver.c348 settings.decimation = 0;
455 settings.decimation = 0;
H A Dzoran_device.c617 cap.decimation =
/linux-master/drivers/iio/adc/
H A Dqcom-spmi-adc5.c74 * Conversion time varies based on the decimation, clock rate, fast average
108 * @decimation: sampling rate supported for the channel.
123 unsigned int decimation; member in struct:adc5_channel_prop
231 /* Update decimation ratio select */
233 *data |= (prop->decimation << ADC5_USR_DIG_PARAM_DEC_RATIO_SEL_SHIFT);
677 ret = fwnode_property_read_u32(fwnode, "qcom,decimation", &value);
679 ret = qcom_adc5_decimation_from_dt(value, data->decimation);
681 dev_err(dev, "%02x invalid decimation %d\n",
685 prop->decimation = ret;
687 prop->decimation
[all...]
H A Dqcom-spmi-vadc.c79 * @decimation: sampling rate supported for the channel.
92 unsigned int decimation; member in struct:vadc_channel_prop
213 u8 decimation, mode_ctrl; local
229 decimation = prop->decimation << VADC_ADC_DIG_DEC_RATIO_SEL_SHIFT;
230 ret = vadc_write(vadc, VADC_ADC_DIG_PARAM, decimation);
690 ret = fwnode_property_read_u32(fwnode, "qcom,decimation", &value);
694 dev_err(dev, "%02x invalid decimation %d\n",
698 prop->decimation = ret;
700 prop->decimation
[all...]
H A Dqcom-pm8xxx-xoadc.c99 * On a later ADC the decimation factors are defined as
375 * @decimation: 0,1,2,3
383 u8 decimation:2; member in struct:pm8xxx_chan_info
509 ch->decimation << ADC_DIG_PARAM_DEC_SHIFT);
777 /* Everyone seems to use default ("type 2") decimation */
778 ch->decimation = VADC_DEF_DECIMATION;
792 /* Optional decimation, if omitted we use the default */
793 ret = fwnode_property_read_u32(fwnode, "qcom,decimation", &dec);
797 dev_err(dev, "%s invalid decimation %d\n",
801 ch->decimation
[all...]
H A Dqcom-vadc-common.c748 int qcom_adc5_decimation_from_dt(u32 value, const unsigned int *decimation) argument
753 if (value == decimation[i])
/linux-master/sound/pci/
H A Dbt87x.c77 #define CTL_DA_SDR_SHIFT 8 /* DDF first stage decimation rate */
467 int decimation; local
471 decimation = (ANALOG_CLOCK + runtime->rate / 4) / runtime->rate;
472 chip->reg_control |= decimation << CTL_DA_SDR_SHIFT;
/linux-master/drivers/media/usb/gspca/
H A Dcpia1.c309 u8 decimation; member in struct:cam_params::__anon94
685 params->compression.decimation = NO_DECIMATION;
940 sd->params.compression.decimation, 0, 0);
/linux-master/drivers/gpu/drm/bridge/synopsys/
H A Ddw-hdmi.c1161 int decimation = 0; local
1167 decimation = HDMI_CSC_CFG_DECMODE_CHROMA_INT_FORMULA3;
1188 hdmi_writeb(hdmi, interpolation | decimation, HDMI_CSC_CFG);

Completed in 306 milliseconds