/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() 283 static bool auto_mode_enabled(u8 pwm_enable) in auto_mode_enabled() argument 285 switch (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() 358 !duty_mode_enabled(data->pwm_enable[nr])) in set_pwm() 373 return sprintf(buf, "%d\n", data->pwm_enable[nr]); in show_pwm_enable() [all …]
|
D | gpio-fan.c | 49 bool pwm_enable; member 209 if (!fan_data->pwm_enable) { in set_pwm() 228 return sprintf(buf, "%d\n", fan_data->pwm_enable); in show_pwm_enable() 240 if (fan_data->pwm_enable == val) in set_pwm_enable() 245 fan_data->pwm_enable = val; in set_pwm_enable() 299 if (!fan_data->pwm_enable) { in set_rpm() 384 fan_data->pwm_enable = true; /* Enable manual fan speed control. */ in fan_ctrl_init()
|
D | f71882fg.c | 270 u8 pwm_enable; member 1211 data->pwm_enable = f71882fg_read8(data, in f71882fg_update_device() 1732 if (data->pwm_enable & (1 << (2 * nr))) in show_pwm() 1759 data->pwm_enable = f71882fg_read8(data, F71882FG_REG_PWM_ENABLE); in store_pwm() 1760 if ((data->type == f8000 && ((data->pwm_enable >> 2 * nr) & 3) != 2) || in store_pwm() 1761 (data->type != f8000 && !((data->pwm_enable >> 2 * nr) & 2))) { in store_pwm() 1765 if (data->pwm_enable & (1 << (2 * nr))) { in store_pwm() 1824 switch ((data->pwm_enable >> 2 * nr) & 3) { in show_pwm_enable() 1859 data->pwm_enable = f71882fg_read8(data, F71882FG_REG_PWM_ENABLE); in store_pwm_enable() 1861 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 244 data->pwm_enable[nr] = inb(iobase + PC87427_REG_PWM_ENABLE); in pc87427_readall_pwm() 566 data->pwm_enable[nr] &= ~PWM_ENABLE_MODE_MASK; in update_pwm_enable() 567 data->pwm_enable[nr] |= mode; in update_pwm_enable() 568 outb(data->pwm_enable[nr], iobase + PC87427_REG_PWM_ENABLE); in update_pwm_enable() 576 int pwm_enable; in show_pwm_enable() local 578 pwm_enable = pwm_enable_from_reg(data->pwm_enable[nr]); in show_pwm_enable() 579 if (pwm_enable < 0) in show_pwm_enable() 580 return pwm_enable; in show_pwm_enable() 581 return sprintf(buf, "%d\n", pwm_enable); in show_pwm_enable() [all …]
|
D | w83l786ng.c | 146 u8 pwm_enable[2]; /* 1->manual member 439 show_pwm_reg(pwm_enable) in show_pwm_reg() argument 512 data->pwm_enable[nr] = val; in store_pwm_enable() 778 data->pwm_enable[i] = in w83l786ng_update_device()
|
D | w83791d.c | 319 u8 pwm_enable[3]; /* pwm enable status for fan 1-3 member 775 return sprintf(buf, "%u\n", data->pwm_enable[nr] + 1); in show_pwmenable() 797 data->pwm_enable[nr] = val - 1; in store_pwmenable() 818 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 | w83793.c | 248 u8 pwm_enable; /* Register value, each Temp has 1 bit */ member 812 val = ((data->pwm_enable >> index) & 0x01) + 2; in show_sf_ctrl() 846 data->pwm_enable = in store_sf_ctrl() 849 data->pwm_enable |= 1 << index; in store_sf_ctrl() 851 data->pwm_enable &= ~(1 << index); in store_sf_ctrl() 853 data->pwm_enable); in store_sf_ctrl() 2043 data->pwm_enable = w83793_read_value(client, W83793_REG_PWM_ENABLE); in w83793_update_nonvolatile()
|
D | nct6775.c | 99 enum pwm_enable { off, manual, thermal_cruise, speed_cruise, sf3, sf4 }; enum 452 static enum pwm_enable reg_to_pwm_enable(int pwm, int mode) in reg_to_pwm_enable() 459 static int pwm_enable_to_reg(enum pwm_enable mode) in pwm_enable_to_reg() 637 enum pwm_enable pwm_enable[5]; member 964 data->pwm_enable[i] = reg_to_pwm_enable(data->pwm[0][i], in nct6775_update_pwm() 968 data->pwm_enable[i] != speed_cruise) in nct6775_update_pwm() 971 data->pwm_enable[i] == speed_cruise) { in nct6775_update_pwm() 1024 data->pwm_enable[i] == thermal_cruise) in nct6775_update_pwm_limits() 1027 data->pwm_enable[i] == speed_cruise) { in nct6775_update_pwm_limits() 1951 if (index == 0 && data->pwm_enable[nr] > manual) in show_pwm() [all …]
|
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() 2453 data->pwm_enable_orig[i] = data->pwm_enable[i]; in w83627ehf_probe()
|
D | w83627hf.c | 381 u8 pwm_enable[3]; /* 1 = manual member 1103 return sprintf(buf, "%d\n", data->pwm_enable[nr]); in show_pwm_enable() 1123 data->pwm_enable[nr] = val; in store_pwm_enable() 1884 data->pwm_enable[i] = in w83627hf_update_device()
|
/drivers/input/misc/ |
D | pwm-beeper.c | 59 ret = pwm_enable(beeper->pwm); in pwm_beeper_event() 164 pwm_enable(beeper->pwm); in pwm_beeper_resume()
|
D | max8997_haptic.c | 189 pwm_enable(chip->pwm); in max8997_haptic_enable()
|
/drivers/platform/x86/ |
D | compal-laptop.c | 177 int pwm_enable; /* 0:full on, 1:set by pwm1, 2:control by moterboard */ member 419 return sprintf(buf, "%d\n", data->pwm_enable); in pwm_enable_show() 434 data->pwm_enable = val; in pwm_enable_store() 474 if (data->pwm_enable != 1) in pwm_store() 911 data->pwm_enable = 2; /* Keep motherboard in control for now */ in initialize_fan_control_data()
|
/drivers/leds/ |
D | leds-pwm.c | 52 pwm_enable(led_dat->pwm); in __led_pwm_set()
|
/drivers/pwm/ |
D | core.c | 438 int pwm_enable(struct pwm_device *pwm) in pwm_enable() function 445 EXPORT_SYMBOL_GPL(pwm_enable);
|
/drivers/video/backlight/ |
D | pwm_bl.c | 68 pwm_enable(pb->pwm); in pwm_backlight_update_status()
|
D | lp8788_bl.c | 152 pwm_enable(bl->pwm); in lp8788_pwm_ctrl()
|
D | lp855x_bl.c | 240 pwm_enable(lp->pwm); in lp855x_pwm_ctrl()
|
/drivers/video/ |
D | ssd1307fb.c | 323 pwm_enable(par->pwm); in ssd1307fb_probe()
|
D | w100fb.h | 770 u32 pwm_enable : 1; member
|
D | w100fb.c | 1268 w100_pwr_state.pwrmgt_cntl.f.pwm_enable = 0x0; in w100_pwm_setup()
|