Lines Matching full:twd
86 static void fbnic_unmap_single_twd(struct device *dev, __le64 *twd) in fbnic_unmap_single_twd() argument
88 u64 raw_twd = le64_to_cpu(*twd); in fbnic_unmap_single_twd()
98 static void fbnic_unmap_page_twd(struct device *dev, __le64 *twd) in fbnic_unmap_page_twd() argument
100 u64 raw_twd = le64_to_cpu(*twd); in fbnic_unmap_page_twd()
160 __le64 *twd; in fbnic_tx_map() local
177 twd = &ring->desc[tail]; in fbnic_tx_map()
182 *twd = cpu_to_le64(FIELD_PREP(FBNIC_TWD_ADDR_MASK, dma) | in fbnic_tx_map()
202 *twd |= FBNIC_TWD_TYPE(LAST_AL); in fbnic_tx_map()
204 FBNIC_XMIT_CB(skb)->desc_count = ((twd - meta) + 1) & ring->size_mask; in fbnic_tx_map()
228 twd = &ring->desc[tail]; in fbnic_tx_map()
230 fbnic_unmap_single_twd(dev, twd); in fbnic_tx_map()
232 fbnic_unmap_page_twd(dev, twd); in fbnic_tx_map()