Lines Matching refs:areg
80 u8 mode, u8 xfer, u8 areg, u8 breg, u8 size, enum cmd_ctx_swap ctx, in __emit_cmd() argument
85 insn = FIELD_PREP(OP_CMD_A_SRC, areg) | in __emit_cmd()
122 __emit_cmd(nfp_prog, op, mode, xfer, reg.areg, reg.breg, size, ctx, in emit_cmd_any()
186 __emit_br_bit(struct nfp_prog *nfp_prog, u16 areg, u16 breg, u16 addr, u8 defer, in __emit_br_bit() argument
196 FIELD_PREP(OP_BR_BIT_A_SRC, areg) | in __emit_br_bit()
226 __emit_br_bit(nfp_prog, reg.areg, reg.breg, addr, defer, set, in emit_br_bit_relo()
240 __emit_br_alu(struct nfp_prog *nfp_prog, u16 areg, u16 breg, u16 imm_hi, in __emit_br_alu() argument
246 FIELD_PREP(OP_BR_ALU_A_SRC, areg) | in __emit_br_alu()
267 __emit_br_alu(nfp_prog, reg.areg, reg.breg, 0, defer, reg.dst_lmextn, in emit_rtn()
272 __emit_immed(struct nfp_prog *nfp_prog, u16 areg, u16 breg, u16 imm_hi, in __emit_immed() argument
280 FIELD_PREP(OP_IMMED_A_SRC, areg) | in __emit_immed()
313 swreg_type(dst) == NN_REG_NONE ? reg.dst : reg.areg, in emit_immed()
321 u16 areg, enum shf_op op, u16 breg, bool i8, bool sw, bool wr_both, in __emit_shf() argument
346 FIELD_PREP(OP_SHF_A_SRC, areg) | in __emit_shf()
376 reg.areg, op, reg.breg, reg.i8, reg.swap, reg.wr_both, in emit_shf()
395 u16 areg, enum alu_op op, u16 breg, bool swap, bool wr_both, in __emit_alu() argument
401 FIELD_PREP(OP_ALU_A_SRC, areg) | in __emit_alu()
428 reg.areg, op, reg.breg, reg.swap, reg.wr_both, in emit_alu()
433 __emit_mul(struct nfp_prog *nfp_prog, enum alu_dst_ab dst_ab, u16 areg, in __emit_mul() argument
440 FIELD_PREP(OP_MUL_A_SRC, areg) | in __emit_mul()
458 u16 areg; in emit_mul() local
471 areg = reg.dst; in emit_mul()
474 areg = reg.areg; in emit_mul()
482 __emit_mul(nfp_prog, reg.dst_ab, areg, type, step, reg.breg, reg.swap, in emit_mul()
488 u8 areg, u8 bmask, u8 breg, u8 shift, bool imm8, in __emit_ld_field() argument
495 FIELD_PREP(OP_LDF_A_SRC, areg) | in __emit_ld_field()
524 __emit_ld_field(nfp_prog, sc, reg.areg, bmask, reg.breg, shift, in emit_ld_field_any()
537 __emit_lcsr(struct nfp_prog *nfp_prog, u16 areg, u16 breg, bool wr, u16 addr, in __emit_lcsr() argument
543 FIELD_PREP(OP_LCSR_A_SRC, areg) | in __emit_lcsr()
565 reg.breg = reg.areg; in emit_csr_wr()
574 __emit_lcsr(nfp_prog, reg.areg, reg.breg, true, addr, in emit_csr_wr()
1441 u8 areg, breg; in cmp_reg() local
1447 areg = insn->dst_reg * 2; in cmp_reg()
1451 areg ^= breg; in cmp_reg()
1452 breg ^= areg; in cmp_reg()
1453 areg ^= breg; in cmp_reg()
1456 emit_alu(nfp_prog, reg_none(), reg_a(areg), ALU_OP_SUB, reg_b(breg)); in cmp_reg()
1459 reg_a(areg + 1), ALU_OP_SUB_C, reg_b(breg + 1)); in cmp_reg()