Searched refs:imm (Results 1 – 7 of 7) sorted by relevance
/hardware/google/apf/ |
D | disassembler.c | 126 uint32_t imm = 0; in apf_disassemble() local 130 imm = DECODE_IMM(imm_len); in apf_disassemble() 132 signed_imm = imm << ((4 - imm_len) * 8); in apf_disassemble() 142 if (imm > 0) { in apf_disassemble() 143 bprintf("counter=%d", imm); in apf_disassemble() 150 bprintf("r%d, [%u]", reg_num, imm); in apf_disassemble() 156 if (imm) { in apf_disassemble() 157 bprintf("r%d, [r1+%u]", reg_num, imm); in apf_disassemble() 165 print_jump_target(*ptr2pc + imm, program_len); in apf_disassemble() 169 bprintf("%d, ", imm); in apf_disassemble() [all …]
|
D | apf_interpreter.c | 104 uint32_t imm = 0; in accept_packet() local 111 imm = (imm << 8) | program[pc++]; in accept_packet() 113 signed_imm = imm << ((4 - imm_len) * 8); in accept_packet() 124 uint32_t offs = imm; in accept_packet() 159 pc += imm; in accept_packet() 181 pc += imm; in accept_packet() 185 pc += imm; in accept_packet() 189 pc += imm; in accept_packet() 193 pc += imm; in accept_packet() 197 pc += imm; in accept_packet() [all …]
|
/hardware/google/apf/v4/ |
D | apf_interpreter.c | 104 uint32_t imm = 0; in accept_packet() local 111 imm = (imm << 8) | program[pc++]; in accept_packet() 113 signed_imm = imm << ((4 - imm_len) * 8); in accept_packet() 124 uint32_t offs = imm; in accept_packet() 159 pc += imm; in accept_packet() 181 pc += imm; in accept_packet() 185 pc += imm; in accept_packet() 189 pc += imm; in accept_packet() 193 pc += imm; in accept_packet() 197 pc += imm; in accept_packet() [all …]
|
/hardware/google/apf/v7/ |
D | apf_interpreter_source.c | 188 u32 imm = 0; 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() 201 arith_imm = (ctx->v6) ? (len_field ? imm : OTHER_REG) : (reg_num ? ctx->R[1] : imm); in do_apf_run() 207 if (imm) { in do_apf_run() 208 if (4 * imm > ctx->ram_len) return EXCEPTION; in do_apf_run() 209 counter[-(s32)imm]++; in do_apf_run() 220 u32 offs = imm; in do_apf_run() 259 ctx->pc += imm; in do_apf_run() 275 case JEQ_OPCODE: if ( ctx->R[0] == cmp_imm ) ctx->pc += imm; break; in do_apf_run() [all …]
|
D | apf_interpreter.c | 734 u32 imm = 0; 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() 747 arith_imm = (ctx->v6) ? (len_field ? imm : OTHER_REG) : (reg_num ? ctx->R[1] : imm); in do_apf_run() 753 if (imm) { in do_apf_run() 754 if (4 * imm > ctx->ram_len) return EXCEPTION; in do_apf_run() 755 counter[-(s32)imm]++; in do_apf_run() 766 u32 offs = imm; in do_apf_run() 805 ctx->pc += imm; in do_apf_run() 821 case JEQ_OPCODE: if ( ctx->R[0] == cmp_imm ) ctx->pc += imm; break; in do_apf_run() [all …]
|
/hardware/google/apf/devtools/ |
D | apf_interpreter.c | 734 u32 imm = 0; 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() 747 arith_imm = (ctx->v6) ? (len_field ? imm : OTHER_REG) : (reg_num ? ctx->R[1] : imm); in do_apf_run() 753 if (imm) { in do_apf_run() 754 if (4 * imm > ctx->ram_len) return EXCEPTION; in do_apf_run() 755 counter[-(s32)imm]++; in do_apf_run() 766 u32 offs = imm; in do_apf_run() 805 ctx->pc += imm; in do_apf_run() 821 case JEQ_OPCODE: if ( ctx->R[0] == cmp_imm ) ctx->pc += imm; break; in do_apf_run() [all …]
|
/hardware/google/apf/v6/ |
D | apf_interpreter.c | 726 u32 imm = 0; 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() 739 arith_imm = (ctx->v6) ? (len_field ? imm : OTHER_REG) : (reg_num ? ctx->R[1] : imm); in do_apf_run() 745 if (imm) { in do_apf_run() 746 if (4 * imm > ctx->ram_len) return EXCEPTION; in do_apf_run() 747 counter[-(s32)imm]++; in do_apf_run() 758 u32 offs = imm; in do_apf_run() 797 ctx->pc += imm; in do_apf_run() 812 case JEQ_OPCODE: if (ctx->R[0] == cmp_imm) ctx->pc += imm; break; in do_apf_run() [all …]
|