Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/usb/misc/usbtest.c alloc_sglist() -> get_maxpacket()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | pipe | s32min-(-1),1-s32max |
| DATA_SOURCE | 1 | pipe | $4 |
| LOCK2 | &dev->dev.mutex | ||
| LOCK2 | &dev->lock | ||
| TYPE_LOCK | (struct device)->mutex | ||
| TYPE_LOCK | (struct usbtest_dev)->lock |
drivers/usb/misc/usbtest.c simple_check_buf() -> get_maxpacket()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | udev | 4096-ptr_max |
| PARAM_VALUE | 1 | pipe | s32min-(-1),128-s32max |
| BIT_INFO | 1 | pipe | 0x80,0xffffffff |
| LOCK2 | &dev->dev.mutex | ||
| LOCK2 | &dev->lock | ||
| TYPE_LOCK | (struct device)->mutex | ||
| TYPE_LOCK | (struct usbtest_dev)->lock |
drivers/usb/misc/usbtest.c simple_fill_buf() -> get_maxpacket()
| Type | Parameter | Key | Value |
|---|---|---|---|
| LOCK2 | &dev->dev.mutex | ||
| LOCK2 | &dev->lock | ||
| TYPE_LOCK | (struct device)->mutex | ||
| TYPE_LOCK | (struct usbtest_dev)->lock |
drivers/usb/misc/usbtest.c toggle_sync_simple() -> get_maxpacket()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | pipe | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | udev | r testdev_to_usbdev |
| LOCK2 | &dev->dev.mutex | ||
| LOCK2 | &dev->lock | ||
| TYPE_LOCK | (struct device)->mutex | ||
| TYPE_LOCK | (struct usbtest_dev)->lock |