Lines Matching refs:src
154 fn insn(opc: u8, dst: i64, src: i64, off: i64, imm: i64) -> Result<Insn, String> { in insn()
158 if dst < 0 || src >= 16 { in insn()
170 src: src as u8, in insn()
190 (AluBinary, Register(dst), Register(src), Nil) => insn(opc | ebpf::BPF_X, dst, src, 0, 0), in encode()
194 (LoadInd, Register(src), Integer(imm), Nil) => insn(opc, 0, src, 0, imm), in encode()
195 (LoadReg, Register(dst), Memory(src, off), Nil) in encode()
196 | (StoreReg, Memory(dst, off), Register(src), Nil) => insn(opc, dst, src, off, 0), in encode()
200 (JumpConditional, Register(dst), Register(src), Integer(off)) => { in encode()
201 insn(opc | ebpf::BPF_X, dst, src, off, 0) in encode()
269 pub fn assemble(src: &str) -> Result<Vec<u8>, String> { in assemble()
270 let parsed = (parse(src))?; in assemble()