Lines Matching defs:osr
1182 unsigned int osr = 1;
1185 osr = cfg->oversampling_ratio;
1195 *val = DIV_ROUND_UP_ULL(NSEC_PER_SEC, state.period * osr);
1220 int osr = ad4695_osr_to_regval(val);
1222 if (osr < 0)
1223 return osr;
1231 FIELD_PREP(AD4695_REG_CONFIG_IN_OSR_SET, osr));
1237 static unsigned int ad4695_get_calibbias(int val, int val2, int osr)
1241 switch (osr) {
1278 unsigned int osr = 1;
1281 osr = st->channels_cfg[chan->scan_index].oversampling_ratio;
1305 reg_val = ad4695_get_calibbias(val, val2, osr);
1319 osr);
1330 state.period = DIV_ROUND_UP_ULL(NSEC_PER_SEC, val * osr);
1392 unsigned int osr = 1;
1395 osr = st->channels_cfg[chan->scan_index].oversampling_ratio;
1410 ret = ad4695_osr_to_regval(osr);
1426 DIV_ROUND_UP_ULL(st->chip_info->max_sample_rate, osr);
1480 unsigned int osr = st->channels_cfg[chan->scan_index].oversampling_ratio;
1482 switch (osr) {