Defined in 2 files as a function:
- drivers/usb/core/hcd.c, line 1575 (as a function)
- drivers/usb/misc/usbtest.c, line 1435 (as a function)
Referenced in 2 files:
Smatch caller information:
drivers/usb/misc/usbtest.c unlink_simple() -> unlink1()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hcd | 4096-ptr_max |
| PARAM_VALUE | 1 | urb | s32min-(-1),1-s32max |
| PARAM_VALUE | 2 | status | s32min-(-1),1-s32max |
| PARAM_VALUE | 3 | async | 1 |
| BUF_SIZE | 0 | hcd | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | hcd | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | hcd | $0 |
| DATA_SOURCE | 1 | urb | $1 |
| DATA_SOURCE | 2 | status | $2 |
| USER_DATA | 2 | status | s32min-(-1),1-s32max[u] |
| UNITS | 0 | hcd | unit_byte |
| LOCK2 | &dev->dev.mutex | ||
| LOCK2 | &dev->lock | ||
| TYPE_LOCK | (struct device)->mutex | ||
| TYPE_LOCK | (struct usbtest_dev)->lock |
drivers/usb/misc/usbtest.c unlink_simple() -> unlink1()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hcd | 4096-ptr_max |
| PARAM_VALUE | 1 | urb | 1-s32max |
| PARAM_VALUE | 2 | status | 1-s32max |
| PARAM_VALUE | 3 | async | 0 |
| BUF_SIZE | 0 | hcd | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | hcd | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | hcd | $0 |
| DATA_SOURCE | 1 | urb | $1 |
| DATA_SOURCE | 2 | status | $2 |
| USER_DATA | 2 | status | 1-s32max[u] |
| UNITS | 0 | hcd | unit_byte |
| LOCK2 | &dev->dev.mutex | ||
| LOCK2 | &dev->lock | ||
| TYPE_LOCK | (struct device)->mutex | ||
| TYPE_LOCK | (struct usbtest_dev)->lock |
drivers/usb/core/hcd.c usb_hcd_flush_endpoint() -> unlink1()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hcd | 4096-ptr_max |
| PARAM_VALUE | 1 | urb | 4096-ptr_max |
| PARAM_VALUE | 1 | urb->unlinked | 0 |
| PARAM_VALUE | 2 | status | (-108) |
| CAPPED_DATA | 1 | &urb->urb_list | 1 |
| DATA_SOURCE | 0 | hcd | r bus_to_hcd |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | irq |
drivers/usb/core/hcd.c usb_hcd_unlink_urb() -> unlink1()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hcd | 4096-ptr_max |
| PARAM_VALUE | 1 | urb | 4096-ptr_max |
| PARAM_VALUE | 1 | urb->dev | 4096-ptr_max |
| PARAM_VALUE | 1 | urb->ep | 1-u64max |
| PARAM_VALUE | 1 | urb->iso_frame_desc->actual_length | 0-4294967295 |
| PARAM_VALUE | 1 | urb->use_count.counter | 1-s32max |
| PARAM_VALUE | 2 | status | (-104),(-2) |
| BUF_SIZE | 1 | urb->context | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | hcd | r bus_to_hcd |
| DATA_SOURCE | 1 | urb | $0 |
| DATA_SOURCE | 2 | status | $1 |
| NOSPEC | 1 | urb->transfer_buffer_length | |
| HARD_MAX | 2 | status | (-2) |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 1 | urb->start_frame | 0-s32max |
| USER_DATA | 1 | urb->actual_length | 0-u32max[c][u] |
| USER_DATA | 1 | urb->transfer_buffer_length | 1-s32max |
| NO_OVERFLOW_SIMPLE | 1 | urb->actual_length | |
| NO_OVERFLOW_SIMPLE | 1 | urb->num_mapped_sgs | |
| NO_OVERFLOW_SIMPLE | 1 | urb->setup_dma | |
| NO_OVERFLOW_SIMPLE | 1 | urb->sg->length | |
| NO_OVERFLOW_SIMPLE | 1 | urb->transfer_buffer | |
| NO_OVERFLOW_SIMPLE | 1 | urb->transfer_dma |