Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

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

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
PARAM_VALUE 1 cfg 1254289562390020096
PARAM_VALUE 1 cfg->removable 1
PARAM_VALUE 2 id 0
PARAM_VALUE 3 name 816016869728215040
PARAM_VALUE 4 name_pfx 4096-ptr_max
BUF_SIZE 0 common (-1),848
BUF_SIZE 0 common (-1),848
BUF_SIZE 3 name 6
DATA_SOURCE 0 common r fsg_common_setup
STR_LEN 0 common 5
TERMINATED 3 name 1
MEM_ZERO 1 cfg
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &func_lock
HALF_LOCKED2 &subsys->su_mutex

drivers/usb/gadget/function/f_mass_storage.c fsg_common_create_luns() -> fsg_common_create_lun()

Type Parameter Key Value
PARAM_VALUE 0 common 4096-ptr_max
PARAM_VALUE 0 common->cdev 4096-ptr_max
PARAM_VALUE 0 common->sysfs 1
PARAM_VALUE 1 cfg 4096-ptr_max
PARAM_VALUE 2 id 0-1
PARAM_VALUE 3 name 8352661558882217984
PARAM_VALUE 4 name_pfx 0
BUF_SIZE 3 name 8
CAPPED_DATA 2 id 1
DATA_SOURCE 0 common $0
STR_LEN 0 common 7
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 common->fsg_num_buffers
UNITS 2 id unit_array_size

drivers/usb/gadget/function/f_mass_storage.c fsg_lun_make() -> fsg_common_create_lun()

Type Parameter Key Value
PARAM_VALUE 0 common 4096-ptr_max
PARAM_VALUE 0 common->luns 4096-ptr_max
PARAM_VALUE 1 cfg 7704036903622352896
PARAM_VALUE 1 cfg->removable 1
PARAM_VALUE 2 id 0-15
PARAM_VALUE 3 *name 0
PARAM_VALUE 4 name_pfx 4096-ptr_max
BUF_SIZE 3 name s32min-(-2),1-s32max
BUF_SIZE 3 name s32min-(-2),1-s32max
CAPPED_DATA 2 id 1
DATA_SOURCE 3 name $1
NOSPEC 2 id
NOSPEC 2 id
MEM_ZERO 1 cfg
RX_PATH
TASK_NOT_RUNNING
USER_DATA 2 id 0-15[c]
NO_OVERFLOW_SIMPLE 2 id
LOCK2 &fsg_opts->lock
LOCK2 &subsys->su_mutex
HALF_LOCKED2 &dentry->d_lockref.lock
TYPE_LOCK (struct configfs_subsystem)->su_mutex
TYPE_LOCK (struct fsg_opts)->lock