Lines Matching refs:packet

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