Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/infiniband/hw/hfi1/ud.c hfi1_ud_rcv() -> hfi1_bad_pkey()

Type Parameter Key Value
PARAM_VALUE 0 ibp 4096-ptr_max
PARAM_VALUE 0 ibp->sc_to_sl 4096-ptr_max
PARAM_VALUE 3 qp1 0-16777215
PARAM_VALUE 4 qp2 2-u32max
PARAM_VALUE 5 lid1 0-16777215
PARAM_VALUE 6 lid2 0-16777215,4010803200-4043309055
BUF_SIZE 0 ibp 664
DATA_SOURCE 0 ibp r rcd_to_iport
FUZZY_MAX 4 qp2 2
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 4 qp2 unit_array_size
LOCK2 &packet->qp->r_lock
LOCK2 flags
LOCK2 rcu_read
TYPE_LOCK (struct rvt_qp)->r_lock

drivers/infiniband/hw/hfi1/ud.c ud_loopback() -> hfi1_bad_pkey()

Type Parameter Key Value
PARAM_VALUE 0 ibp 4096-ptr_max
PARAM_VALUE 0 ibp->sl_to_sc 4096-ptr_max
PARAM_VALUE 1 key 1-u16max
PARAM_VALUE 2 sl 0-255
PARAM_VALUE 4 qp2 2-u32max
BUF_SIZE 0 ibp 664
DATA_SOURCE 0 ibp r to_iport
DATA_SOURCE 1 key r hfi1_get_pkey
FUZZY_MAX 4 qp2 2
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 3 qp1 unit_array_size
UNITS 4 qp2 unit_array_size
LOCK2 ps.flags
LOCK2 rcu_read
HALF_LOCKED2 &pool->lock

drivers/infiniband/hw/hfi1/ruc.c hfi1_ruc_check_hdr() -> hfi1_bad_pkey()

Type Parameter Key Value
PARAM_VALUE 0 ibp 4096-ptr_max
PARAM_VALUE 0 ibp->sl_to_sc 4096-ptr_max
PARAM_VALUE 2 sl 0-255
PARAM_VALUE 3 qp1 0
PARAM_VALUE 5 lid1 0-16777215
PARAM_VALUE 6 lid2 0-16777215,4010803200-4043309055
BUF_SIZE 0 ibp 664
DATA_SOURCE 0 ibp $0
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 4 qp2 unit_array_size
LOCK2 flags
LOCK2 rcu_read
HALF_LOCKED2 &packet->qp->r_lock
HALF_LOCKED2 &qp->r_lock
TYPE_LOCK (struct rvt_qp)->r_lock

drivers/infiniband/hw/hfi1/ruc.c hfi1_ruc_check_hdr() -> hfi1_bad_pkey()

Type Parameter Key Value
PARAM_VALUE 0 ibp 4096-ptr_max
PARAM_VALUE 0 ibp->sl_to_sc 4096-ptr_max
PARAM_VALUE 2 sl 0-255
PARAM_VALUE 3 qp1 0
PARAM_VALUE 5 lid1 0-16777215
PARAM_VALUE 6 lid2 0-16777215,4010803200-4043309055
BUF_SIZE 0 ibp 664
DATA_SOURCE 0 ibp $0
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 4 qp2 unit_array_size
LOCK2 flags
LOCK2 rcu_read
HALF_LOCKED2 &packet->qp->r_lock
HALF_LOCKED2 &qp->r_lock
TYPE_LOCK (struct rvt_qp)->r_lock