Home
last modified time | relevance | path

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

12

/kernel/linux/linux-6.6/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
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()
872 ret = of_property_read_u32(node, "qcom,decimation", &value); in adc_tm5_get_dt_channel_data()
874 ret = qcom_adc5_decimation_from_dt(value, adc_tm->data->decimation); in adc_tm5_get_dt_channel_data()
[all...]
/kernel/linux/linux-5.10/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
221 const unsigned int *decimation) in adc5_decimation_from_dt()
226 if (value == decimation[i]) in adc5_decimation_from_dt()
291 /* Update decimation ratio select */ in adc5_update_dig_param()
293 *data |= (prop->decimation << ADC5_USR_DIG_PARAM_DEC_RATIO_SEL_SHIFT); in adc5_update_dig_param()
718 ret = of_property_read_u32(node, "qcom,decimation", &value); in adc5_get_dt_channel_data()
720 ret = adc5_decimation_from_dt(value, data->decimation); in adc5_get_dt_channel_data()
722 dev_err(dev, "%02x invalid decimation in adc5_get_dt_channel_data()
220 adc5_decimation_from_dt(u32 value, const unsigned int *decimation) adc5_decimation_from_dt() argument
[all...]
H A Dqcom-spmi-vadc.c79 * @decimation: sampling rate supported for the channel.
91 unsigned int decimation; member
211 u8 decimation, mode_ctrl; in vadc_configure() local
227 decimation = prop->decimation << VADC_ADC_DIG_DEC_RATIO_SEL_SHIFT; in vadc_configure()
228 ret = vadc_write(vadc, VADC_ADC_DIG_PARAM, decimation); in vadc_configure()
673 ret = of_property_read_u32(node, "qcom,decimation", &value); in vadc_get_dt_channel_data()
677 dev_err(dev, "%02x invalid decimation %d\n", in vadc_get_dt_channel_data()
681 prop->decimation = ret; in vadc_get_dt_channel_data()
683 prop->decimation in vadc_get_dt_channel_data()
[all...]
H A Dqcom-vadc-common.h32 /* Default decimation - 1024 for rev2, 840 for pmic5 */
154 unsigned int *decimation; member
H A Dqcom-pm8xxx-xoadc.c100 * On a later ADC the decimation factors are defined as
375 * @decimation: 0,1,2,3
383 u8 decimation:2; member
509 ch->decimation << ADC_DIG_PARAM_DEC_SHIFT); in pm8xxx_read_channel_rsv()
777 /* Everyone seems to use default ("type 2") decimation */ in pm8xxx_xoadc_parse_channel()
778 ch->decimation = VADC_DEF_DECIMATION; in pm8xxx_xoadc_parse_channel()
792 /* Optional decimation, if omitted we use the default */ in pm8xxx_xoadc_parse_channel()
793 ret = of_property_read_u32(np, "qcom,decimation", &dec); in pm8xxx_xoadc_parse_channel()
797 dev_err(dev, "%s invalid decimation %d\n", in pm8xxx_xoadc_parse_channel()
801 ch->decimation in pm8xxx_xoadc_parse_channel()
[all...]
/kernel/linux/linux-6.6/include/linux/iio/adc/
H A Dqcom-vadc-common.h35 /* Default decimation - 1024 for rev2, 840 for pmic5 */
131 unsigned int *decimation; member
163 int qcom_adc5_decimation_from_dt(u32 value, const unsigned int *decimation);
/kernel/linux/linux-6.6/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
231 /* Update decimation ratio select */ in adc5_update_dig_param()
233 *data |= (prop->decimation << ADC5_USR_DIG_PARAM_DEC_RATIO_SEL_SHIFT); in adc5_update_dig_param()
677 ret = fwnode_property_read_u32(fwnode, "qcom,decimation", &value); in adc5_get_fw_channel_data()
679 ret = qcom_adc5_decimation_from_dt(value, data->decimation); in adc5_get_fw_channel_data()
681 dev_err(dev, "%02x invalid decimation %d\n", in adc5_get_fw_channel_data()
685 prop->decimation = ret; in adc5_get_fw_channel_data()
687 prop->decimation in adc5_get_fw_channel_data()
[all...]
H A Dqcom-spmi-vadc.c79 * @decimation: sampling rate supported for the channel.
92 unsigned int decimation; member
213 u8 decimation, mode_ctrl; in vadc_configure() local
229 decimation = prop->decimation << VADC_ADC_DIG_DEC_RATIO_SEL_SHIFT; in vadc_configure()
230 ret = vadc_write(vadc, VADC_ADC_DIG_PARAM, decimation); in vadc_configure()
690 ret = fwnode_property_read_u32(fwnode, "qcom,decimation", &value); in vadc_get_fw_channel_data()
694 dev_err(dev, "%02x invalid decimation %d\n", in vadc_get_fw_channel_data()
698 prop->decimation = ret; in vadc_get_fw_channel_data()
700 prop->decimation in vadc_get_fw_channel_data()
[all...]
H A Dqcom-pm8xxx-xoadc.c99 * On a later ADC the decimation factors are defined as
376 * @decimation: 0,1,2,3
384 u8 decimation:2; member
510 ch->decimation << ADC_DIG_PARAM_DEC_SHIFT); in pm8xxx_read_channel_rsv()
778 /* Everyone seems to use default ("type 2") decimation */ in pm8xxx_xoadc_parse_channel()
779 ch->decimation = VADC_DEF_DECIMATION; in pm8xxx_xoadc_parse_channel()
793 /* Optional decimation, if omitted we use the default */ in pm8xxx_xoadc_parse_channel()
794 ret = fwnode_property_read_u32(fwnode, "qcom,decimation", &dec); in pm8xxx_xoadc_parse_channel()
798 dev_err(dev, "%s invalid decimation %d\n", in pm8xxx_xoadc_parse_channel()
802 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()
/kernel/linux/linux-5.10/drivers/staging/media/zoran/
H A Dzr36016.c249 cap->decimation); in zr36016_set_video()
269 ptr->xdec = ((cap->decimation & 0xff) == 1) ? 0 : 1; in zr36016_set_video()
270 ptr->ydec = (((cap->decimation >> 8) & 0xff) == 1) ? 0 : 1; in zr36016_set_video()
H A Dzr36060.c248 /* horizontal 422 decimation setup (maybe we support 411 or so later, too) */
488 cap->x, cap->y, cap->width, cap->height, cap->decimation); in zr36060_set_video()
494 ptr->width = cap->width / (cap->decimation & 0xff); in zr36060_set_video()
495 ptr->height = cap->height / (cap->decimation >> 8); in zr36060_set_video()
515 switch (cap->decimation & 0xff) { in zr36060_set_video()
529 switch (cap->decimation >> 8) { in zr36060_set_video()
616 * buz can't handle more at decimation=1... Use low_bitrate if in zr36060_set_video()
H A Dvideocodec.h215 __u16 decimation; /* Decimation divider */ member
H A Dzr36050.c292 /* horizontal 422 decimation setup (maybe we support 411 or so later, too) */
566 cap->decimation, cap->quality); in zr36050_set_video()
570 ptr->width = cap->width / (cap->decimation & 0xff); in zr36050_set_video()
571 ptr->height = cap->height / ((cap->decimation >> 8) & 0xff); in zr36050_set_video()
H A Dzoran.h154 int decimation; /* this bit is used to set everything to default */ member
155 int hor_dcm, ver_dcm, tmp_dcm; /* capture decimation settings (tmp_dcm=1 means both fields) */
H A Dzoran_card.c665 __func__, settings->decimation, settings->hor_dcm, in zoran_check_jpg_settings()
670 /* Check decimation, set default values for decimation = 1, 2, 4 */ in zoran_check_jpg_settings()
671 switch (settings->decimation) { in zoran_check_jpg_settings()
773 pci_err(zr->pci_dev, "%s - error in params for decimation = 0\n", __func__); in zoran_check_jpg_settings()
778 pci_err(zr->pci_dev, "%s - decimation = %d, must be 0, 1, 2 or 4\n", in zoran_check_jpg_settings()
779 __func__, settings->decimation); in zoran_check_jpg_settings()
862 zr->jpg_settings.decimation = 1; in zoran_open_init_params()
H A Dzoran_driver.c362 settings.decimation = 0; in zoran_try_fmt_vid_out()
466 settings.decimation = 0; in zoran_s_fmt_vid_out()
/kernel/linux/linux-6.6/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 Dvideocodec.h216 __u16 decimation; /* Decimation divider */ member
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); 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()
618 * buz can't handle more at decimation=1... Use low_bitrate if in zr36060_set_video()
H A Dzoran_card.c726 __func__, settings->decimation, settings->hor_dcm, in zoran_check_jpg_settings()
731 /* Check decimation, set default values for decimation = 1, 2, 4 */ in zoran_check_jpg_settings()
732 switch (settings->decimation) { in zoran_check_jpg_settings()
836 pci_err(zr->pci_dev, "%s - error in params for decimation = 0\n", __func__); in zoran_check_jpg_settings()
841 pci_err(zr->pci_dev, "%s - decimation = %d, must be 0, 1, 2 or 4\n", in zoran_check_jpg_settings()
842 __func__, settings->decimation); in zoran_check_jpg_settings()
967 zr->jpg_settings.decimation = 1; in zoran_open_init_params()
1200 seq_printf(seq, "JPG decimation %u\n", zr->jpg_settings.decimation); in zoran_debugfs_show()
[all...]
H A Dzr36050.c265 /* horizontal 422 decimation setup (maybe we support 411 or so later, too) */
553 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 Dzoran.h144 int decimation; member
145 /* capture decimation settings (tmp_dcm=1 means both fields) */
/kernel/linux/linux-5.10/sound/pci/
H A Dbt87x.c79 #define CTL_DA_SDR_SHIFT 8 /* DDF first stage decimation rate */
468 int decimation; in snd_bt87x_prepare() local
472 decimation = (ANALOG_CLOCK + runtime->rate / 4) / runtime->rate; in snd_bt87x_prepare()
473 chip->reg_control |= decimation << CTL_DA_SDR_SHIFT; in snd_bt87x_prepare()
/kernel/linux/linux-6.6/sound/pci/
H A Dbt87x.c77 #define CTL_DA_SDR_SHIFT 8 /* DDF first stage decimation rate */
467 int decimation; in snd_bt87x_prepare() local
471 decimation = (ANALOG_CLOCK + runtime->rate / 4) / runtime->rate; in snd_bt87x_prepare()
472 chip->reg_control |= decimation << CTL_DA_SDR_SHIFT; in snd_bt87x_prepare()

Completed in 35 milliseconds

12