Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/powercap/intel_rapl_common.c get_current_power_limit() -> rapl_read_pl_data()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rd | 4096-ptr_max |
| PARAM_VALUE | 1 | pl | (-22),0-2 |
| PARAM_VALUE | 2 | pl_prim | 2 |
| PARAM_VALUE | 3 | xlate | 1 |
| PARAM_VALUE | 4 | data | 5587643232359211008 |
| DATA_SOURCE | 1 | pl | r contraint_to_pl |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/powercap/intel_rapl_common.c get_domain_enable() -> rapl_read_pl_data()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rd | 4096-ptr_max |
| PARAM_VALUE | 0 | rd->rpl | 4096-ptr_max |
| PARAM_VALUE | 1 | pl | 0 |
| PARAM_VALUE | 2 | pl_prim | 0 |
| PARAM_VALUE | 3 | xlate | 1 |
| PARAM_VALUE | 4 | data | 5996494412090548224 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/powercap/intel_rapl_common.c get_max_power() -> rapl_read_pl_data()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rd | 4096-ptr_max |
| PARAM_VALUE | 1 | pl | (-22),0-2 |
| PARAM_VALUE | 2 | pl_prim | 4 |
| PARAM_VALUE | 3 | xlate | 1 |
| PARAM_VALUE | 4 | data | 4114644588052684800 |
| DATA_SOURCE | 1 | pl | r contraint_to_pl |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/powercap/intel_rapl_common.c get_time_window() -> rapl_read_pl_data()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rd | 4096-ptr_max |
| PARAM_VALUE | 1 | pl | (-22),0-2 |
| PARAM_VALUE | 2 | pl_prim | 3 |
| PARAM_VALUE | 3 | xlate | 1 |
| PARAM_VALUE | 4 | data | 1971041189917585408 |
| DATA_SOURCE | 1 | pl | r contraint_to_pl |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/powercap/intel_rapl_common.c power_limit_state_save() -> rapl_read_pl_data()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rd | 4096-ptr_max |
| PARAM_VALUE | 0 | rd->rp->priv->rpi->mask | 31,8191,s16max-32768,65536,131071-131072,262143,332922,16646144,33292288,66584576,2147418112,2147483648,u32max,68719214592,140733193388032,140737488355328,281474976710656,562945658454016,562949953421312,17732923532771328-u64max |
| PARAM_VALUE | 0 | rd->rpl | 4096-ptr_max |
| PARAM_VALUE | 1 | pl | 0-2 |
| PARAM_VALUE | 2 | pl_prim | 2 |
| PARAM_VALUE | 3 | xlate | 1 |
| PARAM_VALUE | 4 | data | 4096-ptr_max |
| FUZZY_MAX | 1 | pl | 2 |
| HARD_MAX | 1 | pl | 2 |
drivers/powercap/intel_rapl_common.c rapl_detect_powerlimit() -> rapl_read_pl_data()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rd | 4096-ptr_max |
| PARAM_VALUE | 0 | rd->id | 0-4 |
| PARAM_VALUE | 0 | rd->rp | 4096-ptr_max |
| PARAM_VALUE | 0 | rd->rp->priv | 4096-ptr_max |
| PARAM_VALUE | 0 | rd->rp->priv->rpi->mask | 31,8191,s16max-32768,65536,131071-131072,262143,332922,16646144,33292288,66584576,2147418112,2147483648,u32max,68719214592,140733193388032,140737488355328,281474976710656,562945658454016,562949953421312,17732923532771328-u64max |
| PARAM_VALUE | 1 | pl | 0-2 |
| PARAM_VALUE | 2 | pl_prim | 5 |
| PARAM_VALUE | 3 | xlate | 0 |
| PARAM_VALUE | 4 | data | 131885528216764416 |
| BUF_SIZE | 0 | rd | (-1),2336-s32max |
| BUF_SIZE | 0 | rd | (-1),2336-s32max |
| CAPPED_DATA | 0 | rd | 1 |
| DATA_SOURCE | 0 | rd | $0 |
| FUZZY_MAX | 1 | pl | 2 |
| HARD_MAX | 1 | pl | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 4 | *data | 0-u64max[c] |
drivers/powercap/intel_rapl_common.c rapl_detect_powerlimit() -> rapl_read_pl_data()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rd | 4096-ptr_max |
| PARAM_VALUE | 0 | rd->id | 0-4 |
| PARAM_VALUE | 0 | rd->rp | 4096-ptr_max |
| PARAM_VALUE | 0 | rd->rp->priv | 4096-ptr_max |
| PARAM_VALUE | 0 | rd->rp->priv->rpi->mask | 31,8191,s16max-32768,65536,131071-131072,262143,332922,16646144,33292288,66584576,2147418112,2147483648,u32max,68719214592,140733193388032,140737488355328,281474976710656,562945658454016,562949953421312,17732923532771328-u64max |
| PARAM_VALUE | 1 | pl | 0-2 |
| PARAM_VALUE | 2 | pl_prim | 2 |
| PARAM_VALUE | 3 | xlate | 0 |
| PARAM_VALUE | 4 | data | 131885528216764416 |
| BUF_SIZE | 0 | rd | (-1),2336-s32max |
| BUF_SIZE | 0 | rd | (-1),2336-s32max |
| CAPPED_DATA | 0 | rd | 1 |
| DATA_SOURCE | 0 | rd | $0 |
| FUZZY_MAX | 1 | pl | 2 |
| HARD_MAX | 1 | pl | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 4 | *data | 0-u64max[c] |
drivers/powercap/intel_rapl_common.c set_domain_enable() -> rapl_read_pl_data()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rd | 4096-ptr_max |
| PARAM_VALUE | 0 | rd->rp | 4096-ptr_max |
| PARAM_VALUE | 0 | rd->rp->priv | 4096-ptr_max |
| PARAM_VALUE | 1 | pl | 0 |
| PARAM_VALUE | 2 | pl_prim | 0 |
| PARAM_VALUE | 3 | xlate | 0 |
| PARAM_VALUE | 4 | data | 5018940749906743296 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |