Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/usb/host/xhci-mem.c xhci_alloc_segments_for_ring() -> xhci_segment_alloc()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 0 xhci->main_hcd->self.controller->power.wakeirq->status 0-4294967295
PARAM_VALUE 2 num 0
PARAM_VALUE 3 flags 2080,3072,3264
BUF_SIZE 0 xhci s32min-(-1),1-s32max
BUF_SIZE 0 xhci s32min-(-1),1-s32max
BUF_SIZE 0 xhci->cmd_ring (-1),96
BUF_SIZE 0 xhci->dcbaa.ctx_array (-1),8-2048
BUF_SIZE 0 xhci->device_pool (-1),192
BUF_SIZE 0 xhci->devs (-1),8
BUF_SIZE 0 xhci->interrupters (-1),8
BUF_SIZE 0 xhci->medium_streams_pool (-1),192
BUF_SIZE 0 xhci->port_bw_pool (-1),192
BUF_SIZE 0 xhci->segment_pool (-1),192
BUF_SIZE 0 xhci->small_streams_pool (-1),192
DATA_SOURCE 0 xhci $0
DATA_SOURCE 3 flags $2
HARD_MAX 3 flags 3264
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 xhci->allow_single_roothub 0-1
HOST_DATA 0 xhci->broken_suspend 0-1
HOST_DATA 0 xhci->cmd_ring_reserved_trbs 0-u32max
HOST_DATA 0 xhci->cmd_ring_stop_completion.wait.lock.magic 3735899821
HOST_DATA 0 xhci->cmd_ring_stop_completion.wait.lock.owner_cpu u32max
HOST_DATA 0 xhci->cmd_ring_stop_completion.wait.lock.raw_lock.locked 0-255
HOST_DATA 0 xhci->cmd_ring_stop_completion.wait.lock.raw_lock.locked_pending 0-u16max
HOST_DATA 0 xhci->cmd_ring_stop_completion.wait.lock.raw_lock.pending 0-255
HOST_DATA 0 xhci->cmd_ring_stop_completion.wait.lock.raw_lock.tail 0-u16max
HOST_DATA 0 xhci->cmd_ring_stop_completion.wait.lock.raw_lock.val.counter s32min-s32max
HOST_DATA 0 xhci->cmd_timer.cpu s32min-s32max
HOST_DATA 0 xhci->cmd_timer.timer.expires 0-u64max
HOST_DATA 0 xhci->cmd_timer.timer.flags 0-u32max
HOST_DATA 0 xhci->cmd_timer.work.data.counter s64min-s64max
HOST_DATA 0 xhci->comp_mode_recovery_timer.expires 0-u64max
HOST_DATA 0 xhci->comp_mode_recovery_timer.flags 0-u32max
HOST_DATA 0 xhci->dcbaa.dma 0-u64max
HOST_DATA 0 xhci->hcc_params 0-u32max
HOST_DATA 0 xhci->hcc_params2 0-u32max
HOST_DATA 0 xhci->hci_version 0-148,150-u16max
HOST_DATA 0 xhci->hcs_params2 0-u32max
HOST_DATA 0 xhci->hcs_params3 0-u32max
HOST_DATA 0 xhci->hw_lpm_support 0-1
HOST_DATA 0 xhci->imod_interval 0-u32max
HOST_DATA 0 xhci->limit_active_eps 0-u32max
HOST_DATA 0 xhci->max_interrupters 0-2047[c]
HOST_DATA 0 xhci->max_ports 0-126[c]
HOST_DATA 0 xhci->max_slots 0-254[c]
HOST_DATA 0 xhci->num_active_eps 0-u32max
HOST_DATA 0 xhci->num_port_caps 0-u32max
HOST_DATA 0 xhci->nvecs s32min-s32max
HOST_DATA 0 xhci->page_size 0,4096-268431360[c]
HOST_DATA 0 xhci->port_status_u0 0-u32max
HOST_DATA 0 xhci->quirks 0-u64max
HOST_DATA 0 xhci->run_graceperiod 0-u64max
HOST_DATA 0 xhci->s3.command 0-u32max
HOST_DATA 0 xhci->s3.config_reg 0-u32max
HOST_DATA 0 xhci->s3.dcbaa_ptr 0-u64max
HOST_DATA 0 xhci->s3.dev_nt 0-u32max
HOST_DATA 0 xhci->test_mode 0-u16max
HOST_DATA 0 xhci->usb2_rhub.bus_state.bus_suspended 0-u64max
HOST_DATA 0 xhci->usb2_rhub.bus_state.next_statechange 0-u64max
HOST_DATA 0 xhci->usb2_rhub.bus_state.port_c_suspend 0-u32max
HOST_DATA 0 xhci->usb2_rhub.bus_state.port_remote_wakeup 0-u32max
HOST_DATA 0 xhci->usb2_rhub.bus_state.resuming_ports 0-u64max
HOST_DATA 0 xhci->usb2_rhub.bus_state.suspended_ports 0-u32max
HOST_DATA 0 xhci->usb2_rhub.maj_rev 0-255
HOST_DATA 0 xhci->usb2_rhub.min_rev 0-255
HOST_DATA 0 xhci->usb2_rhub.num_ports 0-u32max
HOST_DATA 0 xhci->usb3_rhub.bus_state.bus_suspended 0-u64max
HOST_DATA 0 xhci->usb3_rhub.bus_state.next_statechange 0-u64max
HOST_DATA 0 xhci->usb3_rhub.bus_state.port_c_suspend 0-u32max
HOST_DATA 0 xhci->usb3_rhub.bus_state.port_remote_wakeup 0-u32max
HOST_DATA 0 xhci->usb3_rhub.bus_state.resuming_ports 0-u64max
HOST_DATA 0 xhci->usb3_rhub.bus_state.suspended_ports 0-u32max
HOST_DATA 0 xhci->usb3_rhub.maj_rev 0-255
HOST_DATA 0 xhci->usb3_rhub.min_rev 0-255
HOST_DATA 0 xhci->usb3_rhub.num_ports 0-u32max
HOST_DATA 0 xhci->xhc_state 0-u32max
NO_OVERFLOW_SIMPLE 0 xhci->device_pool->allocation
NO_OVERFLOW_SIMPLE 0 xhci->max_interrupters
NO_OVERFLOW_SIMPLE 0 xhci->medium_streams_pool->allocation
NO_OVERFLOW_SIMPLE 0 xhci->page_size
NO_OVERFLOW_SIMPLE 0 xhci->port_bw_pool->allocation
NO_OVERFLOW_SIMPLE 0 xhci->segment_pool->allocation
NO_OVERFLOW_SIMPLE 0 xhci->small_streams_pool->allocation
UNITS 0 xhci unit_array_size
HALF_LOCKED2 0 &xhci->lock
HALF_LOCKED2 0 &xhci->mutex

