Lines Matching refs:wrb
768 static inline void wrb_fill(struct be_eth_wrb *wrb, u64 addr, int len) in wrb_fill() argument
770 wrb->frag_pa_hi = cpu_to_le32(upper_32_bits(addr)); in wrb_fill()
771 wrb->frag_pa_lo = cpu_to_le32(lower_32_bits(addr)); in wrb_fill()
772 wrb->frag_len = cpu_to_le32(len & ETH_WRB_FRAG_LEN_MASK); in wrb_fill()
773 wrb->rsvd0 = 0; in wrb_fill()
779 static inline void wrb_fill_dummy(struct be_eth_wrb *wrb) in wrb_fill_dummy() argument
781 wrb->frag_pa_hi = 0; in wrb_fill_dummy()
782 wrb->frag_pa_lo = 0; in wrb_fill_dummy()
783 wrb->frag_len = 0; in wrb_fill_dummy()
784 wrb->rsvd0 = 0; in wrb_fill_dummy()
900 static void unmap_tx_frag(struct device *dev, struct be_eth_wrb *wrb, in unmap_tx_frag() argument
904 u32 frag_len = le32_to_cpu(wrb->frag_len); in unmap_tx_frag()
907 dma = (u64)le32_to_cpu(wrb->frag_pa_hi) << 32 | in unmap_tx_frag()
908 (u64)le32_to_cpu(wrb->frag_pa_lo); in unmap_tx_frag()
951 struct be_eth_wrb *wrb; in be_tx_setup_wrb_frag() local
954 wrb = queue_head_node(txq); in be_tx_setup_wrb_frag()
955 wrb_fill(wrb, busaddr, len); in be_tx_setup_wrb_frag()
968 struct be_eth_wrb *wrb; in be_xmit_restore() local
977 wrb = queue_head_node(txq); in be_xmit_restore()
978 unmap_tx_frag(dev, wrb, map_single); in be_xmit_restore()
980 copied -= le32_to_cpu(wrb->frag_len); in be_xmit_restore()
2754 struct be_eth_wrb *wrb; in be_tx_compl_process() local
2769 wrb = queue_tail_node(txq); in be_tx_compl_process()
2771 unmap_tx_frag(&adapter->pdev->dev, wrb, in be_tx_compl_process()