Lines Matching refs:insn

154 fn insn(opc: u8, dst: i64, src: i64, off: i64, imm: i64) -> Result<Insn, String> {  in insn()  function
190 (AluBinary, Register(dst), Register(src), Nil) => insn(opc | ebpf::BPF_X, dst, src, 0, 0), in encode()
191 (AluBinary, Register(dst), Integer(imm), Nil) => insn(opc | ebpf::BPF_K, dst, 0, 0, imm), in encode()
192 (AluUnary, Register(dst), Nil, Nil) => insn(opc, dst, 0, 0, 0), in encode()
193 (LoadAbs, Integer(imm), Nil, Nil) => insn(opc, 0, 0, 0, imm), in encode()
194 (LoadInd, Register(src), Integer(imm), Nil) => insn(opc, 0, src, 0, imm), in encode()
196 | (StoreReg, Memory(dst, off), Register(src), Nil) => insn(opc, dst, src, off, 0), in encode()
197 (StoreImm, Memory(dst, off), Integer(imm), Nil) => insn(opc, dst, 0, off, imm), in encode()
198 (NoOperand, Nil, Nil, Nil) => insn(opc, 0, 0, 0, 0), in encode()
199 (JumpUnconditional, Integer(off), Nil, Nil) => insn(opc, 0, 0, off, 0), in encode()
201 insn(opc | ebpf::BPF_X, dst, src, off, 0) in encode()
204 insn(opc | ebpf::BPF_K, dst, 0, off, imm) in encode()
206 (Call, Integer(imm), Nil, Nil) => insn(opc, 0, 0, 0, imm), in encode()
207 (Endian(size), Register(dst), Nil, Nil) => insn(opc, dst, 0, 0, size), in encode()
208 (LoadImm, Register(dst), Integer(imm), Nil) => insn(opc, dst, 0, 0, (imm << 32) >> 32), in encode()
221 Ok(insn) => result.push(insn), in assemble_internal()
227 result.push(insn(0, 0, 0, 0, imm >> 32).unwrap()); in assemble_internal()
273 for insn in insns { in assemble()
274 result.extend_from_slice(&insn.to_array()); in assemble()