/openbmc/linux/drivers/iio/pressure/ |
H A 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()
|
H A 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()
|
H A 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()
|
/openbmc/linux/sound/soc/codecs/ |
H A D | nau8540.c | 363 unsigned int osr; in nau8540_get_osr() local 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() 402 osr = nau8540_get_osr(nau8540); in nau8540_hw_params() 403 if (!osr || !osr->osr) in nau8540_hw_params() [all …]
|
H A D | nau8821.c | 99 unsigned int osr; member 812 unsigned int osr; in nau8821_get_osr() local 819 return &osr_dac_sel[osr]; in nau8821_get_osr() 822 osr &= NAU8821_ADC_SYNC_DOWN_MASK; in nau8821_get_osr() 825 return &osr_adc_sel[osr]; in nau8821_get_osr() 834 const struct nau8821_osr_attr *osr; in nau8821_dai_startup() local 837 if (!osr || !osr->osr) in nau8821_dai_startup() 842 0, CLK_DA_AD_MAX / osr->osr); in nau8821_dai_startup() 851 const struct nau8821_osr_attr *osr; in nau8821_hw_params() local 861 if (!osr || !osr->osr) in nau8821_hw_params() [all …]
|
H A D | nau8824.c | 1026 unsigned int osr; in nau8824_get_osr() local 1031 osr &= NAU8824_DAC_OVERSAMPLE_MASK; in nau8824_get_osr() 1034 return &osr_dac_sel[osr]; in nau8824_get_osr() 1038 osr &= NAU8824_ADC_SYNC_DOWN_MASK; 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 1053 if (!osr || !osr->osr) in nau8824_dai_startup() 1058 0, CLK_DA_AD_MAX / osr->osr); in nau8824_dai_startup() 1067 const struct nau8824_osr_attr *osr; in nau8824_hw_params() local 1080 if (!osr || !osr->osr) in nau8824_hw_params() [all …]
|
H A 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() 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() 1254 return &osr_adc_sel[osr]; in nau8825_get_osr() 1266 if (!osr || !osr->osr) in nau8825_dai_startup() 1271 0, CLK_DA_AD_MAX / osr->osr); in nau8825_dai_startup() 1293 if (!osr || !osr->osr) in nau8825_hw_params() [all …]
|
H A 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()
|
H A D | nau8540.h | 234 unsigned int osr; member
|
H A D | nau8824.h | 467 unsigned int osr; member
|
/openbmc/linux/drivers/iio/light/ |
H A D | as73211.c | 100 u8 osr; member 242 data->osr &= ~AS73211_OSR_DOS_MASK; in as73211_req_data() 245 smbus_data.byte = data->osr; in as73211_req_data() 258 data->osr &= ~AS73211_OSR_SS; in as73211_req_data() 536 data->osr &= ~AS73211_OSR_DOS_MASK; in as73211_write_raw() 537 data->osr |= AS73211_OSR_DOS_CONFIG; in as73211_write_raw() 643 data->osr &= ~AS73211_OSR_PD; in as73211_power() 645 data->osr |= AS73211_OSR_PD; in as73211_power() 691 data->osr = ret; in as73211_probe() 694 data->osr |= AS73211_OSR_SW_RES; in as73211_probe() [all …]
|
/openbmc/linux/crypto/ |
H A 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()
|
H A D | jitterentropy.h | 16 extern struct rand_data *jent_entropy_collector_alloc(unsigned int osr,
|
/openbmc/linux/arch/powerpc/sysdev/ |
H A 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()
|
/openbmc/u-boot/drivers/serial/ |
H A D | serial_lpuart.c | 235 u32 sbr, osr, baud_diff, tmp_osr, tmp_sbr, tmp_diff, tmp; in _lpuart32_serial_setbrg_7ulp() local 248 osr = 0; in _lpuart32_serial_setbrg_7ulp() 269 osr = tmp_osr; in _lpuart32_serial_setbrg_7ulp() 284 if ((osr > 3) && (osr < 8)) in _lpuart32_serial_setbrg_7ulp() 288 tmp |= LPUART_BAUD_OSR(osr-1); in _lpuart32_serial_setbrg_7ulp()
|
/openbmc/linux/sound/soc/atmel/ |
H A D | mchp-pdmc.c | 487 static u32 mchp_pdmc_mr_set_osr(int audio_filter_en, unsigned int osr) in mchp_pdmc_mr_set_osr() argument 490 switch (osr) { in mchp_pdmc_mr_set_osr() 499 switch (osr) { in mchp_pdmc_mr_set_osr() 551 unsigned int osr = 0, osr_start; in mchp_pdmc_hw_params() local 589 osr = osr_start; in mchp_pdmc_hw_params() 590 gclk_rate = fs * 16 * osr; in mchp_pdmc_hw_params() 610 mr_val |= mchp_pdmc_mr_set_osr(dd->audio_filter_en, osr); in mchp_pdmc_hw_params()
|
/openbmc/linux/drivers/input/touchscreen/ |
H A 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()
|
/openbmc/u-boot/arch/arm/mach-at91/include/mach/ |
H A D | at91_pio.h | 45 u32 osr; /* 0x18 Output Status Register */ member
|
/openbmc/linux/drivers/iio/accel/ |
H A 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()
|
/openbmc/linux/sound/soc/fsl/ |
H A D | fsl_micfil.c | 772 int osr = MICFIL_OSR_DEFAULT; in fsl_micfil_hw_params() local 791 ret = clk_set_rate(micfil->mclk, rate * clk_div * osr * 8); in fsl_micfil_hw_params() 802 FIELD_PREP(MICFIL_CTRL2_CICOSR, 16 - osr)); in fsl_micfil_hw_params() 807 FIELD_PREP(MICFIL_VAD0_CTRL1_CICOSR, 16 - osr)); in fsl_micfil_hw_params()
|
/openbmc/linux/drivers/iio/adc/ |
H A 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()
|
/openbmc/linux/drivers/tty/serial/ |
H A 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()
|
/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | qcom,lpass-cpu.yaml | 132 - const: mi2s-osr-clk
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | keystone-k2l-clocks.dtsi | 141 clock-output-names = "osr";
|
/openbmc/linux/arch/arm/boot/dts/ti/keystone/ |
H A D | keystone-k2l-clocks.dtsi | 138 clock-output-names = "osr";
|