Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 3 files:
Smatch caller information:
drivers/iio/industrialio-buffer.c iio_buffer_add_channel_sysfs() -> __iio_add_chan_devattr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | postfix | 1405619274303606784 |
| PARAM_VALUE | 1 | chan | 4096-ptr_max |
| PARAM_VALUE | 1 | chan->scan_index | 0-s32max |
| PARAM_VALUE | 2 | readfunc | 7091504627436556288 |
| PARAM_VALUE | 3 | writefunc | 0 |
| PARAM_VALUE | 4 | mask | 0 |
| PARAM_VALUE | 5 | shared_by | 0 |
| PARAM_VALUE | 6 | dev | 4096-ptr_max |
| PARAM_VALUE | 6 | dev->fwnode | 0,4096-u64max |
| PARAM_VALUE | 6 | dev->of_node | 0,4096-ptr_max |
| PARAM_VALUE | 7 | buffer | 4096-ptr_max |
| PARAM_VALUE | 7 | buffer->attrs | 0,4096-ptr_max |
| PARAM_VALUE | 7 | buffer->buffer_attr_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 7 | buffer->buffer_attr_list.prev | 4096-ptr_max |
| PARAM_VALUE | 7 | buffer->buffer_attr_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 7 | buffer->buffer_attr_list.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 8 | attr_list | 4096-ptr_max |
| PARAM_VALUE | 8 | attr_list->prev | 4096-ptr_max |
| BUF_SIZE | 0 | postfix | 6 |
| DATA_SOURCE | 1 | chan | $2 |
| DATA_SOURCE | 7 | buffer | $1 |
| STR_LEN | 0 | postfix | 5 |
| TERMINATED | 0 | postfix | 1 |
drivers/iio/industrialio-buffer.c iio_buffer_add_channel_sysfs() -> __iio_add_chan_devattr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | postfix | 6570699494095450112 |
| PARAM_VALUE | 1 | chan | 4096-ptr_max |
| PARAM_VALUE | 1 | chan->scan_index | 0-s32max |
| PARAM_VALUE | 2 | readfunc | 6958896090869772288 |
| PARAM_VALUE | 3 | writefunc | 0 |
| PARAM_VALUE | 4 | mask | 0 |
| PARAM_VALUE | 5 | shared_by | 0 |
| PARAM_VALUE | 6 | dev | 4096-ptr_max |
| PARAM_VALUE | 6 | dev->fwnode | 0,4096-u64max |
| PARAM_VALUE | 6 | dev->of_node | 0,4096-ptr_max |
| PARAM_VALUE | 7 | buffer | 4096-ptr_max |
| PARAM_VALUE | 7 | buffer->attrs | 0,4096-ptr_max |
| PARAM_VALUE | 7 | buffer->buffer_attr_list.next | 4096-ptr_max |
| PARAM_VALUE | 7 | buffer->buffer_attr_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 7 | buffer->buffer_attr_list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 7 | buffer->buffer_attr_list.prev | 4096-ptr_max |
| PARAM_VALUE | 7 | buffer->buffer_attr_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 7 | buffer->buffer_attr_list.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 8 | attr_list | 4096-ptr_max |
| PARAM_VALUE | 8 | attr_list->next | 4096-ptr_max |
| PARAM_VALUE | 8 | attr_list->prev | 4096-ptr_max |
| BUF_SIZE | 0 | postfix | 5 |
| CAPPED_DATA | 7 | &buffer->buffer_attr_list | 1 |
| DATA_SOURCE | 1 | chan | $2 |
| DATA_SOURCE | 7 | buffer | $1 |
| STR_LEN | 0 | postfix | 4 |
| TERMINATED | 0 | postfix | 1 |
drivers/iio/industrialio-buffer.c iio_buffer_add_channel_sysfs() -> __iio_add_chan_devattr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | postfix | 8660222631318720512 |
| PARAM_VALUE | 1 | chan | 4096-ptr_max |
| PARAM_VALUE | 1 | chan->scan_index | 0-s32max |
| PARAM_VALUE | 1 | chan->type | 0-12,14-u32max |
| PARAM_VALUE | 2 | readfunc | 3278052391680729088 |
| PARAM_VALUE | 3 | writefunc | 6099372000895504384 |
| PARAM_VALUE | 4 | mask | 0-s32max |
| PARAM_VALUE | 5 | shared_by | 0 |
| PARAM_VALUE | 6 | dev | 4096-ptr_max |
| PARAM_VALUE | 6 | dev->fwnode | 0,4096-u64max |
| PARAM_VALUE | 6 | dev->of_node | 0,4096-ptr_max |
| PARAM_VALUE | 7 | buffer | 4096-ptr_max |
| PARAM_VALUE | 7 | buffer->attrs | 0,4096-ptr_max |
| PARAM_VALUE | 7 | buffer->buffer_attr_list.next | 4096-ptr_max |
| PARAM_VALUE | 7 | buffer->buffer_attr_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 7 | buffer->buffer_attr_list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 7 | buffer->buffer_attr_list.prev | 4096-ptr_max |
| PARAM_VALUE | 7 | buffer->buffer_attr_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 7 | buffer->buffer_attr_list.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 8 | attr_list | 4096-ptr_max |
| PARAM_VALUE | 8 | attr_list->next | 4096-ptr_max |
| PARAM_VALUE | 8 | attr_list->prev | 4096-ptr_max |
| BUF_SIZE | 0 | postfix | 3 |
| CAPPED_DATA | 7 | &buffer->buffer_attr_list | 1 |
| DATA_SOURCE | 1 | chan | $2 |
| DATA_SOURCE | 7 | buffer | $1 |
| STR_LEN | 0 | postfix | 2 |
| TERMINATED | 0 | postfix | 1 |
| UNITS | 4 | mask | unit_array_size |
drivers/iio/industrialio-buffer.c iio_buffer_add_channel_sysfs() -> __iio_add_chan_devattr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | postfix | 8660222631318720512 |
| PARAM_VALUE | 1 | chan | 4096-ptr_max |
| PARAM_VALUE | 1 | chan->scan_index | 0-s32max |
| PARAM_VALUE | 1 | chan->type | 13 |
| PARAM_VALUE | 2 | readfunc | 7717129621636820992 |
| PARAM_VALUE | 3 | writefunc | 1721532205455970304 |
| PARAM_VALUE | 4 | mask | 0-s32max |
| PARAM_VALUE | 5 | shared_by | 0 |
| PARAM_VALUE | 6 | dev | 4096-ptr_max |
| PARAM_VALUE | 6 | dev->fwnode | 0,4096-u64max |
| PARAM_VALUE | 6 | dev->of_node | 0,4096-ptr_max |
| PARAM_VALUE | 7 | buffer | 4096-ptr_max |
| PARAM_VALUE | 7 | buffer->attrs | 0,4096-ptr_max |
| PARAM_VALUE | 7 | buffer->buffer_attr_list.next | 4096-ptr_max |
| PARAM_VALUE | 7 | buffer->buffer_attr_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 7 | buffer->buffer_attr_list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 7 | buffer->buffer_attr_list.prev | 4096-ptr_max |
| PARAM_VALUE | 7 | buffer->buffer_attr_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 7 | buffer->buffer_attr_list.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 8 | attr_list | 4096-ptr_max |
| PARAM_VALUE | 8 | attr_list->next | 4096-ptr_max |
| PARAM_VALUE | 8 | attr_list->prev | 4096-ptr_max |
| BUF_SIZE | 0 | postfix | 3 |
| CAPPED_DATA | 7 | &buffer->buffer_attr_list | 1 |
| DATA_SOURCE | 1 | chan | $2 |
| DATA_SOURCE | 7 | buffer | $1 |
| STR_LEN | 0 | postfix | 2 |
| TERMINATED | 0 | postfix | 1 |
| UNITS | 4 | mask | unit_array_size |
drivers/iio/industrialio-event.c iio_device_add_event() -> __iio_add_chan_devattr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | postfix | 1-u64max |
| PARAM_VALUE | 1 | chan | 4096-ptr_max |
| PARAM_VALUE | 1 | chan->event_spec | 4096-ptr_max |
| PARAM_VALUE | 1 | chan->num_event_specs | 1-u32max |
| PARAM_VALUE | 2 | readfunc | 536999541208162304,7917242722306088960 |
| PARAM_VALUE | 3 | writefunc | 1255667833819922432,3185777094337667072 |
| PARAM_VALUE | 4 | mask | 0-s32max |
| PARAM_VALUE | 5 | shared_by | 0-3 |
| PARAM_VALUE | 6 | dev | 4096-ptr_max |
| PARAM_VALUE | 6 | dev->fwnode | 0,4096-u64max |
| PARAM_VALUE | 6 | dev->of_node | 0,4096-ptr_max |
| PARAM_VALUE | 7 | buffer | 0 |
| PARAM_VALUE | 8 | attr_list | 4096-ptr_max |
| BUF_SIZE | 0 | postfix | 0-s32max |
| BUF_SIZE | 0 | postfix | 0-s32max |
| CAPPED_DATA | 0 | postfix | 1 |
| CAPPED_DATA | 4 | mask | 1 |
| DATA_SOURCE | 1 | chan | $1 |
| DATA_SOURCE | 5 | shared_by | $5 |
| BIT_INFO | 2 | readfunc | 0x553820cd200a000,0x6ffffe7effdbe000 |
| BIT_INFO | 2 | readfunc | 0x553820cd200a000,0x6ffffe7effdbe000 |
| BIT_INFO | 3 | writefunc | 0x24072160908000,0x3d7f277fffbaa000 |
| BIT_INFO | 3 | writefunc | 0x24072160908000,0x3d7f277fffbaa000 |
| HARD_MAX | 5 | shared_by | 3 |
drivers/iio/industrialio-event.c iio_device_add_event_label() -> __iio_add_chan_devattr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | postfix | 1-u64max |
| PARAM_VALUE | 1 | chan | 4096-ptr_max |
| PARAM_VALUE | 1 | chan->event_spec | 4096-ptr_max |
| PARAM_VALUE | 1 | chan->num_event_specs | 1-u32max |
| PARAM_VALUE | 2 | readfunc | 8954462836927684608 |
| PARAM_VALUE | 3 | writefunc | 0 |
| PARAM_VALUE | 4 | mask | 0-s32max |
| PARAM_VALUE | 5 | shared_by | 0 |
| PARAM_VALUE | 6 | dev | 4096-ptr_max |
| PARAM_VALUE | 6 | dev->fwnode | 0,4096-u64max |
| PARAM_VALUE | 6 | dev->of_node | 0,4096-ptr_max |
| PARAM_VALUE | 7 | buffer | 0 |
| PARAM_VALUE | 8 | attr_list | 4096-ptr_max |
| BUF_SIZE | 0 | postfix | 0-s32max |
| BUF_SIZE | 0 | postfix | 0-s32max |
| CAPPED_DATA | 0 | postfix | 1 |
| CAPPED_DATA | 4 | mask | 1 |
| DATA_SOURCE | 1 | chan | $1 |
| DATA_SOURCE | 4 | mask | $2 |
| UNITS | 4 | mask | unit_array_size |
drivers/iio/industrialio-core.c iio_device_add_channel_label() -> __iio_add_chan_devattr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | postfix | 5892365972338216960 |
| PARAM_VALUE | 1 | chan | 4096-ptr_max |
| PARAM_VALUE | 1 | chan->channel | 0-s32max |
| PARAM_VALUE | 2 | readfunc | 541130488558305280 |
| PARAM_VALUE | 3 | writefunc | 0 |
| PARAM_VALUE | 4 | mask | 0 |
| PARAM_VALUE | 5 | shared_by | 0 |
| PARAM_VALUE | 6 | dev | 4096-ptr_max |
| PARAM_VALUE | 6 | dev->fwnode | 0,4096-u64max |
| PARAM_VALUE | 6 | dev->of_node | 0,4096-ptr_max |
| PARAM_VALUE | 7 | buffer | 0 |
| PARAM_VALUE | 8 | attr_list | 4096-ptr_max |
| BUF_SIZE | 0 | postfix | 6 |
| DATA_SOURCE | 1 | chan | $1 |
| FUZZY_MAX | 1 | chan->channel | 0 |
| STR_LEN | 0 | postfix | 5 |
| TERMINATED | 0 | postfix | 1 |
drivers/iio/industrialio-core.c iio_device_add_channel_sysfs() -> __iio_add_chan_devattr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | postfix | 1-u64max |
| PARAM_VALUE | 1 | chan | 4096-ptr_max |
| PARAM_VALUE | 1 | chan->channel | 0-s32max |
| PARAM_VALUE | 1 | chan->ext_info | 1-u64max |
| PARAM_VALUE | 2 | readfunc | 0,2356140289713201152 |
| PARAM_VALUE | 3 | writefunc | 0,4392534889780301824 |
| PARAM_VALUE | 6 | dev | 4096-ptr_max |
| PARAM_VALUE | 6 | dev->fwnode | 0,4096-u64max |
| PARAM_VALUE | 6 | dev->of_node | 0,4096-ptr_max |
| PARAM_VALUE | 7 | buffer | 0 |
| PARAM_VALUE | 8 | attr_list | 4096-ptr_max |
| BUF_SIZE | 2 | readfunc | 0,8 |
| BUF_SIZE | 3 | writefunc | 0,8 |
| DATA_SOURCE | 1 | chan | $1 |
| FUZZY_MAX | 1 | chan->channel | 0 |
| BIT_INFO | 2 | readfunc | 0x0,0x20b2b11c31576000 |
| BIT_INFO | 3 | writefunc | 0x0,0x3cf56b35a8dd5000 |
drivers/iio/industrialio-core.c iio_device_add_info_mask_type() -> __iio_add_chan_devattr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | chan | 4096-ptr_max |
| PARAM_VALUE | 1 | chan->channel | 0-s32max |
| PARAM_VALUE | 2 | readfunc | 5544092490991976448 |
| PARAM_VALUE | 3 | writefunc | 2148403531681808384 |
| PARAM_VALUE | 4 | mask | 0-31 |
| PARAM_VALUE | 5 | shared_by | 0-3 |
| PARAM_VALUE | 6 | dev | 4096-ptr_max |
| PARAM_VALUE | 6 | dev->fwnode | 0,4096-u64max |
| PARAM_VALUE | 6 | dev->of_node | 0,4096-ptr_max |
| PARAM_VALUE | 7 | buffer | 0 |
| PARAM_VALUE | 8 | attr_list | 4096-ptr_max |
| CAPPED_DATA | 4 | mask | 1 |
| DATA_SOURCE | 1 | chan | $1 |
| DATA_SOURCE | 4 | mask | r find_next_bit |
| DATA_SOURCE | 5 | shared_by | $2 |
| FUZZY_MAX | 1 | chan->channel | 0 |
| HARD_MAX | 5 | shared_by | 3 |
| UNITS | 4 | mask | unit_array_size |
drivers/iio/industrialio-core.c iio_device_add_info_mask_type_avail() -> __iio_add_chan_devattr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | postfix | 1-u64max |
| PARAM_VALUE | 1 | chan | 4096-ptr_max |
| PARAM_VALUE | 1 | chan->channel | 0-s32max |
| PARAM_VALUE | 2 | readfunc | 8049368030781120512 |
| PARAM_VALUE | 3 | writefunc | 0 |
| PARAM_VALUE | 4 | mask | 0-31 |
| PARAM_VALUE | 5 | shared_by | 0-3 |
| PARAM_VALUE | 6 | dev | 4096-ptr_max |
| PARAM_VALUE | 6 | dev->fwnode | 0,4096-u64max |
| PARAM_VALUE | 6 | dev->of_node | 0,4096-ptr_max |
| PARAM_VALUE | 7 | buffer | 0 |
| PARAM_VALUE | 8 | attr_list | 4096-ptr_max |
| BUF_SIZE | 0 | postfix | 0-s32max |
| BUF_SIZE | 0 | postfix | 0-s32max |
| CAPPED_DATA | 0 | postfix | 1 |
| CAPPED_DATA | 4 | mask | 1 |
| DATA_SOURCE | 0 | postfix | r kasprintf |
| DATA_SOURCE | 1 | chan | $1 |
| DATA_SOURCE | 4 | mask | r find_next_bit |
| DATA_SOURCE | 5 | shared_by | $2 |
| FUZZY_MAX | 1 | chan->channel | 0 |
| HARD_MAX | 5 | shared_by | 3 |
| UNITS | 4 | mask | unit_array_size |