Defined in 1 files as a function:
Referenced in 4 files:
- drivers/usb/gadget/composite.c
- drivers/usb/gadget/configfs.c
- drivers/usb/gadget/legacy/inode.c
- drivers/usb/gadget/legacy/raw_gadget.c
Smatch caller information:
drivers/usb/gadget/legacy/inode.c gadgetfs_bind() -> set_gadget_data()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gadget | 4096-ptr_max |
| PARAM_VALUE | 1 | data | 4096-ptr_max |
| DATA_SOURCE | 0 | gadget | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/usb/gadget/legacy/inode.c gadgetfs_unbind() -> set_gadget_data()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gadget | 4096-ptr_max |
| PARAM_VALUE | 1 | data | 0 |
| DATA_SOURCE | 0 | gadget | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/usb/gadget/legacy/raw_gadget.c gadget_bind() -> set_gadget_data()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gadget | 4096-ptr_max |
| PARAM_VALUE | 1 | data | 4096-ptr_max |
| DATA_SOURCE | 0 | gadget | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/usb/gadget/legacy/raw_gadget.c gadget_bind() -> set_gadget_data()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gadget | 4096-ptr_max |
| PARAM_VALUE | 1 | data | 0 |
| DATA_SOURCE | 0 | gadget | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/usb/gadget/legacy/raw_gadget.c gadget_bind() -> set_gadget_data()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gadget | 4096-ptr_max |
| PARAM_VALUE | 1 | data | 0 |
| DATA_SOURCE | 0 | gadget | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/usb/gadget/legacy/raw_gadget.c gadget_unbind() -> set_gadget_data()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gadget | 4096-ptr_max |
| PARAM_VALUE | 1 | data | 0 |
| DATA_SOURCE | 0 | gadget | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/usb/gadget/configfs.c configfs_composite_bind() -> set_gadget_data()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gadget | 4096-ptr_max |
| PARAM_VALUE | 1 | data | 4096-ptr_max |
| BUF_SIZE | 1 | data | 496 |
| DATA_SOURCE | 0 | gadget | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/usb/gadget/configfs.c configfs_composite_unbind() -> set_gadget_data()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gadget | 4096-ptr_max |
| PARAM_VALUE | 1 | data | 0 |
| DATA_SOURCE | 0 | gadget | $0 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &gi->spinlock | ||
| LOCK2 | flags | ||
| TYPE_LOCK | (struct gadget_info)->spinlock |
drivers/usb/gadget/composite.c __composite_unbind() -> set_gadget_data()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gadget | 4096-ptr_max |
| PARAM_VALUE | 1 | data | 0 |
| DATA_SOURCE | 0 | gadget | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/usb/gadget/composite.c composite_bind() -> set_gadget_data()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gadget | 4096-ptr_max |
| PARAM_VALUE | 1 | data | 4096-ptr_max |
| BUF_SIZE | 1 | data | 496 |
| DATA_SOURCE | 0 | gadget | $0 |
| DATA_SOURCE | 1 | data | r _kzalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |