Home
last modified time | relevance | path

Searched refs:max_samples (Results 1 – 8 of 8) sorted by relevance

/linux-5.19.10/drivers/comedi/drivers/
Dni_labpc_isadma.c78 unsigned int max_samples = comedi_bytes_to_samples(s, desc->size); in labpc_drain_dma() local
94 nsamples = max_samples - comedi_bytes_to_samples(s, residue); in labpc_drain_dma()
101 if (leftover > max_samples) in labpc_drain_dma()
102 leftover = max_samples; in labpc_drain_dma()
106 leftover = max_samples; in labpc_drain_dma()
Ddas1800.c749 unsigned int max_samples = comedi_bytes_to_samples(s, maxbytes); in das1800_ai_transfer_size() local
752 samples = max_samples; in das1800_ai_transfer_size()
768 if (samples > max_samples) in das1800_ai_transfer_size()
769 samples = max_samples; in das1800_ai_transfer_size()
Dadv_pci1710.c169 unsigned int max_samples; member
456 for (i = 0; i < devpriv->max_samples; i++) { in pci1710_handle_fifo()
874 devpriv->max_samples = (board->is_pci1711) ? 512 : 2048; in pci1710_auto_attach()
Dpcl812.c531 unsigned int max_samples; in pcl812_ai_setup_dma() local
538 max_samples = comedi_bytes_to_samples(s, bytes); in pcl812_ai_setup_dma()
544 nsamples = comedi_nsamples_left(s, max_samples + unread_samples); in pcl812_ai_setup_dma()
Dpcl816.c117 unsigned int max_samples = comedi_bytes_to_samples(s, desc->maxsize); in pcl816_ai_setup_dma() local
126 nsamples = comedi_nsamples_left(s, max_samples + unread_samples); in pcl816_ai_setup_dma()
Dpcl818.c306 unsigned int max_samples = comedi_bytes_to_samples(s, desc->maxsize); in pcl818_ai_setup_dma() local
315 nsamples = comedi_nsamples_left(s, max_samples + unread_samples); in pcl818_ai_setup_dma()
Ddas16.c450 unsigned int max_samples = comedi_bytes_to_samples(s, desc->maxsize); in das16_ai_setup_dma() local
457 nsamples = comedi_nsamples_left(s, max_samples + unread_samples); in das16_ai_setup_dma()
/linux-5.19.10/drivers/comedi/
Dcomedi_buf.c624 unsigned int max_samples; in comedi_buf_write_samples() local
632 max_samples = comedi_bytes_to_samples(s, comedi_buf_write_n_unalloc(s)); in comedi_buf_write_samples()
633 if (nsamples > max_samples) { in comedi_buf_write_samples()
636 nsamples = max_samples; in comedi_buf_write_samples()
670 unsigned int max_samples; in comedi_buf_read_samples() local
674 max_samples = comedi_bytes_to_samples(s, in comedi_buf_read_samples()
676 if (nsamples > max_samples) in comedi_buf_read_samples()
677 nsamples = max_samples; in comedi_buf_read_samples()