Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/usb/misc/usbtest.c ch9_postconfig() -> set_altsetting()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->intf->altsetting 4096-ptr_max
PARAM_VALUE 0 dev->intf->num_altsetting 1-u32max
PARAM_VALUE 1 alternate 0-255
BUF_SIZE 0 dev s32min-(-2),1-s32max
BUF_SIZE 0 dev s32min-(-2),1-s32max
DATA_SOURCE 0 dev $0
UNITS 0 dev unit_byte
UNITS 1 alternate unit_array_size
LOCK2 &dev->dev.mutex
LOCK2 &dev->lock
TYPE_LOCK (struct device)->mutex
TYPE_LOCK (struct usbtest_dev)->lock

drivers/usb/misc/usbtest.c usbtest_ioctl() -> set_altsetting()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->info 4096-ptr_max
PARAM_VALUE 0 dev->info->alt 0-255
PARAM_VALUE 0 dev->lock.dep_map->name 0-255
PARAM_VALUE 0 dev->lock.first_waiter 0,4096-5159360019465732095,5159360019465732097-ptr_max
PARAM_VALUE 0 dev->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 dev->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 dev->lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 dev->lock.wait_lock.owner (-1)
PARAM_VALUE 0 dev->lock.wait_lock.owner_cpu u32max
PARAM_VALUE 1 alternate 0-255
BUF_SIZE 0 dev s32min-(-2),1-s32max
BUF_SIZE 0 dev s32min-(-2),1-s32max
CAPPED_DATA 0 &dev->lock 1
FUZZY_MAX 0 dev->info->alt 0
FUZZY_MAX 1 alternate 0
UNITS 0 dev unit_byte
UNITS 1 alternate unit_array_size
LOCK2 &dev->dev.mutex
LOCK2 0 &dev->lock
TYPE_LOCK (struct device)->mutex
TYPE_LOCK (struct usbtest_dev)->lock