Searched refs:cmp_imm (Results 1 – 7 of 7) sorted by relevance
/hardware/google/apf/ |
D | apf_interpreter.c | 168 uint32_t cmp_imm = 0; in accept_packet() local 170 cmp_imm = registers[1]; in accept_packet() 176 cmp_imm = (cmp_imm << 8) | program[pc++]; in accept_packet() 180 if (registers[0] == cmp_imm) in accept_packet() 184 if (registers[0] != cmp_imm) in accept_packet() 188 if (registers[0] > cmp_imm) in accept_packet() 192 if (registers[0] < cmp_imm) in accept_packet() 196 if (registers[0] & cmp_imm) in accept_packet() 204 ASSERT_FORWARD_IN_PROGRAM(pc + cmp_imm - 1); in accept_packet() 206 const uint32_t last_packet_offs = REG + cmp_imm - 1; in accept_packet() [all …]
|
D | disassembler.c | 188 uint32_t cmp_imm = DECODE_IMM(1 << (len_field - 1)); in apf_disassemble() local 189 bprintf("0x%x, ", cmp_imm); in apf_disassemble() 201 const uint32_t cmp_imm = DECODE_IMM(1 << (len_field - 1)); in apf_disassemble() local 202 const uint32_t cnt = (cmp_imm >> 11) + 1; // 1+, up to 32 fits in u16 in apf_disassemble() 203 const uint32_t len = cmp_imm & 2047; // 0..2047 in apf_disassemble()
|
/hardware/google/apf/v4/ |
D | apf_interpreter.c | 168 uint32_t cmp_imm = 0; in accept_packet() local 170 cmp_imm = registers[1]; in accept_packet() 176 cmp_imm = (cmp_imm << 8) | program[pc++]; in accept_packet() 180 if (registers[0] == cmp_imm) in accept_packet() 184 if (registers[0] != cmp_imm) in accept_packet() 188 if (registers[0] > cmp_imm) in accept_packet() 192 if (registers[0] < cmp_imm) in accept_packet() 196 if (registers[0] & cmp_imm) in accept_packet() 204 ASSERT_FORWARD_IN_PROGRAM(pc + cmp_imm - 1); in accept_packet() 206 const uint32_t last_packet_offs = REG + cmp_imm - 1; in accept_packet() [all …]
|
/hardware/google/apf/v7/ |
D | apf_interpreter_source.c | 267 u32 cmp_imm = 0; in do_apf_run() local 270 cmp_imm = ctx->R[1]; 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() 275 case JEQ_OPCODE: if ( ctx->R[0] == cmp_imm ) ctx->pc += imm; break; in do_apf_run() 276 case JNE_OPCODE: if ( ctx->R[0] != cmp_imm ) ctx->pc += imm; break; in do_apf_run() 277 case JGT_OPCODE: if ( ctx->R[0] > cmp_imm ) ctx->pc += imm; break; in do_apf_run() 278 case JLT_OPCODE: if ( ctx->R[0] < cmp_imm ) ctx->pc += imm; break; in do_apf_run() 279 case JSET_OPCODE: if ( ctx->R[0] & cmp_imm ) ctx->pc += imm; break; in do_apf_run() 280 case JNSET_OPCODE: if (!(ctx->R[0] & cmp_imm)) ctx->pc += imm; break; 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() local [all …]
|
D | apf_interpreter.c | 813 u32 cmp_imm = 0; in do_apf_run() local 816 cmp_imm = ctx->R[1]; 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() 821 case JEQ_OPCODE: if ( ctx->R[0] == cmp_imm ) ctx->pc += imm; break; in do_apf_run() 822 case JNE_OPCODE: if ( ctx->R[0] != cmp_imm ) ctx->pc += imm; break; in do_apf_run() 823 case JGT_OPCODE: if ( ctx->R[0] > cmp_imm ) ctx->pc += imm; break; in do_apf_run() 824 case JLT_OPCODE: if ( ctx->R[0] < cmp_imm ) ctx->pc += imm; break; in do_apf_run() 825 case JSET_OPCODE: if ( ctx->R[0] & cmp_imm ) ctx->pc += imm; break; in do_apf_run() 826 case JNSET_OPCODE: if (!(ctx->R[0] & cmp_imm)) ctx->pc += imm; break; 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() local [all …]
|
/hardware/google/apf/devtools/ |
D | apf_interpreter.c | 813 u32 cmp_imm = 0; in do_apf_run() local 816 cmp_imm = ctx->R[1]; 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() 821 case JEQ_OPCODE: if ( ctx->R[0] == cmp_imm ) ctx->pc += imm; break; in do_apf_run() 822 case JNE_OPCODE: if ( ctx->R[0] != cmp_imm ) ctx->pc += imm; break; in do_apf_run() 823 case JGT_OPCODE: if ( ctx->R[0] > cmp_imm ) ctx->pc += imm; break; in do_apf_run() 824 case JLT_OPCODE: if ( ctx->R[0] < cmp_imm ) ctx->pc += imm; break; in do_apf_run() 825 case JSET_OPCODE: if ( ctx->R[0] & cmp_imm ) ctx->pc += imm; break; in do_apf_run() 826 case JNSET_OPCODE: if (!(ctx->R[0] & cmp_imm)) ctx->pc += imm; break; 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() local [all …]
|
/hardware/google/apf/v6/ |
D | apf_interpreter.c | 804 u32 cmp_imm = 0; in do_apf_run() local 807 cmp_imm = ctx->R[1]; 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() 812 case JEQ_OPCODE: if (ctx->R[0] == cmp_imm) ctx->pc += imm; break; in do_apf_run() 813 case JNE_OPCODE: if (ctx->R[0] != cmp_imm) ctx->pc += imm; break; in do_apf_run() 814 case JGT_OPCODE: if (ctx->R[0] > cmp_imm) ctx->pc += imm; break; in do_apf_run() 815 case JLT_OPCODE: if (ctx->R[0] < cmp_imm) ctx->pc += imm; break; in do_apf_run() 816 case JSET_OPCODE: if (ctx->R[0] & cmp_imm) ctx->pc += imm; break; 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() local 823 u32 cnt = (cmp_imm >> 11) + 1; /* 1+, up to 32 fits in u16 */ in do_apf_run() [all …]
|