Home
last modified time | relevance | path

Searched refs:therm (Results 1 - 25 of 80) sorted by relevance

1234

/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
H A Dbase.c30 nvkm_therm_temp_get(struct nvkm_therm *therm) in nvkm_therm_temp_get() argument
32 if (therm->func->temp_get) in nvkm_therm_temp_get()
33 return therm->func->temp_get(therm); in nvkm_therm_temp_get()
38 nvkm_therm_update_trip(struct nvkm_therm *therm) in nvkm_therm_update_trip() argument
40 struct nvbios_therm_trip_point *trip = therm->fan->bios.trip, in nvkm_therm_update_trip()
42 *last_trip = therm->last_trip; in nvkm_therm_update_trip()
43 u8 temp = therm->func->temp_get(therm); in nvkm_therm_update_trip()
48 for (i = 0; i < therm in nvkm_therm_update_trip()
70 nvkm_therm_compute_linear_duty(struct nvkm_therm *therm, u8 linear_min_temp, u8 linear_max_temp) nvkm_therm_compute_linear_duty() argument
91 nvkm_therm_update_linear(struct nvkm_therm *therm) nvkm_therm_update_linear() argument
99 nvkm_therm_update_linear_fallback(struct nvkm_therm *therm) nvkm_therm_update_linear_fallback() argument
106 nvkm_therm_update(struct nvkm_therm *therm, int mode) nvkm_therm_update() argument
164 nvkm_therm_cstate(struct nvkm_therm *therm, int fan, int dir) nvkm_therm_cstate() argument
179 struct nvkm_therm *therm = nvkm_therm_alarm() local
185 nvkm_therm_fan_mode(struct nvkm_therm *therm, int mode) nvkm_therm_fan_mode() argument
215 nvkm_therm_attr_get(struct nvkm_therm *therm, enum nvkm_therm_attr_type type) nvkm_therm_attr_get() argument
246 nvkm_therm_attr_set(struct nvkm_therm *therm, enum nvkm_therm_attr_type type, int value) nvkm_therm_attr_set() argument
304 nvkm_therm_clkgate_enable(struct nvkm_therm *therm) nvkm_therm_clkgate_enable() argument
315 nvkm_therm_clkgate_fini(struct nvkm_therm *therm, bool suspend) nvkm_therm_clkgate_fini() argument
327 nvkm_therm_clkgate_oneinit(struct nvkm_therm *therm) nvkm_therm_clkgate_oneinit() argument
338 struct nvkm_therm *therm = nvkm_therm(subdev); nvkm_therm_intr() local
346 struct nvkm_therm *therm = nvkm_therm(subdev); nvkm_therm_fini() local
365 struct nvkm_therm *therm = nvkm_therm(subdev); nvkm_therm_oneinit() local
378 struct nvkm_therm *therm = nvkm_therm(subdev); nvkm_therm_init() local
397 nvkm_therm_clkgate_init(struct nvkm_therm *therm, const struct nvkm_therm_clkgate_pack *p) nvkm_therm_clkgate_init() argument
409 struct nvkm_therm *therm = nvkm_therm(subdev); nvkm_therm_dtor() local
424 nvkm_therm_ctor(struct nvkm_therm *therm, struct nvkm_device *device, int index, const struct nvkm_therm_func *func) nvkm_therm_ctor() argument
448 struct nvkm_therm *therm; nvkm_therm_new_() local
[all...]
H A Dtemp.c27 nvkm_therm_temp_set_defaults(struct nvkm_therm *therm) in nvkm_therm_temp_set_defaults() argument
29 therm->bios_sensor.offset_constant = 0; in nvkm_therm_temp_set_defaults()
31 therm->bios_sensor.thrs_fan_boost.temp = 90; in nvkm_therm_temp_set_defaults()
32 therm->bios_sensor.thrs_fan_boost.hysteresis = 3; in nvkm_therm_temp_set_defaults()
34 therm->bios_sensor.thrs_down_clock.temp = 95; in nvkm_therm_temp_set_defaults()
35 therm->bios_sensor.thrs_down_clock.hysteresis = 3; in nvkm_therm_temp_set_defaults()
37 therm->bios_sensor.thrs_critical.temp = 105; in nvkm_therm_temp_set_defaults()
38 therm->bios_sensor.thrs_critical.hysteresis = 5; in nvkm_therm_temp_set_defaults()
40 therm->bios_sensor.thrs_shutdown.temp = 135; in nvkm_therm_temp_set_defaults()
41 therm in nvkm_therm_temp_set_defaults()
45 nvkm_therm_temp_safety_checks(struct nvkm_therm *therm) nvkm_therm_temp_safety_checks() argument
58 nvkm_therm_sensor_set_threshold_state(struct nvkm_therm *therm, enum nvkm_therm_thrs thrs, enum nvkm_therm_thrs_state st) nvkm_therm_sensor_set_threshold_state() argument
67 nvkm_therm_sensor_get_threshold_state(struct nvkm_therm *therm, enum nvkm_therm_thrs thrs) nvkm_therm_sensor_get_threshold_state() argument
81 nvkm_therm_sensor_event(struct nvkm_therm *therm, enum nvkm_therm_thrs thrs, enum nvkm_therm_thrs_direction dir) nvkm_therm_sensor_event() argument
137 nvkm_therm_threshold_hyst_polling(struct nvkm_therm *therm, const struct nvbios_therm_threshold *thrs, enum nvkm_therm_thrs thrs_name) nvkm_therm_threshold_hyst_polling() argument
164 struct nvkm_therm *therm = alarm_timer_callback() local
193 nvkm_therm_program_alarms_polling(struct nvkm_therm *therm) nvkm_therm_program_alarms_polling() argument
212 nvkm_therm_sensor_init(struct nvkm_therm *therm) nvkm_therm_sensor_init() argument
219 nvkm_therm_sensor_fini(struct nvkm_therm *therm, bool suspend) nvkm_therm_sensor_fini() argument
228 nvkm_therm_sensor_preinit(struct nvkm_therm *therm) nvkm_therm_sensor_preinit() argument
239 nvkm_therm_sensor_ctor(struct nvkm_therm *therm) nvkm_therm_sensor_ctor() argument
[all...]
H A Dfan.c34 struct nvkm_therm *therm = fan->parent; in nvkm_fan_update() local
35 struct nvkm_subdev *subdev = &therm->subdev; in nvkm_fan_update()
53 duty = fan->get(therm); in nvkm_fan_update()
74 ret = fan->set(therm, duty); in nvkm_fan_update()
112 nvkm_therm_fan_get(struct nvkm_therm *therm) in nvkm_therm_fan_get() argument
114 return therm->fan->get(therm); in nvkm_therm_fan_get()
118 nvkm_therm_fan_set(struct nvkm_therm *therm, bool immediate, int percent) in nvkm_therm_fan_set() argument
120 return nvkm_fan_update(therm->fan, immediate, percent); in nvkm_therm_fan_set()
124 nvkm_therm_fan_sense(struct nvkm_therm *therm) in nvkm_therm_fan_sense() argument
169 nvkm_therm_fan_user_get(struct nvkm_therm *therm) nvkm_therm_fan_user_get() argument
175 nvkm_therm_fan_user_set(struct nvkm_therm *therm, int percent) nvkm_therm_fan_user_set() argument
184 nvkm_therm_fan_set_defaults(struct nvkm_therm *therm) nvkm_therm_fan_set_defaults() argument
196 nvkm_therm_fan_safety_checks(struct nvkm_therm *therm) nvkm_therm_fan_safety_checks() argument
208 nvkm_therm_fan_init(struct nvkm_therm *therm) nvkm_therm_fan_init() argument
214 nvkm_therm_fan_fini(struct nvkm_therm *therm, bool suspend) nvkm_therm_fan_fini() argument
223 nvkm_therm_fan_ctor(struct nvkm_therm *therm) nvkm_therm_fan_ctor() argument
[all...]
H A Dg84.c30 g84_temp_get(struct nvkm_therm *therm) in g84_temp_get() argument
32 struct nvkm_device *device = therm->subdev.device; in g84_temp_get()
41 g84_sensor_setup(struct nvkm_therm *therm) in g84_sensor_setup() argument
43 struct nvkm_device *device = therm->subdev.device; in g84_sensor_setup()
54 g84_therm_program_alarms(struct nvkm_therm *therm) in g84_therm_program_alarms() argument
56 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; in g84_therm_program_alarms()
57 struct nvkm_subdev *subdev = &therm->subdev; in g84_therm_program_alarms()
61 spin_lock_irqsave(&therm->sensor.alarm_program_lock, flags); in g84_therm_program_alarms()
78 spin_unlock_irqrestore(&therm->sensor.alarm_program_lock, flags); in g84_therm_program_alarms()
95 g84_therm_threshold_hyst_emulation(struct nvkm_therm *therm, in g84_therm_threshold_hyst_emulation() argument
139 g84_therm_intr(struct nvkm_therm *therm) g84_therm_intr() argument
194 g84_therm_fini(struct nvkm_therm *therm) g84_therm_fini() argument
207 g84_therm_init(struct nvkm_therm *therm) g84_therm_init() argument
228 struct nvkm_therm *therm; g84_therm_new() local
[all...]
H A Dfanpwm.c38 nvkm_fanpwm_get(struct nvkm_therm *therm) in nvkm_fanpwm_get() argument
40 struct nvkm_fanpwm *fan = (void *)therm->fan; in nvkm_fanpwm_get()
41 struct nvkm_device *device = therm->subdev.device; in nvkm_fanpwm_get()
47 ret = therm->func->pwm_get(therm, fan->func.line, &divs, &duty); in nvkm_fanpwm_get()
59 nvkm_fanpwm_set(struct nvkm_therm *therm, int percent) in nvkm_fanpwm_set() argument
61 struct nvkm_fanpwm *fan = (void *)therm->fan; in nvkm_fanpwm_set()
62 int card_type = therm->subdev.device->card_type; in nvkm_fanpwm_set()
69 if (therm->func->pwm_clock) in nvkm_fanpwm_set()
70 divs = therm in nvkm_fanpwm_set()
85 nvkm_fanpwm_create(struct nvkm_therm *therm, struct dcb_gpio_func *func) nvkm_fanpwm_create() argument
[all...]
H A Dgf119.c27 pwm_info(struct nvkm_therm *therm, int line) in pwm_info() argument
29 struct nvkm_subdev *subdev = &therm->subdev; in pwm_info()
53 gf119_fan_pwm_ctrl(struct nvkm_therm *therm, int line, bool enable) in gf119_fan_pwm_ctrl() argument
55 struct nvkm_device *device = therm->subdev.device; in gf119_fan_pwm_ctrl()
57 int indx = pwm_info(therm, line); in gf119_fan_pwm_ctrl()
67 gf119_fan_pwm_get(struct nvkm_therm *therm, int line, u32 *divs, u32 *duty) in gf119_fan_pwm_get() argument
69 struct nvkm_device *device = therm->subdev.device; in gf119_fan_pwm_get()
70 int indx = pwm_info(therm, line); in gf119_fan_pwm_get()
89 gf119_fan_pwm_set(struct nvkm_therm *therm, int line, u32 divs, u32 duty) in gf119_fan_pwm_set() argument
91 struct nvkm_device *device = therm in gf119_fan_pwm_set()
106 gf119_fan_pwm_clock(struct nvkm_therm *therm, int line) gf119_fan_pwm_clock() argument
119 gf119_therm_init(struct nvkm_therm *therm) gf119_therm_init() argument
[all...]
H A Dnv50.c28 pwm_info(struct nvkm_therm *therm, int *line, int *ctrl, int *indx) in pwm_info() argument
30 struct nvkm_subdev *subdev = &therm->subdev; in pwm_info()
55 nv50_fan_pwm_ctrl(struct nvkm_therm *therm, int line, bool enable) in nv50_fan_pwm_ctrl() argument
57 struct nvkm_device *device = therm->subdev.device; in nv50_fan_pwm_ctrl()
59 int ctrl, id, ret = pwm_info(therm, &line, &ctrl, &id); in nv50_fan_pwm_ctrl()
66 nv50_fan_pwm_get(struct nvkm_therm *therm, int line, u32 *divs, u32 *duty) in nv50_fan_pwm_get() argument
68 struct nvkm_device *device = therm->subdev.device; in nv50_fan_pwm_get()
69 int ctrl, id, ret = pwm_info(therm, &line, &ctrl, &id); in nv50_fan_pwm_get()
83 nv50_fan_pwm_set(struct nvkm_therm *therm, int line, u32 divs, u32 duty) in nv50_fan_pwm_set() argument
85 struct nvkm_device *device = therm in nv50_fan_pwm_set()
96 nv50_fan_pwm_clock(struct nvkm_therm *therm, int line) nv50_fan_pwm_clock() argument
121 nv50_sensor_setup(struct nvkm_therm *therm) nv50_sensor_setup() argument
129 nv50_temp_get(struct nvkm_therm *therm) nv50_temp_get() argument
154 nv50_therm_init(struct nvkm_therm *therm) nv50_therm_init() argument
[all...]
H A Dnv40.c30 nv40_sensor_style(struct nvkm_therm *therm) in nv40_sensor_style() argument
32 switch (therm->subdev.device->chipset) { in nv40_sensor_style()
53 nv40_sensor_setup(struct nvkm_therm *therm) in nv40_sensor_setup() argument
55 struct nvkm_device *device = therm->subdev.device; in nv40_sensor_setup()
56 enum nv40_sensor_style style = nv40_sensor_style(therm); in nv40_sensor_setup()
73 nv40_temp_get(struct nvkm_therm *therm) in nv40_temp_get() argument
75 struct nvkm_device *device = therm->subdev.device; in nv40_temp_get()
76 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; in nv40_temp_get()
77 enum nv40_sensor_style style = nv40_sensor_style(therm); in nv40_temp_get()
106 nv40_fan_pwm_ctrl(struct nvkm_therm *therm, in argument
121 nv40_fan_pwm_get(struct nvkm_therm *therm, int line, u32 *divs, u32 *duty) nv40_fan_pwm_get() argument
149 nv40_fan_pwm_set(struct nvkm_therm *therm, int line, u32 divs, u32 duty) nv40_fan_pwm_set() argument
168 nv40_therm_intr(struct nvkm_therm *therm) nv40_therm_intr() argument
183 nv40_therm_init(struct nvkm_therm *therm) nv40_therm_init() argument
[all...]
H A Dgk104.c32 struct gk104_therm *therm = gk104_therm(base); in gk104_clkgate_enable() local
33 struct nvkm_device *dev = therm->base.subdev.device; in gk104_clkgate_enable()
34 const struct gk104_clkgate_engine_info *order = therm->clkgate_order; in gk104_clkgate_enable()
46 nvkm_wr32(dev, 0x020288, therm->idle_filter->fecs); in gk104_clkgate_enable()
47 nvkm_wr32(dev, 0x02028c, therm->idle_filter->hubmmu); in gk104_clkgate_enable()
61 struct gk104_therm *therm = gk104_therm(base); in gk104_clkgate_fini() local
62 struct nvkm_device *dev = therm->base.subdev.device; in gk104_clkgate_fini()
63 const struct gk104_clkgate_engine_info *order = therm->clkgate_order; in gk104_clkgate_fini()
116 struct gk104_therm *therm = kzalloc(sizeof(*therm), GFP_KERNE in gk104_therm_new_() local
[all...]
H A Dfantog.c41 struct nvkm_therm *therm = fan->base.parent; in nvkm_fantog_update() local
42 struct nvkm_device *device = therm->subdev.device; in nvkm_fantog_update()
74 nvkm_fantog_get(struct nvkm_therm *therm) in nvkm_fantog_get() argument
76 struct nvkm_fantog *fan = (void *)therm->fan; in nvkm_fantog_get()
81 nvkm_fantog_set(struct nvkm_therm *therm, int percent) in nvkm_fantog_set() argument
83 struct nvkm_fantog *fan = (void *)therm->fan; in nvkm_fantog_set()
84 if (therm->func->pwm_ctrl) in nvkm_fantog_set()
85 therm->func->pwm_ctrl(therm, fan->func.line, false); in nvkm_fantog_set()
91 nvkm_fantog_create(struct nvkm_therm *therm, struc argument
[all...]
H A Dic.c33 struct nvkm_therm *therm = data; in probe_monitoring_device() local
34 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; in probe_monitoring_device()
49 nvkm_debug(&therm->subdev, in probe_monitoring_device()
53 therm->ic = client; in probe_monitoring_device()
83 nvkm_therm_ic_ctor(struct nvkm_therm *therm) in nvkm_therm_ic_ctor() argument
85 struct nvkm_device *device = therm->subdev.device; in nvkm_therm_ic_ctor()
102 probe_monitoring_device, therm); in nvkm_therm_ic_ctor()
103 if (therm->ic) in nvkm_therm_ic_ctor()
114 probe_monitoring_device, therm); in nvkm_therm_ic_ctor()
115 if (therm in nvkm_therm_ic_ctor()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
H A Dbase.c30 nvkm_therm_temp_get(struct nvkm_therm *therm) in nvkm_therm_temp_get() argument
32 if (therm->func->temp_get) in nvkm_therm_temp_get()
33 return therm->func->temp_get(therm); in nvkm_therm_temp_get()
38 nvkm_therm_update_trip(struct nvkm_therm *therm) in nvkm_therm_update_trip() argument
40 struct nvbios_therm_trip_point *trip = therm->fan->bios.trip, in nvkm_therm_update_trip()
42 *last_trip = therm->last_trip; in nvkm_therm_update_trip()
43 u8 temp = therm->func->temp_get(therm); in nvkm_therm_update_trip()
48 for (i = 0; i < therm in nvkm_therm_update_trip()
70 nvkm_therm_compute_linear_duty(struct nvkm_therm *therm, u8 linear_min_temp, u8 linear_max_temp) nvkm_therm_compute_linear_duty() argument
91 nvkm_therm_update_linear(struct nvkm_therm *therm) nvkm_therm_update_linear() argument
99 nvkm_therm_update_linear_fallback(struct nvkm_therm *therm) nvkm_therm_update_linear_fallback() argument
106 nvkm_therm_update(struct nvkm_therm *therm, int mode) nvkm_therm_update() argument
164 nvkm_therm_cstate(struct nvkm_therm *therm, int fan, int dir) nvkm_therm_cstate() argument
179 struct nvkm_therm *therm = nvkm_therm_alarm() local
185 nvkm_therm_fan_mode(struct nvkm_therm *therm, int mode) nvkm_therm_fan_mode() argument
215 nvkm_therm_attr_get(struct nvkm_therm *therm, enum nvkm_therm_attr_type type) nvkm_therm_attr_get() argument
246 nvkm_therm_attr_set(struct nvkm_therm *therm, enum nvkm_therm_attr_type type, int value) nvkm_therm_attr_set() argument
304 nvkm_therm_clkgate_enable(struct nvkm_therm *therm) nvkm_therm_clkgate_enable() argument
315 nvkm_therm_clkgate_fini(struct nvkm_therm *therm, bool suspend) nvkm_therm_clkgate_fini() argument
327 nvkm_therm_clkgate_oneinit(struct nvkm_therm *therm) nvkm_therm_clkgate_oneinit() argument
338 struct nvkm_therm *therm = nvkm_therm(subdev); nvkm_therm_intr() local
346 struct nvkm_therm *therm = nvkm_therm(subdev); nvkm_therm_fini() local
365 struct nvkm_therm *therm = nvkm_therm(subdev); nvkm_therm_oneinit() local
378 struct nvkm_therm *therm = nvkm_therm(subdev); nvkm_therm_init() local
397 nvkm_therm_clkgate_init(struct nvkm_therm *therm, const struct nvkm_therm_clkgate_pack *p) nvkm_therm_clkgate_init() argument
409 struct nvkm_therm *therm = nvkm_therm(subdev); nvkm_therm_dtor() local
424 nvkm_therm_ctor(struct nvkm_therm *therm, struct nvkm_device *device, enum nvkm_subdev_type type, int inst, const struct nvkm_therm_func *func) nvkm_therm_ctor() argument
448 struct nvkm_therm *therm; nvkm_therm_new_() local
[all...]
H A Dtemp.c27 nvkm_therm_temp_set_defaults(struct nvkm_therm *therm) in nvkm_therm_temp_set_defaults() argument
29 therm->bios_sensor.offset_constant = 0; in nvkm_therm_temp_set_defaults()
31 therm->bios_sensor.thrs_fan_boost.temp = 90; in nvkm_therm_temp_set_defaults()
32 therm->bios_sensor.thrs_fan_boost.hysteresis = 3; in nvkm_therm_temp_set_defaults()
34 therm->bios_sensor.thrs_down_clock.temp = 95; in nvkm_therm_temp_set_defaults()
35 therm->bios_sensor.thrs_down_clock.hysteresis = 3; in nvkm_therm_temp_set_defaults()
37 therm->bios_sensor.thrs_critical.temp = 105; in nvkm_therm_temp_set_defaults()
38 therm->bios_sensor.thrs_critical.hysteresis = 5; in nvkm_therm_temp_set_defaults()
40 therm->bios_sensor.thrs_shutdown.temp = 135; in nvkm_therm_temp_set_defaults()
41 therm in nvkm_therm_temp_set_defaults()
45 nvkm_therm_temp_safety_checks(struct nvkm_therm *therm) nvkm_therm_temp_safety_checks() argument
58 nvkm_therm_sensor_set_threshold_state(struct nvkm_therm *therm, enum nvkm_therm_thrs thrs, enum nvkm_therm_thrs_state st) nvkm_therm_sensor_set_threshold_state() argument
67 nvkm_therm_sensor_get_threshold_state(struct nvkm_therm *therm, enum nvkm_therm_thrs thrs) nvkm_therm_sensor_get_threshold_state() argument
81 nvkm_therm_sensor_event(struct nvkm_therm *therm, enum nvkm_therm_thrs thrs, enum nvkm_therm_thrs_direction dir) nvkm_therm_sensor_event() argument
137 nvkm_therm_threshold_hyst_polling(struct nvkm_therm *therm, const struct nvbios_therm_threshold *thrs, enum nvkm_therm_thrs thrs_name) nvkm_therm_threshold_hyst_polling() argument
164 struct nvkm_therm *therm = alarm_timer_callback() local
193 nvkm_therm_program_alarms_polling(struct nvkm_therm *therm) nvkm_therm_program_alarms_polling() argument
212 nvkm_therm_sensor_init(struct nvkm_therm *therm) nvkm_therm_sensor_init() argument
219 nvkm_therm_sensor_fini(struct nvkm_therm *therm, bool suspend) nvkm_therm_sensor_fini() argument
228 nvkm_therm_sensor_preinit(struct nvkm_therm *therm) nvkm_therm_sensor_preinit() argument
239 nvkm_therm_sensor_ctor(struct nvkm_therm *therm) nvkm_therm_sensor_ctor() argument
[all...]
H A Dfan.c34 struct nvkm_therm *therm = fan->parent; in nvkm_fan_update() local
35 struct nvkm_subdev *subdev = &therm->subdev; in nvkm_fan_update()
53 duty = fan->get(therm); in nvkm_fan_update()
74 ret = fan->set(therm, duty); in nvkm_fan_update()
112 nvkm_therm_fan_get(struct nvkm_therm *therm) in nvkm_therm_fan_get() argument
114 return therm->fan->get(therm); in nvkm_therm_fan_get()
118 nvkm_therm_fan_set(struct nvkm_therm *therm, bool immediate, int percent) in nvkm_therm_fan_set() argument
120 return nvkm_fan_update(therm->fan, immediate, percent); in nvkm_therm_fan_set()
124 nvkm_therm_fan_sense(struct nvkm_therm *therm) in nvkm_therm_fan_sense() argument
169 nvkm_therm_fan_user_get(struct nvkm_therm *therm) nvkm_therm_fan_user_get() argument
175 nvkm_therm_fan_user_set(struct nvkm_therm *therm, int percent) nvkm_therm_fan_user_set() argument
184 nvkm_therm_fan_set_defaults(struct nvkm_therm *therm) nvkm_therm_fan_set_defaults() argument
196 nvkm_therm_fan_safety_checks(struct nvkm_therm *therm) nvkm_therm_fan_safety_checks() argument
208 nvkm_therm_fan_init(struct nvkm_therm *therm) nvkm_therm_fan_init() argument
214 nvkm_therm_fan_fini(struct nvkm_therm *therm, bool suspend) nvkm_therm_fan_fini() argument
223 nvkm_therm_fan_ctor(struct nvkm_therm *therm) nvkm_therm_fan_ctor() argument
[all...]
H A Dg84.c30 g84_temp_get(struct nvkm_therm *therm) in g84_temp_get() argument
32 struct nvkm_device *device = therm->subdev.device; in g84_temp_get()
41 g84_sensor_setup(struct nvkm_therm *therm) in g84_sensor_setup() argument
43 struct nvkm_device *device = therm->subdev.device; in g84_sensor_setup()
54 g84_therm_program_alarms(struct nvkm_therm *therm) in g84_therm_program_alarms() argument
56 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; in g84_therm_program_alarms()
57 struct nvkm_subdev *subdev = &therm->subdev; in g84_therm_program_alarms()
61 spin_lock_irqsave(&therm->sensor.alarm_program_lock, flags); in g84_therm_program_alarms()
78 spin_unlock_irqrestore(&therm->sensor.alarm_program_lock, flags); in g84_therm_program_alarms()
95 g84_therm_threshold_hyst_emulation(struct nvkm_therm *therm, in g84_therm_threshold_hyst_emulation() argument
139 g84_therm_intr(struct nvkm_therm *therm) g84_therm_intr() argument
194 g84_therm_fini(struct nvkm_therm *therm) g84_therm_fini() argument
207 g84_therm_init(struct nvkm_therm *therm) g84_therm_init() argument
229 struct nvkm_therm *therm; g84_therm_new() local
[all...]
H A Dfanpwm.c38 nvkm_fanpwm_get(struct nvkm_therm *therm) in nvkm_fanpwm_get() argument
40 struct nvkm_fanpwm *fan = (void *)therm->fan; in nvkm_fanpwm_get()
41 struct nvkm_device *device = therm->subdev.device; in nvkm_fanpwm_get()
47 ret = therm->func->pwm_get(therm, fan->func.line, &divs, &duty); in nvkm_fanpwm_get()
59 nvkm_fanpwm_set(struct nvkm_therm *therm, int percent) in nvkm_fanpwm_set() argument
61 struct nvkm_fanpwm *fan = (void *)therm->fan; in nvkm_fanpwm_set()
62 int card_type = therm->subdev.device->card_type; in nvkm_fanpwm_set()
69 if (therm->func->pwm_clock) in nvkm_fanpwm_set()
70 divs = therm in nvkm_fanpwm_set()
85 nvkm_fanpwm_create(struct nvkm_therm *therm, struct dcb_gpio_func *func) nvkm_fanpwm_create() argument
[all...]
H A Dgf119.c27 pwm_info(struct nvkm_therm *therm, int line) in pwm_info() argument
29 struct nvkm_subdev *subdev = &therm->subdev; in pwm_info()
54 gf119_fan_pwm_ctrl(struct nvkm_therm *therm, int line, bool enable) in gf119_fan_pwm_ctrl() argument
56 struct nvkm_device *device = therm->subdev.device; in gf119_fan_pwm_ctrl()
58 int indx = pwm_info(therm, line); in gf119_fan_pwm_ctrl()
68 gf119_fan_pwm_get(struct nvkm_therm *therm, int line, u32 *divs, u32 *duty) in gf119_fan_pwm_get() argument
70 struct nvkm_device *device = therm->subdev.device; in gf119_fan_pwm_get()
71 int indx = pwm_info(therm, line); in gf119_fan_pwm_get()
90 gf119_fan_pwm_set(struct nvkm_therm *therm, int line, u32 divs, u32 duty) in gf119_fan_pwm_set() argument
92 struct nvkm_device *device = therm in gf119_fan_pwm_set()
107 gf119_fan_pwm_clock(struct nvkm_therm *therm, int line) gf119_fan_pwm_clock() argument
120 gf119_therm_init(struct nvkm_therm *therm) gf119_therm_init() argument
[all...]
H A Dnv50.c28 pwm_info(struct nvkm_therm *therm, int *line, int *ctrl, int *indx) in pwm_info() argument
30 struct nvkm_subdev *subdev = &therm->subdev; in pwm_info()
55 nv50_fan_pwm_ctrl(struct nvkm_therm *therm, int line, bool enable) in nv50_fan_pwm_ctrl() argument
57 struct nvkm_device *device = therm->subdev.device; in nv50_fan_pwm_ctrl()
59 int ctrl, id, ret = pwm_info(therm, &line, &ctrl, &id); in nv50_fan_pwm_ctrl()
66 nv50_fan_pwm_get(struct nvkm_therm *therm, int line, u32 *divs, u32 *duty) in nv50_fan_pwm_get() argument
68 struct nvkm_device *device = therm->subdev.device; in nv50_fan_pwm_get()
69 int ctrl, id, ret = pwm_info(therm, &line, &ctrl, &id); in nv50_fan_pwm_get()
83 nv50_fan_pwm_set(struct nvkm_therm *therm, int line, u32 divs, u32 duty) in nv50_fan_pwm_set() argument
85 struct nvkm_device *device = therm in nv50_fan_pwm_set()
96 nv50_fan_pwm_clock(struct nvkm_therm *therm, int line) nv50_fan_pwm_clock() argument
121 nv50_sensor_setup(struct nvkm_therm *therm) nv50_sensor_setup() argument
129 nv50_temp_get(struct nvkm_therm *therm) nv50_temp_get() argument
154 nv50_therm_init(struct nvkm_therm *therm) nv50_therm_init() argument
[all...]
H A Dnv40.c30 nv40_sensor_style(struct nvkm_therm *therm) in nv40_sensor_style() argument
32 switch (therm->subdev.device->chipset) { in nv40_sensor_style()
53 nv40_sensor_setup(struct nvkm_therm *therm) in nv40_sensor_setup() argument
55 struct nvkm_device *device = therm->subdev.device; in nv40_sensor_setup()
56 enum nv40_sensor_style style = nv40_sensor_style(therm); in nv40_sensor_setup()
73 nv40_temp_get(struct nvkm_therm *therm) in nv40_temp_get() argument
75 struct nvkm_device *device = therm->subdev.device; in nv40_temp_get()
76 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; in nv40_temp_get()
77 enum nv40_sensor_style style = nv40_sensor_style(therm); in nv40_temp_get()
106 nv40_fan_pwm_ctrl(struct nvkm_therm *therm, in argument
121 nv40_fan_pwm_get(struct nvkm_therm *therm, int line, u32 *divs, u32 *duty) nv40_fan_pwm_get() argument
149 nv40_fan_pwm_set(struct nvkm_therm *therm, int line, u32 divs, u32 duty) nv40_fan_pwm_set() argument
168 nv40_therm_intr(struct nvkm_therm *therm) nv40_therm_intr() argument
183 nv40_therm_init(struct nvkm_therm *therm) nv40_therm_init() argument
[all...]
H A Dgk104.c32 struct gk104_therm *therm = gk104_therm(base); in gk104_clkgate_enable() local
33 struct nvkm_device *dev = therm->base.subdev.device; in gk104_clkgate_enable()
34 const struct gk104_clkgate_engine_info *order = therm->clkgate_order; in gk104_clkgate_enable()
46 nvkm_wr32(dev, 0x020288, therm->idle_filter->fecs); in gk104_clkgate_enable()
47 nvkm_wr32(dev, 0x02028c, therm->idle_filter->hubmmu); in gk104_clkgate_enable()
61 struct gk104_therm *therm = gk104_therm(base); in gk104_clkgate_fini() local
62 struct nvkm_device *dev = therm->base.subdev.device; in gk104_clkgate_fini()
63 const struct gk104_clkgate_engine_info *order = therm->clkgate_order; in gk104_clkgate_fini()
115 struct gk104_therm *therm = kzalloc(sizeof(*therm), GFP_KERNE in gk104_therm_new_() local
[all...]
H A Dfantog.c41 struct nvkm_therm *therm = fan->base.parent; in nvkm_fantog_update() local
42 struct nvkm_device *device = therm->subdev.device; in nvkm_fantog_update()
74 nvkm_fantog_get(struct nvkm_therm *therm) in nvkm_fantog_get() argument
76 struct nvkm_fantog *fan = (void *)therm->fan; in nvkm_fantog_get()
81 nvkm_fantog_set(struct nvkm_therm *therm, int percent) in nvkm_fantog_set() argument
83 struct nvkm_fantog *fan = (void *)therm->fan; in nvkm_fantog_set()
84 if (therm->func->pwm_ctrl) in nvkm_fantog_set()
85 therm->func->pwm_ctrl(therm, fan->func.line, false); in nvkm_fantog_set()
91 nvkm_fantog_create(struct nvkm_therm *therm, struc argument
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/
H A Dnouveau_hwmon.c55 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); in nouveau_hwmon_temp1_auto_point1_temp() local
58 therm->attr_get(therm, NVKM_THERM_ATTR_THRS_FAN_BOOST) * 1000); in nouveau_hwmon_temp1_auto_point1_temp()
67 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); in nouveau_hwmon_set_temp1_auto_point1_temp() local
73 therm->attr_set(therm, NVKM_THERM_ATTR_THRS_FAN_BOOST, in nouveau_hwmon_set_temp1_auto_point1_temp()
88 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); in nouveau_hwmon_temp1_auto_point1_temp_hyst() local
91 therm->attr_get(therm, NVKM_THERM_ATTR_THRS_FAN_BOOST_HYST) * 1000); in nouveau_hwmon_temp1_auto_point1_temp_hyst()
100 struct nvkm_therm *therm in nouveau_hwmon_set_temp1_auto_point1_temp_hyst() local
121 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); nouveau_hwmon_get_pwm1_max() local
137 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); nouveau_hwmon_get_pwm1_min() local
153 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); nouveau_hwmon_set_pwm1_min() local
176 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); nouveau_hwmon_set_pwm1_max() local
326 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); nouveau_temp_is_visible() local
350 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); nouveau_pwm_is_visible() local
389 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); nouveau_fan_is_visible() local
421 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); nouveau_temp_read() local
470 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); nouveau_fan_read() local
524 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); nouveau_pwm_read() local
579 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); nouveau_temp_write() local
613 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); nouveau_pwm_write() local
719 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); nouveau_hwmon_init() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/
H A Dnouveau_hwmon.c55 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); in nouveau_hwmon_temp1_auto_point1_temp() local
58 therm->attr_get(therm, NVKM_THERM_ATTR_THRS_FAN_BOOST) * 1000); in nouveau_hwmon_temp1_auto_point1_temp()
67 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); in nouveau_hwmon_set_temp1_auto_point1_temp() local
73 therm->attr_set(therm, NVKM_THERM_ATTR_THRS_FAN_BOOST, in nouveau_hwmon_set_temp1_auto_point1_temp()
88 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); in nouveau_hwmon_temp1_auto_point1_temp_hyst() local
91 therm->attr_get(therm, NVKM_THERM_ATTR_THRS_FAN_BOOST_HYST) * 1000); in nouveau_hwmon_temp1_auto_point1_temp_hyst()
100 struct nvkm_therm *therm in nouveau_hwmon_set_temp1_auto_point1_temp_hyst() local
121 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); nouveau_hwmon_get_pwm1_max() local
137 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); nouveau_hwmon_get_pwm1_min() local
153 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); nouveau_hwmon_set_pwm1_min() local
176 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); nouveau_hwmon_set_pwm1_max() local
275 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); nouveau_temp_is_visible() local
299 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); nouveau_pwm_is_visible() local
338 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); nouveau_fan_is_visible() local
370 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); nouveau_temp_read() local
419 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); nouveau_fan_read() local
473 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); nouveau_pwm_read() local
528 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); nouveau_temp_write() local
562 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); nouveau_pwm_write() local
668 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); nouveau_hwmon_init() local
[all...]
/kernel/linux/linux-5.10/drivers/char/
H A Dds1620.c18 #include <asm/therm.h>
200 static void ds1620_write_state(struct therm *therm) in ds1620_write_state() argument
203 ds1620_out(THERM_WRITE_TL, 9, therm->lo); in ds1620_write_state()
204 ds1620_out(THERM_WRITE_TH, 9, therm->hi); in ds1620_write_state()
208 static void ds1620_read_state(struct therm *therm) in ds1620_read_state() argument
210 therm->lo = cvt_9_to_int(ds1620_in(THERM_READ_TL, 9)); in ds1620_read_state()
211 therm->hi = cvt_9_to_int(ds1620_in(THERM_READ_TH, 9)); in ds1620_read_state()
239 struct therm ther in ds1620_ioctl() local
241 struct therm __user *therm; ds1620_ioctl() member
[all...]
/kernel/linux/linux-6.6/drivers/char/
H A Dds1620.c18 #include <asm/therm.h>
200 static void ds1620_write_state(struct therm *therm) in ds1620_write_state() argument
203 ds1620_out(THERM_WRITE_TL, 9, therm->lo); in ds1620_write_state()
204 ds1620_out(THERM_WRITE_TH, 9, therm->hi); in ds1620_write_state()
208 static void ds1620_read_state(struct therm *therm) in ds1620_read_state() argument
210 therm->lo = cvt_9_to_int(ds1620_in(THERM_READ_TL, 9)); in ds1620_read_state()
211 therm->hi = cvt_9_to_int(ds1620_in(THERM_READ_TH, 9)); in ds1620_read_state()
239 struct therm ther in ds1620_ioctl() local
241 struct therm __user *therm; ds1620_ioctl() member
[all...]

Completed in 10 milliseconds

1234