Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 5 files:

Smatch caller information:

drivers/usb/gadget/function/f_mass_storage.c fsg_alloc_inst() -> fsg_common_free_buffers()

Type Parameter Key Value
PARAM_VALUE 0 common 4096-ptr_max
PARAM_VALUE 0 common->buffhds 16,4096-ptr_max
PARAM_VALUE 0 common->buffhds->buf 4096-ptr_max
PARAM_VALUE 0 common->filesem.count.counter 0
PARAM_VALUE 0 common->filesem.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.first_waiter 0
PARAM_VALUE 0 common->filesem.magic 4096-ptr_max
PARAM_VALUE 0 common->filesem.osq.tail.counter 0
PARAM_VALUE 0 common->filesem.owner.counter 0
PARAM_VALUE 0 common->fsg_num_buffers 2
PARAM_VALUE 0 common->fsg_wait.head.next 4096-ptr_max
PARAM_VALUE 0 common->fsg_wait.head.next->next 4096-ptr_max
PARAM_VALUE 0 common->fsg_wait.head.prev 4096-ptr_max
PARAM_VALUE 0 common->fsg_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 common->fsg_wait.head.prev->prev 4096-ptr_max
PARAM_VALUE 0 common->io_wait.head.next 4096-ptr_max
PARAM_VALUE 0 common->io_wait.head.next->next 4096-ptr_max
PARAM_VALUE 0 common->io_wait.head.prev 4096-ptr_max
PARAM_VALUE 0 common->io_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 common->io_wait.head.prev->prev 4096-ptr_max
PARAM_VALUE 0 common->state 5
PARAM_VALUE 0 common->thread_notifier.done 0
PARAM_VALUE 0 common->thread_notifier.wait.lock.magic 3735899821
PARAM_VALUE 0 common->thread_notifier.wait.lock.owner (-1)
PARAM_VALUE 0 common->thread_notifier.wait.lock.owner_cpu u32max
PARAM_VALUE 0 common->thread_notifier.wait.task_list.next 4096-ptr_max
PARAM_VALUE 0 common->thread_notifier.wait.task_list.next->next 4096-ptr_max
PARAM_VALUE 0 common->thread_notifier.wait.task_list.prev 4096-ptr_max
PARAM_VALUE 0 common->thread_notifier.wait.task_list.prev->next 4096-ptr_max
PARAM_VALUE 0 common->thread_notifier.wait.task_list.prev->prev 4096-ptr_max
BUF_SIZE 0 common (-1),848
BUF_SIZE 0 common (-1),848
DATA_SOURCE 0 common r fsg_common_setup
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 global &func_lock
HALF_LOCKED2 &subsys->su_mutex

drivers/usb/gadget/legacy/acm_ms.c acm_ms_bind() -> fsg_common_free_buffers()

Type Parameter Key Value
PARAM_VALUE 0 common 4096-ptr_max
PARAM_VALUE 0 common->cdev s64min-(-4096),4096-s64max
PARAM_VALUE 0 common->fsg_num_buffers 0-4294967295
PARAM_VALUE 0 *common->inquiry_string 0-255
PARAM_VALUE 0 *common->luns 0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/usb/gadget/legacy/mass_storage.c msg_bind() -> fsg_common_free_buffers()

Type Parameter Key Value
PARAM_VALUE 0 common 4096-ptr_max
PARAM_VALUE 0 common->cdev s64min-(-4096),4096-s64max
PARAM_VALUE 0 common->fsg_num_buffers 0-4294967295
PARAM_VALUE 0 *common->inquiry_string 0-255
PARAM_VALUE 0 *common->luns 0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/usb/gadget/legacy/nokia.c nokia_bind() -> fsg_common_free_buffers()

Type Parameter Key Value
PARAM_VALUE 0 common 4096-ptr_max
PARAM_VALUE 0 common->cdev s64min-(-4096),4096-s64max
PARAM_VALUE 0 common->fsg_num_buffers 0-4294967295
PARAM_VALUE 0 *common->inquiry_string 0-255
PARAM_VALUE 0 *common->luns 0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/usb/gadget/legacy/multi.c multi_bind() -> fsg_common_free_buffers()

Type Parameter Key Value
PARAM_VALUE 0 common 4096-ptr_max
PARAM_VALUE 0 common->cdev s64min-(-4096),4096-s64max
PARAM_VALUE 0 common->fsg_num_buffers 0-4294967295
PARAM_VALUE 0 *common->inquiry_string 0-255
PARAM_VALUE 0 *common->luns 0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL