Lines Matching refs:tx_buf
201 u32 tx_buf_offset; /* 10: Offset in tx_buf where next byte will be written */
624 u8* tx_buf; /* The output buffer pointer */
638 int ret = apf_transmit_buffer(ctx->caller_ctx, ctx->tx_buf, pkt_len, dscp);
639 ctx->tx_buf = NULL;
902 ASSERT_RETURN(ctx->tx_buf == NULL);
910 ctx->tx_buf = apf_allocate_buffer(ctx->caller_ctx, ctx->tx_buf_len);
911 if (!ctx->tx_buf) { /* allocate failure */
916 memset(ctx->tx_buf, 0, ctx->tx_buf_len);
928 ASSERT_RETURN(ctx->tx_buf);
930 /* happened and the tx_buf should be deallocated. */
940 int dscp = apf_internal_csum_and_return_dscp(ctx->tx_buf, (s32)pkt_len, ip_ofs,
958 ASSERT_RETURN(ctx->tx_buf);
965 memcpy(ctx->tx_buf + dst_offs, ctx->packet + pktcopy_src_offset, copy_len);
968 memcpy(ctx->tx_buf + dst_offs, ctx->program + pktcopy_src_offset, copy_len);
1010 ASSERT_RETURN(ctx->tx_buf);
1013 ctx->tx_buf[ctx->mem.named.tx_buf_offset++] =
1075 ASSERT_RETURN(ctx->tx_buf);
1082 ctx->tx_buf[ctx->mem.named.tx_buf_offset++] =
1129 if (apf_ctx.tx_buf) do_discard_buffer(&apf_ctx);