drivers/usb/host/xhci-mem.c xhci_alloc_segments_for_ring() -> xhci_segment_alloc()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 0 xhci->main_hcd->self.controller->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 xhci->segment_pool->dev->cma_area->alloc_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 xhci->segment_pool->dev->cma_area->alloc_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 xhci->segment_pool->dev->cma_area->alloc_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 xhci->segment_pool->dev->cma_area->nranges s32min-s32max
PARAM_VALUE 0 xhci->segment_pool->dev->dma_mem->spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 0 xhci->segment_pool->dev->dma_uses_io_tlb 1
PARAM_VALUE 0 xhci->segment_pool->dev->iommu->pci_32bit_workaround 0-1
PARAM_VALUE 0 xhci->segment_pool->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 xhci->segment_pool->size 0-s32max
PARAM_VALUE 2 num 1-8421504
PARAM_VALUE 3 flags 2080,3072,3264
BUF_SIZE 0 xhci s32min-(-1),1-s32max
BUF_SIZE 0 xhci s32min-(-1),1-s32max
BUF_SIZE 0 xhci->cmd_ring (-1),96
BUF_SIZE 0 xhci->dcbaa.ctx_array (-1),8-2048
BUF_SIZE 0 xhci->device_pool (-1),192
BUF_SIZE 0 xhci->devs (-1),8
BUF_SIZE 0 xhci->interrupters (-1),8
BUF_SIZE 0 xhci->medium_streams_pool (-1),192
BUF_SIZE 0 xhci->port_bw_pool (-1),192
BUF_SIZE 0 xhci->segment_pool (-1),192
BUF_SIZE 0 xhci->small_streams_pool (-1),192
CAPPED_DATA 2 num 1
DATA_SOURCE 0 xhci $0
DATA_SOURCE 3 flags $2
CONSTRAINT 2 num <3321
HARD_MAX 3 flags 3264
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 xhci->allow_single_roothub 0-1
HOST_DATA 0 xhci->broken_suspend 0-1
HOST_DATA 0 xhci->cmd_ring_reserved_trbs 0-u32max
HOST_DATA 0 xhci->cmd_ring_stop_completion.wait.lock.magic 3735899821
HOST_DATA 0 xhci->cmd_ring_stop_completion.wait.lock.owner_cpu u32max
HOST_DATA 0 xhci->cmd_ring_stop_completion.wait.lock.raw_lock.locked 0-255
HOST_DATA 0 xhci->cmd_ring_stop_completion.wait.lock.raw_lock.locked_pending 0-u16max
HOST_DATA 0 xhci->cmd_ring_stop_completion.wait.lock.raw_lock.pending 0-255
HOST_DATA 0 xhci->cmd_ring_stop_completion.wait.lock.raw_lock.tail 0-u16max
HOST_DATA 0 xhci->cmd_ring_stop_completion.wait.lock.raw_lock.val.counter s32min-s32max
HOST_DATA 0 xhci->cmd_timer.cpu s32min-s32max
HOST_DATA 0 xhci->cmd_timer.timer.expires 0-u64max
HOST_DATA 0 xhci->cmd_timer.timer.flags 0-u32max
HOST_DATA 0 xhci->cmd_timer.work.data.counter s64min-s64max
HOST_DATA 0 xhci->comp_mode_recovery_timer.expires 0-u64max
HOST_DATA 0 xhci->comp_mode_recovery_timer.flags 0-u32max
HOST_DATA 0 xhci->dcbaa.dma 0-u64max
HOST_DATA 0 xhci->hcc_params 0-u32max
HOST_DATA 0 xhci->hcc_params2 0-u32max
HOST_DATA 0 xhci->hci_version 0-148,150-u16max
HOST_DATA 0 xhci->hcs_params2 0-u32max
HOST_DATA 0 xhci->hcs_params3 0-u32max
HOST_DATA 0 xhci->hw_lpm_support 0-1
HOST_DATA 0 xhci->imod_interval 0-u32max
HOST_DATA 0 xhci->limit_active_eps 0-u32max
HOST_DATA 0 xhci->max_interrupters 0-2047[c]
HOST_DATA 0 xhci->max_ports 0-126[c]
HOST_DATA 0 xhci->max_slots 0-254[c]
HOST_DATA 0 xhci->num_active_eps 0-u32max
HOST_DATA 0 xhci->num_port_caps 0-u32max
HOST_DATA 0 xhci->nvecs s32min-s32max
HOST_DATA 0 xhci->page_size 0,4096-268431360[c]
HOST_DATA 0 xhci->port_status_u0 0-u32max
HOST_DATA 0 xhci->quirks 0-u64max
HOST_DATA 0 xhci->run_graceperiod 0-u64max
HOST_DATA 0 xhci->s3.command 0-u32max
HOST_DATA 0 xhci->s3.config_reg 0-u32max
HOST_DATA 0 xhci->s3.dcbaa_ptr 0-u64max
HOST_DATA 0 xhci->s3.dev_nt 0-u32max
HOST_DATA 0 xhci->test_mode 0-u16max
HOST_DATA 0 xhci->usb2_rhub.bus_state.bus_suspended 0-u64max
HOST_DATA 0 xhci->usb2_rhub.bus_state.next_statechange 0-u64max
HOST_DATA 0 xhci->usb2_rhub.bus_state.port_c_suspend 0-u32max
HOST_DATA 0 xhci->usb2_rhub.bus_state.port_remote_wakeup 0-u32max
HOST_DATA 0 xhci->usb2_rhub.bus_state.resuming_ports 0-u64max
HOST_DATA 0 xhci->usb2_rhub.bus_state.suspended_ports 0-u32max
HOST_DATA 0 xhci->usb2_rhub.maj_rev 0-255
HOST_DATA 0 xhci->usb2_rhub.min_rev 0-255
HOST_DATA 0 xhci->usb2_rhub.num_ports 0-u32max
HOST_DATA 0 xhci->usb3_rhub.bus_state.bus_suspended 0-u64max
HOST_DATA 0 xhci->usb3_rhub.bus_state.next_statechange 0-u64max
HOST_DATA 0 xhci->usb3_rhub.bus_state.port_c_suspend 0-u32max
HOST_DATA 0 xhci->usb3_rhub.bus_state.port_remote_wakeup 0-u32max
HOST_DATA 0 xhci->usb3_rhub.bus_state.resuming_ports 0-u64max
HOST_DATA 0 xhci->usb3_rhub.bus_state.suspended_ports 0-u32max
HOST_DATA 0 xhci->usb3_rhub.maj_rev 0-255
HOST_DATA 0 xhci->usb3_rhub.min_rev 0-255
HOST_DATA 0 xhci->usb3_rhub.num_ports 0-u32max
HOST_DATA 0 xhci->xhc_state 0-u32max
NO_OVERFLOW_SIMPLE 0 xhci->device_pool->allocation
NO_OVERFLOW_SIMPLE 0 xhci->max_interrupters
NO_OVERFLOW_SIMPLE 0 xhci->medium_streams_pool->allocation
NO_OVERFLOW_SIMPLE 0 xhci->page_size
NO_OVERFLOW_SIMPLE 0 xhci->port_bw_pool->allocation
NO_OVERFLOW_SIMPLE 0 xhci->segment_pool->allocation
NO_OVERFLOW_SIMPLE 0 xhci->small_streams_pool->allocation
UNITS 0 xhci unit_array_size
UNITS 2 num unit_array_size
HALF_LOCKED2 0 &xhci->lock
HALF_LOCKED2 0 &xhci->mutex