Home
last modified time | relevance | path

Searched refs:copy_len (Results 1 – 5 of 5) sorted by relevance

/hardware/google/apf/v7/
Dapf_interpreter_source.c408 u32 copy_len = ctx->R[1]; in do_apf_run() local
410 copy_len = DECODE_U8(); // 2nd imm, at worst 8 bytes past prog_len in do_apf_run()
413 ASSERT_IN_OUTPUT_BOUNDS(dst_offs, copy_len); in do_apf_run()
415 const u32 last_packet_offs = pktcopy_src_offset + copy_len - 1; in do_apf_run()
419 memcpy(ctx->tx_buf + dst_offs, ctx->packet + pktcopy_src_offset, copy_len); in do_apf_run()
421 ASSERT_IN_RAM_BOUNDS(pktcopy_src_offset + copy_len - 1); in do_apf_run()
422 memcpy(ctx->tx_buf + dst_offs, ctx->program + pktcopy_src_offset, copy_len); in do_apf_run()
424 dst_offs += copy_len; in do_apf_run()
Dapf_interpreter.c954 u32 copy_len = ctx->R[1]; in do_apf_run() local
956 copy_len = DECODE_U8(); /* 2nd imm, at worst 8 bytes past prog_len */ in do_apf_run()
959 ASSERT_IN_OUTPUT_BOUNDS(dst_offs, copy_len); in do_apf_run()
961 const u32 last_packet_offs = pktcopy_src_offset + copy_len - 1; in do_apf_run()
965 memcpy(ctx->tx_buf + dst_offs, ctx->packet + pktcopy_src_offset, copy_len); in do_apf_run()
967 ASSERT_IN_RAM_BOUNDS(pktcopy_src_offset + copy_len - 1); in do_apf_run()
968 memcpy(ctx->tx_buf + dst_offs, ctx->program + pktcopy_src_offset, copy_len); in do_apf_run()
970 dst_offs += copy_len; in do_apf_run()
/hardware/google/apf/v6/
Dapf_interpreter.c944 u32 copy_len = ctx->R[1]; in do_apf_run() local
946 copy_len = DECODE_U8(); /* 2nd imm, at worst 8 bytes past prog_len */ in do_apf_run()
949 ASSERT_IN_OUTPUT_BOUNDS(dst_offs, copy_len); in do_apf_run()
951 const u32 last_packet_offs = pktcopy_src_offset + copy_len - 1; in do_apf_run()
955 memcpy(ctx->tx_buf + dst_offs, ctx->packet + pktcopy_src_offset, copy_len); in do_apf_run()
957 ASSERT_IN_RAM_BOUNDS(pktcopy_src_offset + copy_len - 1); in do_apf_run()
958 memcpy(ctx->tx_buf + dst_offs, ctx->program + pktcopy_src_offset, copy_len); in do_apf_run()
960 dst_offs += copy_len; in do_apf_run()
/hardware/google/apf/devtools/
Dapf_interpreter.c954 u32 copy_len = ctx->R[1]; in do_apf_run() local
956 copy_len = DECODE_U8(); /* 2nd imm, at worst 8 bytes past prog_len */ in do_apf_run()
959 ASSERT_IN_OUTPUT_BOUNDS(dst_offs, copy_len); in do_apf_run()
961 const u32 last_packet_offs = pktcopy_src_offset + copy_len - 1; in do_apf_run()
965 memcpy(ctx->tx_buf + dst_offs, ctx->packet + pktcopy_src_offset, copy_len); in do_apf_run()
967 ASSERT_IN_RAM_BOUNDS(pktcopy_src_offset + copy_len - 1); in do_apf_run()
968 memcpy(ctx->tx_buf + dst_offs, ctx->program + pktcopy_src_offset, copy_len); in do_apf_run()
970 dst_offs += copy_len; in do_apf_run()
/hardware/google/apf/
Ddisassembler.c445 uint32_t copy_len = DECODE_IMM(1); in apf_disassemble() local
446 bprintf("src=%d, len=%d", src_offs, copy_len); in apf_disassemble()