Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 2 files as a function:

Referenced in 28 files:

Smatch caller information:

drivers/usb/gadget/function/u_ether.c eth_stop() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &dev->lock
LOCK2 flags
HALF_LOCKED2 &net->lock
HALF_LOCKED2 &rdev->wiphy.mtx
HALF_LOCKED2 global &rtnl_mutex
TYPE_LOCK (struct eth_dev)->lock

drivers/usb/gadget/function/u_ether.c eth_stop() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &dev->lock
LOCK2 flags
HALF_LOCKED2 &net->lock
HALF_LOCKED2 &rdev->wiphy.mtx
HALF_LOCKED2 global &rtnl_mutex
TYPE_LOCK (struct eth_dev)->lock

drivers/usb/gadget/function/u_ether.c gether_connect() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->driver_data 1-u64max

drivers/usb/gadget/function/u_ether.c gether_connect() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->driver_data 1-u64max

drivers/usb/gadget/function/f_mass_storage.c do_set_interface() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->comp_desc 0,4096-ptr_max
PARAM_VALUE 0 ep->desc 4096-ptr_max
PARAM_VALUE 0 ep->maxpacket 0-2047
CAPPED_DATA 0 ep->address 1

drivers/usb/gadget/function/f_mass_storage.c do_set_interface() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->comp_desc 0,4096-ptr_max
PARAM_VALUE 0 ep->desc 4096-ptr_max
PARAM_VALUE 0 ep->maxpacket 0-2047
CAPPED_DATA 0 ep->address 1

drivers/usb/gadget/function/f_rndis.c rndis_set_alt() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->desc 1-u64max
NOCHECK_CALL

drivers/usb/gadget/function/f_uac1_legacy.c f_audio_set_alt() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->comp_desc 0,4096-ptr_max
PARAM_VALUE 0 ep->comp_desc->bDescriptorType 48
PARAM_VALUE 0 ep->desc 4096-ptr_max
PARAM_VALUE 0 ep->maxpacket 0-2047
CAPPED_DATA 0 ep->address 1
NOCHECK_CALL

drivers/usb/gadget/legacy/inode.c ep_config() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->desc 4096-ptr_max
BUF_SIZE 0 ep->desc 9
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 &data->dev->lock
LOCK2 &data->lock
LOCK2 irq
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct dev_data)->lock
TYPE_LOCK (struct ep_data)->lock

drivers/usb/gadget/legacy/raw_gadget.c raw_ioctl_ep_enable() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->claimed 0
PARAM_VALUE 0 ep->desc 4096-ptr_max
BUF_SIZE 0 ep->desc 9
PREEMPT_ADD <- disables preempt
USER_DATA 0 ep->desc->bDescriptorType 0-255
USER_DATA 0 ep->desc->bEndpointAddress 0-255
USER_DATA 0 ep->desc->bInterval 0-255
USER_DATA 0 ep->desc->bLength 0-255
USER_DATA 0 ep->desc->bRefresh 0-255
USER_DATA 0 ep->desc->bSynchAddress 0-255
USER_DATA 0 ep->desc->bmAttributes 0-255
USER_DATA 0 ep->desc->wMaxPacketSize 0-u16max
USER_PTR 0 ep->desc
LOCK2 &dev->lock
LOCK2 flags
TYPE_LOCK (struct raw_dev)->lock

drivers/usb/chipidea/udc.c ci_udc_start() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->desc 5568705381822590976
RX_PATH
TASK_NOT_RUNNING
LOCK2 &udc->connect_lock
HALF_LOCKED2 &gadget->dev.mutex
HALF_LOCKED2 &of->mutex
TYPE_LOCK (struct usb_udc)->connect_lock

drivers/usb/chipidea/udc.c ci_udc_start() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->desc 8606726763996078080
RX_PATH
TASK_NOT_RUNNING
LOCK2 &udc->connect_lock
HALF_LOCKED2 &gadget->dev.mutex
HALF_LOCKED2 &of->mutex
TYPE_LOCK (struct usb_udc)->connect_lock

drivers/usb/gadget/function/f_loopback.c enable_endpoint() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->comp_desc 0,4096-ptr_max
PARAM_VALUE 0 ep->comp_desc->bDescriptorType 48
PARAM_VALUE 0 ep->desc 4096-ptr_max
PARAM_VALUE 0 ep->enabled 0
PARAM_VALUE 0 ep->maxpacket 0-2047
CAPPED_DATA 0 ep->address 1
DATA_SOURCE 0 ep $2

drivers/usb/gadget/function/f_phonet.c pn_set_alt() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->comp_desc 0,4096-ptr_max
PARAM_VALUE 0 ep->comp_desc->bDescriptorType 48
PARAM_VALUE 0 ep->desc 4096-ptr_max
PARAM_VALUE 0 ep->maxpacket 0-2047
CAPPED_DATA 0 ep->address 1
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 &port->lock
TYPE_LOCK (struct phonet_port)->lock

