Searched refs:program_len (Results 1 – 4 of 4) sorted by relevance
/hardware/google/apf/ |
D | apf_disassembler.c | 55 static void print_jump_target(uint32_t target, uint32_t program_len) { in print_jump_target() argument 56 if (target == program_len) { in print_jump_target() 58 } else if (target == program_len + 1) { in print_jump_target() 73 uint32_t program_len = 0; in main() local 78 while (scanf("%2x", &byte) == 1 && program_len < sizeof(program)) { in main() 79 program[program_len++] = byte; in main() 82 for (uint32_t pc = 0; pc < program_len;) { in main() 95 for (i = 0; i < imm_len && pc < program_len; i++) in main() 116 print_jump_target(pc + imm, program_len); in main() 135 for (i = 0; i < cmp_imm_len && pc < program_len; i++) in main() [all …]
|
D | apf_interpreter.c | 47 int accept_packet(const uint8_t* program, uint32_t program_len, in accept_packet() argument 51 #define IN_PROGRAM_BOUNDS(p) (ENFORCE_UNSIGNED(p) && (p) < program_len) in accept_packet() 78 uint32_t instructions_remaining = program_len; in accept_packet() 81 if (pc == program_len) { in accept_packet() 83 } else if (pc == (program_len + 1)) { in accept_packet()
|
D | apf_run.c | 64 uint32_t program_len = parse_hex(argv[1], &program); in main() local 68 int ret = accept_packet(program, program_len, packet, packet_len, in main()
|
D | apf_interpreter.h | 45 int accept_packet(const uint8_t* program, uint32_t program_len,
|