Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

net/bluetooth/mgmt.c cancel_pair_device() -> (struct mgmt_pending_cmd)->cmd_complete()

Type Parameter Key Value
PARAM_VALUE 0 cmd 4096-ptr_max
PARAM_VALUE 0 cmd->opcode 25
PARAM_VALUE 0 cmd->user_data->dev.kobj.kref.refcount.refs.counter s32min-s32max
PARAM_VALUE 1 status 16
DATA_SOURCE 0 cmd r remove_pairing_by_addr
CONTAINER 0 -72+0 $(-1)
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &hdev->lock
LOCK2 global &mgmt_chan_list_lock
LOCK2 sk
HALF_LOCKED2 &vq->mutex
HALF_LOCKED2 sk
TYPE_LOCK (struct hci_dev)->lock

net/bluetooth/mgmt.c cmd_complete_rsp() -> (struct mgmt_pending_cmd)->cmd_complete()

Type Parameter Key Value
PARAM_VALUE 0 cmd 4096-ptr_max
PARAM_VALUE 0 cmd->cmd_complete 1-u64max
CAPPED_DATA 0 cmd 1
DATA_SOURCE 0 cmd $0
CONTAINER 0 -72+0 $(-1)
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &hdev->lock
LOCK2 &hdev->mgmt_pending_lock
HALF_LOCKED2 &hdev->req_lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct hci_dev)->lock
TYPE_LOCK (struct hci_dev)->mgmt_pending_lock

net/bluetooth/mgmt.c disconnect_complete() -> (struct mgmt_pending_cmd)->cmd_complete()

Type Parameter Key Value
PARAM_VALUE 0 cmd 4096-ptr_max
PARAM_VALUE 1 status 0-5,7-14
BUF_SIZE 0 cmd (-1),1,3-8196
BUF_SIZE 0 cmd (-1),1,3-8196
DATA_SOURCE 0 cmd $1
CONTAINER 0 -72+0 $(-1)
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &hdev->cmd_sync_work_lock
HALF_LOCKED2 &hdev->req_lock

net/bluetooth/mgmt.c le_pairing_complete_cb() -> (struct mgmt_pending_cmd)->cmd_complete()

Type Parameter Key Value
PARAM_VALUE 0 cmd 4096-ptr_max
PARAM_VALUE 0 cmd->opcode 25
PARAM_VALUE 0 cmd->user_data 4096-ptr_max
PARAM_VALUE 1 status 0-5,7-14
BUF_SIZE 0 cmd->user_data (-1),1,3-8196
CAPPED_DATA 0 cmd->user_data 1
DATA_SOURCE 0 cmd r remove_pairing
CONTAINER 0 -72+0 $(-1)
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &hdev->lock
HALF_LOCKED2 &hdev->req_lock
HALF_LOCKED2 &pool->lock

net/bluetooth/mgmt.c mgmt_auth_failed() -> (struct mgmt_pending_cmd)->cmd_complete()

Type Parameter Key Value
PARAM_VALUE 0 cmd 4096-ptr_max
PARAM_VALUE 0 cmd->opcode 25
PARAM_VALUE 0 cmd->user_data 4096-ptr_max
PARAM_VALUE 1 status 0-5,7-14
CAPPED_DATA 0 cmd->user_data 1
DATA_SOURCE 0 cmd r remove_pairing
DATA_SOURCE 1 status r mgmt_status
CONTAINER 0 -72+0 $(-1)
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &hdev->lock
HALF_LOCKED2 &pool->lock

net/bluetooth/mgmt.c mgmt_disconnect_failed() -> (struct mgmt_pending_cmd)->cmd_complete()

Type Parameter Key Value
PARAM_VALUE 0 cmd 4096-ptr_max
PARAM_VALUE 0 cmd->param 4096-ptr_max
PARAM_VALUE 1 status 0-5,7-14
DATA_SOURCE 0 cmd r pending_find
CONTAINER 0 -72+0 $(-1)
RX_PATH
NOCHECK_CALL
LOCK2 &hdev->lock
LOCK2 &pool->lock
TYPE_LOCK (struct hci_dev)->lock

