/kernel/linux/linux-5.10/drivers/hwmon/ |
D | f75375s.c | 103 u8 pwm_enable[2]; member 252 static bool duty_mode_enabled(u8 pwm_enable) in duty_mode_enabled() argument 254 switch (pwm_enable) { in duty_mode_enabled() 263 WARN(1, "Unexpected pwm_enable value %d\n", pwm_enable); in duty_mode_enabled() 268 static bool auto_mode_enabled(u8 pwm_enable) in auto_mode_enabled() argument 270 switch (pwm_enable) { in auto_mode_enabled() 279 WARN(1, "Unexpected pwm_enable value %d\n", pwm_enable); in auto_mode_enabled() 317 if (auto_mode_enabled(data->pwm_enable[nr])) in set_fan_target() 319 if (data->kind == f75387 && duty_mode_enabled(data->pwm_enable[nr])) in set_fan_target() 342 if (auto_mode_enabled(data->pwm_enable[nr]) || in set_pwm() [all …]
|
D | pc87427.c | 60 u8 pwm_enable[4]; /* register values */ member 244 data->pwm_enable[nr] = inb(iobase + PC87427_REG_PWM_ENABLE); in pc87427_readall_pwm() 559 data->pwm_enable[nr] &= ~PWM_ENABLE_MODE_MASK; in update_pwm_enable() 560 data->pwm_enable[nr] |= mode; in update_pwm_enable() 561 outb(data->pwm_enable[nr], iobase + PC87427_REG_PWM_ENABLE); in update_pwm_enable() 569 int pwm_enable; in pwm_enable_show() local 571 pwm_enable = pwm_enable_from_reg(data->pwm_enable[nr]); in pwm_enable_show() 572 if (pwm_enable < 0) in pwm_enable_show() 573 return pwm_enable; in pwm_enable_show() 574 return sprintf(buf, "%d\n", pwm_enable); in pwm_enable_show() [all …]
|
D | gpio-fan.c | 43 bool pwm_enable; member 187 if (!fan_data->pwm_enable) { in pwm1_store() 206 return sprintf(buf, "%d\n", fan_data->pwm_enable); in pwm1_enable_show() 219 if (fan_data->pwm_enable == val) in pwm1_enable_store() 224 fan_data->pwm_enable = val; in pwm1_enable_store() 278 if (!fan_data->pwm_enable) { in set_rpm() 354 fan_data->pwm_enable = true; /* Enable manual fan speed control. */ in fan_ctrl_init()
|
D | f71882fg.c | 286 u8 pwm_enable; member 1256 data->pwm_enable = f71882fg_read8(data, in f71882fg_update_device() 1795 if (data->pwm_enable & (1 << (2 * nr))) in show_pwm() 1822 data->pwm_enable = f71882fg_read8(data, F71882FG_REG_PWM_ENABLE); in store_pwm() 1823 if ((data->type == f8000 && ((data->pwm_enable >> 2 * nr) & 3) != 2) || in store_pwm() 1824 (data->type != f8000 && !((data->pwm_enable >> 2 * nr) & 2))) { in store_pwm() 1828 if (data->pwm_enable & (1 << (2 * nr))) { in store_pwm() 1887 switch ((data->pwm_enable >> 2 * nr) & 3) { in show_pwm_enable() 1922 data->pwm_enable = f71882fg_read8(data, F71882FG_REG_PWM_ENABLE); in store_pwm_enable() 1924 if (data->type == f8000 && ((data->pwm_enable >> 2 * nr) & 1)) { in store_pwm_enable() [all …]
|
D | w83l786ng.c | 133 u8 pwm_enable[2]; /* 1->manual member 190 data->pwm_enable[i] = in w83l786ng_update_device() 471 show_pwm_reg(pwm_enable) in show_pwm_reg() argument 546 data->pwm_enable[nr] = val; in store_pwm_enable()
|
D | w83791d.c | 300 u8 pwm_enable[3]; /* pwm enable status for fan 1-3 member 755 return sprintf(buf, "%u\n", data->pwm_enable[nr] + 1); in show_pwmenable() 777 data->pwm_enable[nr] = val - 1; in store_pwmenable() 798 data->pwm_enable[nr] << val_shift; in store_pwmenable() 1540 data->pwm_enable[0] = (reg_array_tmp[0] >> 2) & 0x03; in w83791d_update_device() 1541 data->pwm_enable[1] = (reg_array_tmp[0] >> 4) & 0x03; in w83791d_update_device() 1542 data->pwm_enable[2] = (reg_array_tmp[1] >> 2) & 0x03; in w83791d_update_device()
|
D | w83627hf.c | 374 u8 pwm_enable[3]; /* 1 = manual member 1087 return sprintf(buf, "%d\n", data->pwm_enable[nr]); in pwm_enable_show() 1107 data->pwm_enable[nr] = val; in pwm_enable_store() 1116 static SENSOR_DEVICE_ATTR_RW(pwm1_enable, pwm_enable, 0); 1117 static SENSOR_DEVICE_ATTR_RW(pwm2_enable, pwm_enable, 1); 1118 static SENSOR_DEVICE_ATTR_RW(pwm3_enable, pwm_enable, 2); 1883 data->pwm_enable[i] = in w83627hf_update_device()
|
D | nct6775.c | 134 enum pwm_enable { off, manual, thermal_cruise, speed_cruise, sf3, sf4 }; enum 965 static enum pwm_enable reg_to_pwm_enable(int pwm, int mode) in reg_to_pwm_enable() 972 static int pwm_enable_to_reg(enum pwm_enable mode) in pwm_enable_to_reg() 1170 enum pwm_enable pwm_enable[NUM_FAN]; member 1648 data->pwm_enable[i] = reg_to_pwm_enable(data->pwm[0][i], in nct6775_update_pwm() 1652 data->pwm_enable[i] != speed_cruise) in nct6775_update_pwm() 1655 data->pwm_enable[i] == speed_cruise) { in nct6775_update_pwm() 1712 data->pwm_enable[i] == thermal_cruise) in nct6775_update_pwm_limits() 1715 data->pwm_enable[i] == speed_cruise) { in nct6775_update_pwm_limits() 2580 if (index == 0 && data->pwm_enable[nr] > manual) in show_pwm() [all …]
|
D | w83793.c | 234 u8 pwm_enable; /* Register value, each Temp has 1 bit */ member 800 val = ((data->pwm_enable >> index) & 0x01) + 2; in show_sf_ctrl() 834 data->pwm_enable = in store_sf_ctrl() 837 data->pwm_enable |= 1 << index; in store_sf_ctrl() 839 data->pwm_enable &= ~(1 << index); in store_sf_ctrl() 841 data->pwm_enable); in store_sf_ctrl() 2012 data->pwm_enable = w83793_read_value(client, W83793_REG_PWM_ENABLE); in w83793_update_nonvolatile()
|
D | w83627ehf.c | 346 u8 pwm_enable[4]; /* 1->manual member 557 data->pwm_enable[i] = ((pwmcfg >> W83627EHF_PWM_ENABLE_SHIFT[i]) in w83627ehf_update_pwm() 861 data->pwm_enable[channel] = val; in store_pwm_enable() 1532 *val = data->pwm_enable[channel]; in w83627ehf_do_read_pwm() 1535 *val = data->pwm_enable[channel]; in w83627ehf_do_read_pwm() 1947 data->pwm_enable_orig[i] = data->pwm_enable[i]; in w83627ehf_probe()
|
/kernel/linux/linux-5.10/include/linux/ |
D | f75375s.h | 18 u8 pwm_enable[2]; member
|
D | pwm.h | 355 static inline int pwm_enable(struct pwm_device *pwm) in pwm_enable() function 452 static inline int pwm_enable(struct pwm_device *pwm) in pwm_enable() function
|
/kernel/linux/linux-5.10/drivers/platform/x86/ |
D | compal-laptop.c | 165 int pwm_enable; /* 0:full on, 1:set by pwm1, 2:control by motherboard */ member 398 return sprintf(buf, "%d\n", data->pwm_enable); in SIMPLE_MASKED_STORE_SHOW() 414 data->pwm_enable = val; in pwm_enable_store() 455 if (data->pwm_enable != 1) in pwm_store() 926 data->pwm_enable = 2; /* Keep motherboard in control for now */ in initialize_fan_control_data()
|
/kernel/linux/linux-5.10/Documentation/hwmon/ |
D | amc6821.rst | 57 pwm1_auto_channels_temp ro 1 if pwm_enable==2, 3 if pwm_enable==3
|
/kernel/linux/linux-5.10/drivers/media/rc/ |
D | pwm-ir-tx.c | 71 pwm_enable(pwm); in pwm_ir_tx()
|
D | ir-rx51.c | 35 pwm_enable(ir_rx51->pwm); in ir_rx51_on()
|
/kernel/linux/linux-5.10/arch/arm/mach-iop32x/ |
D | glantank.c | 166 .pwm_enable = { 0, 0 },
|
D | n2100.c | 198 .pwm_enable = { 0, 0 },
|
/kernel/linux/linux-5.10/drivers/clk/ |
D | clk-pwm.c | 29 return pwm_enable(clk_pwm->pwm); in clk_pwm_prepare()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
D | intel_bios.h | 215 u8 pwm_enable; member
|
/kernel/linux/linux-5.10/Documentation/driver-api/ |
D | pwm.rst | 52 The pwm_config(), pwm_enable() and pwm_disable() functions are just wrappers 156 PWM core does not enforce any locking to pwm_enable(), pwm_disable() and
|
/kernel/linux/linux-5.10/drivers/bus/ |
D | ts-nbus.c | 320 pwm_enable(pwm); in ts_nbus_probe()
|
/kernel/linux/linux-5.10/drivers/video/backlight/ |
D | lp8788_bl.c | 154 pwm_enable(bl->pwm); in lp8788_pwm_ctrl()
|
/kernel/linux/linux-5.10/drivers/input/misc/ |
D | max8997_haptic.c | 177 error = pwm_enable(chip->pwm); in max8997_haptic_enable()
|
D | max77693-haptic.c | 165 error = pwm_enable(haptic->pwm_dev); in max77693_haptic_enable()
|