Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 5 files:
- drivers/usb/gadget/function/f_mass_storage.c
- drivers/usb/gadget/legacy/acm_ms.c, line 178
- drivers/usb/gadget/legacy/mass_storage.c, line 157
- drivers/usb/gadget/legacy/multi.c, line 380
- drivers/usb/gadget/legacy/nokia.c, line 330
Smatch caller information:
drivers/usb/gadget/function/f_mass_storage.c fsg_bind() -> fsg_common_set_cdev()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | common | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev | 4096-ptr_max |
| STR_LEN | 0 | common | (-1) |
| STR_LEN | 1 | cdev | (-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/usb/gadget/legacy/acm_ms.c acm_ms_bind() -> fsg_common_set_cdev()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | common->fsg_num_buffers | 0-4294967295 |
| PARAM_VALUE | 1 | cdev | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->configs.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->configs.next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->configs.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->configs.prev->next | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->configs.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->driver | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->driver->bind | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->driver->dev | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->driver->disconnect | 0 |
| PARAM_VALUE | 1 | cdev->driver->max_speed | 1-3,5-6 |
| PARAM_VALUE | 1 | cdev->driver->resume | 0,5142684716101427200 |
| PARAM_VALUE | 1 | cdev->driver->strings | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->driver->suspend | 0,5398328222922911744 |
| PARAM_VALUE | 1 | cdev->driver->unbind | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gadget | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gadget->ep0 | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gadget->ep0->driver_data | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gadget->ep0->ops | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gadget->ep0->ops->alloc_request | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gadget->in_epnum | 0 |
| PARAM_VALUE | 1 | cdev->gadget->is_selfpowered | 1 |
| PARAM_VALUE | 1 | cdev->gadget->ops | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gadget->out_epnum | 0 |
| PARAM_VALUE | 1 | cdev->gstrings.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gstrings.next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gstrings.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gstrings.prev->next | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gstrings.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->req | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->req->buf | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->req->complete | 6839047502870331392 |
| PARAM_VALUE | 1 | cdev->req->context | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->req->ep | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->req->ep->ops | 4096-ptr_max |
| BUF_SIZE | 1 | cdev | 496 |
| DATA_SOURCE | 1 | cdev | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/usb/gadget/legacy/mass_storage.c msg_bind() -> fsg_common_set_cdev()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | common->fsg_num_buffers | 0-4294967295 |
| PARAM_VALUE | 1 | cdev | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->configs.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->configs.next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->configs.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->configs.prev->next | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->configs.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->driver | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->driver->bind | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->driver->dev | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->driver->disconnect | 0 |
| PARAM_VALUE | 1 | cdev->driver->max_speed | 1-3,5-6 |
| PARAM_VALUE | 1 | cdev->driver->resume | 0,5142684716101427200 |
| PARAM_VALUE | 1 | cdev->driver->strings | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->driver->suspend | 0,5398328222922911744 |
| PARAM_VALUE | 1 | cdev->driver->unbind | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gadget | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gadget->ep0 | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gadget->ep0->driver_data | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gadget->ep0->ops | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gadget->ep0->ops->alloc_request | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gadget->in_epnum | 0 |
| PARAM_VALUE | 1 | cdev->gadget->is_selfpowered | 1 |
| PARAM_VALUE | 1 | cdev->gadget->ops | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gadget->out_epnum | 0 |
| PARAM_VALUE | 1 | cdev->gstrings.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gstrings.next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gstrings.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gstrings.prev->next | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gstrings.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->req | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->req->buf | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->req->complete | 6839047502870331392 |
| PARAM_VALUE | 1 | cdev->req->context | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->req->ep | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->req->ep->ops | 4096-ptr_max |
| BUF_SIZE | 1 | cdev | 496 |
| DATA_SOURCE | 1 | cdev | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/usb/gadget/legacy/nokia.c nokia_bind() -> fsg_common_set_cdev()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | common->fsg_num_buffers | 0-4294967295 |
| PARAM_VALUE | 1 | cdev | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->configs.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->configs.next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->configs.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->configs.prev->next | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->configs.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->driver | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->driver->bind | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->driver->dev | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->driver->disconnect | 0 |
| PARAM_VALUE | 1 | cdev->driver->max_speed | 1-3,5-6 |
| PARAM_VALUE | 1 | cdev->driver->resume | 0,5142684716101427200 |
| PARAM_VALUE | 1 | cdev->driver->strings | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->driver->suspend | 0,5398328222922911744 |
| PARAM_VALUE | 1 | cdev->driver->unbind | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gadget | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gadget->ep0 | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gadget->ep0->driver_data | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gadget->ep0->ops | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gadget->ep0->ops->alloc_request | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gadget->in_epnum | 0 |
| PARAM_VALUE | 1 | cdev->gadget->is_selfpowered | 1 |
| PARAM_VALUE | 1 | cdev->gadget->ops | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gadget->out_epnum | 0 |
| PARAM_VALUE | 1 | cdev->gadget->quirk_altset_not_supp | 0 |
| PARAM_VALUE | 1 | cdev->gstrings.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gstrings.next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gstrings.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gstrings.prev->next | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gstrings.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->req | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->req->buf | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->req->complete | 6839047502870331392 |
| PARAM_VALUE | 1 | cdev->req->context | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->req->ep | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->req->ep->ops | 4096-ptr_max |
| BUF_SIZE | 1 | cdev | 496 |
| DATA_SOURCE | 1 | cdev | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/usb/gadget/legacy/multi.c multi_bind() -> fsg_common_set_cdev()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | common->fsg_num_buffers | 0-4294967295 |
| PARAM_VALUE | 1 | cdev | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->configs.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->configs.next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->configs.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->configs.prev->next | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->configs.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->driver | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->driver->bind | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->driver->dev | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->driver->disconnect | 0 |
| PARAM_VALUE | 1 | cdev->driver->max_speed | 1-3,5-6 |
| PARAM_VALUE | 1 | cdev->driver->resume | 0,5142684716101427200 |
| PARAM_VALUE | 1 | cdev->driver->strings | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->driver->suspend | 0,5398328222922911744 |
| PARAM_VALUE | 1 | cdev->driver->unbind | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gadget | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gadget->ep0 | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gadget->ep0->driver_data | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gadget->ep0->ops | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gadget->ep0->ops->alloc_request | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gadget->in_epnum | 0 |
| PARAM_VALUE | 1 | cdev->gadget->is_selfpowered | 1 |
| PARAM_VALUE | 1 | cdev->gadget->ops | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gadget->out_epnum | 0 |
| PARAM_VALUE | 1 | cdev->gadget->quirk_altset_not_supp | 0 |
| PARAM_VALUE | 1 | cdev->gstrings.next | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gstrings.next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gstrings.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gstrings.prev->next | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->gstrings.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->req | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->req->buf | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->req->complete | 6839047502870331392 |
| PARAM_VALUE | 1 | cdev->req->context | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->req->ep | 4096-ptr_max |
| PARAM_VALUE | 1 | cdev->req->ep->ops | 4096-ptr_max |
| BUF_SIZE | 1 | cdev | 496 |
| DATA_SOURCE | 1 | cdev | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |