Home
last modified time | relevance | path

Searched refs:samples (Results 1 – 25 of 215) sorted by relevance

123456789

/Linux-v4.19/tools/testing/selftests/seccomp/
Dseccomp_benchmark.c19 unsigned long long timing(clockid_t clk_id, unsigned long long samples) in timing() argument
27 for (i = 0; i < samples; i++) { in timing()
52 unsigned long long samples = 1 << i; in calibrate() local
55 if (timing(CLOCK_REALTIME, samples) / 1000000000ULL > 5) in calibrate()
56 return samples; in calibrate()
70 unsigned long long samples; in main() local
74 samples = strtoull(argv[1], NULL, 0); in main()
76 samples = calibrate(); in main()
78 printf("Benchmarking %llu samples...\n", samples); in main()
80 native = timing(CLOCK_PROCESS_CPUTIME_ID, samples) / samples; in main()
[all …]
/Linux-v4.19/drivers/media/pci/cx88/
Dcx88-dsp.c148 int samples = 5; in noise_magnitude() local
156 freq_step = (freq_end - freq_start) / (samples - 1); in noise_magnitude()
158 for (i = 0; i < samples; i++) { in noise_magnitude()
163 return (u32)int_sqrt(sum / samples); in noise_magnitude()
249 s16 *samples; in read_rds_samples() local
264 samples = kmalloc_array(sample_count, sizeof(*samples), GFP_KERNEL); in read_rds_samples()
265 if (!samples) in read_rds_samples()
272 samples[i] = cx_read(srch->fifo_start + offset); in read_rds_samples()
276 dprintk(2, "RDS samples dump: %*ph\n", sample_count, samples); in read_rds_samples()
278 return samples; in read_rds_samples()
[all …]
/Linux-v4.19/Documentation/sound/cards/
Dsb-live-mixer.rst64 This control is used to attenuate samples for left and right PCM FX-bus
65 accumulators. ALSA uses accumulators 0 and 1 for left and right PCM samples.
66 The result samples are forwarded to the front DAC PCM slots of the AC97 codec.
70 This control is used to attenuate samples for left and right PCM FX-bus
71 accumulators. ALSA uses accumulators 0 and 1 for left and right PCM samples.
72 The result samples are forwarded to the rear I2S DACs. These DACs operates
77 This control is used to attenuate samples for left and right PCM FX-bus
78 accumulators. ALSA uses accumulators 0 and 1 for left and right PCM samples.
84 This control is used to attenuate samples for left and right PCM FX-bus
91 These controls are used to attenuate samples for left and right PCM FX-bus
[all …]
Daudigy-mixer.rst49 This control is used to attenuate samples for left and right front PCM FX-bus
51 samples for 5.1 playback. The result samples are forwarded to the front DAC PCM
56 This control is used to attenuate samples for left and right surround PCM FX-bus
58 samples for 5.1 playback. The result samples are forwarded to the surround DAC PCM
63 This control is used to attenuate samples for center PCM FX-bus accumulator.
75 This control is used to attenuate samples for left and right PCM FX-bus
76 accumulators. ALSA uses accumulators 0 and 1 for left and right PCM samples for
77 stereo playback. The result samples are forwarded to the front DAC PCM slots
82 This control is used to attenuate samples for left and right PCM FX-bus
89 This control is used to attenuate samples for left and right MIDI FX-bus
[all …]
/Linux-v4.19/arch/powerpc/oprofile/cell/
Dspu_profiler.c24 static u32 *samples; variable
100 samples[spu * TRACE_ARRAY_SIZE + entry] in spu_pc_extract()
102 samples[(spu + SPUS_PER_TB_ENTRY) * TRACE_ARRAY_SIZE + entry] in spu_pc_extract()
172 samples + (k * TRACE_ARRAY_SIZE), in profile_spus()
213 samples = kcalloc(SPUS_PER_NODE * TRACE_ARRAY_SIZE, sizeof(u32), in start_spu_profiling_cycles()
216 if (!samples) in start_spu_profiling_cycles()
245 kfree(samples); in stop_spu_profiling_cycles()
/Linux-v4.19/arch/x86/kernel/cpu/
Daperfmperf.c26 static DEFINE_PER_CPU(struct aperfmperf_sample, samples);
42 struct aperfmperf_sample *s = this_cpu_ptr(&samples); in aperfmperf_snapshot_khz()
68 s64 time_delta = ktime_ms_delta(now, per_cpu(samples.time, cpu)); in aperfmperf_snapshot_cpu()
89 return per_cpu(samples.khz, cpu); in aperfmperf_get_khz()
121 return per_cpu(samples.khz, cpu); in arch_freq_get_on_cpu()
126 return per_cpu(samples.khz, cpu); in arch_freq_get_on_cpu()
/Linux-v4.19/tools/testing/selftests/timers/
Dfreq-step.c119 static void regress(struct sample *samples, int n, double *intercept, in regress() argument
128 x = samples[i].time; in regress()
129 y = samples[i].offset; in regress()
143 x = samples[i].time; in regress()
144 y = samples[i].offset; in regress()
156 struct sample samples[SAMPLES]; in run_test() local
177 get_sample(&samples[i]); in run_test()
181 regress(samples, SAMPLES, &intercept, &slope, &stddev1, &max1); in run_test()
188 regress(samples, SAMPLES / 2, &intercept, &slope, &stddev1, &max1); in run_test()
192 regress(samples + SAMPLES / 2, SAMPLES / 2, &intercept, &slope, in run_test()
/Linux-v4.19/Documentation/devicetree/bindings/input/touchscreen/
Dbrcm,iproc-touchscreen.txt39 - average_data: Number of data samples which are averaged before a final
43 1 = 2 samples
44 2 = 4 samples
45 3 = 8 samples
46 4 = 16 samples
47 5 = 32 samples
48 6 = 64 samples
49 7 = 128 samples
Dstmpe.txt15 - st,ave-ctrl: Sample average control (0 -> 1 sample, 1 -> 2 samples, 2 -> 4
16 samples, 3 -> 8 samples)
Dimx6ul_tsc.txt20 - touchscreen-average-samples: Number of data samples which are averaged for
37 touchscreen-average-samples = <32>;
/Linux-v4.19/Documentation/livepatch/
Dcallbacks.txt127 the samples/livepatch/ and assumes that no livepatches are loaded at the
146 % insmod samples/livepatch/livepatch-callbacks-mod.ko
155 % insmod samples/livepatch/livepatch-callbacks-demo.ko
180 % rmmod samples/livepatch/livepatch-callbacks-demo.ko
181 % rmmod samples/livepatch/livepatch-callbacks-mod.ko
202 % insmod samples/livepatch/livepatch-callbacks-demo.ko
214 % insmod samples/livepatch/livepatch-callbacks-mod.ko
233 % rmmod samples/livepatch/livepatch-callbacks-demo.ko
234 % rmmod samples/livepatch/livepatch-callbacks-mod.ko
253 % insmod samples/livepatch/livepatch-callbacks-mod.ko
[all …]
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/dce/
Ddce_audio.c135 uint32_t samples; in check_audio_bandwidth_hdmi() local
179 samples = h_blank * 10; in check_audio_bandwidth_hdmi()
183 samples /= 32; in check_audio_bandwidth_hdmi()
184 samples *= crtc_info->v_active; in check_audio_bandwidth_hdmi()
186 samples *= crtc_info->refresh_rate; in check_audio_bandwidth_hdmi()
188 samples /= 10; in check_audio_bandwidth_hdmi()
199 samples *= 4; in check_audio_bandwidth_hdmi()
202 samples *= 5; in check_audio_bandwidth_hdmi()
205 samples *= 6; in check_audio_bandwidth_hdmi()
208 samples *= 4; in check_audio_bandwidth_hdmi()
[all …]
/Linux-v4.19/sound/core/
Dpcm_misc.c380 ssize_t snd_pcm_format_size(snd_pcm_format_t format, size_t samples) in snd_pcm_format_size() argument
385 return samples * phys_width / 8; in snd_pcm_format_size()
415 int snd_pcm_format_set_silence(snd_pcm_format_t format, void *data, unsigned int samples) in snd_pcm_format_set_silence() argument
422 if (samples == 0) in snd_pcm_format_set_silence()
430 unsigned int bytes = samples * width / 8; in snd_pcm_format_set_silence()
438 while (samples--) { in snd_pcm_format_set_silence()
446 while (samples--) { in snd_pcm_format_set_silence()
452 while (samples--) { in snd_pcm_format_set_silence()
458 while (samples--) { in snd_pcm_format_set_silence()
464 while (samples--) { in snd_pcm_format_set_silence()
/Linux-v4.19/tools/perf/Documentation/
Dperf-annotate.txt47 --show-nr-samples::
48 Show the number of samples for each symbol
87 samples, TAB/UNTAB cycles through the lines with more samples.
92 --cpu=<cpu>:: Only report samples for the list of CPUs provided. Multiple CPUs can
94 CPUs are specified with -: 0-2. Default is to report samples on all
128 on - the samples period or the number of samples (hits).
Dperf-diff.txt23 If no parameters are passed the samples will be sorted by dso and symbol.
124 file is iterated for samples. All other perf.data files specified on
128 All samples from non-baseline perf.data files, that do not match any
132 Example files samples:
133 - file A with samples f1, f2, f3, f4, f6
134 - file B with samples f2, f4, f5
135 - file C with samples f1, f2, f5
143 baseline/A compute/B compute/C samples
154 baseline/B compute/A compute/C samples
165 baseline/C compute/B compute/A samples
/Linux-v4.19/include/linux/
Duwb.h768 atomic_t samples; member
774 atomic_set(&stats->samples, 0); in stats_init()
783 unsigned samples = atomic_read(&stats->samples); in stats_add_sample() local
784 if (samples == 0) { /* it was zero before, so we initialize */ in stats_add_sample()
803 if (atomic_add_return(1, &stats->samples) > 255) { in stats_add_sample()
806 atomic_set(&stats->samples, 1); in stats_add_sample()
813 int samples = atomic_read(&stats->samples); in stats_show() local
814 if (samples == 0) in stats_show()
819 avg = stats->sigma / samples; in stats_show()
/Linux-v4.19/samples/bpf/
DREADME.rst32 For building the BPF samples, issue the below command from the kernel
35 make samples/bpf/
66 make samples/bpf/ LLC=~/git/llvm/build/bin/llc CLANG=~/git/llvm/build/bin/clang
68 Cross compiling samples
72 samples for the cross target.
76 make samples/bpf/ LLC=~/git/llvm/build/bin/llc CLANG=~/git/llvm/build/bin/clang
/Linux-v4.19/drivers/input/touchscreen/
Dfsl-imx25-tcq.c238 unsigned int samples) in mx25_tcq_create_event_for_4wire() argument
246 for (i = 0; i < samples; i++) { in mx25_tcq_create_event_for_4wire()
270 if (samples != 0) { in mx25_tcq_create_event_for_4wire()
312 unsigned int samples; in mx25_tcq_irq_thread() local
322 samples = MX25_ADCQ_SR_FDN(stats); in mx25_tcq_irq_thread()
323 samples -= samples % priv->sample_count; in mx25_tcq_irq_thread()
325 if (!samples) in mx25_tcq_irq_thread()
328 for (i = 0; i != samples; ++i) in mx25_tcq_irq_thread()
331 mx25_tcq_create_event_for_4wire(priv, sample_buf, samples); in mx25_tcq_irq_thread()
/Linux-v4.19/tools/perf/util/
Dtop.c33 if (top->samples) { in perf_top__header_snprintf()
34 samples_per_sec = top->samples / top->delay_secs; in perf_top__header_snprintf()
36 esamples_percent = (100.0 * top->exact_samples) / top->samples; in perf_top__header_snprintf()
114 top->samples = top->us_samples = top->kernel_samples = in perf_top__reset_sample_counters()
/Linux-v4.19/Documentation/media/v4l-drivers/
Dmax2175.rst51 samples/sec with a 10.24 MHz sck.
54 samples/sec with a 32.768 MHz sck.
59 samples/sec with a 14.88375 MHz sck.
62 samples/sec with a 7.441875 MHz sck.
/Linux-v4.19/Documentation/ABI/stable/
Dsysfs-fs-orangefs32 perf_history_size, samples. The default is
36 samples are reset.
39 of samples is reset, and the samples from the
/Linux-v4.19/drivers/media/common/siano/
Dsmsir.c26 const s32 *samples = (const void *)buf; in sms_ir_event() local
31 ev.duration = abs(samples[i]) * 1000; /* Convert to ns */ in sms_ir_event()
32 ev.pulse = (samples[i] > 0) ? false : true; in sms_ir_event()
/Linux-v4.19/sound/soc/sh/
Dfsi.c448 static int fsi_sample2frame(struct fsi_priv *fsi, int samples) in fsi_sample2frame() argument
450 return samples / fsi->chan_num; in fsi_sample2frame()
1054 static void fsi_pio_push16(struct fsi_priv *fsi, u8 *_buf, int samples) in fsi_pio_push16() argument
1066 for (i = 0; i < samples / 2; i++) in fsi_pio_push16()
1072 for (i = 0; i < samples; i++) in fsi_pio_push16()
1077 static void fsi_pio_pop16(struct fsi_priv *fsi, u8 *_buf, int samples) in fsi_pio_pop16() argument
1082 for (i = 0; i < samples; i++) in fsi_pio_pop16()
1086 static void fsi_pio_push32(struct fsi_priv *fsi, u8 *_buf, int samples) in fsi_pio_push32() argument
1091 for (i = 0; i < samples; i++) in fsi_pio_push32()
1095 static void fsi_pio_pop32(struct fsi_priv *fsi, u8 *_buf, int samples) in fsi_pio_pop32() argument
[all …]
/Linux-v4.19/drivers/staging/comedi/drivers/
Dadl_pci9111.c412 unsigned int samples; in pci9111_handle_fifo_half_full() local
414 samples = comedi_nsamples_left(s, PCI9111_FIFO_HALF_SIZE); in pci9111_handle_fifo_half_full()
415 insw(dev->iobase + PCI9111_AI_FIFO_REG, buf, samples); in pci9111_handle_fifo_half_full()
418 comedi_buf_write_samples(s, buf, samples); in pci9111_handle_fifo_half_full()
423 while (pos < samples) { in pci9111_handle_fifo_half_full()
428 if (to_read > samples - pos) in pci9111_handle_fifo_half_full()
429 to_read = samples - pos; in pci9111_handle_fifo_half_full()
436 if (to_read > samples - pos) in pci9111_handle_fifo_half_full()
437 to_read = samples - pos; in pci9111_handle_fifo_half_full()
/Linux-v4.19/tools/perf/tests/
Dhists_link.c130 static int find_sample(struct sample *samples, size_t nr_samples, in find_sample() argument
134 if (samples->thread == t && samples->map == m && in find_sample()
135 samples->sym == s) in find_sample()
137 samples++; in find_sample()

123456789