Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/powercap/intel_rapl_common.c contraint_to_pl() -> is_pl_valid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rd | 4096-ptr_max |
| PARAM_VALUE | 1 | pl | 0-2 |
| DATA_SOURCE | 0 | rd | $0 |
| FUZZY_MAX | 1 | pl | 2 |
| HARD_MAX | 1 | pl | 2 |
| 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 find_nr_power_limit() -> is_pl_valid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rd | 4096-ptr_max |
| PARAM_VALUE | 0 | rd->id | 0-4 |
| PARAM_VALUE | 0 | rd->power_zone.dev.kobj.sd->attr.open->nr_mmapped | 0-4294967295 |
| PARAM_VALUE | 0 | rd->power_zone.ops->get_enable | 0,1867598137673433088,2555550758662979584 |
| PARAM_VALUE | 0 | rd->power_zone.ops->get_energy_uj | 0,7821893049369501696 |
| PARAM_VALUE | 0 | rd->power_zone.ops->get_max_energy_range_uj | 0,3267247531492380672 |
| PARAM_VALUE | 0 | rd->power_zone.ops->get_max_power_range_uw | 0,5277431411251085312,9199512277063061504 |
| PARAM_VALUE | 0 | rd->power_zone.ops->get_power_uw | 0,418402769881829376,5020708365141495808 |
| PARAM_VALUE | 0 | rd->power_zone.ops->release | 1049999374349828096,2395838730758443008,4009031379148431360 |
| PARAM_VALUE | 0 | rd->power_zone.ops->reset_energy_uj | 0 |
| PARAM_VALUE | 0 | rd->power_zone.ops->set_enable | 0,2976859548929703936,6969973815910580224 |
| PARAM_VALUE | 0 | rd->rp | 4096-ptr_max |
| PARAM_VALUE | 1 | pl | 0-2 |
| CAPPED_DATA | 0 | rd | 1 |
| DATA_SOURCE | 0 | rd | $0 |
| FUZZY_MAX | 0 | rd->id | 4 |
| FUZZY_MAX | 1 | pl | 2 |
| HARD_MAX | 1 | pl | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/powercap/intel_rapl_common.c rapl_read_pl_data() -> is_pl_valid()
| 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 | 1 | pl | (-22),0-2 |
| BUF_SIZE | 0 | rd | (-1),2336-s32max |
| BUF_SIZE | 0 | rd | (-1),2336-s32max |
| CAPPED_DATA | 0 | rd | 1 |
| DATA_SOURCE | 0 | rd | $0 |
| DATA_SOURCE | 1 | pl | $1 |
| FUZZY_MAX | 1 | pl | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex |
drivers/powercap/intel_rapl_common.c rapl_write_pl_data() -> is_pl_valid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rd | 0-ptr_max |
| PARAM_VALUE | 0 | rd->power_zone.dev.power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | rd->rp->priv->defaults->set_floor_freq | 0,1098746204114980864,8802433537313054720 |
| 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 | (-22),0-2 |
| CAPPED_DATA | 0 | rd | 1 |
| DATA_SOURCE | 0 | rd | $0 |
| DATA_SOURCE | 1 | pl | $1 |
| FUZZY_MAX | 1 | pl | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex |