/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
D | temp.c | 27 nvkm_therm_temp_set_defaults(struct nvkm_therm *therm) in nvkm_therm_temp_set_defaults() argument 29 struct nvkm_therm_priv *priv = (void *)therm; in nvkm_therm_temp_set_defaults() 48 nvkm_therm_temp_safety_checks(struct nvkm_therm *therm) in nvkm_therm_temp_safety_checks() argument 50 struct nvkm_therm_priv *priv = (void *)therm; in nvkm_therm_temp_safety_checks() 62 nvkm_therm_sensor_set_threshold_state(struct nvkm_therm *therm, in nvkm_therm_sensor_set_threshold_state() argument 66 struct nvkm_therm_priv *priv = (void *)therm; in nvkm_therm_sensor_set_threshold_state() 72 nvkm_therm_sensor_get_threshold_state(struct nvkm_therm *therm, in nvkm_therm_sensor_get_threshold_state() argument 75 struct nvkm_therm_priv *priv = (void *)therm; in nvkm_therm_sensor_get_threshold_state() 87 nvkm_therm_sensor_event(struct nvkm_therm *therm, enum nvkm_therm_thrs thrs, in nvkm_therm_sensor_event() argument 90 struct nvkm_therm_priv *priv = (void *)therm; in nvkm_therm_sensor_event() [all …]
|
D | nv40.c | 36 nv40_sensor_style(struct nvkm_therm *therm) in nv40_sensor_style() argument 38 struct nvkm_device *device = nv_device(therm); in nv40_sensor_style() 62 nv40_sensor_setup(struct nvkm_therm *therm) in nv40_sensor_setup() argument 64 enum nv40_sensor_style style = nv40_sensor_style(therm); in nv40_sensor_setup() 68 nv_mask(therm, 0x15b8, 0x80000000, 0); in nv40_sensor_setup() 69 nv_wr32(therm, 0x15b0, 0x80003fff); in nv40_sensor_setup() 71 return nv_rd32(therm, 0x15b4) & 0x3fff; in nv40_sensor_setup() 73 nv_wr32(therm, 0x15b0, 0xff); in nv40_sensor_setup() 75 return nv_rd32(therm, 0x15b4) & 0xff; in nv40_sensor_setup() 81 nv40_temp_get(struct nvkm_therm *therm) in nv40_temp_get() argument [all …]
|
D | base.c | 29 nvkm_therm_update_trip(struct nvkm_therm *therm) in nvkm_therm_update_trip() argument 31 struct nvkm_therm_priv *priv = (void *)therm; in nvkm_therm_update_trip() 35 u8 temp = therm->temp_get(therm); in nvkm_therm_update_trip() 62 nvkm_therm_update_linear(struct nvkm_therm *therm) in nvkm_therm_update_linear() argument 64 struct nvkm_therm_priv *priv = (void *)therm; in nvkm_therm_update_linear() 67 u8 temp = therm->temp_get(therm); in nvkm_therm_update_linear() 85 nvkm_therm_update(struct nvkm_therm *therm, int mode) in nvkm_therm_update() argument 87 struct nvkm_timer *ptimer = nvkm_timer(therm); in nvkm_therm_update() 88 struct nvkm_therm_priv *priv = (void *)therm; in nvkm_therm_update() 102 duty = nvkm_therm_fan_get(therm); in nvkm_therm_update() [all …]
|
D | fan.c | 34 struct nvkm_therm *therm = fan->parent; in nvkm_fan_update() local 35 struct nvkm_therm_priv *priv = (void *)therm; in nvkm_fan_update() 48 nv_debug(therm, "FAN target: %d\n", target); in nvkm_fan_update() 53 duty = fan->get(therm); in nvkm_fan_update() 73 nv_debug(therm, "FAN update: %d\n", duty); 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 struct nvkm_therm_priv *priv = (void *)therm; in nvkm_therm_fan_get() 115 return priv->fan->get(therm); in nvkm_therm_fan_get() 119 nvkm_therm_fan_set(struct nvkm_therm *therm, bool immediate, int percent) in nvkm_therm_fan_set() argument [all …]
|
D | g84.c | 34 g84_temp_get(struct nvkm_therm *therm) in g84_temp_get() argument 36 struct nvkm_fuse *fuse = nvkm_fuse(therm); in g84_temp_get() 39 return nv_rd32(therm, 0x20400); in g84_temp_get() 45 g84_sensor_setup(struct nvkm_therm *therm) in g84_sensor_setup() argument 47 struct nvkm_fuse *fuse = nvkm_fuse(therm); in g84_sensor_setup() 51 nv_mask(therm, 0x20008, 0x80008000, 0x80000000); in g84_sensor_setup() 52 nv_mask(therm, 0x2000c, 0x80000003, 0x00000000); in g84_sensor_setup() 58 g84_therm_program_alarms(struct nvkm_therm *therm) in g84_therm_program_alarms() argument 60 struct nvkm_therm_priv *priv = (void *)therm; in g84_therm_program_alarms() 67 nv_wr32(therm, 0x20000, 0x000003ff); in g84_therm_program_alarms() [all …]
|
D | fanpwm.c | 39 nvkm_fanpwm_get(struct nvkm_therm *therm) in nvkm_fanpwm_get() argument 41 struct nvkm_therm_priv *tpriv = (void *)therm; in nvkm_fanpwm_get() 43 struct nvkm_gpio *gpio = nvkm_gpio(therm); in nvkm_fanpwm_get() 44 int card_type = nv_device(therm)->card_type; in nvkm_fanpwm_get() 48 ret = therm->pwm_get(therm, priv->func.line, &divs, &duty); in nvkm_fanpwm_get() 60 nvkm_fanpwm_set(struct nvkm_therm *therm, int percent) in nvkm_fanpwm_set() argument 62 struct nvkm_therm_priv *tpriv = (void *)therm; in nvkm_fanpwm_set() 64 int card_type = nv_device(therm)->card_type; in nvkm_fanpwm_set() 71 if (therm->pwm_clock) in nvkm_fanpwm_set() 72 divs = therm->pwm_clock(therm, priv->func.line); in nvkm_fanpwm_set() [all …]
|
D | nv50.c | 34 pwm_info(struct nvkm_therm *therm, int *line, int *ctrl, int *indx) in pwm_info() argument 51 nv_error(therm, "unknown pwm ctrl for gpio %d\n", *line); in pwm_info() 59 nv50_fan_pwm_ctrl(struct nvkm_therm *therm, int line, bool enable) in nv50_fan_pwm_ctrl() argument 62 int ctrl, id, ret = pwm_info(therm, &line, &ctrl, &id); in nv50_fan_pwm_ctrl() 64 nv_mask(therm, ctrl, 0x00010001 << line, data << line); in nv50_fan_pwm_ctrl() 69 nv50_fan_pwm_get(struct nvkm_therm *therm, int line, u32 *divs, u32 *duty) in nv50_fan_pwm_get() argument 71 int ctrl, id, ret = pwm_info(therm, &line, &ctrl, &id); in nv50_fan_pwm_get() 75 if (nv_rd32(therm, ctrl) & (1 << line)) { in nv50_fan_pwm_get() 76 *divs = nv_rd32(therm, 0x00e114 + (id * 8)); in nv50_fan_pwm_get() 77 *duty = nv_rd32(therm, 0x00e118 + (id * 8)); in nv50_fan_pwm_get() [all …]
|
D | gf110.c | 33 pwm_info(struct nvkm_therm *therm, int line) in pwm_info() argument 35 u32 gpio = nv_rd32(therm, 0x00d610 + (line * 0x04)); in pwm_info() 52 nv_error(therm, "GPIO %d unknown PWM: 0x%08x\n", line, gpio); in pwm_info() 57 gf110_fan_pwm_ctrl(struct nvkm_therm *therm, int line, bool enable) in gf110_fan_pwm_ctrl() argument 60 int indx = pwm_info(therm, line); in gf110_fan_pwm_ctrl() 64 nv_mask(therm, 0x00d610 + (line * 0x04), 0x000000c0, data); in gf110_fan_pwm_ctrl() 70 gf110_fan_pwm_get(struct nvkm_therm *therm, int line, u32 *divs, u32 *duty) in gf110_fan_pwm_get() argument 72 int indx = pwm_info(therm, line); in gf110_fan_pwm_get() 76 if (nv_rd32(therm, 0x00d610 + (line * 0x04)) & 0x00000040) { in gf110_fan_pwm_get() 77 *divs = nv_rd32(therm, 0x00e114 + (indx * 8)); in gf110_fan_pwm_get() [all …]
|
D | Kbuild | 1 nvkm-y += nvkm/subdev/therm/base.o 2 nvkm-y += nvkm/subdev/therm/fan.o 3 nvkm-y += nvkm/subdev/therm/fannil.o 4 nvkm-y += nvkm/subdev/therm/fanpwm.o 5 nvkm-y += nvkm/subdev/therm/fantog.o 6 nvkm-y += nvkm/subdev/therm/ic.o 7 nvkm-y += nvkm/subdev/therm/temp.o 8 nvkm-y += nvkm/subdev/therm/nv40.o 9 nvkm-y += nvkm/subdev/therm/nv50.o 10 nvkm-y += nvkm/subdev/therm/g84.o [all …]
|
D | fantog.c | 73 nvkm_fantog_get(struct nvkm_therm *therm) in nvkm_fantog_get() argument 75 struct nvkm_therm_priv *tpriv = (void *)therm; in nvkm_fantog_get() 81 nvkm_fantog_set(struct nvkm_therm *therm, int percent) in nvkm_fantog_set() argument 83 struct nvkm_therm_priv *tpriv = (void *)therm; in nvkm_fantog_set() 85 if (therm->pwm_ctrl) in nvkm_fantog_set() 86 therm->pwm_ctrl(therm, priv->func.line, false); in nvkm_fantog_set() 92 nvkm_fantog_create(struct nvkm_therm *therm, struct dcb_gpio_func *func) in nvkm_fantog_create() argument 94 struct nvkm_therm_priv *tpriv = (void *)therm; in nvkm_fantog_create() 98 if (therm->pwm_ctrl) { in nvkm_fantog_create() 99 ret = therm->pwm_ctrl(therm, func->line, false); in nvkm_fantog_create()
|
D | gm107.c | 33 gm107_fan_pwm_ctrl(struct nvkm_therm *therm, int line, bool enable) in gm107_fan_pwm_ctrl() argument 40 gm107_fan_pwm_get(struct nvkm_therm *therm, int line, u32 *divs, u32 *duty) in gm107_fan_pwm_get() argument 42 *divs = nv_rd32(therm, 0x10eb20) & 0x1fff; in gm107_fan_pwm_get() 43 *duty = nv_rd32(therm, 0x10eb24) & 0x1fff; in gm107_fan_pwm_get() 48 gm107_fan_pwm_set(struct nvkm_therm *therm, int line, u32 divs, u32 duty) in gm107_fan_pwm_set() argument 50 nv_mask(therm, 0x10eb10, 0x1fff, divs); /* keep the high bits */ in gm107_fan_pwm_set() 51 nv_wr32(therm, 0x10eb14, duty | 0x80000000); in gm107_fan_pwm_set() 56 gm107_fan_pwm_clock(struct nvkm_therm *therm, int line) in gm107_fan_pwm_clock() argument 58 return nv_device(therm)->crystal * 1000; in gm107_fan_pwm_clock()
|
D | ic.c | 83 nvkm_therm_ic_ctor(struct nvkm_therm *therm) in nvkm_therm_ic_ctor() argument 85 struct nvkm_therm_priv *priv = (void *)therm; in nvkm_therm_ic_ctor() 86 struct nvkm_bios *bios = nvkm_bios(therm); in nvkm_therm_ic_ctor() 87 struct nvkm_i2c *i2c = nvkm_i2c(therm); in nvkm_therm_ic_ctor() 97 board, probe_monitoring_device, therm); in nvkm_therm_ic_ctor() 109 board, probe_monitoring_device, therm); in nvkm_therm_ic_ctor() 118 nv_board_infos, probe_monitoring_device, therm); in nvkm_therm_ic_ctor()
|
D | fannil.c | 27 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 41 struct nvkm_therm_priv *tpriv = (void *)therm; in nvkm_fannil_create()
|
D | gt215.c | 34 gt215_therm_fan_sense(struct nvkm_therm *therm) in gt215_therm_fan_sense() argument 36 u32 tach = nv_rd32(therm, 0x00e728) & 0x0000ffff; in gt215_therm_fan_sense() 37 u32 ctrl = nv_rd32(therm, 0x00e720); in gt215_therm_fan_sense()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/ |
D | nouveau_hwmon.c | 43 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_show_temp() local 44 int temp = therm->temp_get(therm); in nouveau_hwmon_show_temp() 69 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_temp1_auto_point1_temp() local 72 therm->attr_get(therm, NVKM_THERM_ATTR_THRS_FAN_BOOST) * 1000); in nouveau_hwmon_temp1_auto_point1_temp() 81 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_set_temp1_auto_point1_temp() local 87 therm->attr_set(therm, NVKM_THERM_ATTR_THRS_FAN_BOOST, in nouveau_hwmon_set_temp1_auto_point1_temp() 102 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_temp1_auto_point1_temp_hyst() local 105 therm->attr_get(therm, NVKM_THERM_ATTR_THRS_FAN_BOOST_HYST) * 1000); in nouveau_hwmon_temp1_auto_point1_temp_hyst() 114 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_set_temp1_auto_point1_temp_hyst() local 120 therm->attr_set(therm, NVKM_THERM_ATTR_THRS_FAN_BOOST_HYST, in nouveau_hwmon_set_temp1_auto_point1_temp_hyst() [all …]
|
/linux-4.1.27/drivers/char/ |
D | ds1620.c | 199 static void ds1620_write_state(struct therm *therm) in ds1620_write_state() argument 202 ds1620_out(THERM_WRITE_TL, 9, therm->lo); in ds1620_write_state() 203 ds1620_out(THERM_WRITE_TH, 9, therm->hi); in ds1620_write_state() 207 static void ds1620_read_state(struct therm *therm) in ds1620_read_state() argument 209 therm->lo = cvt_9_to_int(ds1620_in(THERM_READ_TL, 9)); in ds1620_read_state() 210 therm->hi = cvt_9_to_int(ds1620_in(THERM_READ_TH, 9)); in ds1620_read_state() 238 struct therm therm; in ds1620_ioctl() local 240 struct therm __user *therm; in ds1620_ioctl() member 254 if (get_user(therm.hi, uarg.i)) in ds1620_ioctl() 256 therm.lo = therm.hi - 3; in ds1620_ioctl() [all …]
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | therm.c | 34 u16 therm = 0; in therm_table() local 38 therm = nv_ro16(bios, bit_P.offset + 12); in therm_table() 40 therm = nv_ro16(bios, bit_P.offset + 16); in therm_table() 48 if (!therm) in therm_table() 51 *ver = nv_ro08(bios, therm + 0); in therm_table() 52 *hdr = nv_ro08(bios, therm + 1); in therm_table() 53 *len = nv_ro08(bios, therm + 2); in therm_table() 54 *cnt = nv_ro08(bios, therm + 3); in therm_table() 55 return therm + nv_ro08(bios, therm + 1); in therm_table() 62 u16 therm = therm_table(bios, ver, &hdr, len, &cnt); in nvbios_therm_entry() local [all …]
|
D | Kbuild | 30 nvkm-y += nvkm/subdev/bios/therm.o
|
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/subdev/ |
D | therm.h | 53 struct nvkm_therm *therm = (p); \ 54 _nvkm_therm_dtor(nv_object(therm)); \ 57 struct nvkm_therm *therm = (p); \ 58 _nvkm_therm_init(nv_object(therm)); \ 61 struct nvkm_therm *therm = (p); \ 62 _nvkm_therm_init(nv_object(therm), (s)); \
|
/linux-4.1.27/arch/arm/include/asm/ |
D | therm.h | 23 struct therm { struct
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/ |
D | Kbuild | 17 include $(src)/nvkm/subdev/therm/Kbuild
|