Home
last modified time | relevance | path

Searched refs:pwm_enable (Results 1 – 25 of 30) sorted by relevance

12

/drivers/hwmon/
Df75375s.c117 u8 pwm_enable[2]; member
267 static bool duty_mode_enabled(u8 pwm_enable) in duty_mode_enabled() argument
269 switch (pwm_enable) { in duty_mode_enabled()
278 WARN(1, "Unexpected pwm_enable value %d\n", pwm_enable); in duty_mode_enabled()
283 static bool auto_mode_enabled(u8 pwm_enable) in auto_mode_enabled() argument
285 switch (pwm_enable) { in auto_mode_enabled()
294 WARN(1, "Unexpected pwm_enable value %d\n", pwm_enable); in auto_mode_enabled()
332 if (auto_mode_enabled(data->pwm_enable[nr])) in set_fan_target()
334 if (data->kind == f75387 && duty_mode_enabled(data->pwm_enable[nr])) in set_fan_target()
357 if (auto_mode_enabled(data->pwm_enable[nr]) || in set_pwm()
[all …]
Dgpio-fan.c53 bool pwm_enable; member
213 if (!fan_data->pwm_enable) { in set_pwm()
232 return sprintf(buf, "%d\n", fan_data->pwm_enable); in show_pwm_enable()
244 if (fan_data->pwm_enable == val) in set_pwm_enable()
249 fan_data->pwm_enable = val; in set_pwm_enable()
303 if (!fan_data->pwm_enable) { in set_rpm()
385 fan_data->pwm_enable = true; /* Enable manual fan speed control. */ in fan_ctrl_init()
Df71882fg.c299 u8 pwm_enable; member
1269 data->pwm_enable = f71882fg_read8(data, in f71882fg_update_device()
1807 if (data->pwm_enable & (1 << (2 * nr))) in show_pwm()
1834 data->pwm_enable = f71882fg_read8(data, F71882FG_REG_PWM_ENABLE); in store_pwm()
1835 if ((data->type == f8000 && ((data->pwm_enable >> 2 * nr) & 3) != 2) || in store_pwm()
1836 (data->type != f8000 && !((data->pwm_enable >> 2 * nr) & 2))) { in store_pwm()
1840 if (data->pwm_enable & (1 << (2 * nr))) { in store_pwm()
1899 switch ((data->pwm_enable >> 2 * nr) & 3) { in show_pwm_enable()
1934 data->pwm_enable = f71882fg_read8(data, F71882FG_REG_PWM_ENABLE); in store_pwm_enable()
1936 if (data->type == f8000 && ((data->pwm_enable >> 2 * nr) & 1)) { in store_pwm_enable()
[all …]
Dpc87427.c68 u8 pwm_enable[4]; /* register values */ member
252 data->pwm_enable[nr] = inb(iobase + PC87427_REG_PWM_ENABLE); in pc87427_readall_pwm()
574 data->pwm_enable[nr] &= ~PWM_ENABLE_MODE_MASK; in update_pwm_enable()
575 data->pwm_enable[nr] |= mode; in update_pwm_enable()
576 outb(data->pwm_enable[nr], iobase + PC87427_REG_PWM_ENABLE); in update_pwm_enable()
584 int pwm_enable; in show_pwm_enable() local
586 pwm_enable = pwm_enable_from_reg(data->pwm_enable[nr]); in show_pwm_enable()
587 if (pwm_enable < 0) in show_pwm_enable()
588 return pwm_enable; in show_pwm_enable()
589 return sprintf(buf, "%d\n", pwm_enable); in show_pwm_enable()
[all …]
Dpwm-fan.c59 ret = pwm_enable(ctx->pwm); in __set_pwm()
251 ret = pwm_enable(ctx->pwm); in pwm_fan_probe()
320 return pwm_enable(ctx->pwm); in pwm_fan_resume()
Dw83l786ng.c146 u8 pwm_enable[2]; /* 1->manual member
203 data->pwm_enable[i] = in w83l786ng_update_device()
484 show_pwm_reg(pwm_enable) in show_pwm_reg() argument
559 data->pwm_enable[nr] = val; in store_pwm_enable()
Dw83791d.c316 u8 pwm_enable[3]; /* pwm enable status for fan 1-3 member
772 return sprintf(buf, "%u\n", data->pwm_enable[nr] + 1); in show_pwmenable()
794 data->pwm_enable[nr] = val - 1; in store_pwmenable()
815 data->pwm_enable[nr] << val_shift; in store_pwmenable()
1582 data->pwm_enable[0] = (reg_array_tmp[0] >> 2) & 0x03; in w83791d_update_device()
1583 data->pwm_enable[1] = (reg_array_tmp[0] >> 4) & 0x03; in w83791d_update_device()
1584 data->pwm_enable[2] = (reg_array_tmp[1] >> 2) & 0x03; in w83791d_update_device()
Dnct6775.c122 enum pwm_enable { off, manual, thermal_cruise, speed_cruise, sf3, sf4 }; enum
738 static enum pwm_enable reg_to_pwm_enable(int pwm, int mode) in reg_to_pwm_enable()
745 static int pwm_enable_to_reg(enum pwm_enable mode) in pwm_enable_to_reg()
937 enum pwm_enable pwm_enable[NUM_FAN]; member
1404 data->pwm_enable[i] = reg_to_pwm_enable(data->pwm[0][i], in nct6775_update_pwm()
1408 data->pwm_enable[i] != speed_cruise) in nct6775_update_pwm()
1411 data->pwm_enable[i] == speed_cruise) { in nct6775_update_pwm()
1468 data->pwm_enable[i] == thermal_cruise) in nct6775_update_pwm_limits()
1471 data->pwm_enable[i] == speed_cruise) { in nct6775_update_pwm_limits()
2322 if (index == 0 && data->pwm_enable[nr] > manual) in show_pwm()
[all …]
Dw83793.c248 u8 pwm_enable; /* Register value, each Temp has 1 bit */ member
815 val = ((data->pwm_enable >> index) & 0x01) + 2; in show_sf_ctrl()
849 data->pwm_enable = in store_sf_ctrl()
852 data->pwm_enable |= 1 << index; in store_sf_ctrl()
854 data->pwm_enable &= ~(1 << index); in store_sf_ctrl()
856 data->pwm_enable); in store_sf_ctrl()
2047 data->pwm_enable = w83793_read_value(client, W83793_REG_PWM_ENABLE); in w83793_update_nonvolatile()
Dasc7621.c964 VAA(0x07, 0x01, 0x01), VAA(5, 3, 5), pwm_enable),
966 VAA(0x07, 0x01, 0x01), VAA(5, 3, 6), pwm_enable),
968 VAA(0x07, 0x01, 0x01), VAA(5, 3, 7), pwm_enable),
Dw83627ehf.c477 u8 pwm_enable[4]; /* 1->manual member
749 data->pwm_enable[i] = ((fanmodecfg >> 4) & 7) + 1; in nct6775_update_pwm()
773 data->pwm_enable[i] = ((pwmcfg >> W83627EHF_PWM_ENABLE_SHIFT[i]) in w83627ehf_update_pwm()
1386 show_pwm_reg(pwm_enable) in show_pwm_reg() argument
1469 data->pwm_enable[nr] = val; in store_pwm_enable()
2437 data->pwm_enable_orig[i] = data->pwm_enable[i]; in w83627ehf_probe()
Dw83627hf.c387 u8 pwm_enable[3]; /* 1 = manual member
1111 return sprintf(buf, "%d\n", data->pwm_enable[nr]); in show_pwm_enable()
1131 data->pwm_enable[nr] = val; in store_pwm_enable()
1918 data->pwm_enable[i] = in w83627hf_update_device()
/drivers/platform/x86/
Dcompal-laptop.c178 int pwm_enable; /* 0:full on, 1:set by pwm1, 2:control by motherboard */ member
411 return sprintf(buf, "%d\n", data->pwm_enable); in SIMPLE_MASKED_STORE_SHOW()
427 data->pwm_enable = val; in pwm_enable_store()
468 if (data->pwm_enable != 1) in pwm_store()
945 data->pwm_enable = 2; /* Keep motherboard in control for now */ in initialize_fan_control_data()
/drivers/regulator/
Dpwm-regulator.c90 return pwm_enable(drvdata->pwm); in pwm_regulator_enable()
146 ret = pwm_enable(drvdata->pwm); in pwm_regulator_set_voltage()
/drivers/clk/
Dclk-pwm.c32 return pwm_enable(clk_pwm->pwm); in clk_pwm_prepare()
/drivers/input/misc/
Dpwm-beeper.c40 pwm_enable(beeper->pwm); in __pwm_beeper_set()
Dmax8997_haptic.c191 error = pwm_enable(chip->pwm); in max8997_haptic_enable()
Dmax77693-haptic.c166 error = pwm_enable(haptic->pwm_dev); in max77693_haptic_enable()
/drivers/leds/
Dleds-pwm.c51 pwm_enable(led_dat->pwm); in __led_pwm_set()
/drivers/pwm/
Dcore.c504 int pwm_enable(struct pwm_device *pwm) in pwm_enable() function
523 EXPORT_SYMBOL_GPL(pwm_enable);
Dsysfs.c120 ret = pwm_enable(pwm); in enable_store()
/drivers/video/backlight/
Dlp8788_bl.c152 pwm_enable(bl->pwm); in lp8788_pwm_ctrl()
Dpwm_bl.c60 pwm_enable(pb->pwm); in pwm_backlight_power_on()
Dlp855x_bl.c253 pwm_enable(lp->pwm); in lp855x_pwm_ctrl()
Dlm3630a_bl.c170 pwm_enable(pchip->pwmd); in lm3630a_pwm_ctrl()

12