• Home
  • Raw
  • Download

Lines Matching refs:unmap

118 	struct bnad_tx_unmap *unmap;  in bnad_tx_buff_unmap()  local
122 unmap = &unmap_q[index]; in bnad_tx_buff_unmap()
123 nvecs = unmap->nvecs; in bnad_tx_buff_unmap()
125 skb = unmap->skb; in bnad_tx_buff_unmap()
126 unmap->skb = NULL; in bnad_tx_buff_unmap()
127 unmap->nvecs = 0; in bnad_tx_buff_unmap()
129 dma_unmap_addr(&unmap->vectors[0], dma_addr), in bnad_tx_buff_unmap()
131 dma_unmap_addr_set(&unmap->vectors[0], dma_addr, 0); in bnad_tx_buff_unmap()
140 unmap = &unmap_q[index]; in bnad_tx_buff_unmap()
144 dma_unmap_addr(&unmap->vectors[vector], dma_addr), in bnad_tx_buff_unmap()
146 dma_unmap_addr_set(&unmap->vectors[vector], dma_addr, 0); in bnad_tx_buff_unmap()
188 struct bnad_tx_unmap *unmap; in bnad_txcmpl_process() local
203 unmap = &unmap_q[cons]; in bnad_txcmpl_process()
205 skb = unmap->skb; in bnad_txcmpl_process()
210 unmap_wis = BNA_TXQ_WI_NEEDED(unmap->nvecs); in bnad_txcmpl_process()
310 bnad_rxq_cleanup_page(struct bnad *bnad, struct bnad_rx_unmap *unmap) in bnad_rxq_cleanup_page() argument
312 if (!unmap->page) in bnad_rxq_cleanup_page()
316 dma_unmap_addr(&unmap->vector, dma_addr), in bnad_rxq_cleanup_page()
317 unmap->vector.len, DMA_FROM_DEVICE); in bnad_rxq_cleanup_page()
318 put_page(unmap->page); in bnad_rxq_cleanup_page()
319 unmap->page = NULL; in bnad_rxq_cleanup_page()
320 dma_unmap_addr_set(&unmap->vector, dma_addr, 0); in bnad_rxq_cleanup_page()
321 unmap->vector.len = 0; in bnad_rxq_cleanup_page()
325 bnad_rxq_cleanup_skb(struct bnad *bnad, struct bnad_rx_unmap *unmap) in bnad_rxq_cleanup_skb() argument
327 if (!unmap->skb) in bnad_rxq_cleanup_skb()
331 dma_unmap_addr(&unmap->vector, dma_addr), in bnad_rxq_cleanup_skb()
332 unmap->vector.len, DMA_FROM_DEVICE); in bnad_rxq_cleanup_skb()
333 dev_kfree_skb_any(unmap->skb); in bnad_rxq_cleanup_skb()
334 unmap->skb = NULL; in bnad_rxq_cleanup_skb()
335 dma_unmap_addr_set(&unmap->vector, dma_addr, 0); in bnad_rxq_cleanup_skb()
336 unmap->vector.len = 0; in bnad_rxq_cleanup_skb()
346 struct bnad_rx_unmap *unmap = &unmap_q->unmap[i]; in bnad_rxq_cleanup() local
349 bnad_rxq_cleanup_page(bnad, unmap); in bnad_rxq_cleanup()
351 bnad_rxq_cleanup_skb(bnad, unmap); in bnad_rxq_cleanup()
361 struct bnad_rx_unmap *unmap, *prev; in bnad_rxq_refill_page() local
374 unmap = &unmap_q->unmap[prod]; in bnad_rxq_refill_page()
381 prev = &unmap_q->unmap[unmap_q->reuse_pi]; in bnad_rxq_refill_page()
396 unmap->page = page; in bnad_rxq_refill_page()
397 unmap->page_offset = page_offset; in bnad_rxq_refill_page()
398 dma_unmap_addr_set(&unmap->vector, dma_addr, dma_addr); in bnad_rxq_refill_page()
399 unmap->vector.len = unmap_q->map_size; in bnad_rxq_refill_page()
429 struct bnad_rx_unmap *unmap; in bnad_rxq_refill_skb() local
440 unmap = &unmap_q->unmap[prod]; in bnad_rxq_refill_skb()
452 unmap->skb = skb; in bnad_rxq_refill_skb()
453 dma_unmap_addr_set(&unmap->vector, dma_addr, dma_addr); in bnad_rxq_refill_skb()
454 unmap->vector.len = buff_sz; in bnad_rxq_refill_skb()
506 struct bnad_rx_unmap *unmap, in bnad_cq_prepare_skb() argument
518 dma_unmap_addr(&unmap->vector, dma_addr), in bnad_cq_prepare_skb()
519 unmap->vector.len, DMA_FROM_DEVICE); in bnad_cq_prepare_skb()
521 unmap->page, unmap->page_offset, length); in bnad_cq_prepare_skb()
526 unmap->page = NULL; in bnad_cq_prepare_skb()
527 unmap->vector.len = 0; in bnad_cq_prepare_skb()
532 skb = unmap->skb; in bnad_cq_prepare_skb()
536 dma_unmap_addr(&unmap->vector, dma_addr), in bnad_cq_prepare_skb()
537 unmap->vector.len, DMA_FROM_DEVICE); in bnad_cq_prepare_skb()
543 unmap->skb = NULL; in bnad_cq_prepare_skb()
544 unmap->vector.len = 0; in bnad_cq_prepare_skb()
554 struct bnad_rx_unmap *unmap; in bnad_cq_process() local
577 unmap = &unmap_q->unmap[rcb->consumer_index]; in bnad_cq_process()
583 bnad_rxq_cleanup_page(bnad, unmap); in bnad_cq_process()
585 bnad_rxq_cleanup_skb(bnad, unmap); in bnad_cq_process()
591 skb = bnad_cq_prepare_skb(ccb->ctrl, unmap_q, unmap, in bnad_cq_process()
2756 struct bnad_tx_unmap *unmap_q, *unmap, *head_unmap; in bnad_start_xmit() local
2853 unmap = head_unmap; in bnad_start_xmit()
2858 dma_unmap_addr_set(&unmap->vectors[0], dma_addr, dma_addr); in bnad_start_xmit()
2883 unmap = &unmap_q[prod]; in bnad_start_xmit()
2890 dma_unmap_addr_set(&unmap->vectors[vect_id], dma_addr, in bnad_start_xmit()