Lines Matching refs:txdata
542 int bnx2x_tx_int(struct bnx2x *bp, struct bnx2x_fp_txdata *txdata);
727 static inline int bnx2x_has_tx_work_unload(struct bnx2x_fp_txdata *txdata) in bnx2x_has_tx_work_unload() argument
731 return txdata->tx_pkt_prod != txdata->tx_pkt_cons; in bnx2x_has_tx_work_unload()
735 struct bnx2x_fp_txdata *txdata) in bnx2x_tx_avail() argument
741 prod = txdata->tx_bd_prod; in bnx2x_tx_avail()
742 cons = txdata->tx_bd_cons; in bnx2x_tx_avail()
748 WARN_ON(used > txdata->tx_ring_size); in bnx2x_tx_avail()
749 WARN_ON((txdata->tx_ring_size - used) > MAX_TX_AVAIL); in bnx2x_tx_avail()
752 return (s16)(txdata->tx_ring_size) - used; in bnx2x_tx_avail()
755 static inline int bnx2x_tx_queue_has_work(struct bnx2x_fp_txdata *txdata) in bnx2x_tx_queue_has_work() argument
761 hw_cons = le16_to_cpu(*txdata->tx_cons_sb); in bnx2x_tx_queue_has_work()
762 return hw_cons != txdata->tx_pkt_cons; in bnx2x_tx_queue_has_work()
1162 struct bnx2x_fp_txdata *txdata, u32 cid, in bnx2x_init_txdata() argument
1166 txdata->cid = cid; in bnx2x_init_txdata()
1167 txdata->txq_index = txq_index; in bnx2x_init_txdata()
1168 txdata->tx_cons_sb = tx_cons_sb; in bnx2x_init_txdata()
1169 txdata->parent_fp = fp; in bnx2x_init_txdata()
1170 txdata->tx_ring_size = IS_FCOE_FP(fp) ? MAX_TX_AVAIL : bp->tx_ring_size; in bnx2x_init_txdata()
1173 txdata->cid, txdata->txq_index); in bnx2x_init_txdata()
1194 struct bnx2x_fp_txdata *txdata) in bnx2x_clean_tx_queue() argument
1198 while (bnx2x_has_tx_work_unload(txdata)) { in bnx2x_clean_tx_queue()
1201 txdata->txq_index, txdata->tx_pkt_prod, in bnx2x_clean_tx_queue()
1202 txdata->tx_pkt_cons); in bnx2x_clean_tx_queue()