Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/infiniband/hw/hfi1/verbs.c query_port() -> mtu_to_enum()

Type Parameter Key Value
PARAM_VALUE 0 mtu 256,512,1024,2048,4096
PARAM_VALUE 1 default_if_bad 5
FUZZY_MAX 0 mtu 4096
RX_PATH
TASK_NOT_RUNNING

drivers/infiniband/hw/hfi1/verbs.c query_port() -> mtu_to_enum()

Type Parameter Key Value
PARAM_VALUE 0 mtu 256,512,1024,2048,4096
PARAM_VALUE 1 default_if_bad 5
RX_PATH
TASK_NOT_RUNNING
UNITS 0 mtu unit_byte

drivers/infiniband/hw/hfi1/mad.c __subn_get_opa_portinfo() -> mtu_to_enum()

Type Parameter Key Value
PARAM_VALUE 0 mtu 0-u16max
PARAM_VALUE 1 default_if_bad 10240
RX_PATH
TASK_NOT_RUNNING
UNITS 0 mtu unit_byte

drivers/infiniband/hw/hfi1/mad.c __subn_get_opa_portinfo() -> mtu_to_enum()

Type Parameter Key Value
PARAM_VALUE 0 mtu 0-u16max
PARAM_VALUE 1 default_if_bad 2048
RX_PATH
TASK_NOT_RUNNING
UNITS 0 mtu unit_byte

drivers/infiniband/hw/hfi1/mad.c __subn_get_opa_portinfo() -> mtu_to_enum()

Type Parameter Key Value
PARAM_VALUE 1 default_if_bad 5
RX_PATH
TASK_NOT_RUNNING

drivers/infiniband/hw/hfi1/qp.c get_pmtu_from_attr() -> mtu_to_enum()

Type Parameter Key Value
PARAM_VALUE 0 mtu 0-8191
PARAM_VALUE 1 default_if_bad 4
RX_PATH
TASK_NOT_RUNNING
UNITS 0 mtu unit_byte
LOCK2 &qp->r_lock
LOCK2 &qp->s_hlock
LOCK2 &qp->s_lock
LOCK2 irq
HALF_LOCKED2 &ibqp->qp_sec->mutex
TYPE_LOCK (struct rvt_qp)->r_lock
TYPE_LOCK (struct rvt_qp)->s_hlock
TYPE_LOCK (struct rvt_qp)->s_lock

drivers/infiniband/hw/hfi1/qp.c mtu_to_path_mtu() -> mtu_to_enum()

Type Parameter Key Value
PARAM_VALUE 1 default_if_bad 6
DATA_SOURCE 0 mtu $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &iser_conn->state_mutex