Lines Matching full:codes
369 u8 codes[61]; member
502 u8 codes[174]; in zilog_ir_format() local
510 if (c >= ARRAY_SIZE(codes) - 1) { in zilog_ir_format()
533 codes[c++] = (p << 4) | s; in zilog_ir_format()
553 codes[c++] = (p << 4) | s; in zilog_ir_format()
555 dev_dbg(&rcdev->dev, "generated %d codes\n", c); in zilog_ir_format()
558 * Are the last N codes (so pulse + space) repeating 3 times? in zilog_ir_format()
559 * if so we can shorten the codes list and use code 0xc0 to repeat in zilog_ir_format()
565 if (!memcmp(&codes[c - rep * 3], &codes[c - rep * 2], rep) && in zilog_ir_format()
566 !cmp_no_trail(&codes[c - rep], &codes[c - rep * 2], rep)) { in zilog_ir_format()
576 if (leading >= ARRAY_SIZE(code_block->codes) - 3 - rep) { in zilog_ir_format()
582 copy_codes(code_block->codes, codes, leading); in zilog_ir_format()
583 code_block->codes[leading] = 0x82; in zilog_ir_format()
584 copy_codes(code_block->codes + leading + 1, codes + leading, in zilog_ir_format()
587 code_block->codes[c++] = 0xc0; in zilog_ir_format()
589 if (c >= ARRAY_SIZE(code_block->codes) - 3) { in zilog_ir_format()
595 code_block->codes[0] = 0x82; in zilog_ir_format()
596 copy_codes(code_block->codes + 1, codes, c); in zilog_ir_format()
598 code_block->codes[c++] = 0xc4; in zilog_ir_format()
601 while (c < ARRAY_SIZE(code_block->codes)) in zilog_ir_format()
602 code_block->codes[c++] = 0x83; in zilog_ir_format()