drivers/usb/gadget/function/f_phonet.c pn_set_alt() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->comp_desc 0,4096-ptr_max
PARAM_VALUE 0 ep->comp_desc->bDescriptorType 48
PARAM_VALUE 0 ep->desc 4096-ptr_max
PARAM_VALUE 0 ep->maxpacket 0-2047
CAPPED_DATA 0 ep->address 1
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 &port->lock
TYPE_LOCK (struct phonet_port)->lock

drivers/usb/gadget/function/f_ecm.c ecm_set_alt() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->desc 1-u64max
NOCHECK_CALL

drivers/usb/gadget/function/f_printer.c printer_soft_reset() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->enabled 0

drivers/usb/gadget/function/f_printer.c printer_soft_reset() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->enabled 0

drivers/usb/gadget/function/f_printer.c set_printer_interface() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->desc 3604546295599771648,7274583725419487232,7604582477574479872
PARAM_VALUE 0 ep->driver_data 4096-ptr_max

drivers/usb/gadget/function/f_printer.c set_printer_interface() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->desc 1147619764736618496,5412955438554107904,8398072537970405376
PARAM_VALUE 0 ep->driver_data 4096-ptr_max

drivers/usb/gadget/function/u_audio.c u_audio_start_capture() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->comp_desc 0,4096-ptr_max
PARAM_VALUE 0 ep->comp_desc->bDescriptorType 48
PARAM_VALUE 0 ep->desc 4096-ptr_max
PARAM_VALUE 0 ep->maxpacket 0-2047
CAPPED_DATA 0 ep->address 1

drivers/usb/gadget/function/u_audio.c u_audio_start_capture() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->comp_desc 0,4096-ptr_max
PARAM_VALUE 0 ep->comp_desc->bDescriptorType 48
PARAM_VALUE 0 ep->desc 4096-ptr_max
PARAM_VALUE 0 ep->maxpacket 0-2047
CAPPED_DATA 0 ep->address 1

drivers/usb/gadget/function/u_audio.c u_audio_start_playback() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->comp_desc 0,4096-ptr_max
PARAM_VALUE 0 ep->comp_desc->bDescriptorType 48
PARAM_VALUE 0 ep->desc 4096-ptr_max
PARAM_VALUE 0 ep->maxpacket 0-2047
CAPPED_DATA 0 ep->address 1

drivers/usb/gadget/function/f_uac1.c f_audio_set_alt() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->comp_desc 0,4096-ptr_max
PARAM_VALUE 0 ep->comp_desc->bDescriptorType 48
PARAM_VALUE 0 ep->desc 4096-ptr_max
PARAM_VALUE 0 ep->maxpacket 0-2047
NOCHECK_CALL

drivers/usb/gadget/function/f_uac2.c afunc_set_alt() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->comp_desc 0,4096-ptr_max
PARAM_VALUE 0 ep->comp_desc->bDescriptorType 48
PARAM_VALUE 0 ep->desc 4096-ptr_max
PARAM_VALUE 0 ep->maxpacket 0-2047
NOCHECK_CALL

drivers/usb/gadget/function/f_tcm.c bot_set_alt() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep->enabled 0
HALF_LOCKED2 &pool->lock

drivers/usb/gadget/function/f_tcm.c bot_set_alt() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep->enabled 0
HALF_LOCKED2 &pool->lock

drivers/usb/gadget/function/f_tcm.c uasp_set_alt() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep->enabled 0
HALF_LOCKED2 &pool->lock

drivers/usb/gadget/function/f_tcm.c uasp_set_alt() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep->enabled 0
HALF_LOCKED2 &pool->lock

drivers/usb/gadget/function/f_tcm.c uasp_set_alt() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep->enabled 0
HALF_LOCKED2 &pool->lock

drivers/usb/gadget/function/f_tcm.c uasp_set_alt() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep->enabled 0
HALF_LOCKED2 &pool->lock

drivers/usb/gadget/function/f_acm.c acm_set_alt() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->desc 1-u64max
NOCHECK_CALL

drivers/usb/gadget/function/f_ncm.c ncm_set_alt() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->desc 1-u64max
NOCHECK_CALL

drivers/usb/gadget/function/f_hid.c hidg_set_alt() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->comp_desc 0,4096-ptr_max
PARAM_VALUE 0 ep->comp_desc->bDescriptorType 48
PARAM_VALUE 0 ep->desc 4096-ptr_max
PARAM_VALUE 0 ep->maxpacket 0-2047
CAPPED_DATA 0 ep->address 1

