Lines Matching refs:cur_p
463 struct nixge_hw_dma_bd *cur_p; in nixge_start_xmit_done() local
469 cur_p = &priv->tx_bd_v[priv->tx_bd_ci]; in nixge_start_xmit_done()
472 status = cur_p->status; in nixge_start_xmit_done()
476 cur_p->status = 0; in nixge_start_xmit_done()
483 cur_p = &priv->tx_bd_v[priv->tx_bd_ci]; in nixge_start_xmit_done()
485 status = cur_p->status; in nixge_start_xmit_done()
498 struct nixge_hw_dma_bd *cur_p; in nixge_check_tx_bd_space() local
500 cur_p = &priv->tx_bd_v[(priv->tx_bd_tail + num_frag) % TX_BD_NUM]; in nixge_check_tx_bd_space()
501 if (cur_p->status & XAXIDMA_BD_STS_ALL_MASK) in nixge_check_tx_bd_space()
510 struct nixge_hw_dma_bd *cur_p; in nixge_start_xmit() local
518 cur_p = &priv->tx_bd_v[priv->tx_bd_tail]; in nixge_start_xmit()
531 nixge_hw_dma_bd_set_phys(cur_p, cur_phys); in nixge_start_xmit()
533 cur_p->cntrl = skb_headlen(skb) | XAXIDMA_BD_CTRL_TXSOF_MASK; in nixge_start_xmit()
543 cur_p = &priv->tx_bd_v[priv->tx_bd_tail]; in nixge_start_xmit()
552 nixge_hw_dma_bd_set_phys(cur_p, cur_phys); in nixge_start_xmit()
554 cur_p->cntrl = skb_frag_size(frag); in nixge_start_xmit()
565 cur_p->cntrl |= XAXIDMA_BD_CTRL_TXEOF_MASK; in nixge_start_xmit()
584 cur_p = &priv->tx_bd_v[priv->tx_bd_tail]; in nixge_start_xmit()
585 cur_p->status = 0; in nixge_start_xmit()
599 struct nixge_hw_dma_bd *cur_p; in nixge_recv() local
605 cur_p = &priv->rx_bd_v[priv->rx_bd_ci]; in nixge_recv()
607 while ((cur_p->status & XAXIDMA_BD_STS_COMPLETE_MASK && in nixge_recv()
613 nixge_hw_dma_bd_get_addr(cur_p, sw_id_offset); in nixge_recv()
615 length = cur_p->status & XAXIDMA_BD_STS_ACTUAL_LEN_MASK; in nixge_recv()
620 nixge_hw_dma_bd_get_addr(cur_p, phys), in nixge_recv()
651 nixge_hw_dma_bd_set_phys(cur_p, cur_phys); in nixge_recv()
652 cur_p->cntrl = NIXGE_MAX_JUMBO_FRAME_SIZE; in nixge_recv()
653 cur_p->status = 0; in nixge_recv()
654 nixge_hw_dma_bd_set_offset(cur_p, (uintptr_t)new_skb); in nixge_recv()
658 cur_p = &priv->rx_bd_v[priv->rx_bd_ci]; in nixge_recv()
794 struct nixge_hw_dma_bd *cur_p; in nixge_dma_err_handler() local
802 cur_p = &lp->tx_bd_v[i]; in nixge_dma_err_handler()
806 nixge_hw_dma_bd_set_phys(cur_p, 0); in nixge_dma_err_handler()
807 cur_p->cntrl = 0; in nixge_dma_err_handler()
808 cur_p->status = 0; in nixge_dma_err_handler()
809 nixge_hw_dma_bd_set_offset(cur_p, 0); in nixge_dma_err_handler()
813 cur_p = &lp->rx_bd_v[i]; in nixge_dma_err_handler()
814 cur_p->status = 0; in nixge_dma_err_handler()