Searched refs:max_samples (Results 1 – 8 of 8) sorted by relevance
/drivers/staging/comedi/drivers/ |
D | ni_labpc_isadma.c | 79 unsigned int max_samples = comedi_bytes_to_samples(s, desc->size); in labpc_drain_dma() local 95 nsamples = max_samples - comedi_bytes_to_samples(s, residue); in labpc_drain_dma() 102 if (leftover > max_samples) in labpc_drain_dma() 103 leftover = max_samples; in labpc_drain_dma() 107 leftover = max_samples; in labpc_drain_dma()
|
D | das1800.c | 751 unsigned int max_samples = comedi_bytes_to_samples(s, maxbytes); in das1800_ai_transfer_size() local 754 samples = max_samples; in das1800_ai_transfer_size() 770 if (samples > max_samples) in das1800_ai_transfer_size() 771 samples = max_samples; in das1800_ai_transfer_size()
|
D | adv_pci1710.c | 170 unsigned int max_samples; member 457 for (i = 0; i < devpriv->max_samples; i++) { in pci1710_handle_fifo() 875 devpriv->max_samples = (board->is_pci1711) ? 512 : 2048; in pci1710_auto_attach()
|
D | pcl812.c | 533 unsigned int max_samples; in pcl812_ai_setup_dma() local 540 max_samples = comedi_bytes_to_samples(s, bytes); in pcl812_ai_setup_dma() 546 nsamples = comedi_nsamples_left(s, max_samples + unread_samples); in pcl812_ai_setup_dma()
|
D | pcl816.c | 119 unsigned int max_samples = comedi_bytes_to_samples(s, desc->maxsize); in pcl816_ai_setup_dma() local 128 nsamples = comedi_nsamples_left(s, max_samples + unread_samples); in pcl816_ai_setup_dma()
|
D | pcl818.c | 308 unsigned int max_samples = comedi_bytes_to_samples(s, desc->maxsize); in pcl818_ai_setup_dma() local 317 nsamples = comedi_nsamples_left(s, max_samples + unread_samples); in pcl818_ai_setup_dma()
|
D | das16.c | 452 unsigned int max_samples = comedi_bytes_to_samples(s, desc->maxsize); in das16_ai_setup_dma() local 459 nsamples = comedi_nsamples_left(s, max_samples + unread_samples); in das16_ai_setup_dma()
|
/drivers/staging/comedi/ |
D | comedi_buf.c | 625 unsigned int max_samples; in comedi_buf_write_samples() local 633 max_samples = comedi_bytes_to_samples(s, comedi_buf_write_n_unalloc(s)); in comedi_buf_write_samples() 634 if (nsamples > max_samples) { in comedi_buf_write_samples() 637 nsamples = max_samples; in comedi_buf_write_samples() 671 unsigned int max_samples; in comedi_buf_read_samples() local 675 max_samples = comedi_bytes_to_samples(s, in comedi_buf_read_samples() 677 if (nsamples > max_samples) in comedi_buf_read_samples() 678 nsamples = max_samples; in comedi_buf_read_samples()
|