Lines Matching refs:num_samples
1390 static int set_ai_fifo_size(struct comedi_device *dev, unsigned int num_samples) in set_ai_fifo_size() argument
1397 num_fifo_entries = num_samples / fifo->sample_packing_ratio; in set_ai_fifo_size()
2254 unsigned int num_samples; in dma_transfer_size() local
2256 num_samples = devpriv->ai_fifo_segment_length * in dma_transfer_size()
2258 if (num_samples > DMA_BUFFER_SIZE / sizeof(u16)) in dma_transfer_size()
2259 num_samples = DMA_BUFFER_SIZE / sizeof(u16); in dma_transfer_size()
2261 return num_samples; in dma_transfer_size()
2679 int num_samples; in pio_drain_ai_fifo_16() local
2704 num_samples = in pio_drain_ai_fifo_16()
2707 num_samples = write_index - read_index; in pio_drain_ai_fifo_16()
2708 if (num_samples < 0) { in pio_drain_ai_fifo_16()
2714 num_samples = comedi_nsamples_left(s, num_samples); in pio_drain_ai_fifo_16()
2715 if (num_samples == 0) in pio_drain_ai_fifo_16()
2718 for (i = 0; i < num_samples; i++) { in pio_drain_ai_fifo_16()
2782 int num_samples = 0; in drain_dma_buffers() local
2795 num_samples = comedi_nsamples_left(s, dma_transfer_size(dev)); in drain_dma_buffers()
2798 num_samples); in drain_dma_buffers()