net/bluetooth/mgmt.c mgmt_pin_code_neg_reply_complete() -> (struct mgmt_pending_cmd)->cmd_complete()

Type Parameter Key Value
PARAM_VALUE 0 cmd 4096-ptr_max
PARAM_VALUE 1 status 0-5,7-14
DATA_SOURCE 0 cmd r pending_find
CONTAINER 0 -72+0 $(-1)
RX_PATH
NOCHECK_CALL
LOCK2 &hdev->lock
LOCK2 &pool->lock
TYPE_LOCK (struct hci_dev)->lock

net/bluetooth/mgmt.c mgmt_pin_code_reply_complete() -> (struct mgmt_pending_cmd)->cmd_complete()

Type Parameter Key Value
PARAM_VALUE 0 cmd 4096-ptr_max
PARAM_VALUE 1 status 0-5,7-14
DATA_SOURCE 0 cmd r pending_find
CONTAINER 0 -72+0 $(-1)
RX_PATH
NOCHECK_CALL
LOCK2 &hdev->lock
LOCK2 &pool->lock
TYPE_LOCK (struct hci_dev)->lock

net/bluetooth/mgmt.c mgmt_smp_complete() -> (struct mgmt_pending_cmd)->cmd_complete()

Type Parameter Key Value
PARAM_VALUE 0 cmd 4096-ptr_max
PARAM_VALUE 0 cmd->opcode 25
PARAM_VALUE 0 cmd->user_data 4096-ptr_max
PARAM_VALUE 1 status 0,3
CAPPED_DATA 0 cmd->user_data 1
DATA_SOURCE 0 cmd r remove_pairing
FUZZY_MAX 1 status 3
CONTAINER 0 -72+0 $(-1)
HARD_MAX 1 status 3
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &chan->lock
HALF_LOCKED2 &conn->lock

net/bluetooth/mgmt.c pair_device() -> (struct mgmt_pending_cmd)->cmd_complete()

Type Parameter Key Value
PARAM_VALUE 0 cmd 4096-ptr_max
PARAM_VALUE 0 cmd->cmd_complete 4596580248201551872
PARAM_VALUE 0 cmd->hdev 4096-ptr_max
PARAM_VALUE 0 cmd->hdev->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 cmd->hdev->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 cmd->hdev->lock.wait_lock.owner (-1)
PARAM_VALUE 0 cmd->hdev->lock.wait_lock.owner_cpu u32max
PARAM_VALUE 0 cmd->list.next 4096-ptr_max
PARAM_VALUE 0 cmd->opcode 5-7,10-11,13,15,22-23,25,28-31,35-36,41,58
PARAM_VALUE 0 cmd->param 1-u64max
PARAM_VALUE 0 cmd->param_len 0-u16max
PARAM_VALUE 0 cmd->sk 4096-ptr_max
PARAM_VALUE 0 cmd->sk->__sk_common.skc_refcnt.refs.counter (-1073741824),0-s32max
PARAM_VALUE 0 cmd->sk->sk_lock.owned 1
PARAM_VALUE 0 cmd->sk->sk_lock.wq.head.prev 4096-ptr_max
PARAM_VALUE 0 cmd->sk->sk_shutdown 0
PARAM_VALUE 0 cmd->user_data 4096-ptr_max
PARAM_VALUE 0 cmd->user_data->conn_reason 0-1,3
PARAM_VALUE 0 cmd->user_data->connect_cfm_cb 1340159406992302080,8597941832940326912
PARAM_VALUE 0 cmd->user_data->disconn_cfm_cb 1340159406992302080,8597941832940326912
PARAM_VALUE 0 cmd->user_data->io_capability 0-4
PARAM_VALUE 0 cmd->user_data->pending_sec_level 0-255
PARAM_VALUE 0 cmd->user_data->sec_level 1
PARAM_VALUE 0 cmd->user_data->security_cfm_cb 1340159406992302080,8597941832940326912
PARAM_VALUE 1 status 0
BUF_SIZE 0 cmd 80
BUF_SIZE 0 cmd->hdev (-1)-s32max
BUF_SIZE 0 cmd->user_data (-1),5192
CAPPED_DATA 0 cmd->param_len 1
DATA_SOURCE 0 cmd r mgmt_pending_add
CONTAINER 0 -72+0 $(-1)
BIT_INFO 0 cmd->user_data->connect_cfm_cb 0x1210028104200000,0xffffffffffffffff
BIT_INFO 0 cmd->user_data->disconn_cfm_cb 0x1210028104200000,0xffffffffffffffff
BIT_INFO 0 cmd->user_data->security_cfm_cb 0x1210028104200000,0xffffffffffffffff
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 0 cmd->hdev->discovery.type 1,6-7[u]
USER_DATA 0 cmd->hdev->major_class 0-255[u]
USER_DATA 0 cmd->hdev->minor_class 0-255[u]
USER_DATA 0 cmd->user_data->io_capability 0-4[u]
LOCK2 &hdev->lock
LOCK2 global &mgmt_chan_list_lock
LOCK2 sk
HALF_LOCKED2 &vq->mutex
HALF_LOCKED2 sk
TYPE_LOCK (struct hci_dev)->lock

