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_max_energy_counter() -> rapl_unit_xlate()

Type Parameter Key Value
PARAM_VALUE 0 rd 4096-ptr_max
PARAM_VALUE 1 type 2
PARAM_VALUE 2 value u32max
PARAM_VALUE 3 to_raw 0
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 rapl_read_data_raw() -> rapl_unit_xlate()

Type Parameter Key Value
PARAM_VALUE 0 rd 4096-ptr_max
PARAM_VALUE 0 rd->regs 4096-ptr_max
PARAM_VALUE 0 rd->rp 4096-ptr_max
PARAM_VALUE 0 rd->rp->priv 4096-ptr_max
PARAM_VALUE 0 rd->rp->priv->defaults 4096-ptr_max
PARAM_VALUE 0 rd->rp->priv->rpi 4096-ptr_max
PARAM_VALUE 0 rd->rp->priv->rpi->mask 31,8191,s16max-32768,65536,131071-131072,262143,332922,16646144
PARAM_VALUE 3 to_raw 0
BUF_SIZE 0 rd (-1),2336-s32max
BUF_SIZE 0 rd (-1),2336-s32max
DATA_SOURCE 0 rd $0
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 2 value 0-u64max[c]
HALF_LOCKED2 &of->mutex

drivers/powercap/intel_rapl_common.c rapl_write_data_raw() -> rapl_unit_xlate()

Type Parameter Key Value
PARAM_VALUE 0 rd 4096-ptr_max
PARAM_VALUE 0 rd->power_zone.dev.kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 rd->power_zone.dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 rd->rp 4096-ptr_max
PARAM_VALUE 0 rd->rp->priv 4096-ptr_max
PARAM_VALUE 0 rd->rp->priv->defaults 4096-ptr_max
PARAM_VALUE 0 rd->rp->priv->defaults->set_floor_freq 0,1098746204114980864,8802433537313054720
PARAM_VALUE 0 rd->rp->priv->rpi 4096-ptr_max
PARAM_VALUE 0 rd->rp->priv->rpi->mask 31,8191,s16max-32768,65536,131071-131072,262143,332922,16646144
PARAM_VALUE 0 rd->rpl 4096-ptr_max
PARAM_VALUE 3 to_raw 1
CAPPED_DATA 0 rd 1
DATA_SOURCE 0 rd $0
DATA_SOURCE 2 value $2
RX_PATH
TASK_NOT_RUNNING
USER_DATA 2 value 0-u64max
HALF_LOCKED2 &of->mutex