Lines Matching refs:rxbd
226 struct fm_port_bd *rxbd; in fm_eth_rx_port_parameter_init() local
276 rxbd = (struct fm_port_bd *)rx_bd_ring_base; in fm_eth_rx_port_parameter_init()
278 muram_writew(&rxbd->status, RxBD_EMPTY); in fm_eth_rx_port_parameter_init()
279 muram_writew(&rxbd->len, 0); in fm_eth_rx_port_parameter_init()
284 muram_writew(&rxbd->buf_ptr_hi, (u16)buf_hi); in fm_eth_rx_port_parameter_init()
285 out_be32(&rxbd->buf_ptr_lo, buf_lo); in fm_eth_rx_port_parameter_init()
286 rxbd++; in fm_eth_rx_port_parameter_init()
577 struct fm_port_bd *rxbd, *rxbd_base; in fm_eth_recv() local
586 rxbd = fm_eth->cur_rxbd; in fm_eth_recv()
587 status = muram_readw(&rxbd->status); in fm_eth_recv()
591 buf_hi = muram_readw(&rxbd->buf_ptr_hi); in fm_eth_recv()
592 buf_lo = in_be32(&rxbd->buf_ptr_lo); in fm_eth_recv()
594 len = muram_readw(&rxbd->len); in fm_eth_recv()
602 muram_writew(&rxbd->status, RxBD_EMPTY); in fm_eth_recv()
603 muram_writew(&rxbd->len, 0); in fm_eth_recv()
607 rxbd++; in fm_eth_recv()
609 if (rxbd >= (rxbd_base + RX_BD_RING_SIZE)) in fm_eth_recv()
610 rxbd = rxbd_base; in fm_eth_recv()
612 status = muram_readw(&rxbd->status); in fm_eth_recv()
622 fm_eth->cur_rxbd = (void *)rxbd; in fm_eth_recv()