Lines Matching refs:npatterns
30 u32 npatterns; member
45 if (data->next == data->patterns + data->npatterns - 1) in pattern_trig_update_patterns()
124 if (!data->npatterns) in pattern_trig_start_pattern()
129 data->npatterns, data->repeat); in pattern_trig_start_pattern()
133 if (data->npatterns < 2) in pattern_trig_start_pattern()
206 if (!data->npatterns || (data->is_hw_pattern ^ hw_pattern)) in pattern_trig_show_patterns()
209 for (i = 0; i < data->npatterns; i++) { in pattern_trig_show_patterns()
228 while (offset < count - 1 && data->npatterns < MAX_PATTERNS) { in pattern_trig_store_patterns_string()
231 &data->patterns[data->npatterns].brightness, in pattern_trig_store_patterns_string()
232 &data->patterns[data->npatterns].delta_t, &cr); in pattern_trig_store_patterns_string()
235 data->patterns[data->npatterns].brightness > data->led_cdev->max_brightness) { in pattern_trig_store_patterns_string()
236 data->npatterns = 0; in pattern_trig_store_patterns_string()
241 data->npatterns++; in pattern_trig_store_patterns_string()
253 data->patterns[data->npatterns].brightness = buf[i]; in pattern_trig_store_patterns_int()
254 data->patterns[data->npatterns].delta_t = buf[i + 1]; in pattern_trig_store_patterns_int()
255 data->npatterns++; in pattern_trig_store_patterns_int()
276 data->npatterns = 0; in pattern_trig_store_patterns()
287 data->npatterns = 0; in pattern_trig_store_patterns()