Home
last modified time | relevance | path

Searched refs:pwm_freq (Results 1 – 15 of 15) sorted by relevance

/linux-6.3-rc2/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
A Dfanpwm.c67 if (fan->base.bios.pwm_freq) { in nvkm_fanpwm_set()
71 divs /= fan->base.bios.pwm_freq; in nvkm_fanpwm_set()
A Dfan.c186 therm->fan->bios.pwm_freq = 0; in nvkm_therm_fan_set_defaults()
/linux-6.3-rc2/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
A Dtherm.c187 if (!fan->pwm_freq) in nvbios_therm_fan_parse()
188 fan->pwm_freq = value; in nvbios_therm_fan_parse()
A Dfan.c90 fan->pwm_freq = nvbios_rd32(bios, data + 0x0b) & 0xffffff; in nvbios_fan_parse()
A Dvolt.c110 info->pwm_freq = nvbios_rd32(bios, volt + 0x5) / 1000; in nvbios_volt_parse()
/linux-6.3-rc2/drivers/hwmon/
A Dw83627hf.c378 u8 pwm_freq[3]; /* Register value */ member
523 data->pwm_freq[0] = tmp & 0x07; in w83627hf_update_device()
524 data->pwm_freq[1] = (tmp >> 4) & 0x07; in w83627hf_update_device()
527 data->pwm_freq[i - 1] = in w83627hf_update_device()
1523 pwm_freq_from_reg_627hf(data->pwm_freq[nr])); in pwm_freq_show()
1526 pwm_freq_from_reg(data->pwm_freq[nr])); in pwm_freq_show()
1546 data->pwm_freq[nr] = pwm_freq_to_reg_627hf(val); in pwm_freq_store()
1548 (data->pwm_freq[nr] << (nr*4)) | in pwm_freq_store()
1552 data->pwm_freq[nr] = pwm_freq_to_reg(val); in pwm_freq_store()
1554 data->pwm_freq[nr]); in pwm_freq_store()
[all …]
A Dlm85.c310 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()
A Ddme1737.c235 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()
A Df71805f.c182 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()
A Dasc7621.c971 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),
A Dlm93.c551 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);
A Dit87.c691 static const unsigned int pwm_freq[8] = { variable
1207 freq = pwm_freq[index] / (has_newer_autopwm(data) ? 256 : 128); in show_pwm_freq()
1462 if (val > (pwm_freq[i] + pwm_freq[i + 1]) / 2) in set_pwm_freq()
/linux-6.3-rc2/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/
A Dvolt.h22 u32 pwm_freq; member
A Dtherm.h47 u32 pwm_freq; member
/linux-6.3-rc2/drivers/gpu/drm/nouveau/nvkm/subdev/volt/
A Dgk104.c59 div = 27648000 / bios->pwm_freq; in gk104_volt_set()

Completed in 55 milliseconds