Lines Matching refs:R
632 u32 R[2]; /* Register values. */ member
717 APF_TRACE_HOOK(ctx->pc, ctx->R, ctx->program, ctx->program_len, in do_apf_run()
728 #define REG (ctx->R[reg_num]) in do_apf_run()
729 #define OTHER_REG (ctx->R[reg_num ^ 1]) in do_apf_run()
746 #define ARITH_REG (ctx->R[reg_num & ctx->v6]) in do_apf_run()
747 arith_imm = (ctx->v6) ? (len_field ? imm : OTHER_REG) : (reg_num ? ctx->R[1] : imm); in do_apf_run()
748 … = (ctx->v6) ? (len_field ? signed_imm : (s32)OTHER_REG) : (reg_num ? (s32)ctx->R[1] : signed_imm); in do_apf_run()
768 if (opcode >= LDBX_OPCODE) offs += ctx->R[1]; in do_apf_run()
816 cmp_imm = ctx->R[1]; 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()
836 const u32 last_packet_offs = ctx->R[0] + len - 1; in do_apf_run()
845 ASSERT_IN_PACKET_BOUNDS(ctx->R[0]); in do_apf_run()
847 ASSERT_RETURN(last_packet_offs >= ctx->R[0]); in do_apf_run()
850 matched |= !memcmp(ctx->program + ctx->pc, ctx->packet + ctx->R[0], len); in do_apf_run()
950 pktcopy_src_offset = ctx->R[0]; in do_apf_run()
954 u32 copy_len = ctx->R[1]; in do_apf_run()
984 u32 udp_payload_offset = ctx->R[0]; in do_apf_run()