Lines Matching refs:tx_buf
78 u8* tx_buf; // The output buffer pointer member
92 int ret = apf_transmit_buffer(ctx->caller_ctx, ctx->tx_buf, pkt_len, dscp); in FUNC()
93 ctx->tx_buf = NULL; in FUNC()
384 ASSERT_RETURN(ctx->tx_buf == NULL); in do_apf_run()
394 ctx->tx_buf = apf_allocate_buffer(ctx->caller_ctx, ctx->tx_buf_len); in do_apf_run()
395 if (!ctx->tx_buf) { // allocate failure in do_apf_run()
400 memset(ctx->tx_buf, 0, ctx->tx_buf_len); in do_apf_run()
435 ASSERT_RETURN(ctx->tx_buf); in do_apf_run()
443 int dscp = csum_and_return_dscp(ctx->tx_buf, (s32)pkt_len, ip_ofs, in do_apf_run()
461 ASSERT_RETURN(ctx->tx_buf); in do_apf_run()
468 memcpy(ctx->tx_buf + dst_offs, ctx->packet + pktcopy_src_offset, copy_len); in do_apf_run()
471 memcpy(ctx->tx_buf + dst_offs, ctx->program + pktcopy_src_offset, copy_len); in do_apf_run()
532 ASSERT_RETURN(ctx->tx_buf); in do_apf_run()
535 ctx->tx_buf[ctx->mem.named.tx_buf_offset++] = in do_apf_run()
600 ASSERT_RETURN(ctx->tx_buf); in do_apf_run()
607 ctx->tx_buf[ctx->mem.named.tx_buf_offset++] = in do_apf_run()
658 if (apf_ctx.tx_buf) do_discard_buffer(&apf_ctx); in apf_runner()