Defined in 1 files as a function:

Defined in 1 files as a enum:

Referenced in 4 files:

Smatch caller information:

drivers/usb/chipidea/core.c ci_irq_handler() -> ci_role()

Type Parameter Key Value
PARAM_VALUE 0 ci 4096-ptr_max
PARAM_VALUE 0 ci->in_lpm 0
PARAM_VALUE 0 ci->role 0-1,3-u32max
BUF_SIZE 0 ci s32min-(-1),1-s32max
BUF_SIZE 0 ci s32min-(-1),1-s32max
DATA_SOURCE 0 ci $1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ci unit_byte
LOCK2 flags
HALF_LOCKED2 &sw->lock

drivers/usb/chipidea/core.c ci_resume() -> ci_role()

Type Parameter Key Value
PARAM_VALUE 0 ci 4096-ptr_max
PARAM_VALUE 0 ci->dev->power.request 0-4294967295
PARAM_VALUE 0 ci->dev->power.runtime_error s32min-s32max
PARAM_VALUE 0 ci->dev->power.runtime_status s32min-s32max
PARAM_VALUE 0 ci->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 ci->in_lpm 0-1
PARAM_VALUE 0 ci->phy->dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 ci->role 0-1,3-u32max
BUF_SIZE 0 ci s32min-(-2),1-s32max
BUF_SIZE 0 ci s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ci unit_byte

drivers/usb/chipidea/core.c ci_resume() -> ci_role()

Type Parameter Key Value
PARAM_VALUE 0 ci 4096-ptr_max
PARAM_VALUE 0 ci->dev->power.request 0-4294967295
PARAM_VALUE 0 ci->dev->power.runtime_error s32min-s32max
PARAM_VALUE 0 ci->dev->power.runtime_status s32min-s32max
PARAM_VALUE 0 ci->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 ci->in_lpm 0-1
PARAM_VALUE 0 ci->phy->dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 ci->role 0-1
BUF_SIZE 0 ci s32min-(-2),1-s32max
BUF_SIZE 0 ci s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ci unit_byte

drivers/usb/chipidea/core.c ci_suspend() -> ci_role()

Type Parameter Key Value
PARAM_VALUE 0 ci 4096-ptr_max
PARAM_VALUE 0 ci->in_lpm 0
PARAM_VALUE 0 ci->role 0-1,3-u32max
BUF_SIZE 0 ci s32min-(-2),1-s32max
BUF_SIZE 0 ci s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ci unit_byte

drivers/usb/chipidea/core.c ci_suspend() -> ci_role()

Type Parameter Key Value
PARAM_VALUE 0 ci 4096-ptr_max
PARAM_VALUE 0 ci->in_lpm 0
PARAM_VALUE 0 ci->role 0-1
BUF_SIZE 0 ci s32min-(-2),1-s32max
BUF_SIZE 0 ci s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ci unit_byte

drivers/usb/chipidea/core.c hw_device_reset() -> ci_role()

Type Parameter Key Value
PARAM_VALUE 0 ci 4096-ptr_max
PARAM_VALUE 0 ci->dev 4096-ptr_max
PARAM_VALUE 0 ci->dev->bus 0,4096-ptr_max
PARAM_VALUE 0 ci->dev->class 0,4096-ptr_max
PARAM_VALUE 0 ci->dev->power.request 0-4
PARAM_VALUE 0 ci->dev->power.runtime_error s32min-(-17),(-15)-(-14),(-12),(-10)-s32max
PARAM_VALUE 0 ci->dev->power.wakeirq 0,4096-ptr_max
PARAM_VALUE 0 ci->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 ci->dev->type 0,4096-ptr_max
PARAM_VALUE 0 ci->fsm.ops->loc_sof 2161566392340684800,8211045230474645504
PARAM_VALUE 0 ci->phy->dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 ci->platdata 4096-ptr_max
DATA_SOURCE 0 ci $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &udc->connect_lock

drivers/usb/chipidea/core.c role_show() -> ci_role()

Type Parameter Key Value
PARAM_VALUE 0 ci 4096-ptr_max
PARAM_VALUE 0 ci->role 0-1,3-u32max
BUF_SIZE 0 ci s32min-(-2),1-s32max
BUF_SIZE 0 ci s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ci unit_byte
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/usb/chipidea/otg.c ci_handle_id_switch() -> ci_role()

Type Parameter Key Value
PARAM_VALUE 0 ci 4096-ptr_max
PARAM_VALUE 0 ci->dev 4096-ptr_max
PARAM_VALUE 0 ci->dev->bus 0,4096-ptr_max
PARAM_VALUE 0 ci->dev->class 0,4096-ptr_max
PARAM_VALUE 0 ci->dev->power.request 0-4
PARAM_VALUE 0 ci->dev->power.runtime_error s32min-(-17),(-15)-(-14),(-12),(-10)-s32max
PARAM_VALUE 0 ci->dev->power.wakeirq 0,4096-ptr_max
PARAM_VALUE 0 ci->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 ci->dev->type 0,4096-ptr_max
PARAM_VALUE 0 ci->mutex.dep_map->name 0-255
PARAM_VALUE 0 ci->mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 ci->mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ci->mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 ci->mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 ci->mutex.wait_lock.owner (-1)
PARAM_VALUE 0 ci->mutex.wait_lock.owner_cpu u32max
PARAM_VALUE 0 ci->platdata 4096-ptr_max
CAPPED_DATA 0 &ci->mutex 1
DATA_SOURCE 0 ci $0
LOCK2 0 &ci->mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct ci_hdrc)->mutex