Lines Matching refs:cur_p
774 struct cdmac_bd *cur_p; in temac_start_xmit_done() local
778 cur_p = &lp->tx_bd_v[lp->tx_bd_ci]; in temac_start_xmit_done()
779 stat = be32_to_cpu(cur_p->app0); in temac_start_xmit_done()
786 dma_unmap_single(ndev->dev.parent, be32_to_cpu(cur_p->phys), in temac_start_xmit_done()
787 be32_to_cpu(cur_p->len), DMA_TO_DEVICE); in temac_start_xmit_done()
788 skb = (struct sk_buff *)ptr_from_txbd(cur_p); in temac_start_xmit_done()
791 cur_p->app1 = 0; in temac_start_xmit_done()
792 cur_p->app2 = 0; in temac_start_xmit_done()
793 cur_p->app3 = 0; in temac_start_xmit_done()
794 cur_p->app4 = 0; in temac_start_xmit_done()
797 ndev->stats.tx_bytes += be32_to_cpu(cur_p->len); in temac_start_xmit_done()
803 cur_p->app0 = 0; in temac_start_xmit_done()
809 cur_p = &lp->tx_bd_v[lp->tx_bd_ci]; in temac_start_xmit_done()
810 stat = be32_to_cpu(cur_p->app0); in temac_start_xmit_done()
821 struct cdmac_bd *cur_p; in temac_check_tx_bd_space() local
825 cur_p = &lp->tx_bd_v[tail]; in temac_check_tx_bd_space()
828 if (cur_p->app0) in temac_check_tx_bd_space()
838 cur_p = &lp->tx_bd_v[tail]; in temac_check_tx_bd_space()
849 struct cdmac_bd *cur_p; in temac_start_xmit() local
857 cur_p = &lp->tx_bd_v[lp->tx_bd_tail]; in temac_start_xmit()
875 cur_p->app0 = 0; in temac_start_xmit()
880 cur_p->app0 |= cpu_to_be32(0x000001); /* TX Checksum Enabled */ in temac_start_xmit()
881 cur_p->app1 = cpu_to_be32((csum_start_off << 16) in temac_start_xmit()
883 cur_p->app2 = 0; /* initial checksum seed */ in temac_start_xmit()
886 cur_p->app0 |= cpu_to_be32(STS_CTRL_APP0_SOP); in temac_start_xmit()
889 cur_p->len = cpu_to_be32(skb_headlen(skb)); in temac_start_xmit()
895 cur_p->phys = cpu_to_be32(skb_dma_addr); in temac_start_xmit()
901 cur_p = &lp->tx_bd_v[lp->tx_bd_tail]; in temac_start_xmit()
909 cur_p = &lp->tx_bd_v[lp->tx_bd_tail]; in temac_start_xmit()
913 be32_to_cpu(cur_p->phys), in temac_start_xmit()
918 cur_p = &lp->tx_bd_v[lp->tx_bd_tail]; in temac_start_xmit()
921 be32_to_cpu(cur_p->phys), in temac_start_xmit()
927 cur_p->phys = cpu_to_be32(skb_dma_addr); in temac_start_xmit()
928 cur_p->len = cpu_to_be32(skb_frag_size(frag)); in temac_start_xmit()
929 cur_p->app0 = 0; in temac_start_xmit()
932 cur_p->app0 |= cpu_to_be32(STS_CTRL_APP0_EOP); in temac_start_xmit()
937 ptr_to_txbd((void *)skb, cur_p); in temac_start_xmit()