Lines Matching refs:lstatus

158 	u32 lstatus;  in gfar_init_rxbdp()  local
162 lstatus = BD_LFLAG(RXBD_EMPTY | RXBD_INTERRUPT); in gfar_init_rxbdp()
164 lstatus |= BD_LFLAG(RXBD_WRAP); in gfar_init_rxbdp()
168 bdp->lstatus = cpu_to_be32(lstatus); in gfar_init_rxbdp()
193 txbdp->lstatus = 0; in gfar_init_bds()
1967 txbdp->lstatus = 0; in free_skb_tx_queue()
1995 rxbdp->lstatus = 0; in free_skb_rx_queue()
2327 u32 lstatus; in gfar_start_xmit() local
2393 lstatus = be32_to_cpu(txbdp->lstatus); in gfar_start_xmit()
2402 u32 lstatus_ts = be32_to_cpu(txbdp_tstamp->lstatus); in gfar_start_xmit()
2405 txbdp_tstamp->lstatus = cpu_to_be32(lstatus_ts); in gfar_start_xmit()
2407 lstatus |= BD_LFLAG(TXBD_LAST | TXBD_INTERRUPT); in gfar_start_xmit()
2418 lstatus = be32_to_cpu(txbdp->lstatus) | frag_len | in gfar_start_xmit()
2423 lstatus |= BD_LFLAG(TXBD_LAST | TXBD_INTERRUPT); in gfar_start_xmit()
2435 txbdp->lstatus = cpu_to_be32(lstatus); in gfar_start_xmit()
2438 lstatus = be32_to_cpu(txbdp_start->lstatus); in gfar_start_xmit()
2450 lstatus |= BD_LFLAG(TXBD_TOE); in gfar_start_xmit()
2466 lstatus &= ~(BD_LFLAG(TXBD_TOE)); in gfar_start_xmit()
2494 u32 lstatus_ts = be32_to_cpu(txbdp_tstamp->lstatus); in gfar_start_xmit()
2502 txbdp_tstamp->lstatus = cpu_to_be32(lstatus_ts); in gfar_start_xmit()
2503 lstatus |= BD_LFLAG(TXBD_CRC | TXBD_READY) | GMAC_FCB_LEN; in gfar_start_xmit()
2505 lstatus |= BD_LFLAG(TXBD_CRC | TXBD_READY) | skb_headlen(skb); in gfar_start_xmit()
2512 txbdp_start->lstatus = cpu_to_be32(lstatus); in gfar_start_xmit()
2555 lstatus = be32_to_cpu(txbdp->lstatus); in gfar_start_xmit()
2556 if (!(lstatus & BD_LFLAG(TXBD_READY))) in gfar_start_xmit()
2559 lstatus &= ~BD_LFLAG(TXBD_READY); in gfar_start_xmit()
2560 txbdp->lstatus = cpu_to_be32(lstatus); in gfar_start_xmit()
2672 u32 lstatus; in gfar_clean_tx_ring() local
2693 lstatus = be32_to_cpu(lbdp->lstatus); in gfar_clean_tx_ring()
2696 if ((lstatus & BD_LFLAG(TXBD_READY)) && in gfar_clean_tx_ring()
2697 (lstatus & BD_LENGTH_MASK)) in gfar_clean_tx_ring()
2833 static void count_errors(u32 lstatus, struct net_device *ndev) in count_errors() argument
2840 if (lstatus & BD_LFLAG(RXBD_TRUNCATED)) { in count_errors()
2848 if (lstatus & BD_LFLAG(RXBD_LARGE | RXBD_SHORT)) { in count_errors()
2851 if (lstatus & BD_LFLAG(RXBD_LARGE)) in count_errors()
2856 if (lstatus & BD_LFLAG(RXBD_NONOCTET)) { in count_errors()
2860 if (lstatus & BD_LFLAG(RXBD_CRCERR)) { in count_errors()
2864 if (lstatus & BD_LFLAG(RXBD_OVERRUN)) { in count_errors()
2924 static bool gfar_add_rx_frag(struct gfar_rx_buff *rxb, u32 lstatus, in gfar_add_rx_frag() argument
2927 unsigned int size = lstatus & BD_LENGTH_MASK; in gfar_add_rx_frag()
2931 if (likely(lstatus & BD_LFLAG(RXBD_LAST))) in gfar_add_rx_frag()
2975 u32 lstatus, struct sk_buff *skb) in gfar_get_next_rxbuff() argument
2996 if (gfar_add_rx_frag(rxb, lstatus, skb, first)) { in gfar_get_next_rxbuff()
3085 u32 lstatus; in gfar_clean_rx_ring() local
3093 lstatus = be32_to_cpu(bdp->lstatus); in gfar_clean_rx_ring()
3094 if (lstatus & BD_LFLAG(RXBD_EMPTY)) in gfar_clean_rx_ring()
3101 skb = gfar_get_next_rxbuff(rx_queue, lstatus, skb); in gfar_clean_rx_ring()
3114 if (!(lstatus & BD_LFLAG(RXBD_LAST))) in gfar_clean_rx_ring()
3117 if (unlikely(lstatus & BD_LFLAG(RXBD_ERR))) { in gfar_clean_rx_ring()
3118 count_errors(lstatus, ndev); in gfar_clean_rx_ring()