• Home
  • Raw
  • Download

Lines Matching refs:lstatus

112 	u32 lstatus;  in gfar_init_rxbdp()  local
116 lstatus = BD_LFLAG(RXBD_EMPTY | RXBD_INTERRUPT); in gfar_init_rxbdp()
118 lstatus |= BD_LFLAG(RXBD_WRAP); in gfar_init_rxbdp()
122 bdp->lstatus = cpu_to_be32(lstatus); in gfar_init_rxbdp()
1076 txbdp->lstatus = 0; in free_skb_tx_queue()
1103 rxbdp->lstatus = 0; in free_skb_rx_queue()
1304 txbdp->lstatus = 0; in gfar_init_bds()
1777 u32 lstatus; in gfar_start_xmit() local
1836 lstatus = be32_to_cpu(txbdp->lstatus); in gfar_start_xmit()
1847 lstatus |= BD_LFLAG(TXBD_TOE); in gfar_start_xmit()
1863 lstatus &= ~(BD_LFLAG(TXBD_TOE)); in gfar_start_xmit()
1886 lstatus |= BD_LFLAG(TXBD_LAST | TXBD_INTERRUPT); in gfar_start_xmit()
1888 u32 lstatus_start = lstatus; in gfar_start_xmit()
1900 lstatus = be32_to_cpu(txbdp->lstatus) | size | in gfar_start_xmit()
1905 lstatus |= BD_LFLAG(TXBD_LAST | TXBD_INTERRUPT); in gfar_start_xmit()
1914 txbdp->lstatus = cpu_to_be32(lstatus); in gfar_start_xmit()
1917 lstatus = lstatus_start; in gfar_start_xmit()
1926 u32 lstatus_ts = be32_to_cpu(txbdp_tstamp->lstatus); in gfar_start_xmit()
1937 txbdp_tstamp->lstatus = cpu_to_be32(lstatus_ts); in gfar_start_xmit()
1938 lstatus |= BD_LFLAG(TXBD_CRC | TXBD_READY) | GMAC_FCB_LEN; in gfar_start_xmit()
1944 lstatus |= BD_LFLAG(TXBD_CRC | TXBD_READY) | skb_headlen(skb); in gfar_start_xmit()
1951 txbdp_start->lstatus = cpu_to_be32(lstatus); in gfar_start_xmit()
1994 lstatus = be32_to_cpu(txbdp->lstatus); in gfar_start_xmit()
1995 if (!(lstatus & BD_LFLAG(TXBD_READY))) in gfar_start_xmit()
1998 lstatus &= ~BD_LFLAG(TXBD_READY); in gfar_start_xmit()
1999 txbdp->lstatus = cpu_to_be32(lstatus); in gfar_start_xmit()
2167 u32 lstatus; in gfar_clean_tx_ring() local
2192 lstatus = be32_to_cpu(lbdp->lstatus); in gfar_clean_tx_ring()
2195 if ((lstatus & BD_LFLAG(TXBD_READY)) && in gfar_clean_tx_ring()
2196 (lstatus & BD_LENGTH_MASK)) in gfar_clean_tx_ring()
2261 static void count_errors(u32 lstatus, struct net_device *ndev) in count_errors() argument
2268 if (lstatus & BD_LFLAG(RXBD_TRUNCATED)) { in count_errors()
2276 if (lstatus & BD_LFLAG(RXBD_LARGE | RXBD_SHORT)) { in count_errors()
2279 if (lstatus & BD_LFLAG(RXBD_LARGE)) in count_errors()
2284 if (lstatus & BD_LFLAG(RXBD_NONOCTET)) { in count_errors()
2288 if (lstatus & BD_LFLAG(RXBD_CRCERR)) { in count_errors()
2292 if (lstatus & BD_LFLAG(RXBD_OVERRUN)) { in count_errors()
2352 static bool gfar_add_rx_frag(struct gfar_rx_buff *rxb, u32 lstatus, in gfar_add_rx_frag() argument
2355 int size = lstatus & BD_LENGTH_MASK; in gfar_add_rx_frag()
2362 if (lstatus & BD_LFLAG(RXBD_LAST)) in gfar_add_rx_frag()
2408 u32 lstatus, struct sk_buff *skb) in gfar_get_next_rxbuff() argument
2429 if (gfar_add_rx_frag(rxb, lstatus, skb, first)) { in gfar_get_next_rxbuff()
2519 u32 lstatus; in gfar_clean_rx_ring() local
2527 lstatus = be32_to_cpu(bdp->lstatus); in gfar_clean_rx_ring()
2528 if (lstatus & BD_LFLAG(RXBD_EMPTY)) in gfar_clean_rx_ring()
2533 (lstatus & BD_LFLAG(RXBD_FIRST))) { in gfar_clean_rx_ring()
2546 skb = gfar_get_next_rxbuff(rx_queue, lstatus, skb); in gfar_clean_rx_ring()
2559 if (!(lstatus & BD_LFLAG(RXBD_LAST))) in gfar_clean_rx_ring()
2562 if (unlikely(lstatus & BD_LFLAG(RXBD_ERR))) { in gfar_clean_rx_ring()
2563 count_errors(lstatus, ndev); in gfar_clean_rx_ring()