Lines Matching full:codes
406 u8 codes[61]; member
539 u8 codes[174]; in zilog_ir_format() local
547 if (c >= ARRAY_SIZE(codes) - 1) { in zilog_ir_format()
570 codes[c++] = (p << 4) | s; in zilog_ir_format()
590 codes[c++] = (p << 4) | s; in zilog_ir_format()
592 dev_dbg(&rcdev->dev, "generated %d codes\n", c); in zilog_ir_format()
595 * Are the last N codes (so pulse + space) repeating 3 times? in zilog_ir_format()
596 * if so we can shorten the codes list and use code 0xc0 to repeat in zilog_ir_format()
602 if (!memcmp(&codes[c - rep * 3], &codes[c - rep * 2], rep) && in zilog_ir_format()
603 !cmp_no_trail(&codes[c - rep], &codes[c - rep * 2], rep)) { in zilog_ir_format()
613 if (leading >= ARRAY_SIZE(code_block->codes) - 3 - rep) { in zilog_ir_format()
619 copy_codes(code_block->codes, codes, leading); in zilog_ir_format()
620 code_block->codes[leading] = 0x82; in zilog_ir_format()
621 copy_codes(code_block->codes + leading + 1, codes + leading, in zilog_ir_format()
624 code_block->codes[c++] = 0xc0; in zilog_ir_format()
626 if (c >= ARRAY_SIZE(code_block->codes) - 3) { in zilog_ir_format()
632 code_block->codes[0] = 0x82; in zilog_ir_format()
633 copy_codes(code_block->codes + 1, codes, c); in zilog_ir_format()
635 code_block->codes[c++] = 0xc4; in zilog_ir_format()
638 while (c < ARRAY_SIZE(code_block->codes)) in zilog_ir_format()
639 code_block->codes[c++] = 0x83; in zilog_ir_format()