Lines Matching refs:first
768 struct fm10k_tx_buffer *first) in fm10k_tso() argument
770 struct sk_buff *skb = first->skb; in fm10k_tso()
793 first->tx_flags |= FM10K_TX_FLAGS_CSUM; in fm10k_tso()
796 first->gso_segs = skb_shinfo(skb)->gso_segs; in fm10k_tso()
797 first->bytecount += (first->gso_segs - 1) * hdrlen; in fm10k_tso()
814 struct fm10k_tx_buffer *first) in fm10k_tx_csum() argument
816 struct sk_buff *skb = first->skb; in fm10k_tx_csum()
887 first->tx_flags |= FM10K_TX_FLAGS_CSUM; in fm10k_tx_csum()
956 struct fm10k_tx_buffer *first) in fm10k_tx_map() argument
958 struct sk_buff *skb = first->skb; in fm10k_tx_map()
965 u32 tx_flags = first->tx_flags; in fm10k_tx_map()
983 tx_buffer = first; in fm10k_tx_map()
1029 netdev_tx_sent_queue(txring_txq(tx_ring), first->bytecount); in fm10k_tx_map()
1032 skb_tx_timestamp(first->skb); in fm10k_tx_map()
1044 first->next_to_watch = tx_desc; in fm10k_tx_map()
1069 if (tx_buffer == first) in fm10k_tx_map()
1083 struct fm10k_tx_buffer *first; in fm10k_xmit_frame_ring() local
1102 first = &tx_ring->tx_buffer[tx_ring->next_to_use]; in fm10k_xmit_frame_ring()
1103 first->skb = skb; in fm10k_xmit_frame_ring()
1104 first->bytecount = max_t(unsigned int, skb->len, ETH_ZLEN); in fm10k_xmit_frame_ring()
1105 first->gso_segs = 1; in fm10k_xmit_frame_ring()
1108 first->tx_flags = tx_flags; in fm10k_xmit_frame_ring()
1110 tso = fm10k_tso(tx_ring, first); in fm10k_xmit_frame_ring()
1114 fm10k_tx_csum(tx_ring, first); in fm10k_xmit_frame_ring()
1116 fm10k_tx_map(tx_ring, first); in fm10k_xmit_frame_ring()
1121 dev_kfree_skb_any(first->skb); in fm10k_xmit_frame_ring()
1122 first->skb = NULL; in fm10k_xmit_frame_ring()