Lines Matching refs:csum_vlan
460 u32 status, csum_vlan; in ftgmac100_rx_packet() local
484 csum_vlan = le32_to_cpu(rxdes->rxdes1); in ftgmac100_rx_packet()
494 (csum_vlan & FTGMAC100_RXDES1_VLANTAG_AVAIL) && in ftgmac100_rx_packet()
527 if ((csum_vlan & err_bits) || in ftgmac100_rx_packet()
528 !(csum_vlan & FTGMAC100_RXDES1_PROT_MASK)) in ftgmac100_rx_packet()
539 (csum_vlan & FTGMAC100_RXDES1_VLANTAG_AVAIL)) in ftgmac100_rx_packet()
541 csum_vlan & 0xffff); in ftgmac100_rx_packet()
693 static bool ftgmac100_prep_tx_csum(struct sk_buff *skb, u32 *csum_vlan) in ftgmac100_prep_tx_csum() argument
698 *csum_vlan |= FTGMAC100_TXDES1_IP_CHKSUM; in ftgmac100_prep_tx_csum()
701 *csum_vlan |= FTGMAC100_TXDES1_TCP_CHKSUM; in ftgmac100_prep_tx_csum()
704 *csum_vlan |= FTGMAC100_TXDES1_UDP_CHKSUM; in ftgmac100_prep_tx_csum()
719 u32 f_ctl_stat, ctl_stat, csum_vlan; in ftgmac100_hard_start_xmit() local
741 csum_vlan = 0; in ftgmac100_hard_start_xmit()
743 !ftgmac100_prep_tx_csum(skb, &csum_vlan)) in ftgmac100_hard_start_xmit()
748 csum_vlan |= FTGMAC100_TXDES1_INS_VLANTAG; in ftgmac100_hard_start_xmit()
749 csum_vlan |= skb_vlan_tag_get(skb) & 0xffff; in ftgmac100_hard_start_xmit()
778 txdes->txdes1 = cpu_to_le32(csum_vlan); in ftgmac100_hard_start_xmit()