Searched refs:samples (Results 1 - 25 of 110) sorted by path

12345

/linux-master/drivers/isdn/mISDN/
H A Ddsp_tones.c197 tones_samples samples[] = { variable in typeref:struct:tones_samples
210 * generate ulaw from alaw samples *
219 while (samples[i].len) {
221 while (j < (*samples[i].len)) {
222 samples[i].data[j] =
223 dsp_audio_alaw_to_ulaw[samples[i].data[j]];
362 /* an sk_buff is generated from the number of samples needed.
411 /* calculate start and number of samples */
/linux-master/drivers/macintosh/
H A Dwindfarm_pid.c42 /* Get samples into our history buffer */
45 st->samples[i] = new_sample;
52 st->samples[st->index] = new_sample;
97 /* Get samples into our history buffer */
/linux-master/drivers/net/wireless/intel/iwlegacy/
H A D3945.h288 struct il3945_eeprom_txpower_sample samples[5]; /* 5 power levels */ member in struct:il3945_eeprom_txpower_group
/linux-master/include/sound/
H A Dsoundfont.h51 struct snd_sf_sample *samples; /* The sample headers */ member in struct:snd_soundfont
/linux-master/tools/testing/selftests/timers/
H A Dfreq-step.c111 static void regress(struct sample *samples, int n, double *intercept, argument
120 x = samples[i].time;
121 y = samples[i].offset;
135 x = samples[i].time;
136 y = samples[i].offset;
148 struct sample samples[SAMPLES]; local
169 get_sample(&samples[i]);
173 regress(samples, SAMPLES, &intercept, &slope, &stddev1, &max1);
180 regress(samples, SAMPLES / 2, &intercept, &slope, &stddev1, &max1);
184 regress(samples
[all...]
/linux-master/arch/s390/include/asm/
H A Dpci.h68 u32 samples; member in struct:zpci_fmb
/linux-master/arch/s390/pci/
H A Dpci_debug.c103 seq_printf(m, "Samples: %u\n", zdev->fmb->samples);
/linux-master/block/
H A Dbfq-cgroup.c1263 u64 samples = bfq_stat_read(&bfqg->stats.avg_queue_size_samples); local
1266 if (samples) {
1268 v = div64_u64(v, samples);
H A Dbfq-iosched.c225 /* hw_tag detection: parallel requests threshold and min samples needed. */
247 /* Min number of samples required to perform peak-rate update */
486 #define bfq_sample_valid(samples) ((samples) > 80)
1456 * If enough samples have been computed, return the current max budget
3441 } else /* no new rq dispatched, just reset the number of samples */
3457 * reliable, a minimum number of samples must be present, and
3596 bfq_log(bfqd, "update_peak_rate: goto reset, samples %d",
6032 * think time samples can grow significantly before the reset
6395 * - reset to zero samples, whic
[all...]
H A Dblk-throttle.c51 int samples; member in struct:latency_bucket
2097 tmp->samples += bucket[i].samples;
2099 bucket[i].samples = 0;
2102 if (tmp->samples >= 32) {
2103 int samples = tmp->samples; local
2108 tmp->samples = 0;
2109 latency[rw] /= samples;
2300 latency[index].samples
[all...]
H A Dkyber-iosched.c224 * aren't enough samples yet.
231 unsigned int bucket, samples = 0, percentile_samples; local
234 samples += buckets[bucket];
236 if (!samples)
240 * We do the calculation once we have 500 samples or one second passes
245 if (samples < 500 &&
251 percentile_samples = DIV_ROUND_UP(samples * percentile, 100);
261 bucket + 1, 1 << KYBER_LATENCY_SHIFT, samples);
324 * necessarily have enough samples to calculate the latency
/linux-master/drivers/char/
H A Drandom.c541 * falling back to computing a larger bound, and then rejecting samples
1237 atomic_t samples; member in struct:entropy_timer_state
1258 if (atomic_inc_return(&state->samples) % state->samples_per_bit == 0)
1285 atomic_set(&stack->samples, 0);
/linux-master/drivers/comedi/drivers/
H A Dadl_pci9111.c411 unsigned int samples; local
413 samples = comedi_nsamples_left(s, PCI9111_FIFO_HALF_SIZE);
414 insw(dev->iobase + PCI9111_AI_FIFO_REG, buf, samples);
417 comedi_buf_write_samples(s, buf, samples);
422 while (pos < samples) {
427 if (to_read > samples - pos)
428 to_read = samples - pos;
435 if (to_read > samples - pos)
436 to_read = samples - pos;
H A Ddas1800.c395 /* get any remaining samples in fifo */
456 /* get samples with dma, fifo, or polled as necessary */
478 /* get all remaining samples before quitting */
750 unsigned int samples; local
752 samples = max_samples;
758 samples = ns / cmd->convert_arg;
761 samples = ns / (cmd->scan_begin_arg * cmd->chanlist_len);
765 /* limit samples to what is remaining in the command */
766 samples = comedi_nsamples_left(s, samples);
[all...]
/linux-master/drivers/crypto/intel/qat/qat_common/
H A Dadf_tl_debugfs.c29 unsigned int samples, hb_idx, i; local
33 samples = min(telemetry->msg_cnt, telemetry->hbuffs);
34 hb_idx = telemetry->hb_num + telemetry->hbuffs - samples;
38 for (i = 0; i < samples; i++) {
47 return samples;
53 unsigned int samples, hb_idx, i; local
57 samples = min(telemetry->msg_cnt, telemetry->hbuffs);
58 hb_idx = telemetry->hb_num + telemetry->hbuffs - samples;
62 for (i = 0; i < samples; i++) {
71 return samples;
[all...]
/linux-master/drivers/gpu/drm/amd/display/dc/dce/
H A Ddce_audio.c129 uint32_t samples; local
175 samples = h_blank * 10;
177 * of Audio samples per line multiplied by 10 - Layout 1)
179 samples /= 32;
180 samples *= crtc_info->v_active;
181 /*Number of samples multiplied by 10, per second */
182 samples *= crtc_info->refresh_rate;
183 /*Number of Audio samples per second */
184 samples /= 10;
195 samples *
[all...]
/linux-master/drivers/gpu/drm/imagination/
H A Dpvr_hwrt.c96 get_cr_isp_mtile_size_val(struct pvr_device *pvr_dev, u32 samples, argument
109 if (samples >= 4)
111 if (samples >= 2)
114 if (samples >= 8)
116 if (samples >= 4)
119 if (samples >= 8)
122 WARN(true, "Unsupported ISP samples per pixel value");
133 get_cr_multisamplectl_val(u32 samples, bool y_flip, u64 *value_out) argument
144 /* 2 samples */
149 /* 4 samples */
180 get_cr_te_aa_val(struct pvr_device *pvr_dev, u32 samples, u32 *value_out) argument
[all...]
/linux-master/drivers/hwmon/
H A Dina3221.c185 /* Lookup table for number of samples using in averaging mode */
195 u32 samples = ina3221_avg_samples[samples_idx]; local
198 return DIV_ROUND_CLOSEST(interval * 1000 / 2, channels * samples);
H A Dmlxreg-fan.c36 * K: is 44 and it represents the minimum allowed samples per pulse;
45 * RPM = 15000000 * 100 / ((Regval + samples) * divider).
102 * @samples: minimum allowed samples per pulse;
112 int samples; member in struct:mlxreg_fan
165 fan->samples);
455 fan->samples = MLXREG_FAN_TACHO_SAMPLES_PER_PULSE_DEF;
517 fan->samples = data->mask;
/linux-master/drivers/hwmon/occ/
H A Dcommon.c462 static u64 occ_get_powr_avg(u64 *accum, u32 *samples) argument
464 u64 divisor = get_unaligned_be32(samples);
/linux-master/drivers/iio/accel/
H A Dbmc150-accel-core.c99 /* Slope duration in terms of number of samples */
963 char *buffer, int samples)
968 int total_length = samples * sample_length;
980 unsigned samples, bool irq)
1007 * now. We can fall anywhere in between two samples so the error in this
1017 * frequency, timestamp for last sample and number of samples.
1022 * small variation adds when we store a large number of samples and
1023 * creates significant jitter between the last and first samples in
1033 if (samples && count > samples)
962 bmc150_accel_fifo_transfer(struct bmc150_accel_data *data, char *buffer, int samples) argument
979 __bmc150_accel_fifo_flush(struct iio_dev *indio_dev, unsigned samples, bool irq) argument
1064 bmc150_accel_fifo_flush(struct iio_dev *indio_dev, unsigned samples) argument
[all...]
H A Dfxls8962af-core.c883 u16 *buffer, int samples,
888 for (i = 0; i < samples; i++) {
899 u16 *buffer, int samples)
903 int total_length = samples * sample_length;
913 ret = fxls8962af_i2c_raw_read_errata3(data, buffer, samples,
954 * frequency, timestamp for last sample and number of samples.
882 fxls8962af_i2c_raw_read_errata3(struct fxls8962af_data *data, u16 *buffer, int samples, int sample_length) argument
898 fxls8962af_fifo_transfer(struct fxls8962af_data *data, u16 *buffer, int samples) argument
H A Dkionix-kx022a.c30 * The KX022A has FIFO which can store 43 samples of HiRes data from 2
31 * channels. This equals to 43 (samples) * 3 (channels) * 2 (bytes/sample) to
362 * Linux CPUs can handle without dropping samples. Also, the low power mode is
511 * as it will mess the timestamp/scale for samples existing in the
513 * to internally flush the fifo before reconfiguring so the samples in
708 * based on samples acquired when buffer was last enabled.
756 static int __kx022a_fifo_flush(struct iio_dev *idev, unsigned int samples, argument
780 * now. We can fall anywhere in between two samples so the error in this
802 * frequency, timestamp for last sample and number of samples.
806 * small variation adds when we store a large number of samples
858 kx022a_fifo_flush(struct iio_dev *idev, unsigned int samples) argument
[all...]
/linux-master/drivers/iio/adc/
H A Dmeson_saradc.c474 enum meson_sar_adc_num_samples samples)
479 val = samples << MESON_SAR_ADC_AVG_CNTL_NUM_SAMPLES_SHIFT(address);
884 /* delay between two samples = (10+1) * 1uS */
894 /* delay between two samples = (10+1) * 1uS */
471 meson_sar_adc_set_averaging(struct iio_dev *indio_dev, const struct iio_chan_spec *chan, enum meson_sar_adc_avg_mode mode, enum meson_sar_adc_num_samples samples) argument
/linux-master/drivers/iio/buffer/
H A Dkfifo_buf.c123 size_t samples; local
126 samples = kfifo_len(&kf->kf);
129 return samples;

Completed in 296 milliseconds

12345