/kernel/linux/linux-5.10/drivers/regulator/ |
H A D | rpi-panel-attiny-regulator.c | 28 #define REG_PWM 0x86 macro 33 .max_register = REG_PWM, 71 regmap_write(rdev->regmap, REG_PWM, 0); in attiny_lcd_power_disable() 137 ret = regmap_write(regmap, REG_PWM, brightness); in attiny_update_status() 151 ret = regmap_read(regmap, REG_PWM, &brightness); in attiny_get_brightness()
|
/kernel/linux/linux-6.6/drivers/regulator/ |
H A D | rpi-panel-attiny-regulator.c | 27 #define REG_PWM 0x86 macro 128 regmap_write(rdev->regmap, REG_PWM, 0); in attiny_lcd_power_disable() 195 ret = regmap_write(regmap, REG_PWM, brightness); in attiny_update_status() 328 regmap_write(regmap, REG_PWM, 0); in attiny_i2c_probe()
|
/kernel/linux/linux-6.6/drivers/hwmon/ |
H A D | nct6775-core.c | 1411 for (j = 0; j < ARRAY_SIZE(data->REG_PWM); j++) { in nct6775_update_pwm() 1412 if (data->REG_PWM[j] && data->REG_PWM[j][i]) { in nct6775_update_pwm() 1413 err = nct6775_read_value(data, data->REG_PWM[j][i], ®); in nct6775_update_pwm() 2570 err = nct6775_write_value(data, data->REG_PWM[index][nr], val); in store_pwm() 2707 err = nct6775_write_value(data, data->REG_PWM[0][nr], 255); in store_pwm_enable() 3295 if (nr == 19 && data->REG_PWM[3] == NULL) /* pwm_max */ in nct6775_pwm_is_visible() 3297 if (nr == 20 && data->REG_PWM[4] == NULL) /* pwm_step */ in nct6775_pwm_is_visible() 3299 if (nr == 21 && data->REG_PWM[6] == NULL) /* weight_duty_base */ in nct6775_pwm_is_visible() 3560 data->REG_PWM[ in nct6775_probe() [all...] |
H A D | nct7802.c | 47 #define REG_PWM(x) (0x60 + (x)) macro 844 static SENSOR_DEVICE_ATTR_RW(pwm1, pwm, REG_PWM(0)); 845 static SENSOR_DEVICE_ATTR_RW(pwm2, pwm, REG_PWM(1)); 846 static SENSOR_DEVICE_ATTR_RW(pwm3, pwm, REG_PWM(2)); 1048 (reg >= REG_PWM(0) && reg <= REG_PWM(2)); in nct7802_regmap_is_volatile()
|
H A D | nct6775.h | 63 const u16 *REG_PWM[7]; /* [0]=pwm, [1]=pwm_start, [2]=pwm_floor, member
|
/kernel/linux/linux-5.10/drivers/hwmon/ |
H A D | nct6775.c | 1110 const u16 *REG_PWM[7]; /* [0]=pwm, [1]=pwm_start, [2]=pwm_floor, member 1640 for (j = 0; j < ARRAY_SIZE(data->REG_PWM); j++) { in nct6775_update_pwm() 1641 if (data->REG_PWM[j] && data->REG_PWM[j][i]) { in nct6775_update_pwm() 1644 data->REG_PWM[j][i]); in nct6775_update_pwm() 2610 nct6775_write_value(data, data->REG_PWM[index][nr], val); in store_pwm() 2725 nct6775_write_value(data, data->REG_PWM[0][nr], 255); in store_pwm_enable() 3271 if (nr == 19 && data->REG_PWM[3] == NULL) /* pwm_max */ in nct6775_pwm_is_visible() 3273 if (nr == 20 && data->REG_PWM[4] == NULL) /* pwm_step */ in nct6775_pwm_is_visible() 3275 if (nr == 21 && data->REG_PWM[ in nct6775_pwm_is_visible() [all...] |
H A D | nct7802.c | 47 #define REG_PWM(x) (0x60 + (x)) macro 827 static SENSOR_DEVICE_ATTR_RW(pwm1, pwm, REG_PWM(0)); 828 static SENSOR_DEVICE_ATTR_RW(pwm2, pwm, REG_PWM(1)); 829 static SENSOR_DEVICE_ATTR_RW(pwm3, pwm, REG_PWM(2)); 1031 (reg >= REG_PWM(0) && reg <= REG_PWM(2)); in nct7802_regmap_is_volatile()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/panel/ |
H A D | panel-raspberrypi-touchscreen.c | 69 REG_PWM, enumerator 255 rpi_touchscreen_i2c_write(ts, REG_PWM, 0); in rpi_touchscreen_disable() 306 rpi_touchscreen_i2c_write(ts, REG_PWM, 255); in rpi_touchscreen_enable()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/panel/ |
H A D | panel-raspberrypi-touchscreen.c | 68 REG_PWM, enumerator 254 rpi_touchscreen_i2c_write(ts, REG_PWM, 0); in rpi_touchscreen_disable() 305 rpi_touchscreen_i2c_write(ts, REG_PWM, 255); in rpi_touchscreen_enable()
|