Lines Matching full:txb
22 struct rxrpc_txbuf *txb;
26 txb = kzalloc(sizeof(*txb), gfp);
27 if (!txb)
42 kfree(txb);
46 refcount_set(&txb->ref, 1);
47 txb->call_debug_id = call->debug_id;
48 txb->debug_id = atomic_inc_return(&rxrpc_txbuf_debug_ids);
49 txb->alloc_size = data_size;
50 txb->space = data_size;
51 txb->offset = 0;
52 txb->flags = call->conn->out_clientflag;
53 txb->seq = call->send_top + 1;
54 txb->data = buf + doff;
56 trace_rxrpc_txbuf(txb->debug_id, txb->call_debug_id, txb->seq, 1,
60 return txb;
63 void rxrpc_see_txbuf(struct rxrpc_txbuf *txb, enum rxrpc_txbuf_trace what)
65 int r = refcount_read(&txb->ref);
67 trace_rxrpc_txbuf(txb->debug_id, txb->call_debug_id, txb->seq, r, what);
70 static void rxrpc_free_txbuf(struct rxrpc_txbuf *txb)
72 trace_rxrpc_txbuf(txb->debug_id, txb->call_debug_id, txb->seq, 0,
74 if (txb->data)
75 page_frag_free(txb->data);
76 kfree(txb);
80 void rxrpc_put_txbuf(struct rxrpc_txbuf *txb, enum rxrpc_txbuf_trace what)
87 if (txb) {
88 debug_id = txb->debug_id;
89 call_debug_id = txb->call_debug_id;
90 seq = txb->seq;
91 dead = __refcount_dec_and_test(&txb->ref, &r);
94 rxrpc_free_txbuf(txb);