Lines Matching refs:pattern
140 struct led_pattern *pattern, in el15203000_pattern_set_S() argument
146 pattern[0].delta_t != 4000 || pattern[0].brightness != 0 || in el15203000_pattern_set_S()
147 pattern[1].delta_t != 4000 || pattern[1].brightness != 1) in el15203000_pattern_set_S()
156 static bool is_cascade(const struct led_pattern *pattern, u32 len, in is_cascade() argument
170 if (pattern[i].delta_t != EL_PATTERN_DELAY_MSEC || in is_cascade()
171 pattern[i].brightness != t) in is_cascade()
180 static bool is_bounce(const struct led_pattern *pattern, u32 len, bool inv) in is_bounce() argument
185 return is_cascade(pattern, EL_PATTERN_HALF_LEN, inv, false) && in is_bounce()
186 is_cascade(pattern + EL_PATTERN_HALF_LEN, in is_bounce()
191 struct led_pattern *pattern, in el15203000_pattern_set_P() argument
200 if (is_cascade(pattern, len, false, false)) { in el15203000_pattern_set_P()
205 } else if (is_cascade(pattern, len, true, false)) { in el15203000_pattern_set_P()
210 } else if (is_bounce(pattern, len, false)) { in el15203000_pattern_set_P()
215 } else if (is_bounce(pattern, len, true)) { in el15203000_pattern_set_P()