Home
last modified time | relevance | path

Searched refs:pwm_max (Results 1 - 11 of 11) sorted by relevance

/kernel/linux/linux-5.10/drivers/staging/greybus/
H A Dpwm.c19 u8 pwm_max; /* max pwm number */ member
37 pwmc->pwm_max = response.count; in gb_pwm_count_operation()
48 if (which > pwmc->pwm_max) in gb_pwm_activate_operation()
73 if (which > pwmc->pwm_max) in gb_pwm_deactivate_operation()
98 if (which > pwmc->pwm_max) in gb_pwm_config_operation()
125 if (which > pwmc->pwm_max) in gb_pwm_set_polarity_operation()
151 if (which > pwmc->pwm_max) in gb_pwm_enable_operation()
176 if (which > pwmc->pwm_max) in gb_pwm_disable_operation()
285 pwm->npwm = pwmc->pwm_max + 1; in gb_pwm_probe()
/kernel/linux/linux-6.6/drivers/staging/greybus/
H A Dpwm.c19 u8 pwm_max; /* max pwm number */ member
38 pwmc->pwm_max = response.count; in gb_pwm_count_operation()
49 if (which > pwmc->pwm_max) in gb_pwm_activate_operation()
74 if (which > pwmc->pwm_max) in gb_pwm_deactivate_operation()
99 if (which > pwmc->pwm_max) in gb_pwm_config_operation()
126 if (which > pwmc->pwm_max) in gb_pwm_set_polarity_operation()
152 if (which > pwmc->pwm_max) in gb_pwm_enable_operation()
177 if (which > pwmc->pwm_max) in gb_pwm_disable_operation()
301 chip->npwm = pwmc->pwm_max + 1; in gb_pwm_probe()
/kernel/linux/linux-6.6/drivers/hwmon/
H A Demc2305.c30 #define EMC2305_PWM_DUTY2STATE(duty, max_state, pwm_max) \
31 DIV_ROUND_CLOSEST((duty) * (max_state), (pwm_max))
32 #define EMC2305_PWM_STATE2DUTY(state, max_state, pwm_max) \
33 DIV_ROUND_CLOSEST((state) * (pwm_max), (max_state))
H A Dadt7470.c165 u8 pwm_max[ADT7470_PWM_COUNT]; member
410 data->pwm_max[i] = val; in adt7470_update_limits()
865 return sprintf(buf, "%d\n", data->pwm_max[attr->index]); in pwm_max_show()
883 data->pwm_max[attr->index] = temp; in pwm_max_store()
1047 static SENSOR_DEVICE_ATTR_RW(pwm1_auto_point2_pwm, pwm_max, 0);
1048 static SENSOR_DEVICE_ATTR_RW(pwm2_auto_point2_pwm, pwm_max, 1);
1049 static SENSOR_DEVICE_ATTR_RW(pwm3_auto_point2_pwm, pwm_max, 2);
1050 static SENSOR_DEVICE_ATTR_RW(pwm4_auto_point2_pwm, pwm_max, 3);
H A Dadt7462.c216 u8 pwm_max; /* only one per chip */ member
766 data->pwm_max = i2c_smbus_read_byte_data(client, ADT7462_REG_PWM_MAX); in adt7462_update_device()
1117 return sprintf(buf, "%d\n", data->pwm_max); in pwm_max_show()
1134 data->pwm_max = temp; in pwm_max_store()
1555 static SENSOR_DEVICE_ATTR_RW(pwm1_auto_point2_pwm, pwm_max, 0);
1556 static SENSOR_DEVICE_ATTR_RW(pwm2_auto_point2_pwm, pwm_max, 1);
1557 static SENSOR_DEVICE_ATTR_RW(pwm3_auto_point2_pwm, pwm_max, 2);
1558 static SENSOR_DEVICE_ATTR_RW(pwm4_auto_point2_pwm, pwm_max, 3);
H A Dnct6775-core.c3295 if (nr == 19 && data->REG_PWM[3] == NULL) /* pwm_max */ in nct6775_pwm_is_visible()
3323 SENSOR_TEMPLATE_2(pwm_max, "pwm%d_max", 0644, show_pwm, store_pwm, 0, 3);
/kernel/linux/linux-5.10/drivers/hwmon/
H A Dadt7470.c161 u8 pwm_max[ADT7470_PWM_COUNT]; member
377 data->pwm_max[i] = i2c_smbus_read_byte_data(client, in adt7470_update_device()
766 return sprintf(buf, "%d\n", data->pwm_max[attr->index]); in pwm_max_show()
784 data->pwm_max[attr->index] = temp; in pwm_max_store()
1061 static SENSOR_DEVICE_ATTR_RW(pwm1_auto_point2_pwm, pwm_max, 0);
1062 static SENSOR_DEVICE_ATTR_RW(pwm2_auto_point2_pwm, pwm_max, 1);
1063 static SENSOR_DEVICE_ATTR_RW(pwm3_auto_point2_pwm, pwm_max, 2);
1064 static SENSOR_DEVICE_ATTR_RW(pwm4_auto_point2_pwm, pwm_max, 3);
H A Dadt7462.c216 u8 pwm_max; /* only one per chip */ member
766 data->pwm_max = i2c_smbus_read_byte_data(client, ADT7462_REG_PWM_MAX); in adt7462_update_device()
1117 return sprintf(buf, "%d\n", data->pwm_max); in pwm_max_show()
1134 data->pwm_max = temp; in pwm_max_store()
1555 static SENSOR_DEVICE_ATTR_RW(pwm1_auto_point2_pwm, pwm_max, 0);
1556 static SENSOR_DEVICE_ATTR_RW(pwm2_auto_point2_pwm, pwm_max, 1);
1557 static SENSOR_DEVICE_ATTR_RW(pwm3_auto_point2_pwm, pwm_max, 2);
1558 static SENSOR_DEVICE_ATTR_RW(pwm4_auto_point2_pwm, pwm_max, 3);
H A Dnct6775.c1111 * [3]=pwm_max, [4]=pwm_step,
1179 * [3]=pwm_max, [4]=pwm_step,
3271 if (nr == 19 && data->REG_PWM[3] == NULL) /* pwm_max */ in nct6775_pwm_is_visible()
3303 SENSOR_TEMPLATE_2(pwm_max, "pwm%d_max", S_IWUSR | S_IRUGO, show_pwm, store_pwm,
/kernel/linux/linux-5.10/drivers/scsi/ufs/
H A Dufs-exynos.c339 const unsigned long pwm_max = 9 * 1000 * 1000; in exynos_ufs_calc_pwm_clk_div() local
347 if (_clk >= pwm_min && _clk <= pwm_max) { in exynos_ufs_calc_pwm_clk_div()
/kernel/linux/linux-6.6/drivers/ufs/host/
H A Dufs-exynos.c495 const unsigned long pwm_max = 9 * 1000 * 1000; in exynos_ufs_calc_pwm_clk_div() local
503 if (_clk >= pwm_min && _clk <= pwm_max) { in exynos_ufs_calc_pwm_clk_div()

Completed in 27 milliseconds