Home
last modified time | relevance | path

Searched refs:num_samples (Results 1 – 24 of 24) sorted by relevance

/linux-6.12.1/drivers/comedi/drivers/
Ddas16m1.c379 u16 num_samples; in das16m1_handler() local
390 num_samples = 0; in das16m1_handler()
402 num_samples = -hw_counter - devpriv->adc_count; in das16m1_handler()
406 if (num_samples > cmd->stop_arg * cmd->chanlist_len) in das16m1_handler()
407 num_samples = cmd->stop_arg * cmd->chanlist_len; in das16m1_handler()
410 if (num_samples > DAS16M1_AI_FIFO_SZ) in das16m1_handler()
411 num_samples = DAS16M1_AI_FIFO_SZ; in das16m1_handler()
412 insw(dev->iobase, devpriv->ai_buffer, num_samples); in das16m1_handler()
413 comedi_buf_write_samples(s, devpriv->ai_buffer, num_samples); in das16m1_handler()
414 devpriv->adc_count += num_samples; in das16m1_handler()
Dcb_pcidas64.c1385 static int set_ai_fifo_size(struct comedi_device *dev, unsigned int num_samples) in set_ai_fifo_size() argument
1392 num_fifo_entries = num_samples / fifo->sample_packing_ratio; in set_ai_fifo_size()
2249 unsigned int num_samples; in dma_transfer_size() local
2251 num_samples = devpriv->ai_fifo_segment_length * in dma_transfer_size()
2253 if (num_samples > DMA_BUFFER_SIZE / sizeof(u16)) in dma_transfer_size()
2254 num_samples = DMA_BUFFER_SIZE / sizeof(u16); in dma_transfer_size()
2256 return num_samples; in dma_transfer_size()
2674 int num_samples; in pio_drain_ai_fifo_16() local
2699 num_samples = in pio_drain_ai_fifo_16()
2702 num_samples = write_index - read_index; in pio_drain_ai_fifo_16()
[all …]
Dcb_pcidas.c1147 unsigned int num_samples; in cb_pcidas_ai_interrupt() local
1152 num_samples = comedi_nsamples_left(s, board->fifo_size / 2); in cb_pcidas_ai_interrupt()
1154 devpriv->ai_buffer, num_samples); in cb_pcidas_ai_interrupt()
1155 comedi_buf_write_samples(s, devpriv->ai_buffer, num_samples); in cb_pcidas_ai_interrupt()
Dadl_pci9111.c398 unsigned int num_samples = comedi_bytes_to_samples(s, num_bytes); in pci9111_ai_munge() local
401 for (i = 0; i < num_samples; i++) in pci9111_ai_munge()
Ddas16.c795 unsigned int num_samples = comedi_bytes_to_samples(s, num_bytes); in das16_ai_munge() local
799 for (i = 0; i < num_samples; i++) { in das16_ai_munge()
Ddas1800.c327 unsigned int num_samples = comedi_bytes_to_samples(s, num_bytes); in das1800_ai_munge() local
333 for (i = 0; i < num_samples; i++) in das1800_ai_munge()
Dadl_pci9118.c604 unsigned int num_samples = comedi_bytes_to_samples(s, num_bytes); in pci9118_ai_munge() local
608 for (i = 0; i < num_samples; i++) { in pci9118_ai_munge()
/linux-6.12.1/tools/testing/selftests/bpf/progs/
Duser_ringbuf_success.c202 long num_samples; in test_user_ringbuf_epoll() local
207 num_samples = bpf_user_ringbuf_drain(&user_ringbuf, do_nothing_cb, NULL, 0); in test_user_ringbuf_epoll()
208 if (num_samples <= 0) in test_user_ringbuf_epoll()
/linux-6.12.1/drivers/gpu/drm/vmwgfx/
Dvmw_surface_cache.h178 u32 num_samples) in vmw_surface_get_serialized_size_extended() argument
185 total_size *= max_t(u32, 1, num_samples); in vmw_surface_get_serialized_size_extended()
388 u32 num_samples, in vmw_surface_setup_cache() argument
407 desc->bytesPerBlock * num_samples; in vmw_surface_setup_cache()
Dvmwgfx_surface.c2034 u32 num_samples; in vmw_surface_dirty_alloc() local
2056 num_samples = max_t(u32, 1, metadata->multisample_count); in vmw_surface_dirty_alloc()
2058 num_mip, num_layers, num_samples, in vmw_surface_dirty_alloc()
/linux-6.12.1/drivers/media/test-drivers/vidtv/
Dvidtv_s302m.c215 au->num_samples = s; in vidtv_s302m_compute_sample_count_from_video()
357 au_sz = au->num_samples * in vidtv_s302m_write_frames()
362 for (j = 0; j < au->num_samples; ++j) { in vidtv_s302m_write_frames()
414 e->access_units->num_samples = FF_S302M_DEFAULT_NUM_FRAMES; in vidtv_s302m_encode()
Dvidtv_encoder.h23 u32 num_samples; member
/linux-6.12.1/drivers/input/touchscreen/
Dmxs-lradc-ts.c212 unsigned int num_samples, val; in mxs_lradc_ts_read_raw_channel() local
216 num_samples = ts->over_sample_cnt; in mxs_lradc_ts_read_raw_channel()
218 num_samples = 1; in mxs_lradc_ts_read_raw_channel()
221 return val / num_samples; in mxs_lradc_ts_read_raw_channel()
/linux-6.12.1/tools/gpio/
Dgpio-sloppy-logic-analyzer.sh40 -n|--num_samples <SI-n>: number of samples to acquire. Default <$numsamples>
176 rep=$(getopt -a -l cpu:,duration-us:,help,instance:,list-instances,kernel-debug-dir:,num_samples:,o…
186 -n|--num_samples) parse_si $2; numsamples=$si_val; shift;;
/linux-6.12.1/sound/isa/wavefront/
Dwavefront_synth.c1213 int num_samples; in wavefront_send_multisample() local
1230 num_samples = (1<<(header->hdr.ms.NumberOfSamples&7)); in wavefront_send_multisample()
1236 num_samples); in wavefront_send_multisample()
1238 for (i = 0; i < num_samples; i++) { in wavefront_send_multisample()
1251 (unsigned char *) (long) ((num_samples*2)+3), in wavefront_send_multisample()
1271 int num_samples; in wavefront_fetch_multisample() local
1287 num_samples = (1 << log_ns[0]); in wavefront_fetch_multisample()
1289 for (i = 0; i < num_samples; i++) { in wavefront_fetch_multisample()
/linux-6.12.1/drivers/comedi/
Ddrivers.c419 unsigned int num_samples; in comedi_bytes_per_scan_cmd() local
427 num_samples = DIV_ROUND_UP(cmd->scan_end_arg, bits_per_sample); in comedi_bytes_per_scan_cmd()
430 num_samples = cmd->scan_end_arg; in comedi_bytes_per_scan_cmd()
433 return comedi_samples_to_bytes(s, num_samples); in comedi_bytes_per_scan_cmd()
/linux-6.12.1/drivers/platform/x86/amd/pmc/
Dpmc.c262 u32 fsize, num_samples, val, stb_rdptr_offset = 0; in amd_pmc_stb_debugfs_open_v2() local
287 ret = amd_pmc_send_cmd(dev, S2D_NUM_SAMPLES, &num_samples, dev->s2d_msg_id, true); in amd_pmc_stb_debugfs_open_v2()
295 fsize = min(num_samples, S2D_TELEMETRY_BYTES_MAX); in amd_pmc_stb_debugfs_open_v2()
307 if (num_samples > S2D_TELEMETRY_BYTES_MAX) { in amd_pmc_stb_debugfs_open_v2()
309 stb_rdptr_offset = num_samples % S2D_TELEMETRY_BYTES_MAX; in amd_pmc_stb_debugfs_open_v2()
/linux-6.12.1/drivers/iio/adc/
Dpac1921.c585 static int pac1921_lookup_int_num_samples(int num_samples) in pac1921_lookup_int_num_samples() argument
588 if (pac1921_int_num_samples[i] == num_samples) in pac1921_lookup_int_num_samples()
600 int num_samples) in pac1921_update_int_num_samples() argument
606 ret = pac1921_lookup_int_num_samples(num_samples); in pac1921_update_int_num_samples()
Dmt6359-auxadc.c110 u16 num_samples; member
140 .num_samples = _samples, \
464 fsleep(desc->num_samples * AUXADC_AVG_TIME_US); in mt6359_auxadc_read_adc()
/linux-6.12.1/drivers/net/wireless/marvell/mwifiex/
Ddecl.h267 atomic_t num_samples; member
Dutil.c792 if (atomic_read(&phist_data->num_samples) > MWIFIEX_HIST_MAX_SAMPLES) in mwifiex_hist_data_add()
805 atomic_inc(&phist_data->num_samples); in mwifiex_hist_data_set()
818 atomic_set(&phist_data->num_samples, 0); in mwifiex_hist_data_reset()
Ddebugfs.c265 atomic_read(&phist_data->num_samples)); in mwifiex_histogram_read()
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Duser_ringbuf.c32 static int write_samples(struct user_ring_buffer *ringbuf, uint32_t num_samples) in write_samples() argument
37 for (i = 0; i < num_samples; i++) { in write_samples()
/linux-6.12.1/sound/soc/qcom/qdsp6/
Dq6asm.c1339 uint32_t num_samples) in q6asm_stream_remove_silence() argument
1357 *samples = num_samples; in q6asm_stream_remove_silence()