Lines Matching refs:fcb
1692 struct txfcb *fcb = skb_push(skb, GMAC_FCB_LEN); in gfar_add_fcb() local
1694 memset(fcb, 0, GMAC_FCB_LEN); in gfar_add_fcb()
1696 return fcb; in gfar_add_fcb()
1699 static inline void gfar_tx_checksum(struct sk_buff *skb, struct txfcb *fcb, in gfar_tx_checksum() argument
1713 fcb->phcs = (__force __be16)(udp_hdr(skb)->check); in gfar_tx_checksum()
1715 fcb->phcs = (__force __be16)(tcp_hdr(skb)->check); in gfar_tx_checksum()
1722 fcb->l3os = (u8)(skb_network_offset(skb) - fcb_length); in gfar_tx_checksum()
1723 fcb->l4os = skb_network_header_len(skb); in gfar_tx_checksum()
1725 fcb->flags = flags; in gfar_tx_checksum()
1728 static inline void gfar_tx_vlan(struct sk_buff *skb, struct txfcb *fcb) in gfar_tx_vlan() argument
1730 fcb->flags |= TXFCB_VLN; in gfar_tx_vlan()
1731 fcb->vlctl = cpu_to_be16(skb_vlan_tag_get(skb)); in gfar_tx_vlan()
1775 struct txfcb *fcb = NULL; in gfar_start_xmit() local
1846 fcb = gfar_add_fcb(skb); in gfar_start_xmit()
1852 gfar_tx_checksum(skb, fcb, fcb_len); in gfar_start_xmit()
1854 if (unlikely(gfar_csum_errata_12(priv, (unsigned long)fcb)) || in gfar_start_xmit()
1860 fcb = gfar_add_fcb(skb); in gfar_start_xmit()
1864 fcb = NULL; in gfar_start_xmit()
1870 gfar_tx_vlan(skb, fcb); in gfar_start_xmit()
1942 fcb->ptp = 1; in gfar_start_xmit()
2441 static inline void gfar_rx_checksum(struct sk_buff *skb, struct rxfcb *fcb) in gfar_rx_checksum() argument
2447 if ((be16_to_cpu(fcb->flags) & RXFCB_CSUM_MASK) == in gfar_rx_checksum()
2458 struct rxfcb *fcb = NULL; in gfar_process_frame() local
2461 fcb = (struct rxfcb *)skb->data; in gfar_process_frame()
2485 gfar_rx_checksum(skb, fcb); in gfar_process_frame()
2492 be16_to_cpu(fcb->flags) & RXFCB_VLN) in gfar_process_frame()
2494 be16_to_cpu(fcb->vlctl)); in gfar_process_frame()