Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 4 files:
- drivers/iio/buffer/industrialio-buffer-dmaengine.c, line 341
- drivers/iio/buffer/industrialio-triggered-buffer.c, line 86
- drivers/iio/buffer/kfifo_buf.c, line 267
- drivers/iio/industrialio-buffer.c, line 2559
Smatch caller information:
drivers/iio/buffer/industrialio-triggered-buffer.c iio_triggered_buffer_setup_ext() -> iio_device_attach_buffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | indio_dev | 4096-ptr_max |
| PARAM_VALUE | 0 | indio_dev->buffer | 0 |
| PARAM_VALUE | 0 | indio_dev->modes | 0,2-s32max |
| PARAM_VALUE | 0 | indio_dev->pollfunc | 4096-ptr_max |
| PARAM_VALUE | 0 | indio_dev->pollfunc->indio_dev | 4096-ptr_max |
| PARAM_VALUE | 0 | indio_dev->pollfunc->name | 1-u64max |
| PARAM_VALUE | 0 | indio_dev->pollfunc->type | 8192 |
| PARAM_VALUE | 1 | buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer->access | 2574969055114555392 |
| PARAM_VALUE | 1 | buffer->buffer_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer->buffer_list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer->demux_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer->demux_list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer->dmabufs.next | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer->dmabufs.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer->dmabufs_mutex.first_waiter | 0 |
| PARAM_VALUE | 1 | buffer->dmabufs_mutex.magic | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer->dmabufs_mutex.osq.tail.counter | 0 |
| PARAM_VALUE | 1 | buffer->dmabufs_mutex.owner.counter | 0 |
| PARAM_VALUE | 1 | buffer->length | 2 |
| PARAM_VALUE | 1 | buffer->pollq.head.next | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer->pollq.head.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer->ref.refcount.refs.counter | 1 |
| PARAM_VALUE | 1 | buffer->watermark | 1-u32max |
| BUF_SIZE | 0 | indio_dev | (-1),1752 |
| BUF_SIZE | 0 | indio_dev | (-1),1752 |
| BUF_SIZE | 0 | indio_dev->available_scan_masks | (-1),16,24 |
| BUF_SIZE | 0 | indio_dev->channels | (-1),320,480,640,800,1440,2560,2720 |
| BUF_SIZE | 0 | indio_dev->dev.parent | (-1),1616 |
| BUF_SIZE | 0 | indio_dev->info | (-1),160 |
| BUF_SIZE | 0 | indio_dev->label | (-1),11,14 |
| BUF_SIZE | 0 | indio_dev->name | s32min,(-10),(-1)-s32max |
| BUF_SIZE | 0 | indio_dev->pollfunc | 56 |
| BUF_SIZE | 0 | indio_dev->pollfunc->indio_dev | (-1),1752 |
| BUF_SIZE | 0 | indio_dev->pollfunc->thread | (-1)-0,8 |
| BUF_SIZE | 0 | indio_dev->trig | (-1),2224 |
| BUF_SIZE | 1 | buffer | 448 |
| BUF_SIZE | 1 | buffer->attrs | (-1)-0,40 |
| CAPPED_DATA | 0 | indio_dev->pollfunc->name | 1 |
| DATA_SOURCE | 0 | indio_dev | $0 |
| DATA_SOURCE | 1 | buffer | r iio_kfifo_allocate |
| STR_LEN | 0 | indio_dev->dev.parent | (-1),7 |
| STR_LEN | 0 | indio_dev->label | (-1),10,13 |
| STR_LEN | 0 | indio_dev->name | (-1),4-8,10 |
| BIT_INFO | 0 | indio_dev->modes | 0x2,0x7fffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &subsys->su_mutex |
drivers/iio/buffer/industrialio-buffer-dmaengine.c __iio_dmaengine_buffer_setup_ext() -> iio_device_attach_buffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | indio_dev | 4096-ptr_max |
| PARAM_VALUE | 0 | indio_dev->dev.dma_io_tlb_mem->can_grow | 0-1 |
| PARAM_VALUE | 0 | indio_dev->dev.dma_io_tlb_mem->debugfs | 0-s64max |
| PARAM_VALUE | 0 | indio_dev->dev.dma_io_tlb_mem->nslabs | 0-s64max |
| PARAM_VALUE | 0 | indio_dev->modes | 0,8-s32max |
| PARAM_VALUE | 0 | indio_dev->setup_ops->postdisable | 0,4096-ptr_max |
| PARAM_VALUE | 0 | indio_dev->setup_ops->postenable | 0,4096-ptr_max |
| PARAM_VALUE | 0 | indio_dev->setup_ops->predisable | 0,4096-ptr_max |
| PARAM_VALUE | 0 | indio_dev->setup_ops->preenable | 0,4096-ptr_max |
| PARAM_VALUE | 1 | buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer->access | 7984737292227629056 |
| PARAM_VALUE | 1 | buffer->attrs | 245306960312147968 |
| PARAM_VALUE | 1 | buffer->buffer_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer->buffer_list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer->demux_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer->demux_list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer->direction | 0-1 |
| PARAM_VALUE | 1 | buffer->dmabufs.next | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer->dmabufs.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer->dmabufs_mutex.first_waiter | 0 |
| PARAM_VALUE | 1 | buffer->dmabufs_mutex.magic | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer->dmabufs_mutex.osq.tail.counter | 0 |
| PARAM_VALUE | 1 | buffer->dmabufs_mutex.owner.counter | 0 |
| PARAM_VALUE | 1 | buffer->length | 4096 |
| PARAM_VALUE | 1 | buffer->pollq.head.next | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer->pollq.head.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer->ref.refcount.refs.counter | 1 |
| PARAM_VALUE | 1 | buffer->watermark | 2048 |
| BUF_SIZE | 0 | indio_dev | (-1),1752 |
| BUF_SIZE | 0 | indio_dev | (-1),1752 |
| BUF_SIZE | 0 | indio_dev->channels | (-1),160,320,480,640,800,2880 |
| BUF_SIZE | 0 | indio_dev->dev.parent | (-1),1616 |
| BUF_SIZE | 0 | indio_dev->info | (-1),160 |
| BUF_SIZE | 0 | indio_dev->name | (-1),7-8,32 |
| BUF_SIZE | 0 | indio_dev->setup_ops | (-1),40 |
| BUF_SIZE | 1 | buffer | 448 |
| DATA_SOURCE | 0 | indio_dev | $0 |
| DATA_SOURCE | 1 | buffer | r iio_dmaengine_buffer_alloc |
| STR_LEN | 0 | indio_dev->name | (-1),6-7 |
| BIT_INFO | 0 | indio_dev->modes | 0x8,0xffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | indio_dev->num_channels |
drivers/iio/buffer/kfifo_buf.c devm_iio_kfifo_buffer_setup_ext() -> iio_device_attach_buffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | indio_dev | 4096-ptr_max |
| PARAM_VALUE | 0 | indio_dev->dev.dma_io_tlb_mem->debugfs | 0-s64max |
| PARAM_VALUE | 0 | indio_dev->modes | 0,4-s32max |
| PARAM_VALUE | 0 | indio_dev->setup_ops | 0,4096-ptr_max |
| PARAM_VALUE | 1 | buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer->access | 2574969055114555392 |
| PARAM_VALUE | 1 | buffer->attrs | 0,1282138382440034304,1997523417835626496,2703378953973989376,3701920065398808576,4520086097015615488,4700833543581196288,8973176711959097344 |
| PARAM_VALUE | 1 | buffer->buffer_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer->buffer_list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer->demux_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer->demux_list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer->dmabufs.next | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer->dmabufs.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer->dmabufs_mutex.first_waiter | 0 |
| PARAM_VALUE | 1 | buffer->dmabufs_mutex.magic | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer->dmabufs_mutex.osq.tail.counter | 0 |
| PARAM_VALUE | 1 | buffer->dmabufs_mutex.owner.counter | 0 |
| PARAM_VALUE | 1 | buffer->length | 2 |
| PARAM_VALUE | 1 | buffer->pollq.head.next | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer->pollq.head.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer->ref.refcount.refs.counter | 1 |
| PARAM_VALUE | 1 | buffer->watermark | 1-u32max |
| BUF_SIZE | 0 | indio_dev | (-1),1752 |
| BUF_SIZE | 0 | indio_dev | (-1),1752 |
| BUF_SIZE | 0 | indio_dev->available_scan_masks | (-1),16,24,104 |
| BUF_SIZE | 0 | indio_dev->channels | (-1),320,480,640,800,960,1280,1440,5280 |
| BUF_SIZE | 0 | indio_dev->dev.parent | (-1),1616 |
| BUF_SIZE | 0 | indio_dev->info | (-1),160 |
| BUF_SIZE | 0 | indio_dev->label | (-1),11,13-14 |
| BUF_SIZE | 0 | indio_dev->name | s32min,(-10),(-1)-s32max |
| BUF_SIZE | 1 | buffer | 448 |
| BUF_SIZE | 1 | buffer->attrs | (-1)-0,16,24,40 |
| DATA_SOURCE | 0 | indio_dev | $1 |
| DATA_SOURCE | 1 | buffer | r iio_kfifo_allocate |
| STR_LEN | 0 | indio_dev | (-1),3-5,7-8,11-12,20,23 |
| STR_LEN | 0 | indio_dev | (-1),3-5,7-8,11-12,20,23 |
| STR_LEN | 0 | indio_dev->label | (-1),10,12-13 |
| STR_LEN | 0 | indio_dev->name | (-1),3-5,7-8,11-12,20,23 |
| BIT_INFO | 0 | indio_dev->modes | 0x4,0x7fffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | indio_dev->num_channels |