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_mtu_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 |
| CAPPED_DATA | 0 | sc->type | 1 |
| CAPPED_DATA | 1 | mtu | 1 |
| CAPPED_DATA | 2 | hdrqentsize | 1 |
| DATA_SOURCE | 0 | sc | r _kmalloc_node_noprof |
| DATA_SOURCE | 2 | hdrqentsize | $2 |
| 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_mtu_to_threshold()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sc | 4096-ptr_max |
| PARAM_VALUE | 1 | mtu | 0-u16max |
| PARAM_VALUE | 2 | hdrqentsize | 0-255 |
| CAPPED_DATA | 1 | mtu | 1 |
| CAPPED_DATA | 2 | hdrqentsize | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | mtu | unit_byte |
drivers/infiniband/hw/hfi1/chip.c set_send_length() -> sc_mtu_to_threshold()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | mtu | 0-u16max |
| PARAM_VALUE | 2 | hdrqentsize | 0-255 |
| CAPPED_DATA | 1 | mtu | 1 |
| CAPPED_DATA | 2 | hdrqentsize | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | mtu | unit_byte |
| LOCK2 | &ppd->hls_lock | ||
| TYPE_LOCK | (struct hfi1_pportdata)->hls_lock |
drivers/infiniband/hw/hfi1/chip.c set_send_length() -> sc_mtu_to_threshold()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | mtu | 0-u16max |
| PARAM_VALUE | 2 | hdrqentsize | 0-255 |
| CAPPED_DATA | 1 | mtu | 1 |
| CAPPED_DATA | 2 | hdrqentsize | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | mtu | unit_byte |
| LOCK2 | &ppd->hls_lock | ||
| TYPE_LOCK | (struct hfi1_pportdata)->hls_lock |