Lines Matching full:timers
427 struct netxbig_led_timer *timers; in netxbig_leds_get_of_pdata() local
459 /* Timers (optional) */ in netxbig_leds_get_of_pdata()
460 ret = of_property_count_u32_elems(np, "timers"); in netxbig_leds_get_of_pdata()
468 timers = devm_kcalloc(dev, num_timers, sizeof(*timers), in netxbig_leds_get_of_pdata()
470 if (!timers) { in netxbig_leds_get_of_pdata()
477 of_property_read_u32_index(np, "timers", 3 * i, in netxbig_leds_get_of_pdata()
478 &timers[i].mode); in netxbig_leds_get_of_pdata()
479 if (timers[i].mode >= NETXBIG_LED_MODE_NUM) { in netxbig_leds_get_of_pdata()
483 of_property_read_u32_index(np, "timers", in netxbig_leds_get_of_pdata()
485 timers[i].delay_on = tmp; in netxbig_leds_get_of_pdata()
486 of_property_read_u32_index(np, "timers", in netxbig_leds_get_of_pdata()
488 timers[i].delay_off = tmp; in netxbig_leds_get_of_pdata()
490 pdata->timer = timers; in netxbig_leds_get_of_pdata()