Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 6 files:
- drivers/gpu/drm/nouveau/nvkm/subdev/therm/g84.c, line 221
- drivers/gpu/drm/nouveau/nvkm/subdev/therm/gf119.c, line 144
- drivers/gpu/drm/nouveau/nvkm/subdev/therm/gk104.c, line 100
- drivers/gpu/drm/nouveau/nvkm/subdev/therm/gm107.c, line 65
- drivers/gpu/drm/nouveau/nvkm/subdev/therm/gm200.c, line 30
- drivers/gpu/drm/nouveau/nvkm/subdev/therm/gt215.c, line 65
Smatch caller information:
drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c nvkm_therm_compute_linear_duty() -> (struct nvkm_therm_func)->temp_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | therm | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->fan | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->fan->bios.fan_mode | 1-2 |
| PARAM_VALUE | 0 | therm->func | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->func->init | 0,501850904383713280,1330976868043030528,1484562250339614720,2068574816567156736,4469011034572496896 |
| PARAM_VALUE | 0 | therm->func->intr | 0,1210090681798008832,8117094979730853888 |
| PARAM_VALUE | 0 | therm->func->pwm_ctrl | 0,4096-ptr_max |
| PARAM_VALUE | 0 | therm->func->temp_get | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->last_trip->fan_duty | s16min-s16max |
| PARAM_VALUE | 0 | therm->last_trip->hysteresis | 0-15 |
| PARAM_VALUE | 0 | therm->last_trip->temp | s32min-255 |
| PARAM_VALUE | 0 | therm->subdev.device | 4096-ptr_max |
| PARAM_VALUE | 0 | *therm->sensor.alarm_state | 0-4294967295 |
| DATA_SOURCE | 0 | therm | $0 |
| CONTAINER | 0 | -56-0+0 | $(-1) |
| HARD_MAX | 0 | therm->fan->bios.fan_mode | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | therm->mode | 0-1 |
| LOCK2 | flags | ||
| LOCK2 | 0 | &therm->lock | |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | 0 | &therm->sensor.alarm_program_lock | |
| TYPE_LOCK | (struct nvkm_therm)->lock |
drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c nvkm_therm_fan_mode() -> (struct nvkm_therm_func)->temp_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | therm | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->func | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->func->init | 0,501850904383713280,1330976868043030528,1484562250339614720,2068574816567156736,4469011034572496896 |
| PARAM_VALUE | 0 | therm->func->intr | 0,1210090681798008832,8117094979730853888 |
| PARAM_VALUE | 0 | therm->func->pwm_ctrl | 0,4096-ptr_max |
| PARAM_VALUE | 0 | therm->func->temp_get | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->last_trip->fan_duty | s16min-s16max |
| PARAM_VALUE | 0 | therm->last_trip->hysteresis | 0-15 |
| PARAM_VALUE | 0 | therm->last_trip->temp | s32min-255 |
| PARAM_VALUE | 0 | therm->subdev.device | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->subdev.device->pmu | 0,4096-ptr_max |
| PARAM_VALUE | 0 | therm->subdev.device->pmu->func->code.size | 0,2816,3072,3328 |
| PARAM_VALUE | 0 | *therm->sensor.alarm_state | 0-4294967295 |
| DATA_SOURCE | 0 | therm | $0 |
| CONTAINER | 0 | -56-0+0 | $(-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &subdev->use.mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | 0 | &therm->sensor.alarm_program_lock |
drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c nvkm_therm_temp_get() -> (struct nvkm_therm_func)->temp_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | therm | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->attr_get | 1-u64max |
| PARAM_VALUE | 0 | therm->func | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->func->temp_get | 992396835335872512,1547743195301941248,3670757882596442112,5085297789106249728 |
| DATA_SOURCE | 0 | therm | $0 |
| CONTAINER | 0 | -56-0+0 | $(-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | _T->lock |
drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c nvkm_therm_update_trip() -> (struct nvkm_therm_func)->temp_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | therm | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->fan | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->fan->bios.fan_mode | 0 |
| PARAM_VALUE | 0 | therm->func | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->func->init | 0,501850904383713280,1330976868043030528,1484562250339614720,2068574816567156736,4469011034572496896 |
| PARAM_VALUE | 0 | therm->func->intr | 0,1210090681798008832,8117094979730853888 |
| PARAM_VALUE | 0 | therm->func->pwm_ctrl | 0,4096-ptr_max |
| PARAM_VALUE | 0 | therm->func->temp_get | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->last_trip->fan_duty | s16min-s16max |
| PARAM_VALUE | 0 | therm->last_trip->hysteresis | 0-15 |
| PARAM_VALUE | 0 | therm->last_trip->temp | s32min-255 |
| PARAM_VALUE | 0 | therm->subdev.device | 4096-ptr_max |
| PARAM_VALUE | 0 | *therm->sensor.alarm_state | 0-4294967295 |
| DATA_SOURCE | 0 | therm | $0 |
| CONTAINER | 0 | -56-0+0 | $(-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | therm->mode | 0-1 |
| LOCK2 | flags | ||
| LOCK2 | 0 | &therm->lock | |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | 0 | &therm->sensor.alarm_program_lock | |
| TYPE_LOCK | (struct nvkm_therm)->lock |
drivers/gpu/drm/nouveau/nvkm/subdev/therm/temp.c alarm_timer_callback() -> (struct nvkm_therm_func)->temp_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | therm | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->func | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->func->temp_get | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->last_trip->fan_duty | s16min-s16max |
| PARAM_VALUE | 0 | therm->last_trip->hysteresis | 0-15 |
| PARAM_VALUE | 0 | therm->last_trip->temp | s32min-255 |
| PARAM_VALUE | 0 | therm->sensor.alarm_program_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | therm->subdev.device | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->subdev.device->fuse->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | *therm->sensor.alarm_state | 0-4294967295 |
| CONTAINER | 0 | -56-0+0 | $(-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/gpu/drm/nouveau/nvkm/subdev/therm/temp.c nvkm_therm_sensor_event() -> (struct nvkm_therm_func)->temp_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | therm | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->func | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->func->intr | 0,1210090681798008832,8117094979730853888 |
| PARAM_VALUE | 0 | therm->func->temp_get | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->last_trip->fan_duty | s16min-s16max |
| PARAM_VALUE | 0 | therm->last_trip->hysteresis | 0-15 |
| PARAM_VALUE | 0 | therm->last_trip->temp | s32min-255 |
| PARAM_VALUE | 0 | therm->subdev.device | 4096-ptr_max |
| PARAM_VALUE | 0 | *therm->sensor.alarm_state | 0-4294967295 |
| DATA_SOURCE | 0 | therm | $0 |
| CONTAINER | 0 | -56-0+0 | $(-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | flags | ||
| LOCK2 | 0 | &therm->sensor.alarm_program_lock | |
| TYPE_LOCK | (struct nvkm_therm)->sensor.alarm_program_lock |
drivers/gpu/drm/nouveau/nvkm/subdev/therm/temp.c nvkm_therm_sensor_preinit() -> (struct nvkm_therm_func)->temp_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | therm | 4885609368814063608 |
| PARAM_VALUE | 0 | therm->fan | 0,4096-ptr_max |
| PARAM_VALUE | 0 | therm->fan->alarm.func | 2190753702071545856 |
| PARAM_VALUE | 0 | therm->fan->alarm.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->fan->alarm.head.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->fan->alarm.head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->fan->alarm.head.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->fan->bios.bump_period | 0-255,500 |
| PARAM_VALUE | 0 | therm->fan->bios.fan_mode | 0-2 |
| PARAM_VALUE | 0 | therm->fan->bios.max_duty | 0-100 |
| PARAM_VALUE | 0 | therm->fan->bios.min_duty | 0-100 |
| PARAM_VALUE | 0 | therm->fan->bios.pwm_freq | 0-255 |
| PARAM_VALUE | 0 | therm->fan->bios.slow_down_period | 0-255,2000 |
| PARAM_VALUE | 0 | therm->fan->bios.type | 0-2 |
| PARAM_VALUE | 0 | therm->fan->parent | 5646371030593581048 |
| PARAM_VALUE | 0 | therm->fan->parent->fan | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->fan->perf.pwm_divisor | 0-255 |
| PARAM_VALUE | 0 | therm->fan->tach.func | 255 |
| PARAM_VALUE | 0 | therm->func | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->func->pwm_ctrl | 0,4096-ptr_max |
| PARAM_VALUE | 0 | therm->last_trip->fan_duty | s16min-s16max |
| PARAM_VALUE | 0 | therm->last_trip->hysteresis | 0-15 |
| PARAM_VALUE | 0 | therm->last_trip->temp | s32min-255 |
| PARAM_VALUE | 0 | therm->sensor.therm_poll_alarm.head.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->sensor.therm_poll_alarm.head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->sensor.therm_poll_alarm.head.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->subdev.device | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->subdev.device->gpio | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->subdev.device->i2c | 4096-ptr_max |
| DATA_SOURCE | 0 | therm | $0 |
| CONTAINER | 0 | -56-0+0 | $(-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &subdev->use.mutex | ||
| TYPE_LOCK | (struct nvkm_subdev)->use.mutex |
drivers/gpu/drm/nouveau/nvkm/subdev/therm/temp.c nvkm_therm_threshold_hyst_polling() -> (struct nvkm_therm_func)->temp_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | therm | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->func | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->func->temp_get | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->last_trip->fan_duty | s16min-s16max |
| PARAM_VALUE | 0 | therm->last_trip->hysteresis | 0-15 |
| PARAM_VALUE | 0 | therm->last_trip->temp | s32min-255 |
| PARAM_VALUE | 0 | therm->subdev.device | 4096-ptr_max |
| PARAM_VALUE | 0 | *therm->sensor.alarm_state | 0-4294967295 |
| DATA_SOURCE | 0 | therm | $0 |
| CONTAINER | 0 | -56-0+0 | $(-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | flags | ||
| LOCK2 | 0 | &therm->sensor.alarm_program_lock | |
| TYPE_LOCK | (struct nvkm_therm)->sensor.alarm_program_lock |
drivers/gpu/drm/nouveau/nvkm/subdev/therm/g84.c g84_therm_threshold_hyst_emulation() -> (struct nvkm_therm_func)->temp_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | therm | 6468162874954444800 |
| PARAM_VALUE | 0 | therm->func | 905242071658053632 |
| PARAM_VALUE | 0 | therm->func->intr | 1210090681798008832,8117094979730853888 |
| PARAM_VALUE | 0 | therm->func->temp_get | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->last_trip->fan_duty | s16min-s16max |
| PARAM_VALUE | 0 | therm->last_trip->hysteresis | 0-15 |
| PARAM_VALUE | 0 | therm->last_trip->temp | s32min-255 |
| PARAM_VALUE | 0 | therm->subdev.device | 4096-ptr_max |
| PARAM_VALUE | 0 | therm->subdev.device->pri | 4096-ptr_max |
| PARAM_VALUE | 0 | *therm->sensor.alarm_state | 0-4294967295 |
| DATA_SOURCE | 0 | therm | $0 |
| CONTAINER | 0 | -56-0+0 | $(-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | flags | ||
| LOCK2 | 0 | &therm->sensor.alarm_program_lock | |
| HALF_LOCKED2 | &device->intr.lock | ||
| TYPE_LOCK | (struct nvkm_therm)->sensor.alarm_program_lock |