Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 13 files:
- drivers/comedi/drivers.c, line 579
- drivers/comedi/drivers/adl_pci9111.c, line 413
- drivers/comedi/drivers/adl_pci9118.c, line 647
- drivers/comedi/drivers/amplc_pci230.c
- drivers/comedi/drivers/cb_pcidas.c
- drivers/comedi/drivers/cb_pcidas64.c
- drivers/comedi/drivers/comedi_test.c, line 211
- drivers/comedi/drivers/das16.c, line 457
- drivers/comedi/drivers/das1800.c
- drivers/comedi/drivers/pcl812.c, line 563
- drivers/comedi/drivers/pcl816.c, line 126
- drivers/comedi/drivers/pcl818.c, line 315
- drivers/comedi/drivers/usbduxfast.c, line 238
Smatch caller information:
drivers/comedi/drivers/das1800.c das1800_ai_transfer_size() -> comedi_nsamples_left()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 0 | s->async | 4096-ptr_max |
| PARAM_VALUE | 0 | s->async->buf_read_alloc_count | 0 |
| PARAM_VALUE | 0 | s->async->buf_read_count | 0 |
| PARAM_VALUE | 0 | s->async->buf_read_ptr | 0 |
| PARAM_VALUE | 0 | s->async->buf_write_alloc_count | 0 |
| PARAM_VALUE | 0 | s->async->buf_write_count | 0 |
| PARAM_VALUE | 0 | s->async->buf_write_ptr | 0 |
| PARAM_VALUE | 0 | s->async->cb_mask | 54-55 |
| PARAM_VALUE | 0 | s->async->cmd.chanlist | 4096-ptr_max |
| PARAM_VALUE | 0 | s->async->cmd.chanlist_len | 1-u32max |
| PARAM_VALUE | 0 | s->async->cmd.data | 0 |
| PARAM_VALUE | 0 | s->async->cmd.subdev | 0-4294967294 |
| PARAM_VALUE | 0 | s->async->cur_chan | 0 |
| PARAM_VALUE | 0 | s->async->events | 0 |
| PARAM_VALUE | 0 | s->async->munge_chan | 0 |
| PARAM_VALUE | 0 | s->async->munge_count | 0 |
| PARAM_VALUE | 0 | s->async->munge_ptr | 0 |
| PARAM_VALUE | 0 | s->async->prealloc_bufsz | 1-u32max |
| PARAM_VALUE | 0 | s->async->run_active.refs.counter | 1 |
| PARAM_VALUE | 0 | s->async->run_complete.done | 0 |
| PARAM_VALUE | 0 | s->async->scan_progress | 0 |
| PARAM_VALUE | 0 | s->async->scans_done | 0 |
| PARAM_VALUE | 0 | s->busy | 4096-ptr_max |
| PARAM_VALUE | 0 | s->lock | 0,4096-ptr_max |
| PARAM_VALUE | 0 | s->range_table | 4096-ptr_max |
| PARAM_VALUE | 0 | s->runflags | 0,4-u32max |
| PARAM_VALUE | 0 | s->spin_lock.rlock.dep_map->name | 0-255 |
| CAPPED_DATA | 0 | s->lock | 1 |
| DATA_SOURCE | 0 | s | $1 |
| FUZZY_MAX | 0 | s->async->cb_mask | 54 |
| LOCK2 | &dev->mutex | ||
| TYPE_LOCK | (struct comedi_device)->mutex |
drivers/comedi/drivers/das1800.c das1800_flush_dma_channel() -> comedi_nsamples_left()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 1 | nsamples | 0-s32max |
| DATA_SOURCE | 0 | s | $1 |
| DATA_SOURCE | 1 | nsamples | r comedi_bytes_to_samples |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &dev->spinlock | ||
| HALF_LOCKED2 | &dev->mutex | ||
| TYPE_LOCK | (struct comedi_device)->spinlock |
drivers/comedi/drivers/das1800.c das1800_handle_fifo_half_full() -> comedi_nsamples_left()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 1 | nsamples | 512 |
| DATA_SOURCE | 0 | s | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &dev->spinlock | ||
| HALF_LOCKED2 | &dev->mutex | ||
| HALF_LOCKED2 | flags | ||
| TYPE_LOCK | (struct comedi_device)->spinlock |
drivers/comedi/drivers/das16.c das16_ai_setup_dma() -> comedi_nsamples_left()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 1 | nsamples | 0-4294967294 |
| DATA_SOURCE | 0 | s | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->mutex | ||
| HALF_LOCKED2 | &dev->spinlock | ||
| HALF_LOCKED2 | spin_flags |
drivers/comedi/drivers/usbduxfast.c usbduxfast_ai_handle_urb() -> comedi_nsamples_left()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 1 | nsamples | 0-s32max |
| DATA_SOURCE | 0 | s | $1 |
| DATA_SOURCE | 1 | nsamples | r comedi_bytes_to_samples |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | nsamples | 0-s32max[c] |
| HALF_LOCKED2 | &pool->lock |
drivers/comedi/drivers/amplc_pci230.c pci230_ai_update_fifo_trigger_level() -> comedi_nsamples_left()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 1 | nsamples | 2049 |
| DATA_SOURCE | 0 | s | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | s->runflags | 0-u32max |
| HALF_LOCKED2 | &dev->mutex |
drivers/comedi/drivers/amplc_pci230.c pci230_handle_ai() -> comedi_nsamples_left()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 1 | nsamples | 2049 |
| DATA_SOURCE | 0 | s | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &desc->request_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | irq |
drivers/comedi/drivers/cb_pcidas64.c cb_pcidas64_ao_fill_buffer() -> comedi_nsamples_left()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 1 | nsamples | 1024-4096 |
| DATA_SOURCE | 0 | s | $1 |
| DATA_SOURCE | 1 | nsamples | r comedi_bytes_to_samples |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->mutex |
drivers/comedi/drivers/cb_pcidas64.c drain_dma_buffers() -> comedi_nsamples_left()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 1 | nsamples | 0-2048 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &dev->spinlock | ||
| HALF_LOCKED2 | &desc->request_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags | ||
| TYPE_LOCK | (struct comedi_device)->spinlock |
drivers/comedi/drivers/cb_pcidas64.c pio_drain_ai_fifo_16() -> comedi_nsamples_left()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 1 | nsamples | 0-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | s->runflags | 0-u32max |
| HOST_DATA | 1 | nsamples | 0-s16max[c] |
| HALF_LOCKED2 | &desc->request_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags |
drivers/comedi/drivers/cb_pcidas64.c pio_drain_ai_fifo_32() -> comedi_nsamples_left()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 1 | nsamples | 100000 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &desc->request_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags |
drivers/comedi/drivers/adl_pci9111.c pci9111_handle_fifo_half_full() -> comedi_nsamples_left()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 1 | nsamples | 512 |
| DATA_SOURCE | 0 | s | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &dev->spinlock | ||
| LOCK2 | irq_flags | ||
| HALF_LOCKED2 | &desc->request_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | irq | ||
| TYPE_LOCK | (struct comedi_device)->spinlock |
drivers/comedi/drivers/pcl816.c pcl816_ai_setup_dma() -> comedi_nsamples_left()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| DATA_SOURCE | 0 | s | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->mutex |
drivers/comedi/drivers/adl_pci9118.c pci9118_ai_get_dma() -> comedi_nsamples_left()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 0 | s->async | 4096-ptr_max |
| DATA_SOURCE | 0 | s | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &desc->request_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | irq |
drivers/comedi/drivers/cb_pcidas.c cb_pcidas_ai_interrupt() -> comedi_nsamples_left()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &desc->request_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | irq |
drivers/comedi/drivers/cb_pcidas.c cb_pcidas_ao_load_fifo() -> comedi_nsamples_left()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| DATA_SOURCE | 0 | s | $1 |
| DATA_SOURCE | 1 | nsamples | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->mutex |
drivers/comedi/drivers/comedi_test.c waveform_ai_timer() -> comedi_nsamples_left()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 1 | nsamples | u32max |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/comedi/drivers/pcl818.c pcl818_ai_setup_dma() -> comedi_nsamples_left()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 1 | nsamples | 0-4294967294 |
| DATA_SOURCE | 0 | s | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->mutex |
drivers/comedi/drivers/pcl812.c pcl812_ai_setup_dma() -> comedi_nsamples_left()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| DATA_SOURCE | 0 | s | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->mutex |