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

12

/netbsd-current/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/therm/
H A Dnouveau_nvkm_subdev_therm_base.c35 nvkm_therm_temp_get(struct nvkm_therm *therm) argument
37 if (therm->func->temp_get)
38 return therm->func->temp_get(therm);
43 nvkm_therm_update_trip(struct nvkm_therm *therm) argument
45 struct nvbios_therm_trip_point *trip = therm->fan->bios.trip,
47 *last_trip = therm->last_trip;
48 u8 temp = therm->func->temp_get(therm);
53 for (i = 0; i < therm
75 nvkm_therm_compute_linear_duty(struct nvkm_therm *therm, u8 linear_min_temp, u8 linear_max_temp) argument
96 nvkm_therm_update_linear(struct nvkm_therm *therm) argument
104 nvkm_therm_update_linear_fallback(struct nvkm_therm *therm) argument
111 nvkm_therm_update(struct nvkm_therm *therm, int mode) argument
171 nvkm_therm_cstate(struct nvkm_therm *therm, int fan, int dir) argument
186 struct nvkm_therm *therm = local
192 nvkm_therm_fan_mode(struct nvkm_therm *therm, int mode) argument
222 nvkm_therm_attr_get(struct nvkm_therm *therm, enum nvkm_therm_attr_type type) argument
253 nvkm_therm_attr_set(struct nvkm_therm *therm, enum nvkm_therm_attr_type type, int value) argument
311 nvkm_therm_clkgate_enable(struct nvkm_therm *therm) argument
322 nvkm_therm_clkgate_fini(struct nvkm_therm *therm, bool suspend) argument
334 nvkm_therm_clkgate_oneinit(struct nvkm_therm *therm) argument
345 struct nvkm_therm *therm = nvkm_therm(subdev); local
353 struct nvkm_therm *therm = nvkm_therm(subdev); local
372 struct nvkm_therm *therm = nvkm_therm(subdev); local
385 struct nvkm_therm *therm = nvkm_therm(subdev); local
404 nvkm_therm_clkgate_init(struct nvkm_therm *therm, const struct nvkm_therm_clkgate_pack *p) argument
416 struct nvkm_therm *therm = nvkm_therm(subdev); local
434 nvkm_therm_ctor(struct nvkm_therm *therm, struct nvkm_device *device, int index, const struct nvkm_therm_func *func) argument
458 struct nvkm_therm *therm; local
[all...]
H A Dnouveau_nvkm_subdev_therm_fan.c39 struct nvkm_therm *therm = fan->parent; local
40 struct nvkm_subdev *subdev = &therm->subdev;
60 duty = fan->get(therm);
83 ret = fan->set(therm, duty);
121 nvkm_therm_fan_get(struct nvkm_therm *therm) argument
123 return therm->fan->get(therm);
127 nvkm_therm_fan_set(struct nvkm_therm *therm, bool immediate, int percent) argument
129 return nvkm_fan_update(therm->fan, immediate, percent);
133 nvkm_therm_fan_sense(struct nvkm_therm *therm) argument
178 nvkm_therm_fan_user_get(struct nvkm_therm *therm) argument
184 nvkm_therm_fan_user_set(struct nvkm_therm *therm, int percent) argument
193 nvkm_therm_fan_set_defaults(struct nvkm_therm *therm) argument
205 nvkm_therm_fan_safety_checks(struct nvkm_therm *therm) argument
217 nvkm_therm_fan_init(struct nvkm_therm *therm) argument
223 nvkm_therm_fan_fini(struct nvkm_therm *therm, bool suspend) argument
232 nvkm_therm_fan_dtor(struct nvkm_therm *therm) argument
240 nvkm_therm_fan_ctor(struct nvkm_therm *therm) argument
[all...]
H A Dnouveau_nvkm_subdev_therm_temp.c32 nvkm_therm_temp_set_defaults(struct nvkm_therm *therm) argument
34 therm->bios_sensor.offset_constant = 0;
36 therm->bios_sensor.thrs_fan_boost.temp = 90;
37 therm->bios_sensor.thrs_fan_boost.hysteresis = 3;
39 therm->bios_sensor.thrs_down_clock.temp = 95;
40 therm->bios_sensor.thrs_down_clock.hysteresis = 3;
42 therm->bios_sensor.thrs_critical.temp = 105;
43 therm->bios_sensor.thrs_critical.hysteresis = 5;
45 therm->bios_sensor.thrs_shutdown.temp = 135;
46 therm
50 nvkm_therm_temp_safety_checks(struct nvkm_therm *therm) argument
63 nvkm_therm_sensor_set_threshold_state(struct nvkm_therm *therm, enum nvkm_therm_thrs thrs, enum nvkm_therm_thrs_state st) argument
72 nvkm_therm_sensor_get_threshold_state(struct nvkm_therm *therm, enum nvkm_therm_thrs thrs) argument
86 nvkm_therm_sensor_event(struct nvkm_therm *therm, enum nvkm_therm_thrs thrs, enum nvkm_therm_thrs_direction dir) argument
142 nvkm_therm_threshold_hyst_polling(struct nvkm_therm *therm, const struct nvbios_therm_threshold *thrs, enum nvkm_therm_thrs thrs_name) argument
169 struct nvkm_therm *therm = local
198 nvkm_therm_program_alarms_polling(struct nvkm_therm *therm) argument
217 nvkm_therm_sensor_init(struct nvkm_therm *therm) argument
224 nvkm_therm_sensor_fini(struct nvkm_therm *therm, bool suspend) argument
233 nvkm_therm_sensor_preinit(struct nvkm_therm *therm) argument
244 nvkm_therm_sensor_ctor(struct nvkm_therm *therm) argument
[all...]
H A Dnouveau_nvkm_subdev_therm_fannil.c32 nvkm_fannil_get(struct nvkm_therm *therm) argument
38 nvkm_fannil_set(struct nvkm_therm *therm, int percent) argument
44 nvkm_fannil_create(struct nvkm_therm *therm) argument
49 therm->fan = priv;
H A Dnouveau_nvkm_subdev_therm_fanpwm.c43 nvkm_fanpwm_get(struct nvkm_therm *therm) argument
45 struct nvkm_fanpwm *fan = (void *)therm->fan;
46 struct nvkm_device *device = therm->subdev.device;
52 ret = therm->func->pwm_get(therm, fan->func.line, &divs, &duty);
64 nvkm_fanpwm_set(struct nvkm_therm *therm, int percent) argument
66 struct nvkm_fanpwm *fan = (void *)therm->fan;
67 int card_type = therm->subdev.device->card_type;
74 if (therm->func->pwm_clock)
75 divs = therm
90 nvkm_fanpwm_create(struct nvkm_therm *therm, struct dcb_gpio_func *func) argument
[all...]
H A Dnouveau_nvkm_subdev_therm_g84.c35 g84_temp_get(struct nvkm_therm *therm) argument
37 struct nvkm_device *device = therm->subdev.device;
46 g84_sensor_setup(struct nvkm_therm *therm) argument
48 struct nvkm_device *device = therm->subdev.device;
59 g84_therm_program_alarms(struct nvkm_therm *therm) argument
61 struct nvbios_therm_sensor *sensor = &therm->bios_sensor;
62 struct nvkm_subdev *subdev = &therm->subdev;
66 spin_lock_irqsave(&therm->sensor.alarm_program_lock, flags);
83 spin_unlock_irqrestore(&therm->sensor.alarm_program_lock, flags);
100 g84_therm_threshold_hyst_emulation(struct nvkm_therm *therm, argument
144 g84_therm_intr(struct nvkm_therm *therm) argument
199 g84_therm_fini(struct nvkm_therm *therm) argument
212 g84_therm_init(struct nvkm_therm *therm) argument
233 struct nvkm_therm *therm; local
[all...]
H A Dnouveau_nvkm_subdev_therm_gk104.c37 struct gk104_therm *therm = gk104_therm(base); local
38 struct nvkm_device *dev = therm->base.subdev.device;
39 const struct gk104_clkgate_engine_info *order = therm->clkgate_order;
51 nvkm_wr32(dev, 0x020288, therm->idle_filter->fecs);
52 nvkm_wr32(dev, 0x02028c, therm->idle_filter->hubmmu);
66 struct gk104_therm *therm = gk104_therm(base); local
67 struct nvkm_device *dev = therm->base.subdev.device;
68 const struct gk104_clkgate_engine_info *order = therm->clkgate_order;
121 struct gk104_therm *therm = kzalloc(sizeof(*therm), GFP_KERNE local
[all...]
H A Dnouveau_nvkm_subdev_therm_ic.c41 struct nvkm_therm *therm = data;
42 struct nvbios_therm_sensor *sensor = &therm->bios_sensor;
57 nvkm_debug(&therm->subdev,
61 therm->ic = client;
92 nvkm_therm_ic_ctor(struct nvkm_therm *therm) argument
94 struct nvkm_device *device = therm->subdev.device;
111 probe_monitoring_device, therm);
112 if (therm->ic)
123 probe_monitoring_device, therm);
124 if (therm
[all...]
H A Dnouveau_nvkm_subdev_therm_fantog.c46 struct nvkm_therm *therm = fan->base.parent; local
47 struct nvkm_device *device = therm->subdev.device;
79 nvkm_fantog_get(struct nvkm_therm *therm) argument
81 struct nvkm_fantog *fan = (void *)therm->fan;
86 nvkm_fantog_set(struct nvkm_therm *therm, int percent) argument
88 struct nvkm_fantog *fan = (void *)therm->fan;
89 if (therm->func->pwm_ctrl)
90 therm->func->pwm_ctrl(therm, fan->func.line, false);
103 nvkm_fantog_create(struct nvkm_therm *therm, struc argument
[all...]
H A Dnouveau_nvkm_subdev_therm_nv50.c33 pwm_info(struct nvkm_therm *therm, int *line, int *ctrl, int *indx) argument
35 struct nvkm_subdev *subdev = &therm->subdev;
60 nv50_fan_pwm_ctrl(struct nvkm_therm *therm, int line, bool enable) argument
62 struct nvkm_device *device = therm->subdev.device;
64 int ctrl, id, ret = pwm_info(therm, &line, &ctrl, &id);
71 nv50_fan_pwm_get(struct nvkm_therm *therm, int line, u32 *divs, u32 *duty) argument
73 struct nvkm_device *device = therm->subdev.device;
74 int ctrl, id, ret = pwm_info(therm, &line, &ctrl, &id);
88 nv50_fan_pwm_set(struct nvkm_therm *therm, int line, u32 divs, u32 duty) argument
90 struct nvkm_device *device = therm
101 nv50_fan_pwm_clock(struct nvkm_therm *therm, int line) argument
126 nv50_sensor_setup(struct nvkm_therm *therm) argument
134 nv50_temp_get(struct nvkm_therm *therm) argument
159 nv50_therm_init(struct nvkm_therm *therm) argument
[all...]
H A Dnouveau_nvkm_subdev_therm_gf119.c32 pwm_info(struct nvkm_therm *therm, int line) argument
34 struct nvkm_subdev *subdev = &therm->subdev;
58 gf119_fan_pwm_ctrl(struct nvkm_therm *therm, int line, bool enable) argument
60 struct nvkm_device *device = therm->subdev.device;
62 int indx = pwm_info(therm, line);
72 gf119_fan_pwm_get(struct nvkm_therm *therm, int line, u32 *divs, u32 *duty) argument
74 struct nvkm_device *device = therm->subdev.device;
75 int indx = pwm_info(therm, line);
94 gf119_fan_pwm_set(struct nvkm_therm *therm, int line, u32 divs, u32 duty) argument
96 struct nvkm_device *device = therm
111 gf119_fan_pwm_clock(struct nvkm_therm *therm, int line) argument
124 gf119_therm_init(struct nvkm_therm *therm) argument
[all...]
H A Dnouveau_nvkm_subdev_therm_nv40.c35 nv40_sensor_style(struct nvkm_therm *therm) argument
37 switch (therm->subdev.device->chipset) {
58 nv40_sensor_setup(struct nvkm_therm *therm) argument
60 struct nvkm_device *device = therm->subdev.device;
61 enum nv40_sensor_style style = nv40_sensor_style(therm);
78 nv40_temp_get(struct nvkm_therm *therm) argument
80 struct nvkm_device *device = therm->subdev.device;
81 struct nvbios_therm_sensor *sensor = &therm->bios_sensor;
82 enum nv40_sensor_style style = nv40_sensor_style(therm);
111 nv40_fan_pwm_ctrl(struct nvkm_therm *therm, in argument
126 nv40_fan_pwm_get(struct nvkm_therm *therm, int line, u32 *divs, u32 *duty) argument
154 nv40_fan_pwm_set(struct nvkm_therm *therm, int line, u32 divs, u32 duty) argument
173 nv40_therm_intr(struct nvkm_therm *therm) argument
188 nv40_therm_init(struct nvkm_therm *therm) argument
[all...]
H A Dnouveau_nvkm_subdev_therm_gm107.c32 gm107_fan_pwm_ctrl(struct nvkm_therm *therm, int line, bool enable) argument
39 gm107_fan_pwm_get(struct nvkm_therm *therm, int line, u32 *divs, u32 *duty) argument
41 struct nvkm_device *device = therm->subdev.device;
48 gm107_fan_pwm_set(struct nvkm_therm *therm, int line, u32 divs, u32 duty) argument
50 struct nvkm_device *device = therm->subdev.device;
57 gm107_fan_pwm_clock(struct nvkm_therm *therm, int line) argument
59 return therm->subdev.device->crystal * 1000;
H A Dnouveau_nvkm_subdev_therm_gp100.c32 gp100_temp_get(struct nvkm_therm *therm) argument
34 struct nvkm_device *device = therm->subdev.device;
35 struct nvkm_subdev *subdev = &therm->subdev;
H A Dnouveau_nvkm_subdev_therm_gf100.c37 gf100_clkgate_init(struct nvkm_therm *therm, argument
40 struct nvkm_device *device = therm->subdev.device;
49 nvkm_trace(&therm->subdev, "{ 0x%06x, %d, 0x%08x }\n",
52 nvkm_trace(&therm->subdev, "\t0x%06x = 0x%08x\n",
H A Dnouveau_nvkm_subdev_therm_gt215.c34 gt215_therm_fan_sense(struct nvkm_therm *therm) argument
36 struct nvkm_device *device = therm->subdev.device;
45 gt215_therm_init(struct nvkm_therm *therm) argument
47 struct nvkm_device *device = therm->subdev.device;
48 struct dcb_gpio_func *tach = &therm->fan->tach;
50 g84_sensor_setup(therm);
H A Dgk104.h31 #include <subdev/therm.h>
/netbsd-current/sys/external/bsd/drm2/dist/drm/nouveau/
H A Dnouveau_hwmon.c60 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); local
63 therm->attr_get(therm, NVKM_THERM_ATTR_THRS_FAN_BOOST) * 1000);
72 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); local
78 therm->attr_set(therm, NVKM_THERM_ATTR_THRS_FAN_BOOST,
93 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); local
96 therm->attr_get(therm, NVKM_THERM_ATTR_THRS_FAN_BOOST_HYST) * 1000);
105 struct nvkm_therm *therm local
126 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); local
142 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); local
158 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); local
181 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); local
331 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); local
355 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); local
394 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); local
426 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); local
475 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); local
529 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); local
584 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); local
618 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); local
724 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); local
[all...]
/netbsd-current/sys/external/bsd/drm2/dist/drm/nouveau/include/nvkm/subdev/bios/
H A Dfan.h6 #include <subdev/bios/therm.h>
/netbsd-current/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/fb/
H A Dgk104.h30 #include <subdev/therm.h>
H A Dnouveau_nvkm_subdev_fb_gk110.c32 #include <subdev/therm.h>
/netbsd-current/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/bus/
H A Dnouveau_nvkm_subdev_bus_nv50.c32 #include <subdev/therm.h>
77 struct nvkm_therm *therm = device->therm; local
78 if (therm)
79 nvkm_subdev_intr(&therm->subdev);
H A Dnouveau_nvkm_subdev_bus_nv31.c33 #include <subdev/therm.h>
62 struct nvkm_therm *therm = device->therm; local
63 if (therm)
64 nvkm_subdev_intr(&therm->subdev);
/netbsd-current/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/bios/
H A Dnouveau_nvkm_subdev_bios_therm.c31 #include <subdev/bios/therm.h>
37 u32 therm = 0; local
41 therm = nvbios_rd32(bios, bit_P.offset + 12);
43 therm = nvbios_rd32(bios, bit_P.offset + 16);
51 if (!therm)
54 *ver = nvbios_rd08(bios, therm + 0);
55 *hdr = nvbios_rd08(bios, therm + 1);
56 *len = nvbios_rd08(bios, therm + 2);
57 *cnt = nvbios_rd08(bios, therm + 3);
58 return therm
65 u32 therm = therm_table(bios, ver, &hdr, len, &cnt); local
[all...]
/netbsd-current/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/gr/
H A Dgk104.h29 #include <subdev/therm.h>

Completed in 215 milliseconds

12