1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
-
- #ifndef _CDP_TXRX_CTRL_DEF_H_
- #define _CDP_TXRX_CTRL_DEF_H_
- #if !QCA_OL_TX_PDEV_LOCK && QCA_NSS_PLATFORM || \
- (defined QCA_PARTNER_PLATFORM && QCA_PARTNER_SUPPORT_FAST_TX)
- #define VAP_TX_SPIN_LOCK(_x) spin_lock(_x)
- #define VAP_TX_SPIN_UNLOCK(_x) spin_unlock(_x)
- #else
- #define VAP_TX_SPIN_LOCK(_x)
- #define VAP_TX_SPIN_UNLOCK(_x)
- #endif
- #if QCA_OL_TX_PDEV_LOCK
- void ol_ll_pdev_tx_lock(void *);
- void ol_ll_pdev_tx_unlock(void *);
- #define OL_TX_LOCK(_x) ol_ll_pdev_tx_lock(_x)
- #define OL_TX_UNLOCK(_x) ol_ll_pdev_tx_unlock(_x)
- #define OL_TX_PDEV_LOCK(_x) qdf_spin_lock_bh(_x)
- #define OL_TX_PDEV_UNLOCK(_x) qdf_spin_unlock_bh(_x)
- #else
- #define OL_TX_PDEV_LOCK(_x)
- #define OL_TX_PDEV_UNLOCK(_x)
- #define OL_TX_LOCK(_x)
- #define OL_TX_UNLOCK(_x)
- #endif
- #if !QCA_OL_TX_PDEV_LOCK
- #define OL_TX_FLOW_CTRL_LOCK(_x) qdf_spin_lock_bh(_x)
- #define OL_TX_FLOW_CTRL_UNLOCK(_x) qdf_spin_unlock_bh(_x)
- #define OL_TX_DESC_LOCK(_x) qdf_spin_lock_bh(_x)
- #define OL_TX_DESC_UNLOCK(_x) qdf_spin_unlock_bh(_x)
- #define OSIF_VAP_TX_LOCK(_x) spin_lock(&((_x)->tx_lock))
- #define OSIF_VAP_TX_UNLOCK(_x) spin_unlock(&((_x)->tx_lock))
- #define OL_TX_PEER_LOCK(_x, _id) qdf_spin_lock_bh(&((_x)->peer_lock[_id]))
- #define OL_TX_PEER_UNLOCK(_x, _id) qdf_spin_unlock_bh(&((_x)->peer_lock[_id]))
- #define OL_TX_PEER_UPDATE_LOCK(_x, _id) \
- qdf_spin_lock_bh(&((_x)->peer_lock[_id]))
- #define OL_TX_PEER_UPDATE_UNLOCK(_x, _id) \
- qdf_spin_unlock_bh(&((_x)->peer_lock[_id]))
- #else
- #define OSIF_VAP_TX_LOCK(_x) ol_ll_pdev_tx_lock((_x)->iv_txrx_handle)
- #define OSIF_VAP_TX_UNLOCK(_x) ol_ll_pdev_tx_unlock((_x)->iv_txrx_handle)
- #define OL_TX_FLOW_CTRL_LOCK(_x)
- #define OL_TX_FLOW_CTRL_UNLOCK(_x)
- #define OL_TX_DESC_LOCK(_x)
- #define OL_TX_DESC_UNLOCK(_x)
- #define OL_TX_PEER_LOCK(_x, _id)
- #define OL_TX_PEER_UNLOCK(_x, _id)
- #define OL_TX_PEER_UPDATE_LOCK(_x, _id) qdf_spin_lock_bh(&((_x)->tx_lock))
- #define OL_TX_PEER_UPDATE_UNLOCK(_x, _id) qdf_spin_unlock_bh(&((_x)->tx_lock))
- #endif
- #endif
|