Lines Matching refs:fcb
1725 struct txfcb *fcb = skb_push(skb, GMAC_FCB_LEN);
1727 memset(fcb, 0, GMAC_FCB_LEN);
1729 return fcb;
1732 static inline void gfar_tx_checksum(struct sk_buff *skb, struct txfcb *fcb,
1746 fcb->phcs = (__force __be16)(udp_hdr(skb)->check);
1748 fcb->phcs = (__force __be16)(tcp_hdr(skb)->check);
1755 fcb->l3os = (u8)(skb_network_offset(skb) - fcb_length);
1756 fcb->l4os = skb_network_header_len(skb);
1758 fcb->flags = flags;
1761 static inline void gfar_tx_vlan(struct sk_buff *skb, struct txfcb *fcb)
1763 fcb->flags |= TXFCB_VLN;
1764 fcb->vlctl = cpu_to_be16(skb_vlan_tag_get(skb));
1781 /* eTSEC12: csum generation not supported for some fcb offsets */
1808 struct txfcb *fcb = NULL;
1835 /* make space for additional header when fcb is needed */
1879 fcb = gfar_add_fcb(skb);
1885 gfar_tx_checksum(skb, fcb, fcb_len);
1887 if (unlikely(gfar_csum_errata_12(priv, (unsigned long)fcb)) ||
1892 /* put back a new fcb for vlan/tstamp TOE */
1893 fcb = gfar_add_fcb(skb);
1897 fcb = NULL;
1903 gfar_tx_vlan(skb, fcb);
1975 fcb->ptp = 1;
2477 static inline void gfar_rx_checksum(struct sk_buff *skb, struct rxfcb *fcb)
2483 if ((be16_to_cpu(fcb->flags) & RXFCB_CSUM_MASK) ==
2494 struct rxfcb *fcb = NULL;
2496 /* fcb is at the beginning if exists */
2497 fcb = (struct rxfcb *)skb->data;
2521 gfar_rx_checksum(skb, fcb);
2528 be16_to_cpu(fcb->flags) & RXFCB_VLN)
2530 be16_to_cpu(fcb->vlctl));