Lines Matching refs:tx_buf
622 u8* tx_buf; /* The output buffer pointer */ member
636 int ret = apf_transmit_buffer(ctx->caller_ctx, ctx->tx_buf, pkt_len, dscp); in FUNC()
637 ctx->tx_buf = NULL; in FUNC()
892 ASSERT_RETURN(ctx->tx_buf == NULL); in do_apf_run()
900 ctx->tx_buf = apf_allocate_buffer(ctx->caller_ctx, ctx->tx_buf_len); in do_apf_run()
901 if (!ctx->tx_buf) { /* allocate failure */ in do_apf_run()
906 memset(ctx->tx_buf, 0, ctx->tx_buf_len); in do_apf_run()
918 ASSERT_RETURN(ctx->tx_buf); in do_apf_run()
930 int dscp = apf_internal_csum_and_return_dscp(ctx->tx_buf, (s32)pkt_len, ip_ofs, in do_apf_run()
948 ASSERT_RETURN(ctx->tx_buf); in do_apf_run()
955 memcpy(ctx->tx_buf + dst_offs, ctx->packet + pktcopy_src_offset, copy_len); in do_apf_run()
958 memcpy(ctx->tx_buf + dst_offs, ctx->program + pktcopy_src_offset, copy_len); in do_apf_run()
1000 ASSERT_RETURN(ctx->tx_buf); in do_apf_run()
1003 ctx->tx_buf[ctx->mem.named.tx_buf_offset++] = in do_apf_run()
1065 ASSERT_RETURN(ctx->tx_buf); in do_apf_run()
1072 ctx->tx_buf[ctx->mem.named.tx_buf_offset++] = in do_apf_run()
1119 if (apf_ctx.tx_buf) do_discard_buffer(&apf_ctx); in apf_runner()