Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/iio/light/
Das73211.c101 u8 osr; member
243 data->osr &= ~AS73211_OSR_DOS_MASK; in as73211_req_data()
244 data->osr |= AS73211_OSR_DOS_MEASURE | AS73211_OSR_SS; in as73211_req_data()
246 smbus_data.byte = data->osr; in as73211_req_data()
259 data->osr &= ~AS73211_OSR_SS; in as73211_req_data()
536 if ((data->osr & AS73211_OSR_DOS_MASK) != AS73211_OSR_DOS_CONFIG) { in as73211_write_raw()
537 data->osr &= ~AS73211_OSR_DOS_MASK; in as73211_write_raw()
538 data->osr |= AS73211_OSR_DOS_CONFIG; in as73211_write_raw()
540 ret = i2c_smbus_write_byte_data(data->client, AS73211_REG_OSR, data->osr); in as73211_write_raw()
644 data->osr &= ~AS73211_OSR_PD; in as73211_power()
[all …]
/kernel/linux/linux-5.10/crypto/
Djitterentropy.c74 unsigned int osr; /* Oversample rate */ member
217 if ((unsigned int)ec->rct_count >= (31 * ec->osr)) { in jent_rct_insert()
563 if (++k >= (DATA_SIZE_BITS * ec->osr)) in jent_gen_entropy()
656 struct rand_data *jent_entropy_collector_alloc(unsigned int osr, in jent_entropy_collector_alloc() argument
680 if (0 == osr) in jent_entropy_collector_alloc()
681 osr = 1; /* minimum sampling rate is 1 */ in jent_entropy_collector_alloc()
682 entropy_collector->osr = osr; in jent_entropy_collector_alloc()
709 ec.osr = 1; in jent_entropy_init()
Djitterentropy.h15 extern struct rand_data *jent_entropy_collector_alloc(unsigned int osr,
/kernel/linux/linux-5.10/sound/soc/codecs/
Dnau8540.c360 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()
Dnau8824.c1047 int stream, int rate, int osr) in nau8824_clock_check() argument
1052 if (osr >= ARRAY_SIZE(osr_dac_sel)) in nau8824_clock_check()
1054 osrate = osr_dac_sel[osr].osr; in nau8824_clock_check()
1056 if (osr >= ARRAY_SIZE(osr_adc_sel)) in nau8824_clock_check()
1058 osrate = osr_adc_sel[osr].osr; in nau8824_clock_check()
1061 if (!osrate || rate * osr > CLK_DA_AD_MAX) { in nau8824_clock_check()
1074 unsigned int val_len = 0, osr, ctrl_val, bclk_fs, bclk_div; in nau8824_hw_params() local
1088 NAU8824_REG_DAC_FILTER_CTRL_1, &osr); in nau8824_hw_params()
1089 osr &= NAU8824_DAC_OVERSAMPLE_MASK; in nau8824_hw_params()
1091 nau8824->fs, osr)) in nau8824_hw_params()
[all …]
Dnau8825.c101 unsigned int osr; member
1219 int stream, int rate, int osr) in nau8825_clock_check() argument
1224 if (osr >= ARRAY_SIZE(osr_dac_sel)) in nau8825_clock_check()
1226 osrate = osr_dac_sel[osr].osr; in nau8825_clock_check()
1228 if (osr >= ARRAY_SIZE(osr_adc_sel)) in nau8825_clock_check()
1230 osrate = osr_adc_sel[osr].osr; in nau8825_clock_check()
1233 if (!osrate || rate * osr > CLK_DA_AD_MAX) { in nau8825_clock_check()
1247 unsigned int val_len = 0, osr, ctrl_val, bclk_fs, bclk_div; in nau8825_hw_params() local
1258 regmap_read(nau8825->regmap, NAU8825_REG_DAC_CTRL1, &osr); in nau8825_hw_params()
1259 osr &= NAU8825_DAC_OVERSAMPLE_MASK; in nau8825_hw_params()
[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.h466 unsigned int osr; member
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/sound/soc/fsl/
Dfsl_micfil.c114 int qsel, osr; in get_pdm_clk() local
118 osr = 16 - ((ctrl2_reg & MICFIL_CTRL2_CICOSR_MASK) in get_pdm_clk()
126 bclk = rate * 8 * osr / 2; /* kfactor = 0.5 */ in get_pdm_clk()
130 bclk = rate * 4 * osr * 1; /* kfactor = 1 */ in get_pdm_clk()
134 bclk = rate * 2 * osr * 2; /* kfactor = 2 */ in get_pdm_clk()
137 bclk = rate * osr * 4; /* kfactor = 4 */ in get_pdm_clk()
/kernel/linux/linux-5.10/drivers/iio/accel/
Dbma400_core.c342 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()
/kernel/linux/linux-5.10/drivers/input/touchscreen/
Delants_i2c.c451 u16 phy_x, phy_y, rows, cols, osr; in elants_i2c_query_ts_info() local
487 osr = resp[3]; in elants_i2c_query_ts_info()
511 if (rows == 0 || cols == 0 || osr == 0) { in elants_i2c_query_ts_info()
514 rows, cols, osr); in elants_i2c_query_ts_info()
517 ts->x_max = ELAN_TS_RESOLUTION(rows, osr); in elants_i2c_query_ts_info()
519 ts->y_max = ELAN_TS_RESOLUTION(cols, osr); in elants_i2c_query_ts_info()
/kernel/linux/linux-5.10/drivers/tty/serial/
Dicom.h89 u8 osr; /* 1F0 Output Signal Reg */ member
Dfsl_lpuart.c1944 u32 sbr, osr, baud_diff, tmp_osr, tmp_sbr, tmp_diff, tmp; in __lpuart32_serial_setbrg() local
1957 osr = 0; in __lpuart32_serial_setbrg()
1984 osr = tmp_osr; in __lpuart32_serial_setbrg()
1999 if ((osr > 3) && (osr < 8)) in __lpuart32_serial_setbrg()
2003 tmp |= ((osr-1) & UARTBAUD_OSR_MASK) << UARTBAUD_OSR_SHIFT; in __lpuart32_serial_setbrg()
Dicom.c949 local_osr = readb(&ICOM_PORT->dram->osr); in icom_set_mctrl()
967 writeb(local_osr, &ICOM_PORT->dram->osr); in icom_set_mctrl()
1453 writeb(0x00, &icom_port->dram->osr); in icom_remove_adapter()
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dkeystone-k2l-clocks.dtsi138 clock-output-names = "osr";
Dkeystone-k2l.dtsi284 osr: sram@70000000 { label
Dqcom-ipq8064.dtsi115 "mi2s-osr-clk",
/kernel/linux/linux-5.10/drivers/pinctrl/
Dpinctrl-at91.c1417 u32 osr; in at91_gpio_get_direction() local
1419 osr = readl_relaxed(pio + PIO_OSR); in at91_gpio_get_direction()
1420 if (osr & mask) in at91_gpio_get_direction()
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/
D0009_linux_sound.patch18879 + unsigned int osr;
18881 + { .id = 0, .osr = 48 }, /* 4x12 */
18882 + { .id = 1, .osr = 64 }, /* 4x16 */
18883 + { .id = 2, .osr = 96 }, /* 4x24 */
18884 + { .id = 3, .osr = 128 }, /* 4x32 */
18885 + { .id = 4, .osr = 192 }, /* 4x48 */
18893 + if (osr_map[i].osr == decimation)
18906 + return osr_map[i].osr;
18938 + int osr = snd_soc_enum_item_to_val(e, item[0]);
18940 + data->decimation = imx_pdm_mic_get_osr_rate(osr);
[all …]