Lines Matching refs:cur_p

659 	struct axidma_bd *cur_p;  in axienet_free_tx_chain()  local
665 cur_p = &lp->tx_bd_v[(first_bd + i) % lp->tx_bd_num]; in axienet_free_tx_chain()
666 status = cur_p->status; in axienet_free_tx_chain()
676 phys = desc_get_phys_addr(lp, cur_p); in axienet_free_tx_chain()
678 (cur_p->cntrl & XAXIDMA_BD_CTRL_LENGTH_MASK), in axienet_free_tx_chain()
681 if (cur_p->skb && (status & XAXIDMA_BD_STS_COMPLETE_MASK)) in axienet_free_tx_chain()
682 napi_consume_skb(cur_p->skb, budget); in axienet_free_tx_chain()
684 cur_p->app0 = 0; in axienet_free_tx_chain()
685 cur_p->app1 = 0; in axienet_free_tx_chain()
686 cur_p->app2 = 0; in axienet_free_tx_chain()
687 cur_p->app4 = 0; in axienet_free_tx_chain()
688 cur_p->skb = NULL; in axienet_free_tx_chain()
691 cur_p->cntrl = 0; in axienet_free_tx_chain()
692 cur_p->status = 0; in axienet_free_tx_chain()
717 struct axidma_bd *cur_p; in axienet_check_tx_bd_space() local
721 cur_p = &lp->tx_bd_v[(READ_ONCE(lp->tx_bd_tail) + num_frag) % in axienet_check_tx_bd_space()
723 if (cur_p->cntrl) in axienet_check_tx_bd_space()
802 struct axidma_bd *cur_p; in axienet_start_xmit() local
808 cur_p = &lp->tx_bd_v[orig_tail_ptr]; in axienet_start_xmit()
824 cur_p->app0 |= 2; in axienet_start_xmit()
829 cur_p->app0 |= 1; in axienet_start_xmit()
830 cur_p->app1 = (csum_start_off << 16) | csum_index_off; in axienet_start_xmit()
833 cur_p->app0 |= 2; /* Tx Full Checksum Offload Enabled */ in axienet_start_xmit()
844 desc_set_phys_addr(lp, phys, cur_p); in axienet_start_xmit()
845 cur_p->cntrl = skb_headlen(skb) | XAXIDMA_BD_CTRL_TXSOF_MASK; in axienet_start_xmit()
850 cur_p = &lp->tx_bd_v[new_tail_ptr]; in axienet_start_xmit()
864 desc_set_phys_addr(lp, phys, cur_p); in axienet_start_xmit()
865 cur_p->cntrl = skb_frag_size(frag); in axienet_start_xmit()
868 cur_p->cntrl |= XAXIDMA_BD_CTRL_TXEOF_MASK; in axienet_start_xmit()
869 cur_p->skb = skb; in axienet_start_xmit()
908 struct axidma_bd *cur_p; in axienet_rx_poll() local
912 cur_p = &lp->rx_bd_v[lp->rx_bd_ci]; in axienet_rx_poll()
914 while (packets < budget && (cur_p->status & XAXIDMA_BD_STS_COMPLETE_MASK)) { in axienet_rx_poll()
920 skb = cur_p->skb; in axienet_rx_poll()
921 cur_p->skb = NULL; in axienet_rx_poll()
929 length = cur_p->app4 & 0x0000FFFF; in axienet_rx_poll()
931 phys = desc_get_phys_addr(lp, cur_p); in axienet_rx_poll()
942 csumstatus = (cur_p->app2 & in axienet_rx_poll()
951 skb->csum = be32_to_cpu(cur_p->app3 & 0xFFFF); in axienet_rx_poll()
974 desc_set_phys_addr(lp, phys, cur_p); in axienet_rx_poll()
976 cur_p->cntrl = lp->max_frm_size; in axienet_rx_poll()
977 cur_p->status = 0; in axienet_rx_poll()
978 cur_p->skb = new_skb; in axienet_rx_poll()
987 cur_p = &lp->rx_bd_v[lp->rx_bd_ci]; in axienet_rx_poll()
1758 struct axidma_bd *cur_p; in axienet_dma_err_handler() local
1772 cur_p = &lp->tx_bd_v[i]; in axienet_dma_err_handler()
1773 if (cur_p->cntrl) { in axienet_dma_err_handler()
1774 dma_addr_t addr = desc_get_phys_addr(lp, cur_p); in axienet_dma_err_handler()
1777 (cur_p->cntrl & in axienet_dma_err_handler()
1781 if (cur_p->skb) in axienet_dma_err_handler()
1782 dev_kfree_skb_irq(cur_p->skb); in axienet_dma_err_handler()
1783 cur_p->phys = 0; in axienet_dma_err_handler()
1784 cur_p->phys_msb = 0; in axienet_dma_err_handler()
1785 cur_p->cntrl = 0; in axienet_dma_err_handler()
1786 cur_p->status = 0; in axienet_dma_err_handler()
1787 cur_p->app0 = 0; in axienet_dma_err_handler()
1788 cur_p->app1 = 0; in axienet_dma_err_handler()
1789 cur_p->app2 = 0; in axienet_dma_err_handler()
1790 cur_p->app3 = 0; in axienet_dma_err_handler()
1791 cur_p->app4 = 0; in axienet_dma_err_handler()
1792 cur_p->skb = NULL; in axienet_dma_err_handler()
1796 cur_p = &lp->rx_bd_v[i]; in axienet_dma_err_handler()
1797 cur_p->status = 0; in axienet_dma_err_handler()
1798 cur_p->app0 = 0; in axienet_dma_err_handler()
1799 cur_p->app1 = 0; in axienet_dma_err_handler()
1800 cur_p->app2 = 0; in axienet_dma_err_handler()
1801 cur_p->app3 = 0; in axienet_dma_err_handler()
1802 cur_p->app4 = 0; in axienet_dma_err_handler()