Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 5 files:

Smatch caller information:

drivers/comedi/drivers/ni_tiocmd.c ni_tio_input_cmd() -> comedi_buf_write_alloc()

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 1-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->private 4096-ptr_max
PARAM_VALUE 0 s->private->counter_dev->regs_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 s->runflags 0,4-u32max
PARAM_VALUE 0 s->spin_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 nbytes 1-u32max
CAPPED_DATA 0 s->lock 1
DATA_SOURCE 0 s $0
FUZZY_MAX 0 s->async->cb_mask 54
PREEMPT_ADD
NOCHECK_CALL
UNITS 1 nbytes unit_byte
LOCK2 &counter->lock
LOCK2 &dev->mutex
LOCK2 flags
TYPE_LOCK (struct comedi_device)->mutex
TYPE_LOCK (struct ni_gpct)->lock

drivers/comedi/drivers/ni_pcimio.c ni_ai_setup_MITE_dma() -> comedi_buf_write_alloc()

Type Parameter Key Value
PARAM_VALUE 0 s 4096-ptr_max
PARAM_VALUE 0 s->async 4096-ptr_max
NOCHECK_CALL
UNITS 1 nbytes unit_byte
LOCK2 &dev->mutex
TYPE_LOCK (struct comedi_device)->mutex

drivers/comedi/drivers/ni_pcidio.c setup_mite_dma() -> comedi_buf_write_alloc()

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 1-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.scan_begin_arg 0-2147483646,2147483648-u32max
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->runflags 0,4-u32max
PARAM_VALUE 0 s->spin_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 nbytes 1-u32max
CAPPED_DATA 0 s->lock 1
DATA_SOURCE 0 s $1
FUZZY_MAX 0 s->async->cb_mask 54
NOCHECK_CALL
UNITS 1 nbytes unit_byte
LOCK2 &dev->mutex
TYPE_LOCK (struct comedi_device)->mutex

drivers/comedi/drivers/mite.c mite_sync_input_dma() -> comedi_buf_write_alloc()

Type Parameter Key Value
PARAM_VALUE 0 s 4096-ptr_max
PARAM_VALUE 0 s->async 4096-ptr_max
DATA_SOURCE 0 s $1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 1 nbytes unit_byte
HALF_LOCKED2 &dev->mutex
HALF_LOCKED2 &dev->spinlock
HALF_LOCKED2 &devpriv->interrupt_lock
HALF_LOCKED2 &devpriv->mite_channel_lock
HALF_LOCKED2 flags
HALF_LOCKED2 irq_flags