Lines Matching refs:meta
34 struct b43legacy_dmadesc_meta **meta) in op32_idx2desc() argument
38 *meta = &(ring->meta[slot]); in op32_idx2desc()
293 struct b43legacy_dmadesc_meta *meta, in free_descriptor_buffer() argument
296 if (meta->skb) { in free_descriptor_buffer()
298 dev_kfree_skb_irq(meta->skb); in free_descriptor_buffer()
300 dev_kfree_skb(meta->skb); in free_descriptor_buffer()
301 meta->skb = NULL; in free_descriptor_buffer()
429 struct b43legacy_dmadesc_meta *meta, in setup_rx_descbuffer() argument
462 meta->skb = skb; in setup_rx_descbuffer()
463 meta->dmaaddr = dmaaddr; in setup_rx_descbuffer()
482 struct b43legacy_dmadesc_meta *meta; in alloc_initial_descbuffers() local
485 desc = op32_idx2desc(ring, i, &meta); in alloc_initial_descbuffers()
487 err = setup_rx_descbuffer(ring, desc, meta, GFP_KERNEL); in alloc_initial_descbuffers()
502 desc = op32_idx2desc(ring, i, &meta); in alloc_initial_descbuffers()
504 unmap_descbuffer(ring, meta->dmaaddr, ring->rx_buffersize, 0); in alloc_initial_descbuffers()
505 dev_kfree_skb(meta->skb); in alloc_initial_descbuffers()
571 struct b43legacy_dmadesc_meta *meta; in free_all_descbuffers() local
577 op32_idx2desc(ring, i, &meta); in free_all_descbuffers()
579 if (!meta->skb) { in free_all_descbuffers()
584 unmap_descbuffer(ring, meta->dmaaddr, in free_all_descbuffers()
585 meta->skb->len, 1); in free_all_descbuffers()
587 unmap_descbuffer(ring, meta->dmaaddr, in free_all_descbuffers()
589 free_descriptor_buffer(ring, meta, 0); in free_all_descbuffers()
631 ring->meta = kcalloc(nr_slots, sizeof(struct b43legacy_dmadesc_meta), in b43legacy_setup_dmaring()
633 if (!ring->meta) in b43legacy_setup_dmaring()
707 kfree(ring->meta); in b43legacy_setup_dmaring()
732 kfree(ring->meta); in b43legacy_destroy_dmaring()
942 struct b43legacy_dmadesc_meta *meta; in dma_tx_fragment() local
981 desc = op32_idx2desc(ring, slot, &meta); in dma_tx_fragment()
982 memset(meta, 0, sizeof(*meta)); in dma_tx_fragment()
984 meta->skb = skb; in dma_tx_fragment()
985 meta->is_last_fragment = true; in dma_tx_fragment()
987 meta->dmaaddr = map_descbuffer(ring, skb->data, skb->len, 1); in dma_tx_fragment()
989 if (b43legacy_dma_mapping_error(ring, meta->dmaaddr, skb->len, 1)) { in dma_tx_fragment()
1007 meta->skb = skb; in dma_tx_fragment()
1008 meta->dmaaddr = map_descbuffer(ring, skb->data, skb->len, 1); in dma_tx_fragment()
1009 if (b43legacy_dma_mapping_error(ring, meta->dmaaddr, skb->len, 1)) { in dma_tx_fragment()
1017 op32_fill_descriptor(ring, desc, meta->dmaaddr, in dma_tx_fragment()
1113 struct b43legacy_dmadesc_meta *meta; in b43legacy_dma_handle_txstatus() local
1141 op32_idx2desc(ring, slot, &meta); in b43legacy_dma_handle_txstatus()
1143 if (meta->skb) in b43legacy_dma_handle_txstatus()
1144 unmap_descbuffer(ring, meta->dmaaddr, in b43legacy_dma_handle_txstatus()
1145 meta->skb->len, 1); in b43legacy_dma_handle_txstatus()
1147 unmap_descbuffer(ring, meta->dmaaddr, in b43legacy_dma_handle_txstatus()
1151 if (meta->is_last_fragment) { in b43legacy_dma_handle_txstatus()
1153 BUG_ON(!meta->skb); in b43legacy_dma_handle_txstatus()
1154 info = IEEE80211_SKB_CB(meta->skb); in b43legacy_dma_handle_txstatus()
1191 ieee80211_tx_status_irqsafe(dev->wl->hw, meta->skb); in b43legacy_dma_handle_txstatus()
1193 meta->skb = NULL; in b43legacy_dma_handle_txstatus()
1198 B43legacy_WARN_ON(meta->skb != NULL); in b43legacy_dma_handle_txstatus()
1204 if (meta->is_last_fragment) in b43legacy_dma_handle_txstatus()
1232 struct b43legacy_dmadesc_meta *meta; in dma_rx() local
1239 desc = op32_idx2desc(ring, *slot, &meta); in dma_rx()
1241 sync_descbuffer_for_cpu(ring, meta->dmaaddr, ring->rx_buffersize); in dma_rx()
1242 skb = meta->skb; in dma_rx()
1259 sync_descbuffer_for_device(ring, meta->dmaaddr, in dma_rx()
1276 sync_descbuffer_for_device(ring, meta->dmaaddr, in dma_rx()
1291 desc = op32_idx2desc(ring, *slot, &meta); in dma_rx()
1293 sync_descbuffer_for_device(ring, meta->dmaaddr, in dma_rx()
1307 dmaaddr = meta->dmaaddr; in dma_rx()
1308 err = setup_rx_descbuffer(ring, desc, meta, GFP_ATOMIC); in dma_rx()