/Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
D | fanpwm.c | 67 if (fan->base.bios.pwm_freq) { in nvkm_fanpwm_set() 71 divs /= fan->base.bios.pwm_freq; in nvkm_fanpwm_set()
|
D | fan.c | 186 therm->fan->bios.pwm_freq = 0; in nvkm_therm_fan_set_defaults()
|
/Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | therm.c | 187 if (!fan->pwm_freq) in nvbios_therm_fan_parse() 188 fan->pwm_freq = value; in nvbios_therm_fan_parse()
|
D | fan.c | 90 fan->pwm_freq = nvbios_rd32(bios, data + 0x0b) & 0xffffff; in nvbios_fan_parse()
|
D | volt.c | 110 info->pwm_freq = nvbios_rd32(bios, volt + 0x5) / 1000; in nvbios_volt_parse()
|
/Linux-v5.4/drivers/hwmon/ |
D | w83627hf.c | 378 u8 pwm_freq[3]; /* Register value */ member 1127 pwm_freq_from_reg_627hf(data->pwm_freq[nr])); in pwm_freq_show() 1130 pwm_freq_from_reg(data->pwm_freq[nr])); in pwm_freq_show() 1150 data->pwm_freq[nr] = pwm_freq_to_reg_627hf(val); in pwm_freq_store() 1152 (data->pwm_freq[nr] << (nr*4)) | in pwm_freq_store() 1156 data->pwm_freq[nr] = pwm_freq_to_reg(val); in pwm_freq_store() 1158 data->pwm_freq[nr]); in pwm_freq_store() 1165 static SENSOR_DEVICE_ATTR_RW(pwm1_freq, pwm_freq, 0); 1166 static SENSOR_DEVICE_ATTR_RW(pwm2_freq, pwm_freq, 1); 1167 static SENSOR_DEVICE_ATTR_RW(pwm3_freq, pwm_freq, 2); [all …]
|
D | lm85.c | 310 u8 pwm_freq[3]; /* Register encoding */ member 510 data->pwm_freq[i] = val % data->freq_map_size; in lm85_update_device() 788 data->pwm_freq[nr]); in pwm_freq_show() 817 data->pwm_freq[nr] = FREQ_TO_REG(data->freq_map, in pwm_freq_store() 821 | data->pwm_freq[nr]); in pwm_freq_store() 833 static SENSOR_DEVICE_ATTR_RW(pwm1_freq, pwm_freq, 0); 836 static SENSOR_DEVICE_ATTR_RW(pwm2_freq, pwm_freq, 1); 839 static SENSOR_DEVICE_ATTR_RW(pwm3_freq, pwm_freq, 2); 1203 | data->pwm_freq[nr]); in temp_auto_temp_min_store() 1241 | data->pwm_freq[nr]); in temp_auto_temp_max_store()
|
D | dme1737.c | 235 u8 pwm_freq[6]; member 712 data->pwm_freq[ix] = dme1737_read(data, in dme1737_update_device() 993 TEMP_RANGE_FROM_REG(data->pwm_freq[ix]); in show_zone() 1052 data->pwm_freq[ix] = TEMP_RANGE_TO_REG(val - temp, reg); in set_zone() 1054 data->pwm_freq[ix]); in set_zone() 1214 res = PWM_FREQ_FROM_REG(data->pwm_freq[ix]); in show_pwm() 1281 data->pwm_freq[ix] = PWM_FREQ_TO_REG(val, dme1737_read(data, in set_pwm() 1284 data->pwm_freq[ix]); in set_pwm()
|
D | f71805f.c | 182 u8 pwm_freq[3]; member 355 data->pwm_freq[nr] = f71805f_read8(data, in f71805f_update_device() 675 return sprintf(buf, "%lu\n", pwm_freq_from_reg(data->pwm_freq[nr])); in show_pwm_freq() 778 data->pwm_freq[nr] = pwm_freq_to_reg(val); in set_pwm_freq() 779 f71805f_write8(data, F71805F_REG_PWM_FREQ(nr), data->pwm_freq[nr]); in set_pwm_freq()
|
D | asc7621.c | 971 PWRITE(pwm1_freq, 0, PRI_LOW, 0x5f, 0, 0x0f, 0, pwm_freq), 972 PWRITE(pwm2_freq, 1, PRI_LOW, 0x60, 0, 0x0f, 0, pwm_freq), 973 PWRITE(pwm3_freq, 2, PRI_LOW, 0x61, 0, 0x0f, 0, pwm_freq),
|
D | lm93.c | 551 enum pwm_freq { LM93_PWM_MAP_HI_FREQ, LM93_PWM_MAP_LO_FREQ }; enum 576 static int LM93_PWM_FROM_REG(u8 reg, enum pwm_freq freq) in LM93_PWM_FROM_REG() 582 static u8 LM93_PWM_TO_REG(int pwm, enum pwm_freq freq) in LM93_PWM_TO_REG() 1915 static SENSOR_DEVICE_ATTR_RW(pwm1_freq, pwm_freq, 0); 1916 static SENSOR_DEVICE_ATTR_RW(pwm2_freq, pwm_freq, 1);
|
D | it87.c | 654 static const unsigned int pwm_freq[8] = { variable 1170 freq = pwm_freq[index] / (has_newer_autopwm(data) ? 256 : 128); in show_pwm_freq() 1425 if (val > (pwm_freq[i] + pwm_freq[i + 1]) / 2) in set_pwm_freq()
|
/Linux-v5.4/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/ |
D | volt.h | 22 u32 pwm_freq; member
|
D | therm.h | 47 u32 pwm_freq; member
|
/Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/subdev/volt/ |
D | gk104.c | 59 div = 27648000 / bios->pwm_freq; in gk104_volt_set()
|