Lines Matching refs:be16_to_cpu
203 txbdp->status = cpu_to_be16(be16_to_cpu(txbdp->status) | in gfar_init_bds()
1906 be16_to_cpu(txbdp->length), DMA_TO_DEVICE); in free_skb_tx_queue()
1912 be16_to_cpu(txbdp->length), in free_skb_tx_queue()
2498 dma_unmap_page(priv->dev, bufaddr, be16_to_cpu(txbdp->length), in gfar_start_xmit()
2648 buflen = be16_to_cpu(next->length) + in gfar_clean_tx_ring()
2651 buflen = be16_to_cpu(bdp->length); in gfar_clean_tx_ring()
2673 be16_to_cpu(bdp->length), in gfar_clean_tx_ring()
2832 if ((be16_to_cpu(fcb->flags) & RXFCB_CSUM_MASK) == in gfar_rx_checksum()
2880 be16_to_cpu(fcb->flags) & RXFCB_VLN) in gfar_process_frame()
2882 be16_to_cpu(fcb->vlctl)); in gfar_process_frame()
2909 while (!(be16_to_cpu(bdp->status) & RXBD_EMPTY) && rx_work_limit--) { in gfar_clean_rx_ring()
2923 if (unlikely(!(be16_to_cpu(bdp->status) & RXBD_ERR) && in gfar_clean_rx_ring()
2924 be16_to_cpu(bdp->length) > priv->rx_buffer_size)) in gfar_clean_rx_ring()
2929 !(be16_to_cpu(bdp->status) & RXBD_LAST) || in gfar_clean_rx_ring()
2930 be16_to_cpu(bdp->status) & RXBD_ERR)) { in gfar_clean_rx_ring()
2931 count_errors(be16_to_cpu(bdp->status), dev); in gfar_clean_rx_ring()
2944 pkt_len = be16_to_cpu(bdp->length) - in gfar_clean_rx_ring()