Lines Matching refs:fcb

1694 	struct txfcb *fcb = skb_push(skb, GMAC_FCB_LEN);  in gfar_add_fcb()  local
1696 memset(fcb, 0, GMAC_FCB_LEN); in gfar_add_fcb()
1698 return fcb; in gfar_add_fcb()
1701 static inline void gfar_tx_checksum(struct sk_buff *skb, struct txfcb *fcb, in gfar_tx_checksum() argument
1715 fcb->phcs = (__force __be16)(udp_hdr(skb)->check); in gfar_tx_checksum()
1717 fcb->phcs = (__force __be16)(tcp_hdr(skb)->check); in gfar_tx_checksum()
1724 fcb->l3os = (u8)(skb_network_offset(skb) - fcb_length); in gfar_tx_checksum()
1725 fcb->l4os = skb_network_header_len(skb); in gfar_tx_checksum()
1727 fcb->flags = flags; in gfar_tx_checksum()
1730 static inline void gfar_tx_vlan(struct sk_buff *skb, struct txfcb *fcb) in gfar_tx_vlan() argument
1732 fcb->flags |= TXFCB_VLN; in gfar_tx_vlan()
1733 fcb->vlctl = cpu_to_be16(skb_vlan_tag_get(skb)); in gfar_tx_vlan()
1777 struct txfcb *fcb = NULL; in gfar_start_xmit() local
1848 fcb = gfar_add_fcb(skb); in gfar_start_xmit()
1854 gfar_tx_checksum(skb, fcb, fcb_len); in gfar_start_xmit()
1856 if (unlikely(gfar_csum_errata_12(priv, (unsigned long)fcb)) || in gfar_start_xmit()
1862 fcb = gfar_add_fcb(skb); in gfar_start_xmit()
1866 fcb = NULL; in gfar_start_xmit()
1872 gfar_tx_vlan(skb, fcb); in gfar_start_xmit()
1944 fcb->ptp = 1; in gfar_start_xmit()
2443 static inline void gfar_rx_checksum(struct sk_buff *skb, struct rxfcb *fcb) in gfar_rx_checksum() argument
2449 if ((be16_to_cpu(fcb->flags) & RXFCB_CSUM_MASK) == in gfar_rx_checksum()
2460 struct rxfcb *fcb = NULL; in gfar_process_frame() local
2463 fcb = (struct rxfcb *)skb->data; in gfar_process_frame()
2487 gfar_rx_checksum(skb, fcb); in gfar_process_frame()
2494 be16_to_cpu(fcb->flags) & RXFCB_VLN) in gfar_process_frame()
2496 be16_to_cpu(fcb->vlctl)); in gfar_process_frame()