Home
last modified time | relevance | path

Searched refs:imm_len (Results 1 – 7 of 7) sorted by relevance

/hardware/google/apf/
Ddisassembler.c129 const uint32_t imm_len = 1 << (len_field - 1); in apf_disassemble() local
130 imm = DECODE_IMM(imm_len); in apf_disassemble()
132 signed_imm = imm << ((4 - imm_len) * 8); in apf_disassemble()
133 signed_imm >>= (4 - imm_len) * 8; in apf_disassemble()
369 const uint32_t imm_len = 1 << (len_field - 1); in apf_disassemble() local
370 uint32_t jump_offs = DECODE_IMM(imm_len); in apf_disassemble()
Dapf_interpreter.c107 const uint32_t imm_len = 1 << (len_field - 1); in accept_packet() local
108 ASSERT_FORWARD_IN_PROGRAM(pc + imm_len - 1); in accept_packet()
110 for (i = 0; i < imm_len; i++) in accept_packet()
113 signed_imm = imm << ((4 - imm_len) * 8); in accept_packet()
114 signed_imm >>= (4 - imm_len) * 8; in accept_packet()
/hardware/google/apf/v4/
Dapf_interpreter.c107 const uint32_t imm_len = 1 << (len_field - 1); in accept_packet() local
108 ASSERT_FORWARD_IN_PROGRAM(pc + imm_len - 1); in accept_packet()
110 for (i = 0; i < imm_len; i++) in accept_packet()
113 signed_imm = imm << ((4 - imm_len) * 8); in accept_packet()
114 signed_imm >>= (4 - imm_len) * 8; in accept_packet()
/hardware/google/apf/v7/
Dapf_interpreter_source.c186 const u8 imm_len = ((len_field + 1u) >> 2) + len_field; // 0,1,2,3 -> 0,1,2,4 in do_apf_run() local
193 imm = decode_imm(ctx, imm_len); // 1st imm, at worst bytes 1-4 past opcode/program_len in do_apf_run()
195 signed_imm = (s32)(imm << ((4 - imm_len) * 8)); in do_apf_run()
196 signed_imm >>= (4 - imm_len) * 8; in do_apf_run()
272 cmp_imm = decode_imm(ctx, imm_len); // 2nd imm, at worst 8 bytes past prog_len in do_apf_run()
286 u32 cmp_imm = decode_imm(ctx, imm_len); // 2nd imm, at worst 8 bytes past prog_len in do_apf_run()
432 u32 jump_offs = decode_imm(ctx, imm_len); // 2nd imm, at worst 8 B past prog_len in do_apf_run()
473 u32 jump_offs = decode_imm(ctx, imm_len); // 2nd imm, at worst 8 B past prog_len in do_apf_run()
Dapf_interpreter.c732 const u8 imm_len = ((len_field + 1u) >> 2) + len_field; /* 0,1,2,3 -> 0,1,2,4 */ in do_apf_run() local
739 … imm = decode_imm(ctx, imm_len); /* 1st imm, at worst bytes 1-4 past opcode/program_len */ in do_apf_run()
741 signed_imm = (s32)(imm << ((4 - imm_len) * 8)); in do_apf_run()
742 signed_imm >>= (4 - imm_len) * 8; in do_apf_run()
818 cmp_imm = decode_imm(ctx, imm_len); /* 2nd imm, at worst 8 bytes past prog_len */ in do_apf_run()
832 u32 cmp_imm = decode_imm(ctx, imm_len); /* 2nd imm, at worst 8 bytes past prog_len */ in do_apf_run()
978 u32 jump_offs = decode_imm(ctx, imm_len); /* 2nd imm, at worst 8 B past prog_len */ in do_apf_run()
1019 u32 jump_offs = decode_imm(ctx, imm_len); /* 2nd imm, at worst 8 B past prog_len */ in do_apf_run()
/hardware/google/apf/v6/
Dapf_interpreter.c724 const u8 imm_len = ((len_field + 1u) >> 2) + len_field; /* 0,1,2,3 -> 0,1,2,4 */ in do_apf_run() local
731 … imm = decode_imm(ctx, imm_len); /* 1st imm, at worst bytes 1-4 past opcode/program_len */ in do_apf_run()
733 signed_imm = (s32)(imm << ((4 - imm_len) * 8)); in do_apf_run()
734 signed_imm >>= (4 - imm_len) * 8; in do_apf_run()
809 cmp_imm = decode_imm(ctx, imm_len); /* 2nd imm, at worst 8 bytes past prog_len */ in do_apf_run()
822 u32 cmp_imm = decode_imm(ctx, imm_len); /* 2nd imm, at worst 8 bytes past prog_len */ in do_apf_run()
968 u32 jump_offs = decode_imm(ctx, imm_len); /* 2nd imm, at worst 8 B past prog_len */ in do_apf_run()
1009 u32 jump_offs = decode_imm(ctx, imm_len); /* 2nd imm, at worst 8 B past prog_len */ in do_apf_run()
/hardware/google/apf/devtools/
Dapf_interpreter.c732 const u8 imm_len = ((len_field + 1u) >> 2) + len_field; /* 0,1,2,3 -> 0,1,2,4 */ in do_apf_run() local
739 … imm = decode_imm(ctx, imm_len); /* 1st imm, at worst bytes 1-4 past opcode/program_len */ in do_apf_run()
741 signed_imm = (s32)(imm << ((4 - imm_len) * 8)); in do_apf_run()
742 signed_imm >>= (4 - imm_len) * 8; in do_apf_run()
818 cmp_imm = decode_imm(ctx, imm_len); /* 2nd imm, at worst 8 bytes past prog_len */ in do_apf_run()
832 u32 cmp_imm = decode_imm(ctx, imm_len); /* 2nd imm, at worst 8 bytes past prog_len */ in do_apf_run()
978 u32 jump_offs = decode_imm(ctx, imm_len); /* 2nd imm, at worst 8 B past prog_len */ in do_apf_run()
1019 u32 jump_offs = decode_imm(ctx, imm_len); /* 2nd imm, at worst 8 B past prog_len */ in do_apf_run()