/drivers/hwmon/ |
D | f75375s.c | 117 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 …]
|
D | gpio-fan.c | 53 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()
|
D | f71882fg.c | 299 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 …]
|
D | pc87427.c | 68 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 …]
|
D | pwm-fan.c | 59 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()
|
D | w83l786ng.c | 146 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()
|
D | w83791d.c | 316 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()
|
D | nct6775.c | 122 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 …]
|
D | w83793.c | 248 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()
|
D | asc7621.c | 964 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),
|
D | w83627ehf.c | 477 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()
|
D | w83627hf.c | 387 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/ |
D | compal-laptop.c | 178 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/ |
D | pwm-regulator.c | 90 return pwm_enable(drvdata->pwm); in pwm_regulator_enable() 146 ret = pwm_enable(drvdata->pwm); in pwm_regulator_set_voltage()
|
/drivers/clk/ |
D | clk-pwm.c | 32 return pwm_enable(clk_pwm->pwm); in clk_pwm_prepare()
|
/drivers/input/misc/ |
D | pwm-beeper.c | 40 pwm_enable(beeper->pwm); in __pwm_beeper_set()
|
D | max8997_haptic.c | 191 error = pwm_enable(chip->pwm); in max8997_haptic_enable()
|
D | max77693-haptic.c | 166 error = pwm_enable(haptic->pwm_dev); in max77693_haptic_enable()
|
/drivers/leds/ |
D | leds-pwm.c | 51 pwm_enable(led_dat->pwm); in __led_pwm_set()
|
/drivers/pwm/ |
D | core.c | 504 int pwm_enable(struct pwm_device *pwm) in pwm_enable() function 523 EXPORT_SYMBOL_GPL(pwm_enable);
|
D | sysfs.c | 120 ret = pwm_enable(pwm); in enable_store()
|
/drivers/video/backlight/ |
D | lp8788_bl.c | 152 pwm_enable(bl->pwm); in lp8788_pwm_ctrl()
|
D | pwm_bl.c | 60 pwm_enable(pb->pwm); in pwm_backlight_power_on()
|
D | lp855x_bl.c | 253 pwm_enable(lp->pwm); in lp855x_pwm_ctrl()
|
D | lm3630a_bl.c | 170 pwm_enable(pchip->pwmd); in lm3630a_pwm_ctrl()
|