Lines Matching defs:on
8 * based on the pwm-twl-led.c driver
139 unsigned int on, off;
158 * turn on at the same time, while still maintaining the
161 on = channel * PCA9685_COUNTER_RANGE / PCA9685_MAXCHAN;
163 on = 0;
165 off = (on + duty) % PCA9685_COUNTER_RANGE;
168 pca9685_write_reg(chip, REG_ON_L(channel), on & 0xff);
169 pca9685_write_reg(chip, REG_ON_H(channel), (on >> 8) & 0xf);
178 unsigned int off = 0, on = 0, val = 0;
191 pca9685_read_reg(chip, LED_N_ON_H(channel), &on);
192 if (on & LED_FULL) {
207 on = ((on & 0xf) << 8) | (val & 0xff);
208 return (off - on) & (PCA9685_COUNTER_RANGE - 1);
307 * The PCA9685 has a bit for turning the PWM output full off or on. Some