drivers/usb/gadget/function/f_hid.c hidg_set_alt() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->comp_desc 0,4096-ptr_max
PARAM_VALUE 0 ep->comp_desc->bDescriptorType 48
PARAM_VALUE 0 ep->desc 4096-ptr_max
PARAM_VALUE 0 ep->maxpacket 0-2047
CAPPED_DATA 0 ep->address 1

drivers/usb/gadget/function/f_midi.c f_midi_start_ep() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->comp_desc 0,4096-ptr_max
PARAM_VALUE 0 ep->comp_desc->bDescriptorType 48
PARAM_VALUE 0 ep->desc 4096-ptr_max
PARAM_VALUE 0 ep->maxpacket 0-2047
CAPPED_DATA 0 ep->address 1
DATA_SOURCE 0 ep $2

drivers/usb/gadget/function/u_serial.c gserial_connect() -> usb_ep_enable()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

drivers/usb/gadget/function/u_serial.c gserial_connect() -> usb_ep_enable()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

drivers/usb/gadget/function/f_fs.c ffs_func_eps_enable() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->comp_desc 0,4096-ptr_max
PARAM_VALUE 0 ep->desc 4096-ptr_max
PARAM_VALUE 0 ep->driver_data 4096-ptr_max
PARAM_VALUE 0 ep->maxpacket 0-2047
CAPPED_DATA 0 ep->address 1
PREEMPT_ADD <- disables preempt
LOCK2 &func->ffs->eps_lock
LOCK2 flags
TYPE_LOCK (struct ffs_data)->eps_lock

drivers/usb/gadget/function/f_uvc.c uvc_function_set_alt() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->desc 1-u64max
NOCHECK_CALL

drivers/usb/gadget/function/f_uvc.c uvc_function_set_alt() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->comp_desc 0,4096-ptr_max
PARAM_VALUE 0 ep->comp_desc->bDescriptorType 48
PARAM_VALUE 0 ep->desc 4096-ptr_max
PARAM_VALUE 0 ep->maxpacket 0-2047
CAPPED_DATA 0 ep->address 1
NOCHECK_CALL

drivers/usb/gadget/function/f_sourcesink.c enable_source_sink() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->comp_desc 0,4096-ptr_max
PARAM_VALUE 0 ep->comp_desc->bDescriptorType 48
PARAM_VALUE 0 ep->desc 4096-ptr_max
PARAM_VALUE 0 ep->enabled 0
PARAM_VALUE 0 ep->maxpacket 0-2047
CAPPED_DATA 0 ep->address 1

drivers/usb/gadget/function/f_sourcesink.c enable_source_sink() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->comp_desc 0,4096-ptr_max
PARAM_VALUE 0 ep->comp_desc->bDescriptorType 48
PARAM_VALUE 0 ep->desc 4096-ptr_max
PARAM_VALUE 0 ep->enabled 0
PARAM_VALUE 0 ep->maxpacket 0-2047
CAPPED_DATA 0 ep->address 1

drivers/usb/gadget/function/f_sourcesink.c enable_source_sink() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->comp_desc 0,4096-ptr_max
PARAM_VALUE 0 ep->comp_desc->bDescriptorType 48
PARAM_VALUE 0 ep->desc 4096-ptr_max
PARAM_VALUE 0 ep->enabled 0
PARAM_VALUE 0 ep->maxpacket 0-2047
CAPPED_DATA 0 ep->address 1

drivers/usb/gadget/function/f_sourcesink.c enable_source_sink() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->comp_desc 0,4096-ptr_max
PARAM_VALUE 0 ep->comp_desc->bDescriptorType 48
PARAM_VALUE 0 ep->desc 4096-ptr_max
PARAM_VALUE 0 ep->enabled 0
PARAM_VALUE 0 ep->maxpacket 0-2047
CAPPED_DATA 0 ep->address 1

net/9p/trans_usbg.c enable_endpoint() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->comp_desc 0,4096-ptr_max
PARAM_VALUE 0 ep->comp_desc->bDescriptorType 48
PARAM_VALUE 0 ep->desc 4096-ptr_max
PARAM_VALUE 0 ep->maxpacket 0-2047
CAPPED_DATA 0 ep->address 1
DATA_SOURCE 0 ep $2

drivers/usb/gadget/function/f_midi2.c f_midi2_start_ep() -> usb_ep_enable()

Type Parameter Key Value
PARAM_VALUE 0 ep 4096-ptr_max
PARAM_VALUE 0 ep->comp_desc 0,4096-ptr_max
PARAM_VALUE 0 ep->comp_desc->bDescriptorType 48
PARAM_VALUE 0 ep->desc 4096-ptr_max
PARAM_VALUE 0 ep->maxpacket 0-2047
CAPPED_DATA 0 ep->address 1