Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/usb/typec/tcpm/tcpm.c tcpm_pd_ctrl_request() -> tcpm_set_auto_vbus_discharge_threshold()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
PARAM_VALUE 0 port->ams 0-19,29,32-u32max
PARAM_VALUE 0 port->attached 1
PARAM_VALUE 0 port->explicit_contract 1
PARAM_VALUE 0 port->lock.dep_map->name 0-255
PARAM_VALUE 0 port->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 port->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 port->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 port->lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 port->lock.wait_lock.owner (-1)
PARAM_VALUE 0 port->lock.wait_lock.owner_cpu u32max
PARAM_VALUE 0 port->logbuffer_lock.dep_map->name 0-255
PARAM_VALUE 0 port->logbuffer_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 port->logbuffer_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 port->logbuffer_lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 port->logbuffer_lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 port->logbuffer_lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 port->logbuffer_lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 port->logbuffer_lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 port->logbuffer_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 port->logbuffer_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 port->psy 4096-ptr_max
PARAM_VALUE 0 port->psy->changed 1
PARAM_VALUE 0 port->psy->changed_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 port->rx_msgid 0-7
PARAM_VALUE 0 port->state 26
PARAM_VALUE 0 port->tcpc 4096-ptr_max
PARAM_VALUE 0 port->vbus_present 1
PARAM_VALUE 1 mode 3
CAPPED_DATA 0 port->rx_msgid 1
DATA_SOURCE 0 port $0
RX_PATH
NOCHECK_CALL
LOCK2 0 &port->lock
TYPE_LOCK (struct tcpm_port)->lock

drivers/usb/typec/tcpm/tcpm.c tcpm_pd_ctrl_request() -> tcpm_set_auto_vbus_discharge_threshold()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
PARAM_VALUE 0 port->attached 1
PARAM_VALUE 0 port->lock.dep_map->name 0-255
PARAM_VALUE 0 port->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 port->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 port->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 port->lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 port->lock.wait_lock.owner (-1)
PARAM_VALUE 0 port->lock.wait_lock.owner_cpu u32max
PARAM_VALUE 0 port->rx_msgid 0-7
PARAM_VALUE 0 port->state 23
PARAM_VALUE 0 port->tcpc 4096-ptr_max
PARAM_VALUE 1 mode 3
CAPPED_DATA 0 port->rx_msgid 1
DATA_SOURCE 0 port $0
RX_PATH
NOCHECK_CALL
LOCK2 0 &port->lock
TYPE_LOCK (struct tcpm_port)->lock

drivers/usb/typec/tcpm/tcpm.c tcpm_pd_ctrl_request() -> tcpm_set_auto_vbus_discharge_threshold()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
PARAM_VALUE 0 port->attached 1
PARAM_VALUE 0 port->aug_supply_req_status (-95),(-11)
PARAM_VALUE 0 port->lock.dep_map->name 0-255
PARAM_VALUE 0 port->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 port->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 port->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 port->lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 port->lock.wait_lock.owner (-1)
PARAM_VALUE 0 port->lock.wait_lock.owner_cpu u32max
PARAM_VALUE 0 port->rx_msgid 0-7
PARAM_VALUE 0 port->state 24
PARAM_VALUE 0 port->tcpc 4096-ptr_max
PARAM_VALUE 1 mode 3
CAPPED_DATA 0 port->rx_msgid 1
DATA_SOURCE 0 port $0
FUZZY_MAX 0 port->aug_supply_req_status (-11)
BIT_INFO 0 port->aug_supply_req_status 0xffffffa1,0xfffffff5
HARD_MAX 0 port->aug_supply_req_status (-11)
RX_PATH
NOCHECK_CALL
LOCK2 0 &port->lock
TYPE_LOCK (struct tcpm_port)->lock

drivers/usb/typec/tcpm/tcpm.c tcpm_pd_ctrl_request() -> tcpm_set_auto_vbus_discharge_threshold()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
PARAM_VALUE 0 port->attached 1
PARAM_VALUE 0 port->aug_supply_req_status (-95),(-11)
PARAM_VALUE 0 port->lock.dep_map->name 0-255
PARAM_VALUE 0 port->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 port->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 port->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 port->lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 port->lock.wait_lock.owner (-1)
PARAM_VALUE 0 port->lock.wait_lock.owner_cpu u32max
PARAM_VALUE 0 port->rx_msgid 0-7
PARAM_VALUE 0 port->state 25
PARAM_VALUE 0 port->tcpc 4096-ptr_max
PARAM_VALUE 1 mode 3
CAPPED_DATA 0 port->rx_msgid 1
DATA_SOURCE 0 port $0
FUZZY_MAX 0 port->aug_supply_req_status (-11)
BIT_INFO 0 port->aug_supply_req_status 0xffffffa1,0xfffffff5
HARD_MAX 0 port->aug_supply_req_status (-11)
RX_PATH
NOCHECK_CALL
LOCK2 0 &port->lock
TYPE_LOCK (struct tcpm_port)->lock

drivers/usb/typec/tcpm/tcpm.c tcpm_pd_send_aug_supply_request() -> tcpm_set_auto_vbus_discharge_threshold()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
PARAM_VALUE 0 port->logbuffer_lock.dep_map->name 0-255
PARAM_VALUE 0 port->logbuffer_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 port->logbuffer_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 port->logbuffer_lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 port->logbuffer_lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 port->logbuffer_lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 port->logbuffer_lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 port->logbuffer_lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 port->logbuffer_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 port->logbuffer_lock.osq.tail.counter 0-s32max
PARAM_VALUE 1 mode 0
PARAM_VALUE 2 pps_active 0
PARAM_VALUE 3 requested_vbus_voltage 0
CAPPED_DATA 0 port->operating_snk_mw 1
DATA_SOURCE 0 port $0
NOCHECK_CALL

drivers/usb/typec/tcpm/tcpm.c tcpm_pd_send_request() -> tcpm_set_auto_vbus_discharge_threshold()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
PARAM_VALUE 0 port->logbuffer_lock.dep_map->name 0-255
PARAM_VALUE 0 port->logbuffer_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 port->logbuffer_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 port->logbuffer_lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 port->logbuffer_lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 port->logbuffer_lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 port->logbuffer_lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 port->logbuffer_lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 port->logbuffer_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 port->logbuffer_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 port->nr_snk_pdo 1-u32max
PARAM_VALUE 0 port->nr_source_caps 1-u32max
PARAM_VALUE 0 port->psy 4096-ptr_max
PARAM_VALUE 0 port->psy->changed 1
PARAM_VALUE 0 port->psy->changed_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 port->psy->changed_work.entry.next->prev 4096-ptr_max
PARAM_VALUE 0 port->req_current_limit 0
PARAM_VALUE 0 port->req_supply_voltage 0-51150
PARAM_VALUE 0 port->spr_avs_data.port_partner_src_status 1-u32max
PARAM_VALUE 0 port->spr_avs_data.port_snk_status 1-u32max
PARAM_VALUE 0 port->usb_type 6,8-10
PARAM_VALUE 1 mode 0
PARAM_VALUE 2 pps_active 0
PARAM_VALUE 3 requested_vbus_voltage 0
CAPPED_DATA 0 port->nr_snk_pdo 1
CAPPED_DATA 0 port->nr_source_caps 1
DATA_SOURCE 0 port $0
NOCHECK_CALL