Home
last modified time | relevance | path

Searched refs:therm (Results 1 – 25 of 45) sorted by relevance

12

/linux/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
A Dbase.c33 return therm->func->temp_get(therm); in nvkm_therm_temp_get()
43 u8 temp = therm->func->temp_get(therm); in nvkm_therm_update_trip()
73 u8 temp = therm->func->temp_get(therm); in nvkm_therm_compute_linear_duty()
203 therm->func->temp_get(therm) < 0) in nvkm_therm_fan_mode()
268 therm->func->program_alarms(therm); in nvkm_therm_attr_set()
272 therm->func->program_alarms(therm); in nvkm_therm_attr_set()
311 therm->func->clkgate_enable(therm); in nvkm_therm_clkgate_enable()
340 therm->func->intr(therm); in nvkm_therm_intr()
349 therm->func->fini(therm); in nvkm_therm_fini()
355 therm->suspend = therm->mode; in nvkm_therm_fini()
[all …]
A Dtemp.c89 int temperature = therm->func->temp_get(therm); in nvkm_therm_sensor_event()
112 therm->emergency.downclock(therm, active); in nvkm_therm_sensor_event()
115 if (therm->emergency.pause) in nvkm_therm_sensor_event()
116 therm->emergency.pause(therm, active); in nvkm_therm_sensor_event()
143 int temp = therm->func->temp_get(therm); in nvkm_therm_threshold_hyst_polling()
164 struct nvkm_therm *therm = in alarm_timer_callback() local
188 if (therm->func->temp_get(therm) >= 0) in alarm_timer_callback()
197 nvkm_debug(&therm->subdev, in nvkm_therm_program_alarms_polling()
214 therm->func->program_alarms(therm); in nvkm_therm_sensor_init()
232 if (therm->func->temp_get(therm) < 0) in nvkm_therm_sensor_preinit()
[all …]
A Dfan.c53 duty = fan->get(therm); in nvkm_fan_update()
74 ret = fan->set(therm, duty); in nvkm_fan_update()
114 return therm->fan->get(therm); in nvkm_therm_fan_get()
132 if (therm->func->fan_sense) in nvkm_therm_fan_sense()
133 return therm->func->fan_sense(therm); in nvkm_therm_fan_sense()
186 therm->fan->bios.pwm_freq = 0; in nvkm_therm_fan_set_defaults()
203 if (therm->fan->bios.min_duty > therm->fan->bios.max_duty) in nvkm_therm_fan_safety_checks()
204 therm->fan->bios.min_duty = therm->fan->bios.max_duty; in nvkm_therm_fan_safety_checks()
256 therm->fan->percent = nvkm_therm_fan_get(therm); in nvkm_therm_fan_ctor()
260 &therm->fan->tach); in nvkm_therm_fan_ctor()
[all …]
A Dg84.c30 g84_temp_get(struct nvkm_therm *therm) in g84_temp_get() argument
41 g84_sensor_setup(struct nvkm_therm *therm) in g84_sensor_setup() argument
57 struct nvkm_subdev *subdev = &therm->subdev; in g84_therm_program_alarms()
118 cur = therm->func->temp_get(therm); in g84_therm_threshold_hyst_emulation()
139 g84_therm_intr(struct nvkm_therm *therm) in g84_therm_intr() argument
141 struct nvkm_subdev *subdev = &therm->subdev; in g84_therm_intr()
194 g84_therm_fini(struct nvkm_therm *therm) in g84_therm_fini() argument
207 g84_therm_init(struct nvkm_therm *therm) in g84_therm_init() argument
209 g84_sensor_setup(therm); in g84_therm_init()
229 struct nvkm_therm *therm; in g84_therm_new() local
[all …]
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()
47 ret = therm->func->pwm_get(therm, fan->func.line, &divs, &duty); in nvkm_fanpwm_get()
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->func->pwm_clock(therm, fan->func.line); in nvkm_fanpwm_set()
78 ret = therm->func->pwm_set(therm, fan->func.line, divs, duty); in nvkm_fanpwm_set()
80 ret = therm->func->pwm_ctrl(therm, fan->func.line, true); in nvkm_fanpwm_set()
97 therm->func->pwm_get(therm, func->line, &divs, &duty) == -ENODEV) in nvkm_fanpwm_create()
[all …]
A DKbuild2 nvkm-y += nvkm/subdev/therm/base.o
3 nvkm-y += nvkm/subdev/therm/fan.o
4 nvkm-y += nvkm/subdev/therm/fannil.o
5 nvkm-y += nvkm/subdev/therm/fanpwm.o
6 nvkm-y += nvkm/subdev/therm/fantog.o
7 nvkm-y += nvkm/subdev/therm/ic.o
8 nvkm-y += nvkm/subdev/therm/temp.o
9 nvkm-y += nvkm/subdev/therm/nv40.o
10 nvkm-y += nvkm/subdev/therm/nv50.o
11 nvkm-y += nvkm/subdev/therm/g84.o
[all …]
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()
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()
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()
93 int indx = pwm_info(therm, line); in gf119_fan_pwm_set()
110 int indx = pwm_info(therm, line); in gf119_fan_pwm_clock()
120 gf119_therm_init(struct nvkm_therm *therm) in gf119_therm_init() argument
124 g84_sensor_setup(therm); in gf119_therm_init()
[all …]
A Dnv50.c30 struct nvkm_subdev *subdev = &therm->subdev; in pwm_info()
57 struct nvkm_device *device = therm->subdev.device; in nv50_fan_pwm_ctrl()
68 struct nvkm_device *device = therm->subdev.device; in nv50_fan_pwm_get()
85 struct nvkm_device *device = therm->subdev.device; in nv50_fan_pwm_set()
98 struct nvkm_device *device = therm->subdev.device; in nv50_fan_pwm_clock()
121 nv50_sensor_setup(struct nvkm_therm *therm) in nv50_sensor_setup() argument
123 struct nvkm_device *device = therm->subdev.device; in nv50_sensor_setup()
129 nv50_temp_get(struct nvkm_therm *therm) in nv50_temp_get() argument
131 struct nvkm_device *device = therm->subdev.device; in nv50_temp_get()
154 nv50_therm_init(struct nvkm_therm *therm) in nv50_therm_init() argument
[all …]
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
73 nv40_temp_get(struct nvkm_therm *therm) in nv40_temp_get() argument
108 struct nvkm_subdev *subdev = &therm->subdev; in nv40_fan_pwm_ctrl()
123 struct nvkm_subdev *subdev = &therm->subdev; in nv40_fan_pwm_get()
151 struct nvkm_subdev *subdev = &therm->subdev; in nv40_fan_pwm_set()
168 nv40_therm_intr(struct nvkm_therm *therm) in nv40_therm_intr() argument
170 struct nvkm_subdev *subdev = &therm->subdev; in nv40_therm_intr()
183 nv40_therm_init(struct nvkm_therm *therm) in nv40_therm_init() argument
[all …]
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()
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()
115 struct gk104_therm *therm = kzalloc(sizeof(*therm), GFP_KERNEL); in gk104_therm_new_() local
117 if (!therm) in gk104_therm_new_()
121 *ptherm = &therm->base; in gk104_therm_new_()
122 therm->clkgate_order = clkgate_order; in gk104_therm_new_()
[all …]
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()
96 if (therm->func->pwm_ctrl) { in nvkm_fantog_create()
97 ret = therm->func->pwm_ctrl(therm, func->line, false); in nvkm_fantog_create()
[all …]
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->ic) in nvkm_therm_ic_ctor()
[all …]
A Dgm107.c27 gm107_fan_pwm_ctrl(struct nvkm_therm *therm, int line, bool enable) in gm107_fan_pwm_ctrl() argument
34 gm107_fan_pwm_get(struct nvkm_therm *therm, int line, u32 *divs, u32 *duty) in gm107_fan_pwm_get() argument
36 struct nvkm_device *device = therm->subdev.device; in gm107_fan_pwm_get()
43 gm107_fan_pwm_set(struct nvkm_therm *therm, int line, u32 divs, u32 duty) in gm107_fan_pwm_set() argument
45 struct nvkm_device *device = therm->subdev.device; in gm107_fan_pwm_set()
52 gm107_fan_pwm_clock(struct nvkm_therm *therm, int line) in gm107_fan_pwm_clock() argument
54 return therm->subdev.device->crystal * 1000; in gm107_fan_pwm_clock()
A Dgt215.c29 gt215_therm_fan_sense(struct nvkm_therm *therm) in gt215_therm_fan_sense() argument
31 struct nvkm_device *device = therm->subdev.device; in gt215_therm_fan_sense()
40 gt215_therm_init(struct nvkm_therm *therm) in gt215_therm_init() argument
42 struct nvkm_device *device = therm->subdev.device; in gt215_therm_init()
43 struct dcb_gpio_func *tach = &therm->fan->tach; in gt215_therm_init()
45 g84_sensor_setup(therm); in gt215_therm_init()
A Dfannil.c27 nvkm_fannil_get(struct nvkm_therm *therm) in nvkm_fannil_get() argument
33 nvkm_fannil_set(struct nvkm_therm *therm, int percent) in nvkm_fannil_set() argument
39 nvkm_fannil_create(struct nvkm_therm *therm) in nvkm_fannil_create() argument
44 therm->fan = priv; in nvkm_fannil_create()
A Dgf100.c32 gf100_clkgate_init(struct nvkm_therm *therm, in gf100_clkgate_init() argument
35 struct nvkm_device *device = therm->subdev.device; in gf100_clkgate_init()
44 nvkm_trace(&therm->subdev, "{ 0x%06x, %d, 0x%08x }\n", in gf100_clkgate_init()
47 nvkm_trace(&therm->subdev, "\t0x%06x = 0x%08x\n", in gf100_clkgate_init()
A Dgp100.c27 gp100_temp_get(struct nvkm_therm *therm) in gp100_temp_get() argument
29 struct nvkm_device *device = therm->subdev.device; in gp100_temp_get()
30 struct nvkm_subdev *subdev = &therm->subdev; in gp100_temp_get()
/linux/drivers/gpu/drm/nouveau/
A Dnouveau_hwmon.c328 if (!therm || !therm->attr_get || nvkm_therm_temp_get(therm) < 0) in nouveau_temp_is_visible()
352 if (!therm || !therm->attr_get || !therm->fan_get || in nouveau_pwm_is_visible()
353 therm->fan_get(therm) < 0) in nouveau_pwm_is_visible()
391 if (!therm || !therm->attr_get || nvkm_therm_fan_sense(therm) < 0) in nouveau_fan_is_visible()
424 if (!therm || !therm->attr_get) in nouveau_temp_read()
526 if (!therm || !therm->attr_get || !therm->fan_get) in nouveau_pwm_read()
536 *val = therm->fan_get(therm); in nouveau_pwm_read()
581 if (!therm || !therm->attr_set) in nouveau_temp_write()
615 if (!therm || !therm->attr_set) in nouveau_pwm_write()
737 if (therm && therm->attr_get && therm->attr_set) { in nouveau_hwmon_init()
[all …]
/linux/drivers/char/
A Dds1620.c200 static void ds1620_write_state(struct therm *therm) in ds1620_write_state() argument
208 static void ds1620_read_state(struct therm *therm) in ds1620_read_state() argument
239 struct therm therm; in ds1620_ioctl() local
241 struct therm __user *therm; in ds1620_ioctl() member
257 therm.lo = therm.hi - 3; in ds1620_ioctl()
259 if (copy_from_user(&therm, uarg.therm, sizeof(therm))) in ds1620_ioctl()
263 therm.lo <<= 1; in ds1620_ioctl()
264 therm.hi <<= 1; in ds1620_ioctl()
273 therm.lo >>= 1; in ds1620_ioctl()
274 therm.hi >>= 1; in ds1620_ioctl()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
A Dtherm.c32 u32 therm = 0; in therm_table() local
36 therm = nvbios_rd32(bios, bit_P.offset + 12); in therm_table()
38 therm = nvbios_rd32(bios, bit_P.offset + 16); in therm_table()
46 if (!therm) in therm_table()
49 *ver = nvbios_rd08(bios, therm + 0); in therm_table()
50 *hdr = nvbios_rd08(bios, therm + 1); in therm_table()
51 *len = nvbios_rd08(bios, therm + 2); in therm_table()
52 *cnt = nvbios_rd08(bios, therm + 3); in therm_table()
53 return therm + nvbios_rd08(bios, therm + 1); in therm_table()
61 if (therm && idx < cnt) in nvbios_therm_entry()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/engine/device/
A Dbase.c486 .therm = { 0x00000001, nv40_therm_new },
512 .therm = { 0x00000001, nv40_therm_new },
538 .therm = { 0x00000001, nv40_therm_new },
564 .therm = { 0x00000001, nv40_therm_new },
934 .therm = { 0x00000001, g84_therm_new },
966 .therm = { 0x00000001, g84_therm_new },
998 .therm = { 0x00000001, g84_therm_new },
1030 .therm = { 0x00000001, g84_therm_new },
1062 .therm = { 0x00000001, g84_therm_new },
1094 .therm = { 0x00000001, g84_therm_new },
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bus/
A Dnv31.c57 struct nvkm_therm *therm = device->therm; in nv31_bus_intr() local
58 if (therm) in nv31_bus_intr()
59 nvkm_subdev_intr(&therm->subdev); in nv31_bus_intr()
A Dnv50.c72 struct nvkm_therm *therm = device->therm; in nv50_bus_intr() local
73 if (therm) in nv50_bus_intr()
74 nvkm_subdev_intr(&therm->subdev); in nv50_bus_intr()
/linux/arch/arm64/boot/dts/qcom/
A Dsm8250-mtp.dts502 xo-therm@4c {
508 skin-therm@4d {
524 xo-therm@0 {
531 skin-therm@1 {
547 conn-therm@4f {
557 conn-therm@0 {
568 camera-flash-therm@0 {
575 skin-msm-therm@1 {
591 camera-flash-therm@4d {
597 skin-msm-therm@4e {
/linux/drivers/hwmon/
A Dstts751.c92 int therm; member
430 return sysfs_emit(buf, "%d\n", priv->therm); in therm_show()
456 priv->hyst = temp - (priv->therm - priv->hyst); in therm_store()
457 priv->therm = temp; in therm_store()
488 temp = clamp_val(temp, -64000, priv->therm); in hyst_store()
491 temp = priv->therm - temp; in hyst_store()
729 ret = stts751_read_reg8(priv, &priv->therm, STTS751_REG_TLIM); in stts751_read_chip_config()
736 priv->hyst = priv->therm - tmp; in stts751_read_chip_config()
746 static SENSOR_DEVICE_ATTR_RW(temp1_crit, therm, 0);

Completed in 32 milliseconds

12