Searched refs:samples (Results 1 - 200 of 399) sorted by relevance

12

/linux-4.1.27/include/linux/i2c/
H A Dtsc2007.h9 u16 max_rt; /* max. resistance above which samples are ignored */
10 unsigned long poll_period; /* time (in ms) between samples */
/linux-4.1.27/drivers/media/pci/cx88/
H A Dcx88-dsp.c137 int samples = 5; noise_magnitude() local
140 /* The last 192 samples are enough for noise detection */ noise_magnitude()
145 freq_step = (freq_end - freq_start) / (samples - 1); noise_magnitude()
147 for (i = 0; i < samples; i++) { noise_magnitude()
152 return (u32)int_sqrt(sum / samples); noise_magnitude()
234 s16 *samples; read_rds_samples() local
244 dprintk(1, "read RDS samples: current_address=%08x (offset=%08x), " read_rds_samples()
249 samples = kmalloc(sizeof(s16)*sample_count, GFP_KERNEL); read_rds_samples()
250 if (!samples) read_rds_samples()
257 samples[i] = cx_read(srch->fifo_start + offset); read_rds_samples()
262 dprintk(2, "RDS samples dump: "); read_rds_samples()
264 printk("%hd ", samples[i]); read_rds_samples()
268 return samples; read_rds_samples()
273 s16 *samples; cx88_dsp_detect_stereo_sap() local
277 /* If audio RDS fifo is disabled, we can't read the samples */ cx88_dsp_detect_stereo_sap()
287 samples = read_rds_samples(core, &N); cx88_dsp_detect_stereo_sap()
289 if (!samples) cx88_dsp_detect_stereo_sap()
297 ret = detect_a2_a2m_eiaj(core, samples, N); cx88_dsp_detect_stereo_sap()
300 ret = detect_btsc(core, samples, N); cx88_dsp_detect_stereo_sap()
311 kfree(samples); cx88_dsp_detect_stereo_sap()
H A Dcx88-input.c530 u32 samples; cx88_ir_irq() local
542 samples = cx_read(MO_SAMPLE_IO); cx88_ir_irq()
544 if (samples == 0xff && ir->dev->idle) cx88_ir_irq()
549 ev.pulse = samples & 0x80000000 ? false : true; cx88_ir_irq()
550 bits = min(todo, 32U - fls(ev.pulse ? samples : ~samples)); cx88_ir_irq()
553 samples <<= bits; cx88_ir_irq()
/linux-4.1.27/tools/perf/util/
H A Dtop.c33 if (top->samples) { perf_top__header_snprintf()
34 samples_per_sec = top->samples / top->delay_secs; perf_top__header_snprintf()
36 esamples_percent = (100.0 * top->exact_samples) / top->samples; perf_top__header_snprintf()
114 top->samples = top->us_samples = top->kernel_samples = perf_top__reset_sample_counters()
H A Dtop.h22 u64 samples; member in struct:perf_top
/linux-4.1.27/tools/perf/tests/
H A Dhists_filter.c54 * each evsel will have 10 samples but the 4th sample add_hist_entries()
148 TEST_ASSERT_VAL("Invalid nr samples", evlist__for_each()
154 TEST_ASSERT_VAL("Unmatched nr samples", evlist__for_each()
173 TEST_ASSERT_VAL("Invalid nr samples", evlist__for_each()
181 TEST_ASSERT_VAL("Unmatched nr samples for thread filter", evlist__for_each()
202 TEST_ASSERT_VAL("Invalid nr samples", evlist__for_each()
210 TEST_ASSERT_VAL("Unmatched nr samples for dso filter", evlist__for_each()
223 * there's 3 samples that have 'main' symbol but the 4th evlist__for_each()
237 TEST_ASSERT_VAL("Invalid nr samples", evlist__for_each()
245 TEST_ASSERT_VAL("Unmatched nr samples for symbol filter", evlist__for_each()
264 TEST_ASSERT_VAL("Invalid nr samples", evlist__for_each()
272 TEST_ASSERT_VAL("Unmatched nr samples for all filter", evlist__for_each()
H A Dsw-clock.c80 /* collect samples */ __test__sw_clock_freq()
105 pr_debug("All (%d) samples have period value of 1!\n", __test__sw_clock_freq()
H A Dhists_link.c71 * each evsel will have 10 samples - 5 common and 5 distinct. add_hist_entries()
135 static int find_sample(struct sample *samples, size_t nr_samples, find_sample() argument
139 if (samples->thread == t && samples->map == m && find_sample()
140 samples->sym == s) find_sample()
142 samples++; find_sample()
H A Dperf-record.c112 * So that we can check perf_sample.cpu on all the samples. test__PERF_RECORD()
253 /* Just ignore samples for now */ test__PERF_RECORD()
H A Dbuiltin-test.c34 .desc = "read samples using the mmap interface",
/linux-4.1.27/arch/powerpc/oprofile/cell/
H A Dspu_profiler.c24 static u32 *samples; variable
100 samples[spu * TRACE_ARRAY_SIZE + entry] spu_pc_extract()
102 samples[(spu + SPUS_PER_TB_ENTRY) * TRACE_ARRAY_SIZE + entry] spu_pc_extract()
152 * the samples. In the very unlikely case that the processing for_each_online_cpu()
154 * started to process the samples. Make sure only one kernel for_each_online_cpu()
155 * thread is working on the samples array at a time. The for_each_online_cpu()
172 samples + (k * TRACE_ARRAY_SIZE), for_each_online_cpu()
212 /* Allocate arrays for collecting SPU PC samples */ start_spu_profiling_cycles()
213 samples = kzalloc(SPUS_PER_NODE * start_spu_profiling_cycles()
216 if (!samples) start_spu_profiling_cycles()
245 kfree(samples); stop_spu_profiling_cycles()
H A Dpr_util.h108 /* Record SPU program counter samples to the oprofile event buffer. */
109 void spu_sync_buffer(int spu_num, unsigned int *samples,
H A Dspu_task_sync.c19 * for recoding actual SPU program counter samples to the event buffer.
554 /* Record SPU program counter samples to the oprofile event buffer. */ spu_sync_buffer()
555 void spu_sync_buffer(int spu_num, unsigned int *samples, spu_sync_buffer() argument
576 * samples are recorded. spu_sync_buffer()
577 * No big deal -- so we just drop a few samples. spu_sync_buffer()
580 "for SPU #%d. Dropping samples.\n", spu_num); spu_sync_buffer()
588 unsigned int sample = *(samples+i); spu_sync_buffer()
597 * use. We need to discard samples taken during the time spu_sync_buffer()
602 /* Drop the rest of the samples. */ spu_sync_buffer()
607 * out before samples for the SPU. Otherwise, the SPU context spu_sync_buffer()
/linux-4.1.27/sound/core/
H A Dpcm_misc.c360 * snd_pcm_format_size - return the byte size of samples on the given format
362 * @samples: sampling rate
364 * Return: The byte size of the given samples for the format, or a
367 ssize_t snd_pcm_format_size(snd_pcm_format_t format, size_t samples) snd_pcm_format_size() argument
372 return samples * phys_width / 8; snd_pcm_format_size()
398 * @samples: the number of samples to set silence
400 * Sets the silence data on the buffer for the given samples.
404 int snd_pcm_format_set_silence(snd_pcm_format_t format, void *data, unsigned int samples) snd_pcm_format_set_silence() argument
411 if (samples == 0) snd_pcm_format_set_silence()
419 unsigned int bytes = samples * width / 8; snd_pcm_format_set_silence()
423 /* non-zero samples, fill using a loop */ snd_pcm_format_set_silence()
427 while (samples--) { snd_pcm_format_set_silence()
435 while (samples--) { snd_pcm_format_set_silence()
441 while (samples--) { snd_pcm_format_set_silence()
447 while (samples--) { snd_pcm_format_set_silence()
453 while (samples--) { snd_pcm_format_set_silence()
/linux-4.1.27/drivers/macintosh/
H A Dwindfarm_pid.c43 /* Get samples into our history buffer */ wf_pid_run()
46 st->samples[i] = new_sample; wf_pid_run()
53 st->samples[st->index] = new_sample; wf_pid_run()
98 /* Get samples into our history buffer */ wf_cpu_pid_run()
H A Dwindfarm_pid.h27 int interval; /* Interval between samples in seconds */
39 s32 samples[WF_PID_MAX_HISTORY]; /* samples history buffer */ member in struct:wf_pid_state
61 int interval; /* Interval between samples in seconds */
H A Drack-meter.c39 /* Number of samples in a sample buffer */
447 "rackmeter: failed to allocate samples page !\n"); rackmeter_probe()
551 /* Free samples */ rackmeter_remove()
/linux-4.1.27/drivers/input/touchscreen/
H A Djornada720_ts.c39 /* 3 low word X samples */ jornada720_ts_collect_data()
44 /* 3 low word Y samples */ jornada720_ts_collect_data()
49 /* combined x samples bits */ jornada720_ts_collect_data()
52 /* combined y samples bits */ jornada720_ts_collect_data()
H A Dzylonite-wm97xx.c97 * to buffer up samples otherwise we end up spinning polling wm97xx_acc_pen_down()
98 * for samples. The controller can't have a suitably low wm97xx_acc_pen_down()
124 /* are samples valid */ wm97xx_acc_pen_down()
162 "zylonite accelerated touchscreen driver, %d samples/sec\n", wm97xx_acc_startup()
H A Dmainstone-wm97xx.c131 * to buffer up samples otherwise we end up spinning polling wm97xx_acc_pen_down()
132 * for samples. The controller can't have a suitably low wm97xx_acc_pen_down()
158 /* are samples valid */ wm97xx_acc_pen_down()
196 "mainstone accelerated touchscreen driver, %d samples/sec\n", wm97xx_acc_startup()
H A Dlpc32xx_ts.c97 /* FIFO overflow - throw away samples */ lpc32xx_ts_interrupt()
103 * Gather and normalize 4 samples. Pen-up events may have less lpc32xx_ts_interrupt()
104 * than 4 samples, but its ok to pop 4 and let the last sample lpc32xx_ts_interrupt()
105 * pen status check drop the samples. lpc32xx_ts_interrupt()
153 /* Set the TSC FIFO depth to 4 samples @ 10-bits per sample (max) */ lpc32xx_setup_tsc()
H A Dwm831x-ts.c137 /* Flush any final samples that arrived while reading */ wm831x_ts_data_irq()
313 /* Default to 96 samples/sec */ wm831x_ts_probe()
H A Ds3c2410_ts.c71 * @count: The number of samples collected.
190 * @left: The number of samples left.
H A Dads7846.c62 #define TS_POLL_PERIOD 5 /* ms delay between samples */
181 /* leave ADC powered up (disables penirq) between differential samples */
193 /* single-ended samples need to first power up reference voltage;
356 /* REVISIT: take a few more samples, and compare ... */ ads7846_read12_ser()
H A Dmax11801_ts.c162 /* Average X,Y, take 16 samples, average eight media sample */ max11801_ts_phy_init()
/linux-4.1.27/include/linux/spi/
H A Dads7846.h24 * capacitance on the X/Y drivers. If set to non-zero, two samples
30 /* If set to non-zero, after samples are taken this delay is applied
H A Dad7879.h27 /* [0..3] Average X middle samples 0 = 2, 1 = 4, 2 = 8, 3 = 16 */
/linux-4.1.27/net/ipv4/
H A Dtcp_vegas.c75 /* Begin taking Vegas samples next time we send something. */ vegas_enable()
85 /* Stop taking Vegas samples for now. */ vegas_disable()
104 * o min-filter RTT samples from within an RTT to get the current
107 * o min-filter RTT samples from a much longer window (forever for now)
145 * until we get fresh RTT samples. So when we
183 * samples that we can be reasonably sure that we got tcp_vegas_cong_avoid()
185 * If we only had 2 samples total, tcp_vegas_cong_avoid()
188 * If we have 3 samples, we should be OK. tcp_vegas_cong_avoid()
192 /* We don't have enough RTT samples to do the Vegas tcp_vegas_cong_avoid()
200 /* We have enough RTT samples, so, using the Vegas tcp_vegas_cong_avoid()
H A Dtcp_veno.c105 * until we get fresh rtt samples. So when we
131 /* We do the Veno calculations only if we got enough rtt samples */ tcp_veno_cong_avoid()
133 /* We don't have enough rtt samples to do the Veno tcp_veno_cong_avoid()
141 /* We have enough rtt samples, so, using the Veno tcp_veno_cong_avoid()
H A Dtcp_yeah.c122 * samples that we can be reasonably sure that we got tcp_yeah_cong_avoid()
124 * If we only had 2 samples total, tcp_yeah_cong_avoid()
127 * If we have 3 samples, we should be OK. tcp_yeah_cong_avoid()
134 /* We have enough RTT samples, so, using the Vegas tcp_yeah_cong_avoid()
H A Dtcp_cubic.c40 /* Number of delay samples for detecting the increase of delay */
97 u8 sample_cnt; /* number of samples to decide curr_rtt */
450 /* Discard delay samples right after fast recovery */ bictcp_acked()
/linux-4.1.27/drivers/media/usb/msi2500/
H A Dmsi2500.c185 * | 16-1023 | samples
188 * 504 * 2 = 1008 samples
198 * | 16- 175 | samples
200 * | 176- 179 | control bits for previous samples
202 * | 180- 339 | samples
204 * | 340- 343 | control bits for previous samples
206 * | 344- 503 | samples
208 * | 504- 507 | control bits for previous samples
210 * | 508- 667 | samples
212 * | 668- 671 | control bits for previous samples
214 * | 672- 831 | samples
216 * | 832- 835 | control bits for previous samples
218 * | 836- 995 | samples
220 * | 996- 999 | control bits for previous samples
227 * Control bits for previous samples is 32-bit field, containing 16 x 2-bit
228 * numbers. This results one 2-bit number for 8 samples. It is likely used for
232 * 6 * 16 * 2 * 4 = 768 samples. 768 * 4 = 3072 bytes
242 * | 16-1023 | samples
254 * | 16-1023 | samples
273 "%d samples lost, %d %08x:%08x\n", msi2500_convert_stream()
287 case V4L2_SDR_FMT_CU8: /* 504 x IQ samples */ msi2500_convert_stream()
301 case V4L2_SDR_FMT_CU16LE: /* 252 x IQ samples */ msi2500_convert_stream()
323 case MSI2500_PIX_FMT_SDR_MSI2500_384: /* 384 x IQ samples */ msi2500_convert_stream()
332 case V4L2_SDR_FMT_CS8: /* 504 x IQ samples */ msi2500_convert_stream()
339 case MSI2500_PIX_FMT_SDR_S12: /* 336 x IQ samples */ msi2500_convert_stream()
346 case V4L2_SDR_FMT_CS14LE: /* 252 x IQ samples */ msi2500_convert_stream()
363 unsigned int samples = s->next_sample - s->sample; msi2500_convert_stream() local
367 dev_dbg(s->dev, "size=%u samples=%u msecs=%u sample rate=%lu\n", msi2500_convert_stream()
368 src_len, samples, msecs, msi2500_convert_stream()
369 samples * 1000UL / msecs); msi2500_convert_stream()
/linux-4.1.27/drivers/staging/comedi/drivers/
H A Dquatech_daqp_cs.c503 * number of samples the card will buffer before it interrupts daqp_ai_cmd()
508 * that the FIFO can hold 2K samples (4K bytes). With the daqp_ai_cmd()
510 * error of 1024 samples. At the chip's maximum sample rate daqp_ai_cmd()
522 * us when that many samples have been taken, and we kill the daqp_ai_cmd()
528 * the stop count is 4000 samples, we divide by two twice to daqp_ai_cmd()
529 * get 1000 samples, use that as the threshold, take four daqp_ai_cmd()
530 * interrupts to get our 4000 samples and are done. daqp_ai_cmd()
533 * samples are requested, we could set the threshold to 1500 daqp_ai_cmd()
534 * samples and take 54 interrupts to get 81000. But 54 isn't daqp_ai_cmd()
537 * interrupts to get 81024 samples, of which the last 24 will daqp_ai_cmd()
547 * the code. Let's say we're taking 4000 samples, as before. daqp_ai_cmd()
548 * After 1000 samples, we get an interrupt. But before that daqp_ai_cmd()
551 * empties the FIFO before returning, it will read 1001 samples. daqp_ai_cmd()
552 * If that happens four times, we'll end up taking 4004 samples, daqp_ai_cmd()
554 * samples (by halting the acquisition with four samples still daqp_ai_cmd()
559 * samples than actually requested. Shouldn't make too much daqp_ai_cmd()
564 * compute the FIFO threshold (in bytes, not samples - that's daqp_ai_cmd()
H A Dadl_pci9111.c437 unsigned int samples; pci9111_handle_fifo_half_full() local
439 samples = comedi_nsamples_left(s, PCI9111_FIFO_HALF_SIZE); pci9111_handle_fifo_half_full()
441 devpriv->ai_bounce_buffer, samples); pci9111_handle_fifo_half_full()
444 comedi_buf_write_samples(s, devpriv->ai_bounce_buffer, samples); pci9111_handle_fifo_half_full()
449 while (pos < samples) { pci9111_handle_fifo_half_full()
454 if (to_read > samples - pos) pci9111_handle_fifo_half_full()
455 to_read = samples - pos; pci9111_handle_fifo_half_full()
464 if (to_read > samples - pos) pci9111_handle_fifo_half_full()
465 to_read = samples - pos; pci9111_handle_fifo_half_full()
H A Ddas1800.c537 /* get any remaining samples in fifo */ das1800_flush_dma()
909 unsigned int samples; das1800_ai_transfer_size() local
911 samples = max_samples; das1800_ai_transfer_size()
917 samples = ns / cmd->convert_arg; das1800_ai_transfer_size()
920 samples = ns / (cmd->scan_begin_arg * cmd->chanlist_len); das1800_ai_transfer_size()
924 /* limit samples to what is remaining in the command */ das1800_ai_transfer_size()
925 samples = comedi_nsamples_left(s, samples); das1800_ai_transfer_size()
927 if (samples > max_samples) das1800_ai_transfer_size()
928 samples = max_samples; das1800_ai_transfer_size()
929 if (samples < 1) das1800_ai_transfer_size()
930 samples = 1; das1800_ai_transfer_size()
932 return comedi_samples_to_bytes(s, samples); das1800_ai_transfer_size()
H A Dadl_pci9118.c36 * b) DMA transfers must have the length aligned to two samples (32 bit),
437 return n_raw_samples; /* use all samples */ valid_samples_in_act_dma_buf()
440 * Not all samples are to be used. Buffer contents consist of a valid_samples_in_act_dma_buf()
444 * Account for samples in whole number of spans. valid_samples_in_act_dma_buf()
451 * Deal with remaining samples which could overlap up to two spans. valid_samples_in_act_dma_buf()
455 /* Skip samples before start position. */ valid_samples_in_act_dma_buf()
465 /* Include samples before stop position. */ valid_samples_in_act_dma_buf()
494 /* All samples are to be copied. */ move_block_from_dma()
499 * Not all samples are to be copied. Buffer contents consist move_block_from_dma()
505 /* Skip samples before start position. */ move_block_from_dma()
515 /* Copy samples before stop position. */ move_block_from_dma()
1007 * It adds two samples before every scan as minimum pci9118_ai_cmd()
1620 * 16-bit samples are from an ADS7805 A/D converter. pci9118_common_attach()
1626 * 12-bit samples are from an ADS7800 A/D converter. pci9118_common_attach()
H A Ddas16m1.c39 samples from the board. So at 1 Mhz sampling rate,
127 unsigned int adc_count; /* number of samples completed */
265 * many samples are in fifo. Value doesn't actually load into counter das16m1_cmd_exec()
410 /* figure out how many samples are in fifo */ das16m1_handler()
H A Ddyna_pci10xx.c87 /* convert n samples */ dyna_pci10xx_insn_read_ai()
106 /* return the number of samples read/written */ dyna_pci10xx_insn_read_ai()
H A Dpcl816.c136 * unread samples and the number of samples remaining in the command. pcl816_ai_setup_dma()
484 /* no new samples */ pcl816_ai_poll()
H A Dni_labpc_isadma.c101 * Figure out how many samples to read for this transfer and labpc_drain_dma()
H A Dcb_pcimdas.c209 /* convert n samples */ cb_pcimdas_ai_insn_read()
223 /* return the number of samples read/written */ cb_pcimdas_ai_insn_read()
H A Drtd520.c74 * we always count down samples read.
375 long ai_count; /* total transfer size (samples) */
511 /* convert samples */ rtd520_probe_fifo_depth()
568 /* convert n samples */ rtd_ai_rinsn()
589 /* return the number of samples read/written */ rtd_ai_rinsn()
912 /* find out how many samples to wait before transferring */ rtd_ai_cmd()
1015 /* transfer every N samples */ rtd_ai_cmd()
1097 /* return the number of samples read/written */ rtd_ao_winsn()
H A Ds526.c446 /* convert n samples */ s526_ai_rinsn()
465 /* return the number of samples read/written */ s526_ai_rinsn()
H A Ddas16.c462 * unread samples and the number of samples remaining in the command. das16_ai_setup_dma()
499 /* figure out how many samples to read */ das16_interrupt()
509 /* restart DMA if more samples are needed */ das16_interrupt()
H A Dmpc624.c268 /* Return the number of samples read/written */ mpc624_ai_rinsn()
H A Dni_daq_700.c166 /* convert n samples */ daq700_ai_rinsn()
/linux-4.1.27/drivers/media/pci/cx18/
H A Dcx18-av-audio.c96 /* AUD_COUNT = 0x2fff = 8 samples * 4 * 384 - 1 */ set_audclk_freq()
102 * ((8 samples/32,000) * (13,500,000 * 8) * 4 - 1) * 8 set_audclk_freq()
131 /* AUD_COUNT = 0x92ff = 49 samples * 2 * 384 - 1 */ set_audclk_freq()
137 * ((49 samples/44,100) * (13,500,000 * 8) * 2 - 1) * 8 set_audclk_freq()
166 /* AUD_COUNT = 0x5fff = 4 samples * 16 * 384 - 1 */ set_audclk_freq()
172 * ((4 samples/48,000) * (13,500,000 * 8) * 16 - 1) * 8 set_audclk_freq()
207 /* AUD_COUNT = 0x1fff = 8 samples * 4 * 256 - 1 */ set_audclk_freq()
213 * ((8 samples/32,000) * (13,500,000 * 8) * 4 - 1) * 8 set_audclk_freq()
246 /* AUD_COUNT = 0x61ff = 49 samples * 2 * 256 - 1 */ set_audclk_freq()
252 * ((49 samples/44,100) * (13,500,000 * 8) * 2 - 1) * 8 set_audclk_freq()
285 /* AUD_COUNT = 0x3fff = 4 samples * 16 * 256 - 1 */ set_audclk_freq()
291 * ((4 samples/48,000) * (13,500,000 * 8) * 16 - 1) * 8 set_audclk_freq()
H A Dcx18-driver.h470 * Number of "raw" VBI samples per horizontal line we tell the Encoder to
475 * = 4 bytes EAV + Anc data in hblank + 4 bytes SAV + active samples
478 * Raw VBI is sent as active video samples during vertcal blanking
486 * (1/15.734 kHz) * 2 * 13.5 MHz = 1716 samples/line =
487 * 4 bytes SAV + 268 bytes anc data + 4 bytes SAV + 1440 active samples
492 * (1/15.625 kHz) * 2 * 13.5 MHz = 1728 samples/line =
493 * 4 bytes SAV + 280 bytes anc data + 4 bytes SAV + 1440 active samples
/linux-4.1.27/drivers/media/common/siano/
H A Dsmsir.c41 const s32 *samples = (const void *)buf; sms_ir_event() local
46 ev.duration = abs(samples[i]) * 1000; /* Convert to ns */ sms_ir_event()
47 ev.pulse = (samples[i] > 0) ? false : true; sms_ir_event()
/linux-4.1.27/drivers/isdn/i4l/
H A Disdn_audio.h12 #define DTMF_NPOINTS 205 /* Number of samples for DTMF recognition */
/linux-4.1.27/sound/core/oss/
H A Dpcm_plugin.h35 void *addr; /* base address of channel samples */
37 unsigned int step; /* samples distance in bits */
150 size_t samples, snd_pcm_format_t format);
155 size_t samples, snd_pcm_format_t format);
H A Dpcm_plugin.c650 size_t samples, snd_pcm_format_t format) snd_pcm_area_silence()
664 return snd_pcm_format_set_silence(format, dst, samples); snd_pcm_area_silence()
673 while (samples-- > 0) { snd_pcm_area_silence()
687 while (samples-- > 0) { snd_pcm_area_silence()
697 size_t samples, snd_pcm_format_t format) snd_pcm_area_copy()
705 return snd_pcm_area_silence(dst_area, dst_offset, samples, format); snd_pcm_area_copy()
714 size_t bytes = samples * width / 8; snd_pcm_area_copy()
726 while (samples-- > 0) { snd_pcm_area_copy()
751 while (samples-- > 0) { snd_pcm_area_copy()
649 snd_pcm_area_silence(const struct snd_pcm_channel_area *dst_area, size_t dst_offset, size_t samples, snd_pcm_format_t format) snd_pcm_area_silence() argument
695 snd_pcm_area_copy(const struct snd_pcm_channel_area *src_area, size_t src_offset, const struct snd_pcm_channel_area *dst_area, size_t dst_offset, size_t samples, snd_pcm_format_t format) snd_pcm_area_copy() argument
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
H A Dspectral.h36 * @SPECTRAL_BACKGROUND: hardware sends samples when it is not busy with
38 * @SPECTRAL_MANUAL: spectral scan is enabled, triggering for samples
/linux-4.1.27/sound/oss/
H A Dwaveartist.h45 #define WACMD_INPUTSIZE 0x14 //samples to interrupt
56 #define WACMD_OUTPUTSIZE 0x24 //samples to interrupt
H A Dsb_audio.c865 /* max_in >> 1, max number of samples in ( 16 bits ) */ sb16_copy_from_user()
866 /* max_out, max number of samples out ( 8 bits ) */ sb16_copy_from_user()
867 /* len, number of samples that will be taken ( 16 bits )*/ sb16_copy_from_user()
868 /* c, count of samples remaining in buffer ( 16 bits )*/ sb16_copy_from_user()
869 /* p, count of samples already processed ( 16 bits )*/ sb16_copy_from_user()
877 /* << 1 in order to get 16 bit samples */ sb16_copy_from_user()
888 /* used = ( samples * 16 bits size ) */ sb16_copy_from_user()
890 /* returned = ( samples * 8 bits size ) */ sb16_copy_from_user()
896 /* max_in, max number of samples in ( 8 bits ) */ sb16_copy_from_user()
897 /* max_out >> 1, max number of samples out ( 16 bits ) */ sb16_copy_from_user()
898 /* len, number of samples that will be taken ( 8 bits )*/ sb16_copy_from_user()
899 /* c, count of samples remaining in buffer ( 8 bits )*/ sb16_copy_from_user()
900 /* p, count of samples already processed ( 8 bits )*/ sb16_copy_from_user()
918 /* used = ( samples * 8 bits size ) */ sb16_copy_from_user()
920 /* returned = ( samples * 16 bits size ) */ sb16_copy_from_user()
H A Dvidc.c14 * samples to the VIDC20, which then transfers this data serially to the
300 * will take care of formatting the samples (via the appropriate
333 * Prepare for outputting samples.
/linux-4.1.27/include/uapi/sound/
H A Demu10k1.h262 unsigned int internal_tram_size; /* in samples */
263 unsigned int external_tram_size; /* in samples */
326 unsigned int size; /* size in samples (4 bytes) */
327 unsigned int *samples; /* pointer to samples (20-bit) */ member in struct:snd_emu10k1_fx8010_tram
335 unsigned int tram_start; /* ring buffer position in TRAM (in samples) */
336 unsigned int buffer_size; /* count of buffered samples */
337 unsigned short gpr_size; /* GPR containing size of ringbuffer in samples (host) */
339 unsigned short gpr_count; /* GPR containing count of samples between two interrupts (host) */
340 unsigned short gpr_tmpcount; /* GPR containing current count of samples to interrupt (host = set, FX8010) */
H A Dasound.h220 #define SNDRV_PCM_FORMAT_G723_24 ((__force snd_pcm_format_t) 44) /* 8 samples in 3 bytes */
224 #define SNDRV_PCM_FORMAT_DSD_U8 ((__force snd_pcm_format_t) 48) /* DSD, 1-byte samples DSD (x8) */
225 #define SNDRV_PCM_FORMAT_DSD_U16_LE ((__force snd_pcm_format_t) 49) /* DSD, 2-byte samples DSD (x16), little endian */
226 #define SNDRV_PCM_FORMAT_DSD_U32_LE ((__force snd_pcm_format_t) 50) /* DSD, 4-byte samples DSD (x32), little endian */
227 #define SNDRV_PCM_FORMAT_DSD_U16_BE ((__force snd_pcm_format_t) 51) /* DSD, 2-byte samples DSD (x16), big endian */
228 #define SNDRV_PCM_FORMAT_DSD_U32_BE ((__force snd_pcm_format_t) 52) /* DSD, 4-byte samples DSD (x32), big endian */
265 #define SNDRV_PCM_INFO_BLOCK_TRANSFER 0x00010000 /* hardware transfer block of samples */
418 unsigned int step; /* samples distance in bits */
H A Dcompress_offload.h126 * @SNDRV_COMPRESS_ENCODER_PADDING: no of samples appended by the encoder at the
128 * @SNDRV_COMPRESS_ENCODER_DELAY: no of samples inserted by the encoder at the
H A Dsfnt_info.h76 #define SNDRV_SFNT_PAT_LOCKED 0x100 /* lock the samples */
/linux-4.1.27/sound/pci/cs46xx/
H A Dcs46xx_dsp_scb_types.h358 number of samples to output each frame.
382 /* NOTE: The CODEC output task reads samples from the first task on its
384 address word). After the required number of samples is transferred,
385 the CODEC output task advances sub_list_ptr->strm_buf_ptr past the samples
393 the left-channel samples are to
398 to which the right-channel samples
445 /* NOTE: The CODEC input task reads samples from the hardware FIFO
447 After the required number of samples is transferred, the CODEC
448 output task advances sub_list_ptr->basic_req.saw past the samples
458 the left-channel samples are to
463 to which the right-channel samples
505 samples are written
593 /* extraInSamples: # of accumulated, unused input samples (init. to 0)
664 /* extraInSamples: # of accumulated, unused input samples (init. to 0)
/linux-4.1.27/sound/soc/sh/
H A Dfsi.c447 static int fsi_sample2frame(struct fsi_priv *fsi, int samples) fsi_sample2frame() argument
449 return samples / fsi->chan_num; fsi_sample2frame()
1059 static void fsi_pio_push16(struct fsi_priv *fsi, u8 *_buf, int samples) fsi_pio_push16() argument
1071 for (i = 0; i < samples / 2; i++) fsi_pio_push16()
1077 for (i = 0; i < samples; i++) fsi_pio_push16()
1082 static void fsi_pio_pop16(struct fsi_priv *fsi, u8 *_buf, int samples) fsi_pio_pop16() argument
1087 for (i = 0; i < samples; i++) fsi_pio_pop16()
1091 static void fsi_pio_push32(struct fsi_priv *fsi, u8 *_buf, int samples) fsi_pio_push32() argument
1096 for (i = 0; i < samples; i++) fsi_pio_push32()
1100 static void fsi_pio_pop32(struct fsi_priv *fsi, u8 *_buf, int samples) fsi_pio_pop32() argument
1105 for (i = 0; i < samples; i++) fsi_pio_pop32()
1118 void (*run16)(struct fsi_priv *fsi, u8 *buf, int samples), fsi_pio_transfer()
1119 void (*run32)(struct fsi_priv *fsi, u8 *buf, int samples), fsi_pio_transfer()
1120 int samples) fsi_pio_transfer()
1131 run16(fsi, buf, samples); fsi_pio_transfer()
1134 run32(fsi, buf, samples); fsi_pio_transfer()
1140 fsi_pointer_update(io, samples); fsi_pio_transfer()
1147 int sample_residues; /* samples in FSI fifo */ fsi_pio_pop()
1148 int sample_space; /* ALSA free samples space */ fsi_pio_pop()
1149 int samples; fsi_pio_pop() local
1154 samples = min(sample_residues, sample_space); fsi_pio_pop()
1159 samples); fsi_pio_pop()
1164 int sample_residues; /* ALSA residue samples */ fsi_pio_push()
1165 int sample_space; /* FSI fifo free samples space */ fsi_pio_push()
1166 int samples; fsi_pio_push() local
1172 samples = min(sample_residues, sample_space); fsi_pio_push()
1177 samples); fsi_pio_push()
1117 fsi_pio_transfer(struct fsi_priv *fsi, struct fsi_stream *io, void (*run16)(struct fsi_priv *fsi, u8 *buf, int samples), void (*run32)(struct fsi_priv *fsi, u8 *buf, int samples), int samples) fsi_pio_transfer() argument
/linux-4.1.27/drivers/isdn/mISDN/
H A Dclock.c25 * A clock source calls mISDN_clock_update with given samples elapsed, if
32 * counts the number of samples since. Time since last clock event is added.
142 mISDN_clock_update(struct mISDNclock *iclock, int samples, struct timeval *tv) mISDN_clock_update() argument
160 /* increment sample counter by given samples */ mISDN_clock_update()
161 iclock_count += samples; mISDN_clock_update()
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) { dsp_audio_generate_ulaw_samples()
221 while (j < (*samples[i].len)) { dsp_audio_generate_ulaw_samples()
222 samples[i].data[j] = dsp_audio_generate_ulaw_samples()
223 dsp_audio_alaw_to_ulaw[samples[i].data[j]]; dsp_audio_generate_ulaw_samples()
362 /* an sk_buff is generated from the number of samples needed.
411 /* calculate start and number of samples */ dsp_tone_copy()
H A Ddsp_dtmf.c132 /* Note: The function will loop until the buffer has not enough samples dsp_dtmf_goertzel_decode()
136 /* convert samples */ dsp_dtmf_goertzel_decode()
183 /* now we have a full buffer of signed long samples - we do goertzel */ dsp_dtmf_goertzel_decode()
H A Ddsp_blowfish.c19 * first of all, data is collected until a block of 9 samples are received.
21 * not excacly the multiple of 9 samples. if there is a rest, the next
24 * the block is then converted to 9 uLAW samples without the least sigificant
27 * the samples will be reoganised to form 8 bytes of data:
366 * every block with 9 samples is encrypted
381 /* collect a block of 9 samples */ dsp_bf_encrypt()
389 /* transcode 9 samples xlaw to 8 bytes */ dsp_bf_encrypt()
H A Dl1oip_codec.c35 A pair of two samples are stored in one byte.
42 - 16 bits index for two samples (law encoded) with 8 bit compressed result.
223 * The number of samples also must be even!
260 * The number of samples in the result are even!
H A Ddsp_audio.c102 #define BIAS 0x84 /*!< define the add-in bias for 16 bit samples */
247 * generate mix table to mix two law samples into one *
H A Ddsp_core.c513 /* milliseconds to samples */ dsp_control_req()
520 "compensate jitter (%d samples)\n", dsp_control_req()
1148 "samples (0,125 ms). It is not a multiple of " dsp_init()
1169 "samples. (Choose kernel clock speed like 100, 250, " dsp_init()
1174 printk(KERN_INFO "mISDN_dsp: DSP clocks every %d samples. This equals " dsp_init()
/linux-4.1.27/drivers/iio/
H A Dkfifo_buf.c113 size_t samples; iio_kfifo_buf_data_available() local
116 samples = kfifo_len(&kf->kf); iio_kfifo_buf_data_available()
119 return samples; iio_kfifo_buf_data_available()
/linux-4.1.27/include/uapi/linux/
H A Dmedia-bus-format.h18 * transferred in two 8-bit samples, "BE" or "LE" specify in which order those
19 * samples are transferred over the bus: "LE" means that the least significant
24 * The bus formats are grouped by type, bus_width, bits per component, samples
H A Dptp_clock.h71 #define PTP_MAX_SAMPLES 25 /* Maximum allowed offset measurement samples. */
/linux-4.1.27/include/linux/mfd/
H A Dstmpe.h133 * (0 -> 1 sample, 1 -> 2 samples, 2 -> 4 samples, 3 -> 8 samples)
/linux-4.1.27/tools/perf/
H A Dbuiltin-inject.c32 struct list_head samples; member in struct:perf_inject
262 list_for_each_entry(ent, &inject->samples, node) { perf_inject__sched_process_exit()
293 list_add(&ent->node, &inject->samples); perf_inject__sched_switch()
309 list_for_each_entry(ent, &inject->samples, node) { perf_inject__sched_stat()
421 .samples = LIST_HEAD_INIT(inject.samples), cmd_inject()
H A Dbuiltin-record.c47 long samples; member in struct:record
83 rec->samples++; record__mmap_read()
202 rec->samples++; process_sample_event()
479 int hits = rec->samples; __cmd_record()
486 if (hits == rec->samples) { __cmd_record()
543 rec->samples = 0; __cmd_record()
554 char samples[128]; __cmd_record() local
556 if (rec->samples) __cmd_record()
557 scnprintf(samples, sizeof(samples), __cmd_record()
558 " (%" PRIu64 " samples)", rec->samples); __cmd_record()
560 samples[0] = '\0'; __cmd_record()
564 file->path, samples); __cmd_record()
865 OPT_BOOLEAN('R', "raw-samples", &record.opts.raw_samples,
898 OPT_BOOLEAN('n', "no-samples", &record.opts.no_samples,
H A Dbuiltin-mem.c172 rep_argv[i++] = "-n"; /* display number of samples */ report_events()
283 OPT_BOOLEAN('D', "dump-raw-samples", &mem.dump_raw, cmd_mem()
284 "dump raw samples in ASCII"), cmd_mem()
H A Dbuiltin-top.c158 "Not all samples will be on the annotation output.\n\n" ui__warn_map_erange()
718 pr_err("%u unprocessable samples recorded.\r", perf_event__process_sample()
735 "Kernel%s samples will not be resolved.\n", perf_event__process_sample()
744 const char *msg = "Kernel samples will not be resolved.\n"; perf_event__process_sample()
822 ++top->samples; perf_top__mmap_read_idx()
995 u64 hits = top->samples; __cmd_top()
999 if (hits == top->samples) __cmd_top()
1120 OPT_BOOLEAN('n', "show-nr-samples", &symbol_conf.show_nr_samples, cmd_top()
1121 "Show a column with the number of samples"), cmd_top()
H A Dbuiltin-kvm.c713 * the processing of samples per mmap smooth.
771 * mmap times. Essentially, we flush all the samples queued up perf_kvm__mmap_read()
773 * a very small race for samples to come in with a lower timestamp. perf_kvm__mmap_read()
1172 set_option_flag(record_options, 'R', "raw-samples", PARSE_OPT_HIDDEN); kvm_events_record()
1181 set_option_flag(record_options, 'n', "no-samples", PARSE_OPT_DISABLED); kvm_events_record()
1204 "key for sorting: sample(sort by samples number)" kvm_events_report()
1306 "key for sorting: sample(sort by samples number)" kvm_events_live()
H A Dbuiltin-report.c357 "As no suitable kallsyms nor vmlinux was found, kernel samples\n" report__warn_kptr_restrict()
522 ui__error("The %s file has no samples!\n", file->path); __cmd_report()
630 OPT_BOOLEAN('n', "show-nr-samples", &symbol_conf.show_nr_samples, cmd_report()
631 "Show a column with the number of samples"), cmd_report()
H A Dbuiltin-timechart.c83 * Each comm has a list of samples that will be used to draw
121 struct cpu_sample *samples; member in struct:per_pidcomm
288 sample->next = c->samples; pid_put_sample()
291 c->samples = sample; pid_put_sample()
1113 sample = c->samples; draw_cpu_usage()
1267 sample = c->samples; draw_process_bars()
/linux-4.1.27/include/linux/sunrpc/
H A Dmetrics.h17 * by the tools by taking the difference between two instantaneous samples
18 * and dividing that by the time between the samples.
/linux-4.1.27/tools/perf/scripts/python/
H A Dexport-to-postgresql.py139 do_query(query, 'CREATE TABLE samples ('
158 do_query(query, 'CREATE TABLE samples ('
219 ' FROM samples')
305 copy_output_file(sample_file, "samples")
333 do_query(query, 'ALTER TABLE samples ADD PRIMARY KEY (id)')
349 do_query(query, 'ALTER TABLE samples '
366 'ADD CONSTRAINT callfk FOREIGN KEY (call_id) REFERENCES samples (id),'
367 'ADD CONSTRAINT returnfk FOREIGN KEY (return_id) REFERENCES samples (id),'
H A Devent_analyzing_sample.py30 # If the perf.data has a big number of samples, then the insert operation
31 # will be very time consuming (about 10+ minutes for 10000 samples) if the
/linux-4.1.27/drivers/media/rc/
H A Dene_ir.h31 /* 8 bytes of samples, divided in 2 packets*/
62 /* high parts of samples for fan input (8 samples)*/
229 unsigned *tx_buffer; /* input samples buffer*/
H A Dsunxi-cir.c81 /* Noise threshold in samples */
83 /* Idle Threshold in samples */
/linux-4.1.27/drivers/media/rc/img-ir/
H A Dimg-ir-raw.h22 * @timer: Timer to echo samples to keep soft decoders happy.
/linux-4.1.27/include/linux/
H A Duwb.h746 * (@sigma) and a # of samples. When @samples gets to 255, we compute
747 * the average (@sigma / @samples), place it in @sigma and reset
748 * @samples to 1 (so we use it as the first sample).
758 * resetting the values we just set @samples to 0 and that makes the
768 atomic_t samples; member in struct:stats
774 atomic_set(&stats->samples, 0); stats_init()
783 unsigned samples = atomic_read(&stats->samples); stats_add_sample() local
784 if (samples == 0) { /* it was zero before, so we initialize */ stats_add_sample()
803 if (atomic_add_return(1, &stats->samples) > 255) { stats_add_sample()
806 atomic_set(&stats->samples, 1); stats_add_sample()
813 int samples = atomic_read(&stats->samples); stats_show() local
814 if (samples == 0) stats_show()
819 avg = stats->sigma / samples; stats_show()
H A Dnfs_iostat.h17 * difference between two instantaneous samples and dividing that
18 * by the time between the samples.
H A Drbtree.h26 See Documentation/rbtree.txt for documentation and samples.
H A Drbtree_augmented.h35 * See Documentation/rbtree.txt for documentation and samples.
H A Dhid-sensor-hub.h97 * @send_event: Send notification to indicate all samples are
/linux-4.1.27/arch/s390/include/uapi/asm/
H A Dcmb.h11 * @sample_count: number of samples
/linux-4.1.27/sound/soc/blackfin/
H A Dbf5xx-i2s-pcm.c293 unsigned int offset, samples; bf5xx_pcm_silence() local
299 samples = count * 8; bf5xx_pcm_silence()
302 samples = count * runtime->channels; bf5xx_pcm_silence()
305 snd_pcm_format_set_silence(runtime->format, buf + offset, samples); bf5xx_pcm_silence()
/linux-4.1.27/drivers/staging/comedi/
H A Dcomedi_buf.c293 /* don't munge partial samples */ comedi_buf_munge()
474 * @data: samples
475 * @nsamples: number of samples
489 * Make sure there is enough room in the buffer for all the samples. comedi_buf_write_samples()
491 * buffer overrun and add the samples that fit. comedi_buf_write_samples()
519 * @nsamples: maximum number of samples to read
532 /* clamp nsamples to the number of full samples available */ comedi_buf_read_samples()
H A Ddrivers.c307 * For digital input, output or input/output subdevices, samples for multiple
310 * types of subdevice, samples are assumed to occupy a whole unsigned short or
376 * comedi_nsamples_left - return the number of samples left in the command
378 * @nsamples: the expected number of samples
380 * Returns the expected number of samples of the number of samples remaining
H A Dcomedidev.h441 * comedi_bytes_to_samples - converts a number of bytes to a number of samples
454 * comedi_samples_to_bytes - converts a number of samples to a number of bytes
456 * @nsamples: number of samples
458 * Returns the number of samples multiplied by the subdevice sample size.
/linux-4.1.27/drivers/oprofile/
H A Dbuffer_sync.c67 * any remaining samples for this task.
73 * hoping that most samples for the task are on this CPU task_exit_notify()
81 * do, and if it's an executable region, process the samples first, so
98 * hoping that most samples for the task are on this CPU munmap_notify()
110 * loaded module, or drop the samples on the floor.
223 * shared-library samples with particular applications
486 * Here we need to go through each batch of samples punctuated
H A Dcpu_buffer.c349 * Add samples with data to the ring buffer.
364 /* no backtraces for samples with data */ oprofile_write_reserve()
/linux-4.1.27/sound/firewire/
H A Disight.c75 __be16 samples[2 * MAX_FRAMES_PER_PACKET]; member in struct:audio_payload
109 const __be16 *samples, unsigned int count) isight_samples()
120 samples, count * 4); isight_samples()
124 samples, count1 * 4); isight_samples()
125 samples += count1 * 2; isight_samples()
126 memcpy(runtime->dma_area, samples, (count - count1) * 4); isight_samples()
191 isight_samples(isight, payload->samples, count); isight_packet()
108 isight_samples(struct isight *isight, const __be16 *samples, unsigned int count) isight_samples() argument
H A Damdtp.h13 * sample_rate/8000 samples, with rounding up or down to adjust
14 * for clock skew and left-over fractional samples. This should
17 * SYT_INTERVAL samples, with these two types alternating so that
/linux-4.1.27/sound/soc/codecs/
H A Dtlv320dac33.c46 * It can be configured to hold 16bit or 24bit samples
47 * In 16bit configuration the FIFO can hold 6144 stereo samples
48 * In 24bit configuration the FIFO can hold 4096 stereo samples
56 #define SAMPLES_TO_US(rate, samples) \
57 (1000000000 / (((rate) * 1000) / (samples)))
62 #define UTHR_FROM_PERIOD_SIZE(samples, playrate, burstrate) \
63 (((samples)*5000) / (((burstrate)*5000) / ((burstrate) - (playrate))))
105 unsigned int fifo_size; /* Size of the FIFO in samples */
119 * samples */
1076 /* Number of samples under i2c latency */ dac33_calculate_times()
1158 int samples_out, samples_in, samples; dac33_dai_delay() local
1205 samples = dac33->alarm_threshold; dac33_dai_delay()
1206 samples += (samples_in - samples_out); dac33_dai_delay()
1208 if (likely(samples > 0)) dac33_dai_delay()
1209 delay = samples; dac33_dai_delay()
1223 samples = dac33->alarm_threshold; dac33_dai_delay()
1224 samples += (samples_in - samples_out); dac33_dai_delay()
1226 if (likely(samples > 0)) dac33_dai_delay()
1227 delay = samples > dac33->fifo_size ? dac33_dai_delay()
1228 dac33->fifo_size : samples; dac33_dai_delay()
H A Dda7213.c104 "256 samples", "512 samples", "1024 samples", "2048 samples"
/linux-4.1.27/drivers/misc/echo/
H A Decho.c62 on 4 real-world samples.
66 on the real-world samples. I have no idea why, perhaps a scaling
101 also to those people who collected echo samples for me such as
113 #define DTD_HANGOVER 600 /* 600 samples, or 75ms */
186 by sample. Processing a few samples every ms is inefficient.
373 * speech quality when listening to samples through headphones but may oslec_update()
417 samples. */ oslec_update()
524 * samples oslec_update()
632 from things that upset them. The difference between successive samples
H A Doslec.h48 * @len: The length of the canceller, in samples.
/linux-4.1.27/drivers/iio/accel/
H A Dbmc150-accel.c101 /* Slope duration in terms of number of samples */
908 char *buffer, int samples) bmc150_accel_fifo_transfer()
926 .len = samples * sample_length, bmc150_accel_fifo_transfer()
938 for (i = 0; i < samples * sample_length; i += step) { bmc150_accel_fifo_transfer()
958 unsigned samples, bool irq) __bmc150_accel_fifo_flush()
983 * now. We can fall anywhere in between two samples so the error in this __bmc150_accel_fifo_flush()
993 * frequency, timestamp for last sample and number of samples. __bmc150_accel_fifo_flush()
998 * small variation adds when we store a large number of samples and __bmc150_accel_fifo_flush()
999 * creates significant jitter between the last and first samples in __bmc150_accel_fifo_flush()
1009 if (samples && count > samples) __bmc150_accel_fifo_flush()
1010 count = samples; __bmc150_accel_fifo_flush()
1039 static int bmc150_accel_fifo_flush(struct iio_dev *indio_dev, unsigned samples) bmc150_accel_fifo_flush() argument
1045 ret = __bmc150_accel_fifo_flush(indio_dev, samples, false); bmc150_accel_fifo_flush()
907 bmc150_accel_fifo_transfer(const struct i2c_client *client, char *buffer, int samples) bmc150_accel_fifo_transfer() argument
957 __bmc150_accel_fifo_flush(struct iio_dev *indio_dev, unsigned samples, bool irq) __bmc150_accel_fifo_flush() argument
H A Dhid-sensor-accel-3d.c202 /* Callback handler to send event after all samples are received and captured */ accel_3d_proc_event()
219 /* Capture samples in local storage */ accel_3d_capture_sample()
/linux-4.1.27/sound/pci/emu10k1/
H A Dp16v.h103 #define PLAYBACK_FIFO_POINTER 0x08 /* Playback FIFO pointer and number of valid sound samples in cache */
108 #define CAPTURE_FIFO_POINTER 0x13 /* Capture FIFO pointer and number of valid sound samples in cache */
218 /* SRC48 converts samples rates 44.1, 48, 96, 192 to 48 khz. */
219 /* SRCMulti converts 48khz samples rates to 44.1, 48, 96, 192 to 48. */
245 /* SRC48 converts samples rates 44.1, 48, 96, 192 to 48 khz. */
250 /* SRCMulti converts 48khz samples rates to 44.1, 48, 96, 192 to 48. */
H A Demu10k1_patch.c64 /* some samples have invalid data. the addresses are corrected in voice info */ snd_emu10k1_sample_new()
104 /* write blank samples at head */ snd_emu10k1_sample_new()
174 /* clear rest of samples (if any) */ snd_emu10k1_sample_new()
H A Dp17v.h29 * and number of sound samples in cache.
33 * and number of sound samples in cache.
H A Demu10k1.c78 MODULE_PARM_DESC(delay_pcm_irq, "Delay PCM interrupt by specified number of samples (default 0).");
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
H A Dcommon-spectral.h25 * @SPECTRAL_BACKGROUND: hardware sends samples when it is not busy with
27 * @SPECTRAL_MANUAL: spectral scan is enabled, triggering for samples
/linux-4.1.27/drivers/iio/common/ssp_sensors/
H A Dssp_iio.c90 * it always sends full set of samples, remember about available masks ssp_common_process_data()
/linux-4.1.27/drivers/net/wireless/ath/
H A Dspectral_common.h23 /* TODO: could possibly be 512, but no samples this large
/linux-4.1.27/fs/ocfs2/cluster/
H A Dheartbeat.h38 /* number of equal samples to be seen as dead */
/linux-4.1.27/samples/rpmsg/
H A Drpmsg_client_sample.c38 /* samples should not live forever */ rpmsg_sample_cb()
/linux-4.1.27/drivers/staging/iio/accel/
H A Dsca3000_ring.c73 * @count: number of samples to try and pull
74 * @data: output the actual samples pulled from the hw ring
105 * num_available is the total number of samples available sca3000_read_first_n_hw_rb()
/linux-4.1.27/sound/isa/sb/
H A Demu8000_patch.c82 * 8bit samples etc.
123 * It mostly does, but during writes of some samples at random it
218 /* first block - write 48 samples for silence */ snd_emu8000_sample_new()
/linux-4.1.27/arch/s390/kernel/
H A Dperf_cpum_sf.c493 * discarded. Then calculate the ratio of lost samples to total samples sfb_account_overflows()
761 * to avoid throttling when pushing samples with __hw_perf_event_init()
965 /* perf_push_sample() - Push samples to perf
1120 /* hw_collect_samples() - Walk through a sample-data-block and collect samples
1137 * The overflow variables counts the number of samples that has been discarded
1177 /* Count discarded samples */ hw_collect_samples()
1205 * Processes the sampling buffer and create perf event samples.
1253 /* Collect all samples from a single sample-data-block and hw_perf_event_update()
1255 * is stopped and remaining samples will be discarded. hw_perf_event_update()
1276 /* Stop processing sample-data if all samples of the current hw_perf_event_update()
1282 /* If an event overflow happened, discard samples by hw_perf_event_update()
1366 * position after samples have been flushed. cpumsf_pmu_add()
/linux-4.1.27/drivers/input/misc/
H A Dadxl34x.c302 int int_stat, tap_stat, samples, orient, orient_code; adxl34x_irq() local
371 samples = ENTRIES(AC_READ(ac, FIFO_STATUS)) + 1; adxl34x_irq()
373 samples = 1; adxl34x_irq()
375 for (; samples > 0; samples--) { adxl34x_irq()
391 if (ac->fifo_delay && (samples > 1)) adxl34x_irq()
/linux-4.1.27/sound/pci/echoaudio/
H A Dechoaudio_dsp.h374 * 8-bit mono unsigned samples. For playback,
381 * 16-bit signed little-endian mono samples. Playback works
386 * 24-bit signed little-endian mono samples. Data is packed
387 * three bytes per sample; if you had two samples 0x112233 and 0x445566
392 * 24-bit signed little-endian mono samples in a 32-bit
438 * 16 bit, 24 bit, and 32 bit little endian samples are supported for super
/linux-4.1.27/drivers/atm/
H A Didt77105.h86 /* Time between samples of the hardware cell counters. Should be <= 1 sec */
/linux-4.1.27/include/media/
H A Dsoc_mediabus.h21 * @SOC_MBUS_PACKING_2X8_PADHI: 16 bits transferred in 2 8-bit samples, in the
/linux-4.1.27/arch/s390/pci/
H A Dpci_debug.c72 seq_printf(m, "Samples: %u\n", zdev->fmb->samples); pci_perf_show()
/linux-4.1.27/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
H A DEventClass.py4 # be used by other scripts to analyzing the perf samples.
/linux-4.1.27/tools/testing/selftests/timers/
H A Draw_skew.c142 /* Avg the two actual freq samples adjtimex gave us */ main()
/linux-4.1.27/sound/synth/emux/
H A Dsoundfont.c296 sf->samples = NULL; newsf()
400 sp->next = sf->samples; sf_sample_new()
401 sf->samples = sp; sf_sample_new()
416 if (sp == sf->samples) { sf_sample_delete()
417 sf->samples = sp->next; sf_sample_delete()
693 for (p = sf->samples; p; p = p->next) { find_sample()
1378 for (sp = sf->samples; sp; sp = nextsp) { snd_sf_clear()
1434 * Remove all samples
1450 * Remove unlocked samples.
1477 for (sp = sf->samples; sp; sp = nextsp) { snd_soundfont_remove_unlocked()
1481 sf->samples = nextsp; snd_soundfont_remove_unlocked()
/linux-4.1.27/drivers/iio/light/
H A Dhid-sensor-als.c179 /* Callback handler to send event after all samples are received and captured */ als_proc_event()
196 /* Capture samples in local storage */ als_capture_sample()
H A Dhid-sensor-prox.c172 /* Callback handler to send event after all samples are received and captured */ prox_proc_event()
189 /* Capture samples in local storage */ prox_capture_sample()
/linux-4.1.27/drivers/iio/orientation/
H A Dhid-sensor-rotation.c140 /* Callback handler to send event after all samples are received and captured */ dev_rot_proc_event()
157 /* Capture samples in local storage */ dev_rot_capture_sample()
H A Dhid-sensor-incl-3d.c201 /* Callback handler to send event after all samples are received and captured */ incl_3d_proc_event()
218 /* Capture samples in local storage */ incl_3d_capture_sample()
/linux-4.1.27/drivers/iio/pressure/
H A Dhid-sensor-press.c176 /* Callback handler to send event after all samples are received and captured */ press_proc_event()
193 /* Capture samples in local storage */ press_capture_sample()
/linux-4.1.27/drivers/media/usb/gspca/
H A Djpeg.h124 0x21, /* samples Y */
126 0x02, 0x11, 0x01, /* samples CbCr - quant CbCr */
/linux-4.1.27/arch/s390/hypfs/
H A Dhypfs_vm.c163 /* samples */ hpyfs_vm_create_guest()
164 samples_dir = hypfs_mkdir(guest_dir, "samples"); hpyfs_vm_create_guest()
/linux-4.1.27/arch/blackfin/include/asm/
H A Dbfin_ppi.h91 #define EPPI_HCNT_VALUE 0x0000FFFF /* Holds the number of samples to read in or write out per line, after PPIx_HDLY number of cycles have expired since the last assertion of PPIx_FS1 */
101 #define EPPI_LINE_VALUE 0x0000FFFF /* Holds the number of samples expected per line */
/linux-4.1.27/sound/pci/pcxhr/
H A Dpcxhr.h146 u_int64_t timer_abs_periods; /* timer: samples elapsed since TRIGGER_START (multiple of period_size) */
147 u_int32_t timer_period_frag; /* timer: samples elapsed since last call to snd_pcm_period_elapsed (0..period_size) */
H A Dpcxhr_core.h38 /* DSP time available on MailBox4 register : 24 bit time samples() */
/linux-4.1.27/sound/usb/
H A Dcard.h16 unsigned int frame_size; /* samples per frame for non-audio */
32 bool dsd_dop; /* add DOP headers in case of DSD samples */
H A Dpcm.c61 /* Approximation based on number of samples per USB frame (ms), snd_usb_pcm_delay()
1320 * The DSP DOP format defines a way to transport DSD samples over fill_playback_urb_dsd_dop()
1327 * where L refers to left channel samples and R to right. fill_playback_urb_dsd_dop()
1458 /* update delay with exact number of samples queued */ prepare_playback_urb()
1505 /* update delay with exact number of samples played */ retire_playback_urb()
/linux-4.1.27/drivers/media/usb/airspy/
H A Dairspy.c258 unsigned int samples = s->sample - s->sample_measured; airspy_convert_stream() local
262 dev_dbg(s->dev, "slen=%u samples=%u msecs=%u sample rate=%lu\n", airspy_convert_stream()
263 src_len, samples, msecs, airspy_convert_stream()
264 samples * 1000UL / msecs); airspy_convert_stream()
267 /* total number of samples */ airspy_convert_stream()
/linux-4.1.27/include/linux/iio/
H A Diio.h345 * @hwfifo_flush_to_buffer: function pointer to flush the samples stored
347 * should not flush more than count samples. The function
348 * must return the number of samples flushed, 0 if no
349 * samples were flushed or a negative integer if no samples
/linux-4.1.27/sound/soc/omap/
H A Domap-mcbsp.c126 * 16bit samples: size is 128 * 2 = 256 bytes omap_mcbsp_dai_startup()
127 * 32bit samples: size is 128 * 4 = 512 bytes omap_mcbsp_dai_startup()
130 * McBSP3 as example again (16 or 32 bit samples): omap_mcbsp_dai_startup()
211 * FIFO usage in samples (don't care about partial samples in the omap_mcbsp_dai_delay()
/linux-4.1.27/sound/soc/intel/haswell/
H A Dsst-haswell-pcm.c731 ssize_t samples; hsw_notify_pointer() local
751 samples = SST_SAMPLES(runtime, position - old_position); hsw_notify_pointer()
755 samples); hsw_notify_pointer()
760 samples = SST_SAMPLES(runtime, hsw_notify_pointer()
765 samples); hsw_notify_pointer()
769 samples = SST_SAMPLES(runtime, position); hsw_notify_pointer()
771 dma_area, samples); hsw_notify_pointer()
/linux-4.1.27/sound/pci/
H A Dsis7019.c154 * documented range of 8-0xfff8 samples. Given that they are 0-based,
155 * that places our period/buffer range at 9-0xfff9 samples. That makes the
156 * max buffer size 0xfff9 samples * 2 channels * 2 bytes per sample, and
157 * max samples / min samples gives us the max periods in a buffer.
250 * we'll need to come back in a few samples and try again. sis_update_voice()
272 * If we're less than 9 samples behind, we're on target. sis_update_voice()
747 * the period we're clocking out. 12 samples seems to give a good sis_prepare_timing_voice()
795 /* Using unsigned samples with the all-zero silence buffer sis_prepare_timing_voice()
H A Dcs5530.c12 * always play/capture in 16/44100, we can let alsa-lib convert the samples and
/linux-4.1.27/drivers/misc/
H A Dbmp085.c26 * autonomously calculate the average of up to eight samples. This is
29 * specifies the number of samples used to calculate the ambient pressure.
285 * The chip will use 2^oversampling samples for internal averaging.
/linux-4.1.27/arch/arm/mach-omap2/
H A Did.c370 case 0: /* Take care of early samples */ omap3xxx_check_revision()
418 case 0: /* Take care of early samples */ omap3xxx_check_revision()
535 * Few initial 4430 ES2.0 samples IDCODE is same as ES1.0 omap4xxx_check_revision()
H A Dsdrc.h179 * need for that as no single right value exists acorss production samples.
/linux-4.1.27/sound/isa/wavefront/
H A Dwavefront_synth.c184 { WFC_GET_NSAMPLES, "report number of samples", 2, 0, 0 },
676 snd_printk ("%d samples used (%d real, %d aliases, %d multi), " wavefront_get_sample_status()
863 /* samples are downloaded via a 16-bit wide i/o port wavefront_send_sample()
906 on the ROM samples should cover just the sample data or wavefront_send_sample()
956 "possible on 16-bit samples"); wavefront_send_sample()
1000 /* adjust size for 16 bit samples by dividing by two. We always wavefront_send_sample()
1001 send 16 bits per write, even for 8 bit samples, so the length wavefront_send_sample()
1207 /* You'll recall at this point that the "number of samples" value wavefront_send_multisample()
1209 real number of samples. wavefront_send_multisample()
1215 DPRINT (WF_DEBUG_LOAD_PATCH, "multi %d with %d=%d samples\n", wavefront_send_multisample()
1262 DPRINT (WF_DEBUG_DATA, "msample %d has %d samples\n", wavefront_fetch_multisample()
1267 /* get the number of samples ... */ wavefront_fetch_multisample()
/linux-4.1.27/arch/x86/kernel/cpu/
H A Dcentaur.c209 * - Note, it seems this may only be in engineering samples. centaur_size_cache()
/linux-4.1.27/drivers/hwmon/
H A Dads7828.c140 /* ADS7828 uses 12-bit samples, while ADS7830 is 8-bit */ ads7828_probe()
H A Dads1015.c48 /* Data rates in samples per second */
/linux-4.1.27/include/sound/
H A Dsnd_wavefront.h93 char rom_samples_rdonly; /* can we write on ROM samples */
H A Dsoundfont.h64 struct snd_sf_sample *samples; /* The sample headers */ member in struct:snd_soundfont
H A Dwavefront.h153 substantive data, such as samples, patches and programs.
403 only handles mono samples in a given slot), and the only way to do
452 s16 NumberOfSamples; /* log2 of the number of samples */
546 NOTE: for actual samples, this is
H A Demu10k1.h252 #define HCFG_AUDIOENABLE 0x00000001 /* 0 = CODECs transmit zero-valued samples */
339 * bit 3: Dummy record insert zero samples.
435 #define CCCA_8BITSELECT 0x01000000 /* 1 = Sound memory for this channel uses 8-bit samples */
441 #define CCR_CACHEINVALIDSIZE_MASK 0xfe000000 /* Number of invalid samples cache for this channel */
443 #define CCR_INTERLEAVEDSAMPLES 0x00800000 /* 1 = A cache service will fetch interleaved samples */
444 #define CCR_WORDSIZEDSAMPLES 0x00400000 /* 1 = A cache service will fetch word sized samples */
447 #define CCR_LOOPINVALSIZE 0x0000fe00 /* Number of invalid samples in cache prior to loop */
1601 unsigned int tram_start; /* initial ring buffer position in TRAM (in samples) */
1602 unsigned int buffer_size; /* count of buffered samples */
1603 unsigned short gpr_size; /* GPR containing size of ring buffer in samples (host) */
1605 unsigned short gpr_count; /* GPR containing count of samples between two interrupts (host) */
1606 unsigned short gpr_tmpcount; /* GPR containing current count of samples to interrupt (host = set, FX8010) */
1621 unsigned int itram_size; /* internal TRAM size in samples */
1712 unsigned int delay_pcm_irq; /* in samples */
/linux-4.1.27/arch/s390/include/asm/
H A Dpci.h39 u32 samples; member in struct:zpci_fmb
/linux-4.1.27/samples/seccomp/
H A Dbpf-direct.c182 * This sample is x86-only. Since kernel samples are compiled with the
/linux-4.1.27/samples/trace_events/
H A Dtrace-events-sample.h446 * Here's a better way for the previous samples (except, the first
494 * #define TRACE_INCLUDE_PATH ../../samples/trace_events
510 * #define TRACE_INCLUDE_PATH samples/trace_events
512 * But then if something defines "samples" or "trace_events" as a macro
/linux-4.1.27/sound/oss/dmasound/
H A Ddmasound_paula.c129 * These two routines now deal with copying/expanding/translating the samples
132 * to convert samples into the right frequency/encoding. They will only work on
133 * complete samples so it may happen they leave some bytes in the input stream
145 * independent, especially the fact that the Falcon can play 16bit samples
H A Ddmasound_atari.c48 * These two routines now deal with copying/expanding/translating the samples
51 * to convert samples into the right frequency/encoding. They will only work on
52 * complete samples so it may happen they leave some bytes in the input stream
64 * independent, especially the fact that the Falcon can play 16bit samples
1057 /* the Falcon can play 16bit samples only in stereo */ FalconInit()
1181 /* Since only an even number of samples per frame can AtaPlayNextFrame()
/linux-4.1.27/sound/soc/intel/atom/
H A Dsst-mfld-platform.h79 u32 period_count; /* period elapsed in samples*/
/linux-4.1.27/drivers/iio/gyro/
H A Dhid-sensor-gyro-3d.c202 /* Callback handler to send event after all samples are received and captured */ gyro_3d_proc_event()
219 /* Capture samples in local storage */ gyro_3d_capture_sample()
/linux-4.1.27/drivers/iio/magnetometer/
H A Dhid-sensor-magn-3d.c248 /* Callback handler to send event after all samples are received and captured */ magn_3d_proc_event()
263 /* Capture samples in local storage */ magn_3d_capture_sample()
/linux-4.1.27/drivers/media/pci/solo6x10/
H A Dsolo6x10.h100 * Motion thresholds are in a table of 64x64 samples, with
102 * effect, 44x30 samples are used for NTSC, and 44x36 for PAL.
/linux-4.1.27/drivers/media/usb/uvc/
H A Duvc_video.c464 sample = &stream->clock.samples[stream->clock.head]; uvc_video_clock_decode()
496 clock->samples = kmalloc(clock->size * sizeof(*clock->samples), uvc_video_clock_init()
498 if (clock->samples == NULL) uvc_video_clock_init()
508 kfree(stream->clock.samples); uvc_video_clock_cleanup()
509 stream->clock.samples = NULL; uvc_video_clock_cleanup()
551 * to be linear over the clock samples sliding window and is given by
623 first = &clock->samples[clock->head]; uvc_video_clock_update()
624 last = &clock->samples[(clock->head - 1) % clock->size]; uvc_video_clock_update()
665 * the computed SOF value to keep it close to the SOF samples mean uvc_video_clock_update()
/linux-4.1.27/drivers/net/wireless/b43/
H A Dphy_lp.c999 static bool lpphy_rx_iq_est(struct b43_wldev *dev, u16 samples, u8 time, lpphy_rx_iq_est() argument
1005 b43_phy_write(dev, B43_LPPHY_IQ_NUM_SMPLS_ADDR, samples); lpphy_rx_iq_est()
1709 static int lpphy_calc_rx_iq_comp(struct b43_wldev *dev, u16 samples) lpphy_calc_rx_iq_comp() argument
1722 ret = lpphy_rx_iq_est(dev, samples, 32, &iq_est); lpphy_calc_rx_iq_comp()
1766 static void lpphy_run_samples(struct b43_wldev *dev, u16 samples, u16 loops, lpphy_run_samples() argument
1770 0xFFC0, samples - 1); lpphy_run_samples()
1783 int i, samples = 0, angle = 0; lpphy_start_tx_tone() local
1791 for (i = 1; samples * abs(freq) != 20000 * i; i++) { lpphy_start_tx_tone()
1792 samples = (20000 * i) / abs(freq); lpphy_start_tx_tone()
1793 if(B43_WARN_ON(samples > 63)) lpphy_start_tx_tone()
1797 samples = 2; lpphy_start_tx_tone()
1800 for (i = 0; i < samples; i++) { lpphy_start_tx_tone()
1807 b43_lptab_write_bulk(dev, B43_LPTAB16(5, 0), samples, buf); lpphy_start_tx_tone()
1809 lpphy_run_samples(dev, samples, 0xFFFF, 0); lpphy_start_tx_tone()
/linux-4.1.27/drivers/net/wireless/iwlegacy/
H A D3945.c1946 const struct il3945_eeprom_txpower_sample *samples; il3945_hw_reg_get_matched_power_idx() local
1952 samples = chnl_grp->samples; il3945_hw_reg_get_matched_power_idx()
1954 if (power == samples[i].power) { il3945_hw_reg_get_matched_power_idx()
1955 *new_idx = samples[i].gain_idx; il3945_hw_reg_get_matched_power_idx()
1960 if (power > samples[1].power) { il3945_hw_reg_get_matched_power_idx()
1963 } else if (power > samples[2].power) { il3945_hw_reg_get_matched_power_idx()
1966 } else if (power > samples[3].power) { il3945_hw_reg_get_matched_power_idx()
1974 denominator = (s32) samples[idx1].power - (s32) samples[idx0].power; il3945_hw_reg_get_matched_power_idx()
1977 gains0 = (s32) samples[idx0].gain_idx * (1 << 19); il3945_hw_reg_get_matched_power_idx()
1978 gains1 = (s32) samples[idx1].gain_idx * (1 << 19); il3945_hw_reg_get_matched_power_idx()
1981 (s32) samples[idx0].power) / il3945_hw_reg_get_matched_power_idx()
/linux-4.1.27/sound/pci/asihpi/
H A Dhpi.h191 Audio samples come from the Cobranet network and into the device. */
196 packets of RTP audio samples from other devices. */
223 Audio samples from the device are sent out on the Cobranet network.*/
227 packets of RTP audio samples that are sent to other devices. */
333 This property returns in the input and output latency in samples.
335 in samples, while Property 2 is that output latency in samples.
340 The granulariy is the smallest size chunk of stereo samples that is processed by
342 This property returns the record granularity in samples in Property 1.
/linux-4.1.27/drivers/media/usb/hackrf/
H A Dhackrf.c235 unsigned int samples = dev->sample - dev->sample_measured; hackrf_convert_stream() local
239 dev_dbg(dev->dev, "slen=%u samples=%u msecs=%u sample rate=%lu\n", hackrf_convert_stream()
240 src_len, samples, msecs, hackrf_convert_stream()
241 samples * 1000UL / msecs); hackrf_convert_stream()
244 /* total number of samples */ hackrf_convert_stream()
/linux-4.1.27/drivers/power/
H A Dab8500_fg.c108 int samples[NBR_AVG_SAMPLES]; member in struct:ab8500_fg_avg_cap
165 * @fg_samples: Number of samples used in the FG accumulation
393 avg->sum += sample - avg->samples[avg->pos]; ab8500_fg_add_cap_sample()
394 avg->samples[avg->pos] = sample; ab8500_fg_add_cap_sample()
432 avg->samples[i] = 0; ab8500_fg_clear_cap_samples()
453 avg->samples[i] = sample; ab8500_fg_fill_cap_sample()
476 /* To be able to reprogram the number of samples, we have to ab8500_fg_coulomb_counter()
483 /* Program the samples */ ab8500_fg_coulomb_counter()
557 /* Program the samples */ ab8500_fg_inst_curr_start()
809 * time in hours (= samples / (3600 * 4)h) ab8500_fg_acc_cur_work()
1555 * Discard a number of samples during startup. ab8500_fg_algorithm_discharging()
1557 * samples to get an initial capacity. ab8500_fg_algorithm_discharging()
/linux-4.1.27/arch/s390/oprofile/
H A Dhwsampler.c544 * by pushing all the pending samples to oprofile buffer. hwsampler_deactivate()
568 /* Add work to queue to read pending samples.*/ hwsampler_deactivate()
1080 * @rate: specifies the used interval when samples are taken
/linux-4.1.27/drivers/staging/iio/adc/
H A Dmxs-lradc.c57 * is enabled, the LRADC takes LRADC_DELAY_TIMER_LOOP samples of data before
59 * seconds. The result is that the samples arrive every 500mS.
74 * The LRADC reads the following amount of samples from each touchscreen
262 /* samples per coordinate */
264 /* time clocks between samples */
736 * in order to avoid false measurements, report only samples where
H A Dspear_adc.c328 of_property_read_u32(np, "average-samples", &st->avg_samples); spear_adc_probe()
/linux-4.1.27/arch/powerpc/oprofile/
H A Dop_model_cell.c75 * spu_cycle_reset is the number of cycles between samples.
515 * generated. Hence no more samples will be for_each_online_cpu()
1012 * number (N) of events between samples and the actual number of events based
1015 * This is to prevent the loss of samples because the trace buffer is full.
1470 * samples. Once the N events have occurred, a HW counter overflow occurs
1482 * that we need to use a relatively small value of N to ensure enough samples
H A Dop_model_pa6t.c212 /* Record samples. We've got one global bit for whether a sample pa6t_handle_interrupt()
/linux-4.1.27/drivers/media/pci/bt8xx/
H A Dbttv-vbi.c50 really stores 1024 + tvnorm->vbipack * 4 samples per line in the
93 dprintk("setup: samples=%u start=%d,%d count=%u,%u\n", vbi_buffer_setup()
/linux-4.1.27/drivers/media/platform/vivid/
H A Dvivid-sdr-cap.c166 * Calculate the number of samples streamed since we started, vivid_thread_sdr_cap()
174 /* Increase by the number of samples in one buffer */ vivid_thread_sdr_cap()
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/
H A Dbtcoex.c44 /* number of samples for SCO detection */
230 "sco/esco detected, pkt id_cnt:%d samples:%d\n", brcmf_btcoex_is_sco_active()
/linux-4.1.27/drivers/input/mouse/
H A Dvsxxxaa.c378 "incremental streaming mode and 72 samples/sec\n", vsxxxaa_handle_POR_packet()
384 serio_write(mouse->serio, 'L'); /* 72 samples/sec */ vsxxxaa_handle_POR_packet()
/linux-4.1.27/drivers/gpu/drm/nouveau/dispnv04/
H A Ddac.c109 * samples agree; sense_a is replaced */ sample_load_twice()
191 /* take sample pairs until both samples in the pair agree */ nv04_dac_detect()
/linux-4.1.27/drivers/char/
H A Ddtlk.c436 /* This macro records ten samples read from the LPC port, for later display */ dtlk_dev_probe()
466 /* This macro records ten samples read from the TTS port, for later display */ dtlk_dev_probe()
/linux-4.1.27/drivers/w1/
H A Dw1_io.c65 * w1_touch_bit() - Generates a write-0 or write-1 cycle and samples the level.
170 * w1_read_bit() - Generates a write-1 cycle and samples the level.
/linux-4.1.27/include/uapi/drm/
H A Ddrm_mode.h353 * YUV 4:2:0 image with a plane of 8 bit Y samples
355 * 8 bit 2x2 subsampled colour difference samples.
/linux-4.1.27/tools/perf/ui/
H A Dhist.c364 HPP_RAW_FNS(samples, nr_events)
416 HPP__PRINT_FNS("Samples", samples),
/linux-4.1.27/tools/thermal/tmon/
H A Dsysfs.c490 static unsigned long samples; update_thermal_data() local
502 fprintf(tmon_log, "%lu ", ++samples); update_thermal_data()
/linux-4.1.27/include/linux/input/
H A Dadxl34x.h100 * New samples of acceleration are then compared to this
194 * communication speed will result in samples being discarded.
/linux-4.1.27/drivers/isdn/hardware/eicon/
H A Ddsp_defs.h208 <word> reconfigure delay (in 8kHz samples)
/linux-4.1.27/drivers/iio/adc/
H A Dad7887.c66 * Buffer needs to be large enough to hold two 16 bit samples and a
/linux-4.1.27/drivers/mtd/maps/
H A Dscb2_flash.c98 * * the chip samples the address and erases the block scb2_fixup_mtd()
/linux-4.1.27/drivers/media/platform/blackfin/
H A Dppi.c224 /* convert parameters unit from pixels to samples */ ppi_set_params()
/linux-4.1.27/drivers/rtc/
H A Drtc-hid-sensor-time.c61 /* Callback handler to send event after all samples are received and captured */ hid_time_proc_event()
/linux-4.1.27/drivers/media/dvb-frontends/
H A Drtl2832_sdr.c246 unsigned int samples = dev->sample - dev->sample_measured; rtl2832_sdr_convert_stream() local
251 "slen=%u samples=%u msecs=%u sample rate=%lu\n", rtl2832_sdr_convert_stream()
252 src_len, samples, msecs, samples * 1000UL / msecs); rtl2832_sdr_convert_stream()
/linux-4.1.27/arch/ia64/kernel/
H A Dperfmon_default_smpl.c208 * important to detect duplicate set of samples. default_handler()
/linux-4.1.27/arch/m68k/mac/
H A Dmacboing.c279 * the number of samples per timer interrupt as exactly as possible. mac_quadra_ring_bell()
/linux-4.1.27/sound/arm/
H A Dpxa2xx-pcm-lib.c218 * playback samples are lost if the DMA count is not a multiple __pxa2xx_pcm_open()
/linux-4.1.27/sound/firewire/dice/
H A Ddice-stream.c122 * transferred on AMDTP packets at 96 kHz. Two successive samples of a start_stream()
/linux-4.1.27/sound/pci/rme9652/
H A Dhdspm.c1457 /* return latency in samples per period */ hdspm_get_latency()
1464 /* Special case for new RME cards with 32 samples period size. hdspm_get_latency()
1466 * (HDSP_LatencyMask) encode latency values of 64 samples as hdspm_get_latency()
1467 * 0, 128 samples as 1 ... 4096 samples as 6. For old cards, 7 hdspm_get_latency()
1468 * denotes 8192 samples, but on new cards like RayDAT or AIO, hdspm_get_latency()
1469 * it corresponds to 32 samples. hdspm_get_latency()
1541 * support period sizes of 32 samples. Since latency is hdspm_set_interrupt_interval()
1543 * have values from 0 .. 7. While 0 still means 64 samples and hdspm_set_interrupt_interval()
1544 * 6 represents 4096 samples on all cards, 7 represents 8192 hdspm_set_interrupt_interval()
1545 * on older cards and 32 samples on new cards. hdspm_set_interrupt_interval()
1547 * In other words, period size in samples is calculated by hdspm_set_interrupt_interval()
4933 "Size (Latency): %d samples (2 periods of %lu bytes)\n", snd_hdspm_proc_read_madi()
5089 "Size (Latency): %d samples (2 periods of %lu bytes)\n", snd_hdspm_proc_read_aes32()
5357 hdspm_encode_latency(7) | /* latency max=8192samples */ snd_hdspm_set_defaults()
6090 /* RayDAT & AIO have a fixed buffer of 16384 samples per channel */ snd_hdspm_open()
/linux-4.1.27/include/linux/iio/common/
H A Dst_sensors.h178 * @bootime: samples to discard when sensor passing from power-down to power-up.
/linux-4.1.27/sound/soc/fsl/
H A Dfsl_dma.c528 * So for playback of 8-bit samples, the DMA controller must transfer single
530 * offset by 3 bytes. For 16-bit samples, the offset is two bytes.
532 * For 24-bit samples, the offset is 1 byte. However, the DMA controller
534 * and 8 bytes at a time). So we do not support packed 24-bit samples.
/linux-4.1.27/drivers/usb/dwc2/
H A Dhcd.c2013 dev_dbg(hsotg->dev, " samples %u, accum %llu, avg %llu\n", dwc2_hcd_dump_frrem()
2019 dev_dbg(hsotg->dev, " samples %u, accum %llu, avg %llu\n", dwc2_hcd_dump_frrem()
2025 dev_dbg(hsotg->dev, " samples %u, accum %llu, avg %llu\n", dwc2_hcd_dump_frrem()
2031 dev_dbg(hsotg->dev, " samples %u, accum %llu, avg %llu\n", dwc2_hcd_dump_frrem()
2039 dev_dbg(hsotg->dev, " samples %u, accum %llu, avg %llu\n", dwc2_hcd_dump_frrem()
2044 dev_dbg(hsotg->dev, " samples %u, accum %llu, avg %llu\n", dwc2_hcd_dump_frrem()
2049 dev_dbg(hsotg->dev, " samples %u, accum %llu, avg %llu\n", dwc2_hcd_dump_frrem()
2056 dev_dbg(hsotg->dev, " samples %u, accum %llu, avg %llu\n", dwc2_hcd_dump_frrem()
2061 dev_dbg(hsotg->dev, " samples %u, accum %llu, avg %llu\n", dwc2_hcd_dump_frrem()
2066 dev_dbg(hsotg->dev, " samples %u, accum %llu, avg %llu\n", dwc2_hcd_dump_frrem()

Completed in 4606 milliseconds

12