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()
356 ASSERT_RETURN(ctx->tx_buf == NULL); in do_apf_run()
364 ctx->tx_buf = apf_allocate_buffer(ctx->caller_ctx, ctx->tx_buf_len); in do_apf_run()
365 if (!ctx->tx_buf) { // allocate failure in do_apf_run()
370 memset(ctx->tx_buf, 0, ctx->tx_buf_len); in do_apf_run()
382 ASSERT_RETURN(ctx->tx_buf); in do_apf_run()
394 int dscp = csum_and_return_dscp(ctx->tx_buf, (s32)pkt_len, ip_ofs, in do_apf_run()
412 ASSERT_RETURN(ctx->tx_buf); in do_apf_run()
419 memcpy(ctx->tx_buf + dst_offs, ctx->packet + pktcopy_src_offset, copy_len); in do_apf_run()
422 memcpy(ctx->tx_buf + dst_offs, ctx->program + pktcopy_src_offset, copy_len); in do_apf_run()
464 ASSERT_RETURN(ctx->tx_buf); in do_apf_run()
467 ctx->tx_buf[ctx->mem.named.tx_buf_offset++] = in do_apf_run()
529 ASSERT_RETURN(ctx->tx_buf); in do_apf_run()
536 ctx->tx_buf[ctx->mem.named.tx_buf_offset++] = in do_apf_run()
583 if (apf_ctx.tx_buf) do_discard_buffer(&apf_ctx); in apf_runner()