Lines Matching refs:rxbd
225 struct fm_port_bd *rxbd; in fm_eth_rx_port_parameter_init() local
275 rxbd = (struct fm_port_bd *)rx_bd_ring_base; in fm_eth_rx_port_parameter_init()
277 muram_writew(&rxbd->status, RxBD_EMPTY); in fm_eth_rx_port_parameter_init()
278 muram_writew(&rxbd->len, 0); in fm_eth_rx_port_parameter_init()
283 muram_writew(&rxbd->buf_ptr_hi, (u16)buf_hi); in fm_eth_rx_port_parameter_init()
284 out_be32(&rxbd->buf_ptr_lo, buf_lo); in fm_eth_rx_port_parameter_init()
285 rxbd++; in fm_eth_rx_port_parameter_init()
576 struct fm_port_bd *rxbd, *rxbd_base; in fm_eth_recv() local
585 rxbd = fm_eth->cur_rxbd; in fm_eth_recv()
586 status = muram_readw(&rxbd->status); in fm_eth_recv()
590 buf_hi = muram_readw(&rxbd->buf_ptr_hi); in fm_eth_recv()
591 buf_lo = in_be32(&rxbd->buf_ptr_lo); in fm_eth_recv()
593 len = muram_readw(&rxbd->len); in fm_eth_recv()
601 muram_writew(&rxbd->status, RxBD_EMPTY); in fm_eth_recv()
602 muram_writew(&rxbd->len, 0); in fm_eth_recv()
606 rxbd++; in fm_eth_recv()
608 if (rxbd >= (rxbd_base + RX_BD_RING_SIZE)) in fm_eth_recv()
609 rxbd = rxbd_base; in fm_eth_recv()
611 status = muram_readw(&rxbd->status); in fm_eth_recv()
621 fm_eth->cur_rxbd = (void *)rxbd; in fm_eth_recv()