Home
last modified time | relevance | path

Searched refs:txb (Results 1 – 25 of 42) sorted by relevance

12

/linux-6.6.21/net/rxrpc/
Dtxbuf.c22 struct rxrpc_txbuf *txb; in rxrpc_alloc_txbuf() local
24 txb = kmalloc(sizeof(*txb), gfp); in rxrpc_alloc_txbuf()
25 if (txb) { in rxrpc_alloc_txbuf()
26 INIT_LIST_HEAD(&txb->call_link); in rxrpc_alloc_txbuf()
27 INIT_LIST_HEAD(&txb->tx_link); in rxrpc_alloc_txbuf()
28 refcount_set(&txb->ref, 1); in rxrpc_alloc_txbuf()
29 txb->call_debug_id = call->debug_id; in rxrpc_alloc_txbuf()
30 txb->debug_id = atomic_inc_return(&rxrpc_txbuf_debug_ids); in rxrpc_alloc_txbuf()
31 txb->space = sizeof(txb->data); in rxrpc_alloc_txbuf()
32 txb->len = 0; in rxrpc_alloc_txbuf()
[all …]
Dcall_event.c70 struct rxrpc_txbuf *txb; in rxrpc_send_ACK() local
77 txb = rxrpc_alloc_txbuf(call, RXRPC_PACKET_TYPE_ACK, in rxrpc_send_ACK()
79 if (!txb) { in rxrpc_send_ACK()
84 txb->ack_why = why; in rxrpc_send_ACK()
85 txb->wire.seq = 0; in rxrpc_send_ACK()
86 txb->wire.type = RXRPC_PACKET_TYPE_ACK; in rxrpc_send_ACK()
87 txb->wire.flags |= RXRPC_SLOW_START_OK; in rxrpc_send_ACK()
88 txb->ack.bufferSpace = 0; in rxrpc_send_ACK()
89 txb->ack.maxSkew = 0; in rxrpc_send_ACK()
90 txb->ack.firstPacket = 0; in rxrpc_send_ACK()
[all …]
Doutput.c83 struct rxrpc_txbuf *txb, in rxrpc_fill_out_ack() argument
91 u8 *ackp = txb->acks; in rxrpc_fill_out_ack()
101 txb->ack.firstPacket = htonl(window); in rxrpc_fill_out_ack()
102 txb->ack.nAcks = wtop - window; in rxrpc_fill_out_ack()
106 to = min_t(unsigned int, txb->ack.nAcks, RXRPC_SACK_SIZE); in rxrpc_fill_out_ack()
108 if (sack + txb->ack.nAcks <= RXRPC_SACK_SIZE) { in rxrpc_fill_out_ack()
109 memcpy(txb->acks, call->ackr_sack_table + sack, txb->ack.nAcks); in rxrpc_fill_out_ack()
111 memcpy(txb->acks, call->ackr_sack_table + sack, wrap); in rxrpc_fill_out_ack()
112 memcpy(txb->acks + wrap, call->ackr_sack_table, in rxrpc_fill_out_ack()
119 } else if (txb->ack.reason == RXRPC_ACK_DELAY) { in rxrpc_fill_out_ack()
[all …]
Dsendmsg.c239 struct rxrpc_txbuf *txb, in rxrpc_queue_packet() argument
242 rxrpc_seq_t seq = txb->seq; in rxrpc_queue_packet()
243 bool last = test_bit(RXRPC_TXBUF_LAST, &txb->flags), poke; in rxrpc_queue_packet()
247 ASSERTCMP(txb->seq, ==, call->tx_prepared + 1); in rxrpc_queue_packet()
252 txb->last_sent = ktime_get_real(); in rxrpc_queue_packet()
262 list_add_tail(&txb->call_link, &call->tx_sendmsg); in rxrpc_queue_packet()
283 struct rxrpc_txbuf *txb; in rxrpc_send_data() local
332 txb = call->tx_pending; in rxrpc_send_data()
334 if (txb) in rxrpc_send_data()
335 rxrpc_see_txbuf(txb, rxrpc_txbuf_see_send_more); in rxrpc_send_data()
[all …]
Drxkad.c251 struct rxrpc_txbuf *txb, in rxkad_secure_packet_auth() argument
254 struct rxkad_level1_hdr *hdr = (void *)txb->data; in rxkad_secure_packet_auth()
262 check = txb->seq ^ ntohl(txb->wire.callNumber); in rxkad_secure_packet_auth()
263 hdr->data_size = htonl((u32)check << 16 | txb->len); in rxkad_secure_packet_auth()
265 txb->len += sizeof(struct rxkad_level1_hdr); in rxkad_secure_packet_auth()
266 pad = txb->len; in rxkad_secure_packet_auth()
270 memset(txb->data + txb->offset, 0, pad); in rxkad_secure_packet_auth()
271 txb->len += pad; in rxkad_secure_packet_auth()
277 sg_init_one(&sg, txb->data, 8); in rxkad_secure_packet_auth()
292 struct rxrpc_txbuf *txb, in rxkad_secure_packet_encrypt() argument
[all …]
Dcall_object.c684 struct rxrpc_txbuf *txb; in rxrpc_destroy_call() local
690 while ((txb = list_first_entry_or_null(&call->tx_sendmsg, in rxrpc_destroy_call()
692 list_del(&txb->call_link); in rxrpc_destroy_call()
693 rxrpc_put_txbuf(txb, rxrpc_txbuf_put_cleaned); in rxrpc_destroy_call()
695 while ((txb = list_first_entry_or_null(&call->tx_buffer, in rxrpc_destroy_call()
697 list_del(&txb->call_link); in rxrpc_destroy_call()
698 rxrpc_put_txbuf(txb, rxrpc_txbuf_put_cleaned); in rxrpc_destroy_call()
Dar-internal.h818 static inline bool rxrpc_sending_to_server(const struct rxrpc_txbuf *txb) in rxrpc_sending_to_server() argument
820 return txb->wire.flags & RXRPC_CLIENT_INITIATED; in rxrpc_sending_to_server()
823 static inline bool rxrpc_sending_to_client(const struct rxrpc_txbuf *txb) in rxrpc_sending_to_client() argument
825 return !rxrpc_sending_to_server(txb); in rxrpc_sending_to_client()
1160 int rxrpc_send_ack_packet(struct rxrpc_call *call, struct rxrpc_txbuf *txb);
1166 void rxrpc_transmit_one(struct rxrpc_call *call, struct rxrpc_txbuf *txb);
1296 void rxrpc_get_txbuf(struct rxrpc_txbuf *txb, enum rxrpc_txbuf_trace what);
1297 void rxrpc_see_txbuf(struct rxrpc_txbuf *txb, enum rxrpc_txbuf_trace what);
1298 void rxrpc_put_txbuf(struct rxrpc_txbuf *txb, enum rxrpc_txbuf_trace what);
Dinsecure.c28 static int none_secure_packet(struct rxrpc_call *call, struct rxrpc_txbuf *txb) in none_secure_packet() argument
Dinput.c209 struct rxrpc_txbuf *txb; in rxrpc_rotate_tx_window() local
212 list_for_each_entry_rcu(txb, &call->tx_buffer, call_link, false) { in rxrpc_rotate_tx_window()
213 if (before_eq(txb->seq, call->acks_hard_ack)) in rxrpc_rotate_tx_window()
215 if (test_bit(RXRPC_TXBUF_LAST, &txb->flags)) { in rxrpc_rotate_tx_window()
219 if (txb->seq == to) in rxrpc_rotate_tx_window()
/linux-6.6.21/drivers/net/wireless/intel/ipw2x00/
Dlibipw_tx.c166 void libipw_txb_free(struct libipw_txb *txb) in libipw_txb_free() argument
169 if (unlikely(!txb)) in libipw_txb_free()
171 for (i = 0; i < txb->nr_frags; i++) in libipw_txb_free()
172 if (txb->fragments[i]) in libipw_txb_free()
173 dev_kfree_skb_any(txb->fragments[i]); in libipw_txb_free()
174 kfree(txb); in libipw_txb_free()
180 struct libipw_txb *txb; in libipw_alloc_txb() local
183 txb = kmalloc(struct_size(txb, fragments, nr_frags), gfp_mask); in libipw_alloc_txb()
184 if (!txb) in libipw_alloc_txb()
187 memset(txb, 0, sizeof(struct libipw_txb)); in libipw_alloc_txb()
[all …]
Dipw2100.c2918 libipw_txb_free(packet->info.d_struct.txb); in __ipw2100_tx_process()
2919 packet->info.d_struct.txb = NULL; in __ipw2100_tx_process()
3074 if (unlikely(1 + packet->info.d_struct.txb->nr_frags > in ipw2100_tx_send_data()
3083 if (txq->available <= 3 + packet->info.d_struct.txb->nr_frags) { in ipw2100_tx_send_data()
3096 hdr = (struct libipw_hdr_3addr *)packet->info.d_struct.txb-> in ipw2100_tx_send_data()
3116 ipw_hdr->encrypted = packet->info.d_struct.txb->encrypted; in ipw2100_tx_send_data()
3117 if (packet->info.d_struct.txb->nr_frags > 1) in ipw2100_tx_send_data()
3119 packet->info.d_struct.txb->frag_size - in ipw2100_tx_send_data()
3126 tbd->num_fragments = 1 + packet->info.d_struct.txb->nr_frags; in ipw2100_tx_send_data()
3136 if (packet->info.d_struct.txb->nr_frags > 1) in ipw2100_tx_send_data()
[all …]
/linux-6.6.21/drivers/staging/rtl8192u/ieee80211/
Dieee80211_tx.c216 void ieee80211_txb_free(struct ieee80211_txb *txb) in ieee80211_txb_free() argument
219 if (unlikely(!txb)) in ieee80211_txb_free()
221 kfree(txb); in ieee80211_txb_free()
228 struct ieee80211_txb *txb; in ieee80211_alloc_txb() local
230 txb = kmalloc( in ieee80211_alloc_txb()
233 if (!txb) in ieee80211_alloc_txb()
236 memset(txb, 0, sizeof(struct ieee80211_txb)); in ieee80211_alloc_txb()
237 txb->nr_frags = nr_frags; in ieee80211_alloc_txb()
238 txb->frag_size = __cpu_to_le16(txb_size); in ieee80211_alloc_txb()
241 txb->fragments[i] = dev_alloc_skb(txb_size); in ieee80211_alloc_txb()
[all …]
Dieee80211_softmac.c2038 void ieee80211_softmac_xmit(struct ieee80211_txb *txb, struct ieee80211_device *ieee) in ieee80211_softmac_xmit() argument
2040 unsigned int queue_index = txb->queue_index; in ieee80211_softmac_xmit()
2051 ieee->stats.tx_bytes += le16_to_cpu(txb->payload_size); in ieee80211_softmac_xmit()
2053 tcb_desc = (struct cb_desc *)(txb->fragments[0]->cb + MAX_DEV_ADDR_SIZE); in ieee80211_softmac_xmit()
2058 for (i = 0; i < txb->nr_frags; i++) { in ieee80211_softmac_xmit()
2073 skb_queue_tail(&ieee->skb_drv_aggQ[queue_index], txb->fragments[i]); in ieee80211_softmac_xmit()
2075 skb_queue_tail(&ieee->skb_waitQ[queue_index], txb->fragments[i]); in ieee80211_softmac_xmit()
2078 ieee->softmac_data_hard_start_xmit(txb->fragments[i], in ieee80211_softmac_xmit()
2085 ieee80211_txb_free(txb); in ieee80211_softmac_xmit()
2096 for (i = ieee->tx_pending.frag; i < ieee->tx_pending.txb->nr_frags; i++) { in ieee80211_resume_tx()
[all …]
/linux-6.6.21/drivers/staging/rtl8192e/
Drtllib_tx.c194 void rtllib_txb_free(struct rtllib_txb *txb) in rtllib_txb_free() argument
196 if (unlikely(!txb)) in rtllib_txb_free()
198 kfree(txb); in rtllib_txb_free()
204 struct rtllib_txb *txb; in rtllib_alloc_txb() local
207 txb = kzalloc(struct_size(txb, fragments, nr_frags), gfp_mask); in rtllib_alloc_txb()
208 if (!txb) in rtllib_alloc_txb()
211 txb->nr_frags = nr_frags; in rtllib_alloc_txb()
212 txb->frag_size = cpu_to_le16(txb_size); in rtllib_alloc_txb()
215 txb->fragments[i] = dev_alloc_skb(txb_size); in rtllib_alloc_txb()
216 if (unlikely(!txb->fragments[i])) in rtllib_alloc_txb()
[all …]
Drtllib_softmac.c2188 void rtllib_softmac_xmit(struct rtllib_txb *txb, struct rtllib_device *ieee) in rtllib_softmac_xmit() argument
2190 unsigned int queue_index = txb->queue_index; in rtllib_softmac_xmit()
2202 tcb_desc = (struct cb_desc *)(txb->fragments[0]->cb + in rtllib_softmac_xmit()
2210 for (i = 0; i < txb->nr_frags; i++) { in rtllib_softmac_xmit()
2221 txb->fragments[i]); in rtllib_softmac_xmit()
2223 kfree_skb(txb->fragments[i]); in rtllib_softmac_xmit()
2226 txb->fragments[i], in rtllib_softmac_xmit()
2231 rtllib_txb_free(txb); in rtllib_softmac_xmit()
2242 if (ieee->tx_pending.txb) { in rtllib_reset_queue()
2243 rtllib_txb_free(ieee->tx_pending.txb); in rtllib_reset_queue()
[all …]
/linux-6.6.21/drivers/net/ethernet/micrel/
Dks8851_spi.c122 __le16 txb[2]; in ks8851_wrreg16_spi() local
125 txb[0] = cpu_to_le16(MK_OP(reg & 2 ? 0xC : 0x03, reg) | KS_SPIOP_WR); in ks8851_wrreg16_spi()
126 txb[1] = cpu_to_le16(val); in ks8851_wrreg16_spi()
128 xfer->tx_buf = txb; in ks8851_wrreg16_spi()
153 __le16 *txb = (__le16 *)ks->txd; in ks8851_rdreg() local
157 txb[0] = cpu_to_le16(op | KS_SPIOP_RD); in ks8851_rdreg()
163 xfer->tx_buf = txb; in ks8851_rdreg()
175 xfer->tx_buf = txb; in ks8851_rdreg()
218 u8 txb[1]; in ks8851_rdfifo_spi() local
225 txb[0] = KS_SPIOP_RXFIFO; in ks8851_rdfifo_spi()
[all …]
Dks8851.h337 u8 txb[6]; member
446 struct sk_buff *txb) in ks8851_done_tx() argument
450 dev->stats.tx_bytes += txb->len; in ks8851_done_tx()
453 dev_kfree_skb(txb); in ks8851_done_tx()
/linux-6.6.21/Documentation/devicetree/bindings/media/i2c/
Dadv748x.yaml38 - enum: [ dpll, cp, hdmi, edid, repeater, infoframe, cbus, cec, sdp, txa, txb ]
39 - enum: [ dpll, cp, hdmi, edid, repeater, infoframe, cbus, cec, sdp, txa, txb ]
40 - enum: [ dpll, cp, hdmi, edid, repeater, infoframe, cbus, cec, sdp, txa, txb ]
41 - enum: [ dpll, cp, hdmi, edid, repeater, infoframe, cbus, cec, sdp, txa, txb ]
42 - enum: [ dpll, cp, hdmi, edid, repeater, infoframe, cbus, cec, sdp, txa, txb ]
43 - enum: [ dpll, cp, hdmi, edid, repeater, infoframe, cbus, cec, sdp, txa, txb ]
44 - enum: [ dpll, cp, hdmi, edid, repeater, infoframe, cbus, cec, sdp, txa, txb ]
45 - enum: [ dpll, cp, hdmi, edid, repeater, infoframe, cbus, cec, sdp, txa, txb ]
46 - enum: [ dpll, cp, hdmi, edid, repeater, infoframe, cbus, cec, sdp, txa, txb ]
47 - enum: [ dpll, cp, hdmi, edid, repeater, infoframe, cbus, cec, sdp, txa, txb ]
[all …]
/linux-6.6.21/drivers/net/ethernet/vertexcom/
Dmse102x.c153 __be16 txb[2]; in mse102x_tx_cmd_spi() local
156 txb[0] = cpu_to_be16(DET_CMD); in mse102x_tx_cmd_spi()
157 txb[1] = cpu_to_be16(cmd); in mse102x_tx_cmd_spi()
159 xfer->tx_buf = txb; in mse102x_tx_cmd_spi()
176 __be16 *txb = (__be16 *)mse->txd; in mse102x_rx_cmd_spi() local
181 txb[0] = 0; in mse102x_rx_cmd_spi()
182 txb[1] = 0; in mse102x_rx_cmd_spi()
184 xfer->tx_buf = txb; in mse102x_rx_cmd_spi()
371 static int mse102x_tx_pkt_spi(struct mse102x_net *mse, struct sk_buff *txb, in mse102x_tx_pkt_spi() argument
380 if (txb->len < 60) in mse102x_tx_pkt_spi()
[all …]
/linux-6.6.21/drivers/media/i2c/adv748x/
Dadv748x-core.c526 adv748x_tx_power(&state->txb, 1); in adv748x_reset()
527 adv748x_tx_power(&state->txb, 0); in adv748x_reset()
537 if (is_tx_enabled(&state->txb)) { in adv748x_reset()
539 adv748x_csi2_set_virtual_channel(&state->txb, 0); in adv748x_reset()
644 state->txb.num_lanes = num_lanes; in adv748x_parse_csi2_lanes()
645 state->txb.active_lanes = num_lanes; in adv748x_parse_csi2_lanes()
646 adv_dbg(state, "TXB: using %u lanes\n", state->txb.num_lanes); in adv748x_parse_csi2_lanes()
732 state->txa.state = state->txb.state = state; in adv748x_probe()
734 state->txb.page = ADV748X_PAGE_TXB; in adv748x_probe()
736 state->txb.port = ADV748X_PORT_TXB; in adv748x_probe()
[all …]
Dadv748x.h96 #define is_txb(_tx) ((_tx) == &(_tx)->state->txb)
198 struct adv748x_csi2 txb; member
/linux-6.6.21/drivers/spi/
Dspi-loopback-test.c608 u8 rxb, txb; in spi_test_check_loopback_result() local
631 txb = ((u8 *)xfer->tx_buf)[i]; in spi_test_check_loopback_result()
633 if (txb != rxb) in spi_test_check_loopback_result()
638 txb = ((u8 *)xfer->rx_buf)[0]; in spi_test_check_loopback_result()
640 if (!((txb == 0) || (txb == 0xff))) { in spi_test_check_loopback_result()
643 txb); in spi_test_check_loopback_result()
649 if (rxb != txb) in spi_test_check_loopback_result()
660 i, txb, rxb); in spi_test_check_loopback_result()
/linux-6.6.21/drivers/net/ethernet/adi/
Dadin1110.c370 struct sk_buff *txb) in adin1110_write_fifo() argument
385 if (txb->len + ADIN1110_FEC_LEN < 64) in adin1110_write_fifo()
386 padding = 64 - (txb->len + ADIN1110_FEC_LEN); in adin1110_write_fifo()
388 padded_len = txb->len + padding + ADIN1110_FRAME_HEADER_LEN; in adin1110_write_fifo()
414 txb->data, txb->len); in adin1110_write_fifo()
420 port_priv->tx_bytes += txb->len; in adin1110_write_fifo()
966 struct sk_buff *txb; in adin1110_tx_work() local
974 while ((txb = skb_dequeue(&port_priv->txq))) { in adin1110_tx_work()
975 ret = adin1110_write_fifo(port_priv, txb); in adin1110_tx_work()
980 dev_kfree_skb(txb); in adin1110_tx_work()
/linux-6.6.21/Documentation/devicetree/bindings/sound/
Dfsl,asrc.txt25 - dma-names : Contains "rxa", "rxb", "rxc", "txa", "txb" and "txc".
77 "txa", "txb", "txc";
/linux-6.6.21/drivers/net/fjes/
Dfjes_hw.h74 #define FJES_DEV_COMMAND_SHARE_BUFFER_REQ_LEN(txb, rxb) \ argument
75 (24 + (8 * ((txb) / EP_BUFFER_INFO_SIZE + (rxb) / EP_BUFFER_INFO_SIZE)))

12