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_set_num_buffers()

Type Parameter Key Value
PARAM_VALUE 0 common 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_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
PARAM_VALUE 1 n 2
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
LOCK2 global &func_lock
HALF_LOCKED2 &subsys->su_mutex

drivers/usb/gadget/function/f_mass_storage.c fsg_opts_num_buffers_store() -> fsg_common_set_num_buffers()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 n 0-255
NO_OVERFLOW_SIMPLE 1 n
LOCK2 &buffer->mutex
LOCK2 &frag->frag_sem
LOCK2 &opts->lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct configfs_buffer)->mutex
TYPE_LOCK (struct configfs_fragment)->frag_sem
TYPE_LOCK (struct fsg_opts)->lock

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

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

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

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

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

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

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

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING