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/pio.c sc_alloc() -> sc_percent_to_threshold()

Type Parameter Key Value
PARAM_VALUE 0 sc 4096-ptr_max
PARAM_VALUE 0 sc->credits 0-u16max
PARAM_VALUE 1 percent 50
BUF_SIZE 0 sc 768
BUF_SIZE 0 sc->buffers_allocated 4
CAPPED_DATA 0 sc->dd->num_send_contexts 1
DATA_SOURCE 0 sc r _kmalloc_node_noprof
PREEMPT_ADD <- disables preempt
NO_OVERFLOW_SIMPLE 0 sc->dd->num_rcv_contexts
NO_OVERFLOW_SIMPLE 0 sc->dd->num_send_contexts
NO_OVERFLOW_SIMPLE 0 sc->sw_index
LOCK2 &dd->sc_lock
LOCK2 flags
TYPE_LOCK (struct hfi1_devdata)->sc_lock

drivers/infiniband/hw/hfi1/pio.c sc_alloc() -> sc_percent_to_threshold()

Type Parameter Key Value
PARAM_VALUE 0 sc 4096-ptr_max
PARAM_VALUE 0 sc->credits 0-u16max
BUF_SIZE 0 sc 768
BUF_SIZE 0 sc->buffers_allocated 4
CAPPED_DATA 0 sc->dd->num_send_contexts 1
DATA_SOURCE 0 sc r _kmalloc_node_noprof
PREEMPT_ADD <- disables preempt
NO_OVERFLOW_SIMPLE 0 sc->dd->num_rcv_contexts
NO_OVERFLOW_SIMPLE 0 sc->dd->num_send_contexts
NO_OVERFLOW_SIMPLE 0 sc->sw_index
LOCK2 &dd->sc_lock
LOCK2 flags
HALF_LOCKED2 global &hfi1_mutex
TYPE_LOCK (struct hfi1_devdata)->sc_lock

drivers/infiniband/hw/hfi1/pio.c sc_alloc() -> sc_percent_to_threshold()

Type Parameter Key Value
PARAM_VALUE 0 sc 4096-ptr_max
PARAM_VALUE 0 sc->credits 0-u16max
PARAM_VALUE 1 percent 50
BUF_SIZE 0 sc 768
BUF_SIZE 0 sc->buffers_allocated 4
CAPPED_DATA 0 sc->dd->num_send_contexts 1
CAPPED_DATA 0 sc->type 1
DATA_SOURCE 0 sc r _kmalloc_node_noprof
BIT_INFO 0 sc->type 0x0,0x3
PREEMPT_ADD <- disables preempt
NO_OVERFLOW_SIMPLE 0 sc->dd->num_rcv_contexts
NO_OVERFLOW_SIMPLE 0 sc->dd->num_send_contexts
NO_OVERFLOW_SIMPLE 0 sc->sw_index
LOCK2 &dd->sc_lock
LOCK2 flags
HALF_LOCKED2 global &hfi1_mutex
TYPE_LOCK (struct hfi1_devdata)->sc_lock

drivers/infiniband/hw/hfi1/pio.c set_threshold() -> sc_percent_to_threshold()

Type Parameter Key Value
PARAM_VALUE 1 percent 50
RX_PATH
TASK_NOT_RUNNING

drivers/infiniband/hw/hfi1/chip.c set_send_length() -> sc_percent_to_threshold()

Type Parameter Key Value
PARAM_VALUE 1 percent 50
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ppd->hls_lock
TYPE_LOCK (struct hfi1_pportdata)->hls_lock

drivers/infiniband/hw/hfi1/chip.c set_send_length() -> sc_percent_to_threshold()

Type Parameter Key Value
PARAM_VALUE 1 percent 50
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ppd->hls_lock
TYPE_LOCK (struct hfi1_pportdata)->hls_lock