Lines Matching refs:ptn
349 static inline bool _is_pc_overflow(struct lp55xx_predef_pattern *ptn) in _is_pc_overflow() argument
351 return ptn->size_r >= LP5562_PROGRAM_LENGTH || in _is_pc_overflow()
352 ptn->size_g >= LP5562_PROGRAM_LENGTH || in _is_pc_overflow()
353 ptn->size_b >= LP5562_PROGRAM_LENGTH; in _is_pc_overflow()
358 struct lp55xx_predef_pattern *ptn; in lp5562_run_predef_led_pattern() local
366 ptn = chip->pdata->patterns + (mode - 1); in lp5562_run_predef_led_pattern()
367 if (!ptn || _is_pc_overflow(ptn)) { in lp5562_run_predef_led_pattern()
393 ptn->r, ptn->size_r); in lp5562_run_predef_led_pattern()
395 ptn->g, ptn->size_g); in lp5562_run_predef_led_pattern()
397 ptn->b, ptn->size_b); in lp5562_run_predef_led_pattern()
411 struct lp55xx_predef_pattern *ptn = chip->pdata->patterns; in lp5562_store_pattern() local
420 if (mode > num_patterns || !ptn) in lp5562_store_pattern()