/Linux-v6.6/drivers/iio/pressure/ |
D | ms5611_i2c.c | 62 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()
|
D | ms5611_spi.c | 57 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()
|
D | ms5611_core.c | 292 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/ |
D | nau8540.c | 363 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 …]
|
D | nau8821.c | 99 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 …]
|
D | nau8824.c | 1026 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 …]
|
D | nau8825.c | 103 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 …]
|
D | wm8580.c | 542 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()
|
D | nau8540.h | 234 unsigned int osr; member
|
D | nau8824.h | 467 unsigned int osr; member
|
/Linux-v6.6/drivers/iio/light/ |
D | as73211.c | 100 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/ |
D | jitterentropy.c | 75 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()
|
D | jitterentropy.h | 16 extern struct rand_data *jent_entropy_collector_alloc(unsigned int osr,
|
/Linux-v6.6/arch/powerpc/sysdev/ |
D | fsl_rmu.c | 107 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/ |
D | mchp-pdmc.c | 484 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/ |
D | elants_i2c.c | 511 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/ |
D | fsl_micfil.c | 714 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/ |
D | bma400_core.c | 577 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/ |
D | at91-sama5d2_adc.c | 846 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/ |
D | icom.c | 127 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()
|
D | fsl_lpuart.c | 2134 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/ |
D | keystone-k2l-clocks.dtsi | 138 clock-output-names = "osr";
|
D | keystone-k2l.dtsi | 284 osr: sram@70000000 { label
|
/Linux-v6.6/drivers/pinctrl/ |
D | pinctrl-at91.c | 1426 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/ |
D | qcom-ipq8064.dtsi | 1251 "mi2s-osr-clk",
|