Lines Matching full:timers
428 struct netxbig_led_timer *timers; in netxbig_leds_get_of_pdata() local
460 /* Timers (optional) */ in netxbig_leds_get_of_pdata()
461 ret = of_property_count_u32_elems(np, "timers"); in netxbig_leds_get_of_pdata()
469 timers = devm_kcalloc(dev, num_timers, sizeof(*timers), in netxbig_leds_get_of_pdata()
471 if (!timers) { in netxbig_leds_get_of_pdata()
478 of_property_read_u32_index(np, "timers", 3 * i, in netxbig_leds_get_of_pdata()
479 &timers[i].mode); in netxbig_leds_get_of_pdata()
480 if (timers[i].mode >= NETXBIG_LED_MODE_NUM) { in netxbig_leds_get_of_pdata()
484 of_property_read_u32_index(np, "timers", in netxbig_leds_get_of_pdata()
486 timers[i].delay_on = tmp; in netxbig_leds_get_of_pdata()
487 of_property_read_u32_index(np, "timers", in netxbig_leds_get_of_pdata()
489 timers[i].delay_off = tmp; in netxbig_leds_get_of_pdata()
491 pdata->timer = timers; in netxbig_leds_get_of_pdata()