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

/linux-master/drivers/iio/pressure/
H A Dms5611_spi.c57 const struct ms5611_osr *osr = st->temp_osr; local
60 * Warning: &osr->cmd MUST be aligned on a word boundary since used as
63 ret = spi_write_then_read(st->client, &osr->cmd, 1, NULL, 0);
67 usleep_range(osr->conv_usec, osr->conv_usec + (osr->conv_usec / 10UL));
72 osr = st->pressure_osr;
73 ret = spi_write_then_read(st->client, &osr->cmd, 1, NULL, 0);
77 usleep_range(osr->conv_usec, osr
[all...]
H A Dms5611_i2c.c62 const struct ms5611_osr *osr = st->temp_osr; local
64 ret = i2c_smbus_write_byte(st->client, osr->cmd);
68 usleep_range(osr->conv_usec, osr->conv_usec + (osr->conv_usec / 10UL));
73 osr = st->pressure_osr;
74 ret = i2c_smbus_write_byte(st->client, osr->cmd);
78 usleep_range(osr->conv_usec, osr->conv_usec + (osr
[all...]
H A Dms5611_core.c292 const struct ms5611_osr *osr,
298 if ((unsigned short)rate == osr[r].rate)
302 return &osr[r];
310 const struct ms5611_osr *osr = NULL; local
317 osr = ms5611_find_osr(val, ms5611_avail_temp_osr,
320 osr = ms5611_find_osr(val, ms5611_avail_pressure_osr,
322 if (!osr)
332 st->temp_osr = osr;
334 st->pressure_osr = osr;
291 ms5611_find_osr(int rate, const struct ms5611_osr *osr, size_t count) argument
/linux-master/crypto/
H A Djitterentropy.h14 extern int jent_entropy_init(unsigned int osr, unsigned int flags,
19 extern struct rand_data *jent_entropy_collector_alloc(unsigned int osr,
H A Djitterentropy.c77 unsigned int osr; /* Oversample rate */ member in struct:rand_data
161 * In in the syntax of R, this is C = 2 + qbinom(1 ��� 2^(���30), 511, 2^(-1/osr)).
182 static void jent_apt_init(struct rand_data *ec, unsigned int osr) argument
186 * 1/osr.
188 if (osr >= ARRAY_SIZE(jent_apt_cutoff_lookup)) {
194 ec->apt_cutoff = jent_apt_cutoff_lookup[osr - 1];
196 jent_apt_cutoff_permanent_lookup[osr - 1];
273 * In addition, we require an entropy value H of 1/osr as this
275 * Note, we collect (DATA_SIZE_BITS + ENTROPY_SAFETY_FACTOR)*osr
283 * following SP800-90B. Thus C = ceil(-log_2(alpha)/H) = 30*osr
659 jent_entropy_collector_alloc(unsigned int osr, unsigned int flags, void *hash_state) argument
709 jent_entropy_init(unsigned int osr, unsigned int flags, void *hash_state, struct rand_data *p_ec) argument
[all...]
/linux-master/sound/soc/codecs/
H A Dwm1250-ev1.c21 struct gpio_desc *osr; member in struct:wm1250_priv
155 wm1250->osr = devm_gpiod_get(&i2c->dev, "osr", GPIOD_OUT_LOW);
156 if (IS_ERR(wm1250->osr))
157 return dev_err_probe(&i2c->dev, PTR_ERR(wm1250->osr),
H A Dnau8540.c407 unsigned int osr; local
409 regmap_read(nau8540->regmap, NAU8540_REG_ADC_SAMPLE_RATE, &osr);
410 osr &= NAU8540_ADC_OSR_MASK;
411 if (osr >= ARRAY_SIZE(osr_adc_sel))
413 return &osr_adc_sel[osr];
421 const struct nau8540_osr_attr *osr; local
423 osr = nau8540_get_osr(nau8540);
424 if (!osr || !osr->osr)
438 const struct nau8540_osr_attr *osr; local
[all...]
H A Dnau8821.c99 unsigned int osr; member in struct:nau8821_osr_attr
812 unsigned int osr; local
815 regmap_read(nau8821->regmap, NAU8821_R2C_DAC_CTRL1, &osr);
816 osr &= NAU8821_DAC_OVERSAMPLE_MASK;
817 if (osr >= ARRAY_SIZE(osr_dac_sel))
819 return &osr_dac_sel[osr];
821 regmap_read(nau8821->regmap, NAU8821_R2B_ADC_RATE, &osr);
822 osr &= NAU8821_ADC_SYNC_DOWN_MASK;
823 if (osr >= ARRAY_SIZE(osr_adc_sel))
825 return &osr_adc_sel[osr];
834 const struct nau8821_osr_attr *osr; local
851 const struct nau8821_osr_attr *osr; local
[all...]
H A Dnau8824.c1026 unsigned int osr; local
1030 NAU8824_REG_DAC_FILTER_CTRL_1, &osr);
1031 osr &= NAU8824_DAC_OVERSAMPLE_MASK;
1032 if (osr >= ARRAY_SIZE(osr_dac_sel))
1034 return &osr_dac_sel[osr];
1037 NAU8824_REG_ADC_FILTER_CTRL, &osr);
1038 osr &= NAU8824_ADC_SYNC_DOWN_MASK;
1039 if (osr >= ARRAY_SIZE(osr_adc_sel))
1041 return &osr_adc_sel[osr];
1050 const struct nau8824_osr_attr *osr; local
1067 const struct nau8824_osr_attr *osr; local
[all...]
H A Dnau8825.c103 unsigned int osr; member in struct:nau8825_osr_attr
1239 unsigned int osr; local
1243 NAU8825_REG_DAC_CTRL1, &osr);
1244 osr &= NAU8825_DAC_OVERSAMPLE_MASK;
1245 if (osr >= ARRAY_SIZE(osr_dac_sel))
1247 return &osr_dac_sel[osr];
1250 NAU8825_REG_ADC_RATE, &osr);
1251 osr &= NAU8825_ADC_SYNC_DOWN_MASK;
1252 if (osr >= ARRAY_SIZE(osr_adc_sel))
1254 return &osr_adc_sel[osr];
1263 const struct nau8825_osr_attr *osr; local
1281 const struct nau8825_osr_attr *osr; local
[all...]
H A Dwm8580.c542 int i, ratio, osr; local
583 osr = WM8580_DACOSR;
587 osr = 0;
592 snd_soc_component_update_bits(component, WM8580_PAIF3, WM8580_DACOSR, osr);
H A Dnau8540.h260 unsigned int osr; member in struct:nau8540_osr_attr
H A Dnau8824.h467 unsigned int osr; member in struct:nau8824_osr_attr
/linux-master/drivers/iio/light/
H A Das73211.c107 * @osr: Cached Operational State Register.
118 u8 osr; member in struct:as73211_data
287 data->osr &= ~AS73211_OSR_DOS_MASK;
288 data->osr |= AS73211_OSR_DOS_MEASURE | AS73211_OSR_SS;
290 smbus_data.byte = data->osr;
303 data->osr &= ~AS73211_OSR_SS;
605 if ((data->osr & AS73211_OSR_DOS_MASK) != AS73211_OSR_DOS_CONFIG) {
606 data->osr &= ~AS73211_OSR_DOS_MASK;
607 data->osr |= AS73211_OSR_DOS_CONFIG;
609 ret = i2c_smbus_write_byte_data(data->client, AS73211_REG_OSR, data->osr);
[all...]
/linux-master/arch/powerpc/sysdev/
H A Dfsl_rmu.c107 u32 osr; member in struct:rio_msg_regs
207 int osr; local
211 osr = in_be32(&rmu->msg_regs->osr);
213 if (osr & RIO_MSG_OSR_TE) {
215 out_be32(&rmu->msg_regs->osr, RIO_MSG_OSR_TE);
219 if (osr & RIO_MSG_OSR_QOI) {
221 out_be32(&rmu->msg_regs->osr, RIO_MSG_OSR_QOI);
225 if (osr & RIO_MSG_OSR_EOMI) {
234 out_be32(&rmu->msg_regs->osr, RIO_MSG_OSR_EOM
[all...]
/linux-master/drivers/iio/adc/
H A Dmcp3911.c225 unsigned int osr; local
231 osr = FIELD_GET(MCP3910_CONFIG0_OSR, *val);
232 *val = 32 << osr;
238 unsigned int osr = FIELD_PREP(MCP3910_CONFIG0_OSR, val); local
241 return mcp3911_update(adc, MCP3910_REG_CONFIG0, mask, osr, 3);
246 unsigned int osr = FIELD_PREP(MCP3911_CONFIG_OSR, val); local
249 return mcp3911_update(adc, MCP3911_REG_CONFIG, mask, osr, 2);
255 unsigned int osr; local
261 osr = FIELD_GET(MCP3911_CONFIG_OSR, *val);
262 *val = 32 << osr;
[all...]
H A Dat91-sama5d2_adc.c846 unsigned int emr, osr; local
861 osr = AT91_SAMA5D2_EMR_OSR(AT91_SAMA5D2_EMR_OSR_1SAMPLES,
865 osr = AT91_SAMA5D2_EMR_OSR(AT91_SAMA5D2_EMR_OSR_4SAMPLES,
869 osr = AT91_SAMA5D2_EMR_OSR(AT91_SAMA5D2_EMR_OSR_16SAMPLES,
873 osr = AT91_SAMA5D2_EMR_OSR(AT91_SAMA5D2_EMR_OSR_64SAMPLES,
877 osr = AT91_SAMA5D2_EMR_OSR(AT91_SAMA5D2_EMR_OSR_256SAMPLES,
891 /* Update osr and trackx. */
892 emr |= osr | AT91_SAMA5D2_TRACKX(trackx);
/linux-master/sound/soc/atmel/
H A Dmchp-pdmc.c484 static u32 mchp_pdmc_mr_set_osr(int audio_filter_en, unsigned int osr) argument
487 switch (osr) {
496 switch (osr) {
548 unsigned int osr = 0, osr_start; local
586 osr = osr_start;
587 gclk_rate = fs * 16 * osr;
607 mr_val |= mchp_pdmc_mr_set_osr(dd->audio_filter_en, osr);
/linux-master/drivers/input/touchscreen/
H A Delants_i2c.c511 u16 phy_x, phy_y, rows, cols, osr; local
543 resp, sizeof(resp), 1, "get osr");
547 osr = resp[3];
571 if (rows == 0 || cols == 0 || osr == 0) {
574 rows, cols, osr);
577 ts->x_max = ELAN_TS_RESOLUTION(rows, osr);
579 ts->y_max = ELAN_TS_RESOLUTION(cols, osr);
/linux-master/sound/soc/fsl/
H A Dfsl_micfil.c714 int osr = MICFIL_OSR_DEFAULT; local
733 ret = clk_set_rate(micfil->mclk, rate * clk_div * osr * 8);
744 FIELD_PREP(MICFIL_CTRL2_CICOSR, 16 - osr));
749 FIELD_PREP(MICFIL_VAD0_CTRL1_CICOSR, 16 - osr));
/linux-master/drivers/iio/accel/
H A Dbma400_core.c562 /* preserve the range and normal mode osr */
577 unsigned int osr; local
594 osr = (val & BMA400_LP_OSR_MASK) >> BMA400_LP_OSR_SHIFT;
596 data->oversampling_ratio = osr;
605 osr = (val & BMA400_NP_OSR_MASK) >> BMA400_NP_OSR_SHIFT;
607 data->oversampling_ratio = osr;
772 * Update our cached osr and odr based on the new
/linux-master/drivers/tty/serial/
H A Dicom.c127 u8 osr; /* 1F0 Output Signal Reg */ member in struct:func_dram
1206 local_osr = readb(&icom_port->dram->osr);
1224 writeb(local_osr, &icom_port->dram->osr);
1694 writeb(0x00, &icom_port->dram->osr);
H A Dfsl_lpuart.c2134 u32 sbr, osr, baud_diff, tmp_osr, tmp_sbr, tmp_diff, tmp; local
2147 osr = 0;
2158 * osr and sbr values
2174 osr = tmp_osr;
2189 if ((osr > 3) && (osr < 8))
2193 tmp |= ((osr-1) & UARTBAUD_OSR_MASK) << UARTBAUD_OSR_SHIFT;
/linux-master/drivers/pinctrl/
H A Dpinctrl-at91.c1425 u32 osr; local
1427 osr = readl_relaxed(pio + PIO_OSR);
1428 if (osr & mask)

Completed in 579 milliseconds