Lines Matching full:packet
43 const u8 *packet, in tx_get_next_word() argument
54 source = packet; in tx_get_next_word()
65 const u8 *packet, in tx_data() argument
72 data = tx_get_next_word(txhdr, packet, in tx_data()
80 data = tx_get_next_word(txhdr, packet, in tx_data()
85 tx_octet(queue, packet[octets - in tx_data()
104 struct b43legacy_pio_txpacket *packet) in generate_cookie() argument
111 * for the packet index (in the cache). in generate_cookie()
128 packetindex = pio_txpacket_getindex(packet); in generate_cookie()
138 struct b43legacy_pio_txpacket **packet) in parse_cookie() argument
163 *packet = &(queue->tx_packets_cache[packetindex]); in parse_cookie()
174 struct b43legacy_pio_txpacket *packet, in pio_tx_write_fragment() argument
188 generate_cookie(queue, packet)); in pio_tx_write_fragment()
202 static void free_txpacket(struct b43legacy_pio_txpacket *packet, in free_txpacket() argument
205 struct b43legacy_pioqueue *queue = packet->queue; in free_txpacket()
207 if (packet->skb) { in free_txpacket()
209 dev_kfree_skb_irq(packet->skb); in free_txpacket()
211 dev_kfree_skb(packet->skb); in free_txpacket()
213 list_move(&packet->list, &queue->txfree); in free_txpacket()
217 static int pio_tx_packet(struct b43legacy_pio_txpacket *packet) in pio_tx_packet() argument
219 struct b43legacy_pioqueue *queue = packet->queue; in pio_tx_packet()
220 struct sk_buff *skb = packet->skb; in pio_tx_packet()
227 "Dropping packet.\n"); in pio_tx_packet()
229 free_txpacket(packet, 1); in pio_tx_packet()
244 err = pio_tx_write_fragment(queue, skb, packet, in pio_tx_packet()
247 /* Drop this packet, as we don't have the encryption key in pio_tx_packet()
249 free_txpacket(packet, 1); in pio_tx_packet()
253 /* Account for the packet size. in pio_tx_packet()
260 * packet to the txrunning list. in pio_tx_packet()
262 list_move_tail(&packet->list, &queue->txrunning); in pio_tx_packet()
272 struct b43legacy_pio_txpacket *packet, *tmp_packet; in tx_tasklet() local
283 list_for_each_entry_safe(packet, tmp_packet, &queue->txqueue, list) { in tx_tasklet()
284 /* Try to transmit the packet. This can fail, if in tx_tasklet()
286 * packet is left in the txqueue. in tx_tasklet()
287 * If transmission succeed, the packet is moved to txrunning. in tx_tasklet()
288 * If it is impossible to transmit the packet, it in tx_tasklet()
291 err = pio_tx_packet(packet); in tx_tasklet()
301 struct b43legacy_pio_txpacket *packet; in setup_txqueues() local
306 packet = &(queue->tx_packets_cache[i]); in setup_txqueues()
308 packet->queue = queue; in setup_txqueues()
309 INIT_LIST_HEAD(&packet->list); in setup_txqueues()
311 list_add(&packet->list, &queue->txfree); in setup_txqueues()
369 struct b43legacy_pio_txpacket *packet, *tmp_packet; in cancel_transfers() local
373 list_for_each_entry_safe(packet, tmp_packet, &queue->txrunning, list) in cancel_transfers()
374 free_txpacket(packet, 0); in cancel_transfers()
375 list_for_each_entry_safe(packet, tmp_packet, &queue->txqueue, list) in cancel_transfers()
376 free_txpacket(packet, 0); in cancel_transfers()
456 struct b43legacy_pio_txpacket *packet; in b43legacy_pio_tx() local
461 packet = list_entry(queue->txfree.next, struct b43legacy_pio_txpacket, in b43legacy_pio_tx()
463 packet->skb = skb; in b43legacy_pio_tx()
465 list_move_tail(&packet->list, &queue->txqueue); in b43legacy_pio_tx()
478 struct b43legacy_pio_txpacket *packet; in b43legacy_pio_handle_txstatus() local
482 queue = parse_cookie(dev, status->cookie, &packet); in b43legacy_pio_handle_txstatus()
485 if (!packet->skb) in b43legacy_pio_handle_txstatus()
489 queue->tx_devq_used -= (packet->skb->len + in b43legacy_pio_handle_txstatus()
492 info = IEEE80211_SKB_CB(packet->skb); in b43legacy_pio_handle_txstatus()
524 ieee80211_tx_status_irqsafe(dev->wl->hw, packet->skb); in b43legacy_pio_handle_txstatus()
525 packet->skb = NULL; in b43legacy_pio_handle_txstatus()
527 free_txpacket(packet, 1); in b43legacy_pio_handle_txstatus()