/linux/drivers/iio/pressure/ |
A D | ms5611_i2c.c | 65 const struct ms5611_osr *osr = st->temp_osr; in ms5611_i2c_read_adc_temp_and_pressure() local 67 ret = i2c_smbus_write_byte(st->client, osr->cmd); in ms5611_i2c_read_adc_temp_and_pressure() 71 usleep_range(osr->conv_usec, osr->conv_usec + (osr->conv_usec / 10UL)); in ms5611_i2c_read_adc_temp_and_pressure() 76 osr = st->pressure_osr; in ms5611_i2c_read_adc_temp_and_pressure() 77 ret = i2c_smbus_write_byte(st->client, osr->cmd); in ms5611_i2c_read_adc_temp_and_pressure() 81 usleep_range(osr->conv_usec, osr->conv_usec + (osr->conv_usec / 10UL)); in ms5611_i2c_read_adc_temp_and_pressure()
|
A D | ms5611_spi.c | 60 const struct ms5611_osr *osr = st->temp_osr; in ms5611_spi_read_adc_temp_and_pressure() local 66 ret = spi_write_then_read(st->client, &osr->cmd, 1, NULL, 0); in ms5611_spi_read_adc_temp_and_pressure() 70 usleep_range(osr->conv_usec, osr->conv_usec + (osr->conv_usec / 10UL)); in ms5611_spi_read_adc_temp_and_pressure() 75 osr = st->pressure_osr; in ms5611_spi_read_adc_temp_and_pressure() 76 ret = spi_write_then_read(st->client, &osr->cmd, 1, NULL, 0); in ms5611_spi_read_adc_temp_and_pressure() 80 usleep_range(osr->conv_usec, osr->conv_usec + (osr->conv_usec / 10UL)); in ms5611_spi_read_adc_temp_and_pressure()
|
A D | ms5611_core.c | 294 const struct ms5611_osr *osr, in ms5611_find_osr() argument 300 if ((unsigned short)rate == osr[r].rate) in ms5611_find_osr() 304 return &osr[r]; in ms5611_find_osr() 312 const struct ms5611_osr *osr = NULL; in ms5611_write_raw() local 319 osr = ms5611_find_osr(val, ms5611_avail_temp_osr, in ms5611_write_raw() 322 osr = ms5611_find_osr(val, ms5611_avail_pressure_osr, in ms5611_write_raw() 324 if (!osr) in ms5611_write_raw() 334 st->temp_osr = osr; in ms5611_write_raw() 336 st->pressure_osr = osr; in ms5611_write_raw()
|
/linux/drivers/iio/light/ |
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 …]
|
/linux/crypto/ |
A D | jitterentropy.c | 74 unsigned int osr; /* Oversample rate */ member 217 if ((unsigned int)ec->rct_count >= (31 * ec->osr)) { in jent_rct_insert() 564 if (++k >= (DATA_SIZE_BITS * ec->osr)) in jent_gen_entropy() 657 struct rand_data *jent_entropy_collector_alloc(unsigned int osr, in jent_entropy_collector_alloc() argument 681 if (osr == 0) in jent_entropy_collector_alloc() 682 osr = 1; /* minimum sampling rate is 1 */ in jent_entropy_collector_alloc() 683 entropy_collector->osr = osr; in jent_entropy_collector_alloc() 710 ec.osr = 1; in jent_entropy_init()
|
A D | jitterentropy.h | 15 extern struct rand_data *jent_entropy_collector_alloc(unsigned int osr,
|
/linux/sound/soc/codecs/ |
A D | nau8821.c | 88 unsigned int osr; member 642 int stream, int rate, int osr) in nau8821_clock_check() argument 647 if (osr >= ARRAY_SIZE(osr_dac_sel)) in nau8821_clock_check() 649 osrate = osr_dac_sel[osr].osr; in nau8821_clock_check() 651 if (osr >= ARRAY_SIZE(osr_adc_sel)) in nau8821_clock_check() 653 osrate = osr_adc_sel[osr].osr; in nau8821_clock_check() 681 osr &= NAU8821_DAC_OVERSAMPLE_MASK; in nau8821_hw_params() 683 nau8821->fs, osr)) { in nau8821_hw_params() 688 osr_dac_sel[osr].clk_src << NAU8821_CLK_DAC_SRC_SFT); in nau8821_hw_params() 691 osr &= NAU8821_ADC_SYNC_DOWN_MASK; in nau8821_hw_params() [all …]
|
A D | nau8540.c | 360 static int nau8540_clock_check(struct nau8540 *nau8540, int rate, int osr) in nau8540_clock_check() argument 362 if (osr >= ARRAY_SIZE(osr_adc_sel)) in nau8540_clock_check() 365 if (rate * osr > CLK_ADC_MAX) { in nau8540_clock_check() 378 unsigned int val_len = 0, osr; in nau8540_hw_params() local 386 regmap_read(nau8540->regmap, NAU8540_REG_ADC_SAMPLE_RATE, &osr); in nau8540_hw_params() 387 osr &= NAU8540_ADC_OSR_MASK; in nau8540_hw_params() 388 if (nau8540_clock_check(nau8540, params_rate(params), osr)) in nau8540_hw_params() 392 osr_adc_sel[osr].clk_src << NAU8540_CLK_ADC_SRC_SFT); in nau8540_hw_params()
|
A D | nau8824.c | 1018 int stream, int rate, int osr) in nau8824_clock_check() argument 1023 if (osr >= ARRAY_SIZE(osr_dac_sel)) in nau8824_clock_check() 1025 osrate = osr_dac_sel[osr].osr; in nau8824_clock_check() 1027 if (osr >= ARRAY_SIZE(osr_adc_sel)) in nau8824_clock_check() 1029 osrate = osr_adc_sel[osr].osr; in nau8824_clock_check() 1058 NAU8824_REG_DAC_FILTER_CTRL_1, &osr); in nau8824_hw_params() 1059 osr &= NAU8824_DAC_OVERSAMPLE_MASK; in nau8824_hw_params() 1061 nau8824->fs, osr)) in nau8824_hw_params() 1068 NAU8824_REG_ADC_FILTER_CTRL, &osr); in nau8824_hw_params() 1069 osr &= NAU8824_ADC_SYNC_DOWN_MASK; in nau8824_hw_params() [all …]
|
A D | nau8825.c | 102 unsigned int osr; member 1251 int stream, int rate, int osr) in nau8825_clock_check() argument 1256 if (osr >= ARRAY_SIZE(osr_dac_sel)) in nau8825_clock_check() 1258 osrate = osr_dac_sel[osr].osr; in nau8825_clock_check() 1260 if (osr >= ARRAY_SIZE(osr_adc_sel)) in nau8825_clock_check() 1262 osrate = osr_adc_sel[osr].osr; in nau8825_clock_check() 1265 if (!osrate || rate * osr > CLK_DA_AD_MAX) { in nau8825_clock_check() 1291 osr &= NAU8825_DAC_OVERSAMPLE_MASK; in nau8825_hw_params() 1293 params_rate(params), osr)) { in nau8825_hw_params() 1302 osr &= NAU8825_ADC_SYNC_DOWN_MASK; in nau8825_hw_params() [all …]
|
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()
|
A D | nau8540.h | 234 unsigned int osr; member
|
A D | nau8824.h | 466 unsigned int osr; member
|
/linux/arch/powerpc/sysdev/ |
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()
|
/linux/sound/soc/fsl/ |
A D | fsl_micfil.c | 115 int qsel, osr; in get_pdm_clk() local 119 osr = 16 - ((ctrl2_reg & MICFIL_CTRL2_CICOSR_MASK) in get_pdm_clk() 127 bclk = rate * 8 * osr / 2; /* kfactor = 0.5 */ in get_pdm_clk() 131 bclk = rate * 4 * osr * 1; /* kfactor = 1 */ in get_pdm_clk() 135 bclk = rate * 2 * osr * 2; /* kfactor = 2 */ in get_pdm_clk() 138 bclk = rate * osr * 4; /* kfactor = 4 */ in get_pdm_clk()
|
/linux/drivers/iio/accel/ |
A D | bma400_core.c | 342 unsigned int osr; in bma400_get_accel_oversampling_ratio() local 359 osr = (val & BMA400_LP_OSR_MASK) >> BMA400_LP_OSR_SHIFT; in bma400_get_accel_oversampling_ratio() 361 data->oversampling_ratio = osr; in bma400_get_accel_oversampling_ratio() 370 osr = (val & BMA400_NP_OSR_MASK) >> BMA400_NP_OSR_SHIFT; in bma400_get_accel_oversampling_ratio() 372 data->oversampling_ratio = osr; in bma400_get_accel_oversampling_ratio()
|
/linux/drivers/input/touchscreen/ |
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()
|
/linux/drivers/tty/serial/ |
A D | icom.h | 89 u8 osr; /* 1F0 Output Signal Reg */ member
|
A D | fsl_lpuart.c | 2007 u32 sbr, osr, baud_diff, tmp_osr, tmp_sbr, tmp_diff, tmp; in __lpuart32_serial_setbrg() local 2020 osr = 0; in __lpuart32_serial_setbrg() 2047 osr = tmp_osr; in __lpuart32_serial_setbrg() 2062 if ((osr > 3) && (osr < 8)) in __lpuart32_serial_setbrg() 2066 tmp |= ((osr-1) & UARTBAUD_OSR_MASK) << UARTBAUD_OSR_SHIFT; in __lpuart32_serial_setbrg()
|
A D | icom.c | 947 local_osr = readb(&ICOM_PORT->dram->osr); in icom_set_mctrl() 965 writeb(local_osr, &ICOM_PORT->dram->osr); in icom_set_mctrl() 1451 writeb(0x00, &icom_port->dram->osr); in icom_remove_adapter()
|
/linux/Documentation/devicetree/bindings/sound/ |
A D | qcom,lpass-cpu.yaml | 117 - const: mi2s-osr-clk
|
/linux/arch/arm/boot/dts/ |
A D | keystone-k2l-clocks.dtsi | 138 clock-output-names = "osr";
|
A D | keystone-k2l.dtsi | 284 osr: sram@70000000 { label
|
A D | qcom-ipq8064.dtsi | 339 "mi2s-osr-clk",
|
/linux/drivers/pinctrl/ |
A D | pinctrl-at91.c | 1419 u32 osr; in at91_gpio_get_direction() local 1421 osr = readl_relaxed(pio + PIO_OSR); in at91_gpio_get_direction() 1422 if (osr & mask) in at91_gpio_get_direction()
|