Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

net/bluetooth/l2cap_core.c l2cap_conn_start() -> l2cap_check_enc_key_size()

Type Parameter Key Value
PARAM_VALUE 1 chan 4096-ptr_max
CAPPED_DATA 1 &chan->list 1
RX_PATH
LOCK2 &conn->lock
LOCK2 1 &chan->lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct l2cap_chan)->lock
TYPE_LOCK (struct l2cap_conn)->lock

net/bluetooth/l2cap_core.c l2cap_connect() -> l2cap_check_enc_key_size()

Type Parameter Key Value
PARAM_VALUE 0 hcon 4096-ptr_max
PARAM_VALUE 0 hcon->hdev 4096-ptr_max
PARAM_VALUE 1 chan 4096-ptr_max
CAPPED_DATA 0 hcon 1
DATA_SOURCE 1 chan r l2cap_global_chan_by_psm
RX_PATH
LOCK2 &conn->lock
LOCK2 &pool->lock
LOCK2 1 &chan->lock
TYPE_LOCK (struct l2cap_chan)->lock
TYPE_LOCK (struct l2cap_conn)->lock

net/bluetooth/l2cap_core.c l2cap_do_start() -> l2cap_check_enc_key_size()

Type Parameter Key Value
PARAM_VALUE 0 hcon 4096-ptr_max
PARAM_VALUE 1 chan 4096-ptr_max
PARAM_VALUE 1 chan->sec_level 0,2-255
BUF_SIZE 1 chan (-1),1432
BUF_SIZE 1 chan (-1),1432
BUF_SIZE 1 chan->ops (-1),120
DATA_SOURCE 1 chan $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &conn->lock
LOCK2 1 &chan->lock
HALF_LOCKED2 &hdev->lock
HALF_LOCKED2 global &hci_cb_list_lock
TYPE_LOCK (struct l2cap_chan)->lock
TYPE_LOCK (struct l2cap_conn)->lock

net/bluetooth/l2cap_core.c l2cap_le_connect_req() -> l2cap_check_enc_key_size()

Type Parameter Key Value
PARAM_VALUE 0 hcon 4096-ptr_max
PARAM_VALUE 0 hcon->hdev 4096-ptr_max
PARAM_VALUE 1 chan 4096-ptr_max
CAPPED_DATA 1 chan->sec_level 1
DATA_SOURCE 1 chan r l2cap_global_chan_by_psm
RX_PATH
LOCK2 &conn->lock
LOCK2 &pool->lock
LOCK2 1 &chan->lock
TYPE_LOCK (struct l2cap_chan)->lock
TYPE_LOCK (struct l2cap_conn)->lock

net/bluetooth/l2cap_core.c l2cap_security_cfm() -> l2cap_check_enc_key_size()

Type Parameter Key Value
PARAM_VALUE 0 hcon 4096-ptr_max
PARAM_VALUE 1 chan 4096-ptr_max
BUF_SIZE 0 hcon (-1),5104
BUF_SIZE 0 hcon (-1),5104
CAPPED_DATA 0 hcon 1
CAPPED_DATA 0 hcon->handle 1
CAPPED_DATA 1 &chan->list 1
DATA_SOURCE 0 hcon $0
RX_PATH
LOCK2 &conn->lock
LOCK2 &hdev->lock
LOCK2 &pool->lock
LOCK2 global &hci_cb_list_lock
LOCK2 1 &chan->lock
TYPE_LOCK (struct hci_dev)->lock
TYPE_LOCK (struct l2cap_chan)->lock
TYPE_LOCK (struct l2cap_conn)->lock

net/bluetooth/l2cap_core.c l2cap_security_cfm() -> l2cap_check_enc_key_size()

Type Parameter Key Value
PARAM_VALUE 0 hcon 4096-ptr_max
PARAM_VALUE 1 chan 4096-ptr_max
BUF_SIZE 0 hcon (-1),5104
BUF_SIZE 0 hcon (-1),5104
CAPPED_DATA 0 hcon 1
CAPPED_DATA 0 hcon->handle 1
CAPPED_DATA 1 &chan->list 1
DATA_SOURCE 0 hcon $0
RX_PATH
LOCK2 &conn->lock
LOCK2 &hdev->lock
LOCK2 &pool->lock
LOCK2 global &hci_cb_list_lock
LOCK2 1 &chan->lock
TYPE_LOCK (struct hci_dev)->lock
TYPE_LOCK (struct l2cap_chan)->lock
TYPE_LOCK (struct l2cap_conn)->lock