Lines Matching refs:txbd
312 struct fm_port_bd *txbd; in fm_eth_tx_port_parameter_init() local
348 txbd = (struct fm_port_bd *)tx_bd_ring_base; in fm_eth_tx_port_parameter_init()
350 muram_writew(&txbd->status, TxBD_LAST); in fm_eth_tx_port_parameter_init()
351 muram_writew(&txbd->len, 0); in fm_eth_tx_port_parameter_init()
352 muram_writew(&txbd->buf_ptr_hi, 0); in fm_eth_tx_port_parameter_init()
353 out_be32(&txbd->buf_ptr_lo, 0); in fm_eth_tx_port_parameter_init()
354 txbd++; in fm_eth_tx_port_parameter_init()
518 struct fm_port_bd *txbd, *txbd_base; in fm_eth_send() local
524 txbd = fm_eth->cur_txbd; in fm_eth_send()
527 for (i = 0; muram_readw(&txbd->status) & TxBD_READY; i++) { in fm_eth_send()
531 dev->name, muram_readw(&txbd->status)); in fm_eth_send()
536 muram_writew(&txbd->buf_ptr_hi, (u16)upper_32_bits(virt_to_phys(buf))); in fm_eth_send()
537 out_be32(&txbd->buf_ptr_lo, lower_32_bits(virt_to_phys(buf))); in fm_eth_send()
538 muram_writew(&txbd->len, len); in fm_eth_send()
540 muram_writew(&txbd->status, TxBD_READY | TxBD_LAST); in fm_eth_send()
552 for (i = 0; muram_readw(&txbd->status) & TxBD_READY; i++) { in fm_eth_send()
556 dev->name, muram_readw(&txbd->status)); in fm_eth_send()
562 txbd++; in fm_eth_send()
564 if (txbd >= (txbd_base + TX_BD_RING_SIZE)) in fm_eth_send()
565 txbd = txbd_base; in fm_eth_send()
567 fm_eth->cur_txbd = (void *)txbd; in fm_eth_send()