Lines Matching refs:num_samples
1391 static int set_ai_fifo_size(struct comedi_device *dev, unsigned int num_samples) in set_ai_fifo_size() argument
1398 num_fifo_entries = num_samples / fifo->sample_packing_ratio; in set_ai_fifo_size()
2255 unsigned int num_samples; in dma_transfer_size() local
2257 num_samples = devpriv->ai_fifo_segment_length * in dma_transfer_size()
2259 if (num_samples > DMA_BUFFER_SIZE / sizeof(u16)) in dma_transfer_size()
2260 num_samples = DMA_BUFFER_SIZE / sizeof(u16); in dma_transfer_size()
2262 return num_samples; in dma_transfer_size()
2680 int num_samples; in pio_drain_ai_fifo_16() local
2705 num_samples = in pio_drain_ai_fifo_16()
2708 num_samples = write_index - read_index; in pio_drain_ai_fifo_16()
2709 if (num_samples < 0) { in pio_drain_ai_fifo_16()
2715 num_samples = comedi_nsamples_left(s, num_samples); in pio_drain_ai_fifo_16()
2716 if (num_samples == 0) in pio_drain_ai_fifo_16()
2719 for (i = 0; i < num_samples; i++) { in pio_drain_ai_fifo_16()
2783 int num_samples = 0; in drain_dma_buffers() local
2796 num_samples = comedi_nsamples_left(s, dma_transfer_size(dev)); in drain_dma_buffers()
2799 num_samples); in drain_dma_buffers()