Lines Matching defs:period
18 * - period: from 0s to 1.6s
19 * - duty cycle: percentage of the period the led is on, from 0 to 100
52 /* period in ms */
95 * lp3944_dim_set_period() - Set the period for DIM status
99 * @period: period of a blink, that is a on/off cycle, expressed in ms.
101 static int lp3944_dim_set_period(struct i2c_client *client, u8 dim, u16 period)
114 /* Convert period to Prescaler value */
115 if (period > LP3944_PERIOD_MAX)
118 psc_value = (period * 255) / LP3944_PERIOD_MAX;
130 * @duty_cycle: percentage of a period during which a led is ON
228 u16 period;
245 period = (*delay_on) + (*delay_off);
247 /* duty_cycle is the percentage of period during which the led is ON */
248 duty_cycle = 100 * (*delay_on) / period;
263 err = lp3944_dim_set_period(led->client, LP3944_DIM0, period);