net/bluetooth/mgmt.c pairing_complete_cb() -> (struct mgmt_pending_cmd)->cmd_complete()

Type Parameter Key Value
PARAM_VALUE 0 cmd 4096-ptr_max
PARAM_VALUE 0 cmd->opcode 25
PARAM_VALUE 0 cmd->user_data 4096-ptr_max
PARAM_VALUE 1 status 0-5,7-14
BUF_SIZE 0 cmd->user_data (-1),1,3-8196
CAPPED_DATA 0 cmd->user_data 1
DATA_SOURCE 0 cmd r remove_pairing
CONTAINER 0 -72+0 $(-1)
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &hdev->lock
HALF_LOCKED2 &hdev->req_lock
HALF_LOCKED2 &pool->lock

net/bluetooth/mgmt.c unpair_device_complete() -> (struct mgmt_pending_cmd)->cmd_complete()

Type Parameter Key Value
PARAM_VALUE 0 cmd 4096-ptr_max
BUF_SIZE 0 cmd (-1),1,3-8196
BUF_SIZE 0 cmd (-1),1,3-8196
DATA_SOURCE 0 cmd $1
DATA_SOURCE 1 status $2
CONTAINER 0 -72+0 $(-1)
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &hdev->cmd_sync_work_lock
HALF_LOCKED2 &hdev->req_lock

net/bluetooth/mgmt.c unpair_device_rsp() -> (struct mgmt_pending_cmd)->cmd_complete()

Type Parameter Key Value
PARAM_VALUE 0 cmd 4096-ptr_max
PARAM_VALUE 0 cmd->param 4096-ptr_max
PARAM_VALUE 1 status 0
DATA_SOURCE 0 cmd $0
CONTAINER 0 -72+0 $(-1)
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &hdev->lock
LOCK2 &hdev->mgmt_pending_lock
HALF_LOCKED2 &hdev->req_lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct hci_dev)->lock
TYPE_LOCK (struct hci_dev)->mgmt_pending_lock

net/bluetooth/mgmt.c user_pairing_resp_complete() -> (struct mgmt_pending_cmd)->cmd_complete()

Type Parameter Key Value
PARAM_VALUE 0 cmd 4096-ptr_max
PARAM_VALUE 1 status 0-5,7-14
CAPPED_DATA 0 cmd->opcode 1
DATA_SOURCE 0 cmd r pending_find
CONTAINER 0 -72+0 $(-1)
RX_PATH
NOCHECK_CALL
LOCK2 &hdev->lock
LOCK2 &pool->lock
TYPE_LOCK (struct hci_dev)->lock