Home
last modified time | relevance | path

Searched refs:osr (Results 1 – 25 of 25) sorted by relevance

/Linux-v6.6/drivers/iio/pressure/
Dms5611_i2c.c62 const struct ms5611_osr *osr = st->temp_osr; in ms5611_i2c_read_adc_temp_and_pressure() local
64 ret = i2c_smbus_write_byte(st->client, osr->cmd); in ms5611_i2c_read_adc_temp_and_pressure()
68 usleep_range(osr->conv_usec, osr->conv_usec + (osr->conv_usec / 10UL)); in ms5611_i2c_read_adc_temp_and_pressure()
73 osr = st->pressure_osr; in ms5611_i2c_read_adc_temp_and_pressure()
74 ret = i2c_smbus_write_byte(st->client, osr->cmd); in ms5611_i2c_read_adc_temp_and_pressure()
78 usleep_range(osr->conv_usec, osr->conv_usec + (osr->conv_usec / 10UL)); in ms5611_i2c_read_adc_temp_and_pressure()
Dms5611_spi.c57 const struct ms5611_osr *osr = st->temp_osr; in ms5611_spi_read_adc_temp_and_pressure() local
63 ret = spi_write_then_read(st->client, &osr->cmd, 1, NULL, 0); in ms5611_spi_read_adc_temp_and_pressure()
67 usleep_range(osr->conv_usec, osr->conv_usec + (osr->conv_usec / 10UL)); in ms5611_spi_read_adc_temp_and_pressure()
72 osr = st->pressure_osr; in ms5611_spi_read_adc_temp_and_pressure()
73 ret = spi_write_then_read(st->client, &osr->cmd, 1, NULL, 0); in ms5611_spi_read_adc_temp_and_pressure()
77 usleep_range(osr->conv_usec, osr->conv_usec + (osr->conv_usec / 10UL)); in ms5611_spi_read_adc_temp_and_pressure()
Dms5611_core.c292 const struct ms5611_osr *osr, in ms5611_find_osr() argument
298 if ((unsigned short)rate == osr[r].rate) in ms5611_find_osr()
302 return &osr[r]; in ms5611_find_osr()
310 const struct ms5611_osr *osr = NULL; in ms5611_write_raw() local
317 osr = ms5611_find_osr(val, ms5611_avail_temp_osr, in ms5611_write_raw()
320 osr = ms5611_find_osr(val, ms5611_avail_pressure_osr, in ms5611_write_raw()
322 if (!osr) in ms5611_write_raw()
332 st->temp_osr = osr; in ms5611_write_raw()
334 st->pressure_osr = osr; in ms5611_write_raw()
/Linux-v6.6/sound/soc/codecs/
Dnau8540.c363 unsigned int osr; in nau8540_get_osr() local
365 regmap_read(nau8540->regmap, NAU8540_REG_ADC_SAMPLE_RATE, &osr); in nau8540_get_osr()
366 osr &= NAU8540_ADC_OSR_MASK; in nau8540_get_osr()
367 if (osr >= ARRAY_SIZE(osr_adc_sel)) in nau8540_get_osr()
369 return &osr_adc_sel[osr]; in nau8540_get_osr()
377 const struct nau8540_osr_attr *osr; in nau8540_dai_startup() local
379 osr = nau8540_get_osr(nau8540); in nau8540_dai_startup()
380 if (!osr || !osr->osr) in nau8540_dai_startup()
385 0, CLK_ADC_MAX / osr->osr); in nau8540_dai_startup()
394 const struct nau8540_osr_attr *osr; in nau8540_hw_params() local
[all …]
Dnau8821.c99 unsigned int osr; member
812 unsigned int osr; in nau8821_get_osr() local
815 regmap_read(nau8821->regmap, NAU8821_R2C_DAC_CTRL1, &osr); in nau8821_get_osr()
816 osr &= NAU8821_DAC_OVERSAMPLE_MASK; in nau8821_get_osr()
817 if (osr >= ARRAY_SIZE(osr_dac_sel)) in nau8821_get_osr()
819 return &osr_dac_sel[osr]; in nau8821_get_osr()
821 regmap_read(nau8821->regmap, NAU8821_R2B_ADC_RATE, &osr); in nau8821_get_osr()
822 osr &= NAU8821_ADC_SYNC_DOWN_MASK; in nau8821_get_osr()
823 if (osr >= ARRAY_SIZE(osr_adc_sel)) in nau8821_get_osr()
825 return &osr_adc_sel[osr]; in nau8821_get_osr()
[all …]
Dnau8824.c1026 unsigned int osr; in nau8824_get_osr() local
1030 NAU8824_REG_DAC_FILTER_CTRL_1, &osr); in nau8824_get_osr()
1031 osr &= NAU8824_DAC_OVERSAMPLE_MASK; in nau8824_get_osr()
1032 if (osr >= ARRAY_SIZE(osr_dac_sel)) in nau8824_get_osr()
1034 return &osr_dac_sel[osr]; in nau8824_get_osr()
1037 NAU8824_REG_ADC_FILTER_CTRL, &osr); in nau8824_get_osr()
1038 osr &= NAU8824_ADC_SYNC_DOWN_MASK; in nau8824_get_osr()
1039 if (osr >= ARRAY_SIZE(osr_adc_sel)) in nau8824_get_osr()
1041 return &osr_adc_sel[osr]; in nau8824_get_osr()
1050 const struct nau8824_osr_attr *osr; in nau8824_dai_startup() local
[all …]
Dnau8825.c103 unsigned int osr; member
1239 unsigned int osr; in nau8825_get_osr() local
1243 NAU8825_REG_DAC_CTRL1, &osr); in nau8825_get_osr()
1244 osr &= NAU8825_DAC_OVERSAMPLE_MASK; in nau8825_get_osr()
1245 if (osr >= ARRAY_SIZE(osr_dac_sel)) in nau8825_get_osr()
1247 return &osr_dac_sel[osr]; in nau8825_get_osr()
1250 NAU8825_REG_ADC_RATE, &osr); in nau8825_get_osr()
1251 osr &= NAU8825_ADC_SYNC_DOWN_MASK; in nau8825_get_osr()
1252 if (osr >= ARRAY_SIZE(osr_adc_sel)) in nau8825_get_osr()
1254 return &osr_adc_sel[osr]; in nau8825_get_osr()
[all …]
Dwm8580.c542 int i, ratio, osr; in wm8580_paif_hw_params() local
583 osr = WM8580_DACOSR; in wm8580_paif_hw_params()
587 osr = 0; in wm8580_paif_hw_params()
592 snd_soc_component_update_bits(component, WM8580_PAIF3, WM8580_DACOSR, osr); in wm8580_paif_hw_params()
Dnau8540.h234 unsigned int osr; member
Dnau8824.h467 unsigned int osr; member
/Linux-v6.6/drivers/iio/light/
Das73211.c100 u8 osr; member
242 data->osr &= ~AS73211_OSR_DOS_MASK; in as73211_req_data()
243 data->osr |= AS73211_OSR_DOS_MEASURE | AS73211_OSR_SS; in as73211_req_data()
245 smbus_data.byte = data->osr; in as73211_req_data()
258 data->osr &= ~AS73211_OSR_SS; in as73211_req_data()
535 if ((data->osr & AS73211_OSR_DOS_MASK) != AS73211_OSR_DOS_CONFIG) { in as73211_write_raw()
536 data->osr &= ~AS73211_OSR_DOS_MASK; in as73211_write_raw()
537 data->osr |= AS73211_OSR_DOS_CONFIG; in as73211_write_raw()
539 ret = i2c_smbus_write_byte_data(data->client, AS73211_REG_OSR, data->osr); in as73211_write_raw()
643 data->osr &= ~AS73211_OSR_PD; in as73211_power()
[all …]
/Linux-v6.6/crypto/
Djitterentropy.c75 unsigned int osr; /* Oversample rate */ member
503 if (++k >= ((DATA_SIZE_BITS + safety_factor) * ec->osr)) in jent_gen_entropy()
581 struct rand_data *jent_entropy_collector_alloc(unsigned int osr, in jent_entropy_collector_alloc() argument
606 if (osr == 0) in jent_entropy_collector_alloc()
607 osr = 1; /* minimum sampling rate is 1 */ in jent_entropy_collector_alloc()
608 entropy_collector->osr = osr; in jent_entropy_collector_alloc()
637 ec.osr = 1; in jent_entropy_init()
Djitterentropy.h16 extern struct rand_data *jent_entropy_collector_alloc(unsigned int osr,
/Linux-v6.6/arch/powerpc/sysdev/
Dfsl_rmu.c107 u32 osr; member
207 int osr; in fsl_rio_tx_handler() local
211 osr = in_be32(&rmu->msg_regs->osr); in fsl_rio_tx_handler()
213 if (osr & RIO_MSG_OSR_TE) { in fsl_rio_tx_handler()
215 out_be32(&rmu->msg_regs->osr, RIO_MSG_OSR_TE); in fsl_rio_tx_handler()
219 if (osr & RIO_MSG_OSR_QOI) { in fsl_rio_tx_handler()
221 out_be32(&rmu->msg_regs->osr, RIO_MSG_OSR_QOI); in fsl_rio_tx_handler()
225 if (osr & RIO_MSG_OSR_EOMI) { in fsl_rio_tx_handler()
234 out_be32(&rmu->msg_regs->osr, RIO_MSG_OSR_EOMI); in fsl_rio_tx_handler()
773 out_be32(&rmu->msg_regs->osr, 0x000000b3); in fsl_open_outb_mbox()
/Linux-v6.6/sound/soc/atmel/
Dmchp-pdmc.c484 static u32 mchp_pdmc_mr_set_osr(int audio_filter_en, unsigned int osr) in mchp_pdmc_mr_set_osr() argument
487 switch (osr) { in mchp_pdmc_mr_set_osr()
496 switch (osr) { in mchp_pdmc_mr_set_osr()
548 unsigned int osr = 0, osr_start; in mchp_pdmc_hw_params() local
586 osr = osr_start; in mchp_pdmc_hw_params()
587 gclk_rate = fs * 16 * osr; in mchp_pdmc_hw_params()
607 mr_val |= mchp_pdmc_mr_set_osr(dd->audio_filter_en, osr); in mchp_pdmc_hw_params()
/Linux-v6.6/drivers/input/touchscreen/
Delants_i2c.c511 u16 phy_x, phy_y, rows, cols, osr; in elants_i2c_query_ts_info_ekth() local
547 osr = resp[3]; in elants_i2c_query_ts_info_ekth()
571 if (rows == 0 || cols == 0 || osr == 0) { in elants_i2c_query_ts_info_ekth()
574 rows, cols, osr); in elants_i2c_query_ts_info_ekth()
577 ts->x_max = ELAN_TS_RESOLUTION(rows, osr); in elants_i2c_query_ts_info_ekth()
579 ts->y_max = ELAN_TS_RESOLUTION(cols, osr); in elants_i2c_query_ts_info_ekth()
/Linux-v6.6/sound/soc/fsl/
Dfsl_micfil.c714 int osr = MICFIL_OSR_DEFAULT; in fsl_micfil_hw_params() local
733 ret = clk_set_rate(micfil->mclk, rate * clk_div * osr * 8); in fsl_micfil_hw_params()
744 FIELD_PREP(MICFIL_CTRL2_CICOSR, 16 - osr)); in fsl_micfil_hw_params()
749 FIELD_PREP(MICFIL_VAD0_CTRL1_CICOSR, 16 - osr)); in fsl_micfil_hw_params()
/Linux-v6.6/drivers/iio/accel/
Dbma400_core.c577 unsigned int osr; in bma400_get_accel_oversampling_ratio() local
594 osr = (val & BMA400_LP_OSR_MASK) >> BMA400_LP_OSR_SHIFT; in bma400_get_accel_oversampling_ratio()
596 data->oversampling_ratio = osr; in bma400_get_accel_oversampling_ratio()
605 osr = (val & BMA400_NP_OSR_MASK) >> BMA400_NP_OSR_SHIFT; in bma400_get_accel_oversampling_ratio()
607 data->oversampling_ratio = osr; in bma400_get_accel_oversampling_ratio()
/Linux-v6.6/drivers/iio/adc/
Dat91-sama5d2_adc.c846 unsigned int emr, osr; in at91_adc_config_emr() local
861 osr = AT91_SAMA5D2_EMR_OSR(AT91_SAMA5D2_EMR_OSR_1SAMPLES, in at91_adc_config_emr()
865 osr = AT91_SAMA5D2_EMR_OSR(AT91_SAMA5D2_EMR_OSR_4SAMPLES, in at91_adc_config_emr()
869 osr = AT91_SAMA5D2_EMR_OSR(AT91_SAMA5D2_EMR_OSR_16SAMPLES, in at91_adc_config_emr()
873 osr = AT91_SAMA5D2_EMR_OSR(AT91_SAMA5D2_EMR_OSR_64SAMPLES, in at91_adc_config_emr()
877 osr = AT91_SAMA5D2_EMR_OSR(AT91_SAMA5D2_EMR_OSR_256SAMPLES, in at91_adc_config_emr()
892 emr |= osr | AT91_SAMA5D2_TRACKX(trackx); in at91_adc_config_emr()
/Linux-v6.6/drivers/tty/serial/
Dicom.c127 u8 osr; /* 1F0 Output Signal Reg */ member
1206 local_osr = readb(&icom_port->dram->osr); in icom_set_mctrl()
1224 writeb(local_osr, &icom_port->dram->osr); in icom_set_mctrl()
1694 writeb(0x00, &icom_port->dram->osr); in icom_kref_release()
Dfsl_lpuart.c2134 u32 sbr, osr, baud_diff, tmp_osr, tmp_sbr, tmp_diff, tmp; in __lpuart32_serial_setbrg() local
2147 osr = 0; in __lpuart32_serial_setbrg()
2174 osr = tmp_osr; in __lpuart32_serial_setbrg()
2189 if ((osr > 3) && (osr < 8)) in __lpuart32_serial_setbrg()
2193 tmp |= ((osr-1) & UARTBAUD_OSR_MASK) << UARTBAUD_OSR_SHIFT; in __lpuart32_serial_setbrg()
/Linux-v6.6/arch/arm/boot/dts/ti/keystone/
Dkeystone-k2l-clocks.dtsi138 clock-output-names = "osr";
Dkeystone-k2l.dtsi284 osr: sram@70000000 { label
/Linux-v6.6/drivers/pinctrl/
Dpinctrl-at91.c1426 u32 osr; in at91_gpio_get_direction() local
1428 osr = readl_relaxed(pio + PIO_OSR); in at91_gpio_get_direction()
1429 if (osr & mask) in at91_gpio_get_direction()
/Linux-v6.6/arch/arm/boot/dts/qcom/
Dqcom-ipq8064.dtsi1251 "mi2s-osr-clk",