Home
last modified time | relevance | path

Searched refs:pwm_mode (Results 1 – 12 of 12) sorted by relevance

/Linux-v5.15/drivers/iio/light/
Dlm3533-als.c717 static int lm3533_als_set_input_mode(struct lm3533_als *als, bool pwm_mode) in lm3533_als_set_input_mode() argument
723 if (pwm_mode) in lm3533_als_set_input_mode()
731 pwm_mode); in lm3533_als_set_input_mode()
761 ret = lm3533_als_set_input_mode(als, pdata->pwm_mode); in lm3533_als_setup()
766 if (!pdata->pwm_mode) { in lm3533_als_setup()
/Linux-v5.15/include/linux/mfd/
Dlm3533.h41 unsigned pwm_mode:1; /* PWM input mode (default analog) */ member
/Linux-v5.15/drivers/gpu/drm/amd/pm/
Damdgpu_pm.c2362 u32 pwm_mode = 0; in amdgpu_hwmon_get_pwm1_enable() local
2382 pwm_mode = amdgpu_dpm_get_fan_control_mode(adev); in amdgpu_hwmon_get_pwm1_enable()
2387 return sysfs_emit(buf, "%u\n", pwm_mode); in amdgpu_hwmon_get_pwm1_enable()
2449 u32 pwm_mode; in amdgpu_hwmon_set_pwm1() local
2462 pwm_mode = amdgpu_dpm_get_fan_control_mode(adev); in amdgpu_hwmon_set_pwm1()
2463 if (pwm_mode != AMD_FAN_CTRL_MANUAL) { in amdgpu_hwmon_set_pwm1()
2661 u32 pwm_mode; in amdgpu_hwmon_set_fan1_target() local
2674 pwm_mode = amdgpu_dpm_get_fan_control_mode(adev); in amdgpu_hwmon_set_fan1_target()
2676 if (pwm_mode != AMD_FAN_CTRL_MANUAL) { in amdgpu_hwmon_set_fan1_target()
2708 u32 pwm_mode = 0; in amdgpu_hwmon_get_fan1_enable() local
[all …]
/Linux-v5.15/drivers/hwmon/
Dw83l786ng.c130 u8 pwm_mode[2]; /* 0->DC variable voltage member
187 data->pwm_mode[i] = in w83l786ng_update_device()
470 show_pwm_reg(pwm_mode)
492 data->pwm_mode[nr] = val; in show_pwm_reg()
Df75375s.c102 u8 pwm_mode[2]; member
483 data->pwm_mode[nr] = val; in set_pwm_mode()
501 return sprintf(buf, "%d\n", data->pwm_mode[nr]); in show_pwm_mode()
768 data->pwm_mode[nr] = 1; in f75375_init()
786 data->pwm_mode[nr] = 1; in f75375_init()
Dw83627ehf.c345 u8 pwm_mode[4]; /* 0->DC variable voltage, 1->PWM variable duty cycle */ member
553 data->pwm_mode[i] = in w83627ehf_update_pwm()
655 (data->pwm_mode[i] == 1 ? 0x7f : 0xff); in w83627ehf_update_device()
826 data->pwm_mode[channel] = val; in store_pwm_mode()
1003 data->pwm_mode[nr])); \
1019 val = step_time_to_reg(val, data->pwm_mode[nr]); \
Dnct7802.c822 static SENSOR_DEVICE_ATTR_RO(pwm1_mode, pwm_mode, 0);
823 static SENSOR_DEVICE_ATTR_RO(pwm2_mode, pwm_mode, 1);
824 static SENSOR_DEVICE_ATTR_RO(pwm3_mode, pwm_mode, 2);
Dtc654.c425 static SENSOR_DEVICE_ATTR_RW(pwm1_mode, pwm_mode, 0);
Dthmc50.c268 static SENSOR_DEVICE_ATTR_RO(pwm1_mode, pwm_mode, 0);
Dnct6775.c1167 u8 pwm_mode[NUM_FAN]; /* 0->DC variable voltage, member
1637 data->pwm_mode[i] = !duty_is_dc; in nct6775_update_pwm()
2528 return sprintf(buf, "%d\n", data->pwm_mode[sattr->index]); in show_pwm_mode()
2557 data->pwm_mode[nr] = val; in store_pwm_mode()
3029 SENSOR_TEMPLATE(pwm_mode, "pwm%d_mode", S_IWUSR | S_IRUGO, show_pwm_mode,
3102 data->pwm_mode[nr])); in show_fan_time()
3120 val = step_time_to_reg(val, data->pwm_mode[nr]); in store_fan_time()
Dit87.c1096 static int pwm_mode(const struct it87_data *data, int nr) in pwm_mode() function
1142 return sprintf(buf, "%d\n", pwm_mode(data, nr)); in show_pwm_enable()
/Linux-v5.15/drivers/gpu/drm/radeon/
Dradeon_pm.c572 u32 pwm_mode = 0; in radeon_hwmon_get_pwm1_enable() local
575 pwm_mode = rdev->asic->dpm.fan_ctrl_get_mode(rdev); in radeon_hwmon_get_pwm1_enable()
578 return sprintf(buf, "%i\n", pwm_mode == FDO_PWM_MODE_STATIC ? 1 : 2); in radeon_hwmon_get_pwm1_enable()