Lines Matching refs:rxbi

709 	struct jme_buffer_info *rxbi = rxring->bufinf;  in jme_set_clean_rxdesc()  local
711 rxbi += i; in jme_set_clean_rxdesc()
715 rxdesc->desc1.bufaddrh = cpu_to_le32((__u64)rxbi->mapping >> 32); in jme_set_clean_rxdesc()
717 (__u64)rxbi->mapping & 0xFFFFFFFFUL); in jme_set_clean_rxdesc()
718 rxdesc->desc1.datalen = cpu_to_le16(rxbi->len); in jme_set_clean_rxdesc()
729 struct jme_buffer_info *rxbi = rxring->bufinf + i; in jme_make_new_rx_buf() local
746 if (likely(rxbi->mapping)) in jme_make_new_rx_buf()
747 dma_unmap_page(&jme->pdev->dev, rxbi->mapping, rxbi->len, in jme_make_new_rx_buf()
750 rxbi->skb = skb; in jme_make_new_rx_buf()
751 rxbi->len = skb_tailroom(skb); in jme_make_new_rx_buf()
752 rxbi->mapping = mapping; in jme_make_new_rx_buf()
760 struct jme_buffer_info *rxbi = rxring->bufinf; in jme_free_rx_buf() local
761 rxbi += i; in jme_free_rx_buf()
763 if (rxbi->skb) { in jme_free_rx_buf()
764 dma_unmap_page(&jme->pdev->dev, rxbi->mapping, rxbi->len, in jme_free_rx_buf()
766 dev_kfree_skb(rxbi->skb); in jme_free_rx_buf()
767 rxbi->skb = NULL; in jme_free_rx_buf()
768 rxbi->mapping = 0; in jme_free_rx_buf()
769 rxbi->len = 0; in jme_free_rx_buf()
997 struct jme_buffer_info *rxbi = rxring->bufinf; in jme_alloc_and_feed_skb() local
1002 rxbi += idx; in jme_alloc_and_feed_skb()
1004 skb = rxbi->skb; in jme_alloc_and_feed_skb()
1005 dma_sync_single_for_cpu(&jme->pdev->dev, rxbi->mapping, rxbi->len, in jme_alloc_and_feed_skb()
1009 dma_sync_single_for_device(&jme->pdev->dev, rxbi->mapping, in jme_alloc_and_feed_skb()
1010 rxbi->len, DMA_FROM_DEVICE); in jme_alloc_and_feed_skb()