Lines Matching refs:fp

320 #define FP_COS_TO_TXQ(fp, cos, bp) \  argument
321 ((fp)->index + cos * BNX2X_NUM_NON_CNIC_QUEUES(bp))
604 #define bnx2x_fp(bp, nr, var) ((bp)->fp[(nr)].var)
605 #define bnx2x_sp_obj(bp, fp) ((bp)->sp_objs[(fp)->index]) argument
606 #define bnx2x_fp_stats(bp, fp) (&((bp)->fp_stats[(fp)->index])) argument
607 #define bnx2x_fp_qstats(bp, fp) (&((bp)->fp_stats[(fp)->index].eth_q_stats)) argument
623 static inline void bnx2x_fp_busy_poll_init(struct bnx2x_fastpath *fp) in bnx2x_fp_busy_poll_init() argument
625 WRITE_ONCE(fp->busy_poll_state, 0); in bnx2x_fp_busy_poll_init()
629 static inline bool bnx2x_fp_lock_napi(struct bnx2x_fastpath *fp) in bnx2x_fp_lock_napi() argument
631 unsigned long prev, old = READ_ONCE(fp->busy_poll_state); in bnx2x_fp_lock_napi()
638 &fp->busy_poll_state); in bnx2x_fp_lock_napi()
645 prev = cmpxchg(&fp->busy_poll_state, old, BNX2X_STATE_FP_NAPI); in bnx2x_fp_lock_napi()
654 static inline void bnx2x_fp_unlock_napi(struct bnx2x_fastpath *fp) in bnx2x_fp_unlock_napi() argument
657 fp->busy_poll_state = 0; in bnx2x_fp_unlock_napi()
661 static inline bool bnx2x_fp_lock_poll(struct bnx2x_fastpath *fp) in bnx2x_fp_lock_poll() argument
663 return cmpxchg(&fp->busy_poll_state, 0, BNX2X_STATE_FP_POLL) == 0; in bnx2x_fp_lock_poll()
666 static inline void bnx2x_fp_unlock_poll(struct bnx2x_fastpath *fp) in bnx2x_fp_unlock_poll() argument
669 clear_bit(BNX2X_STATE_FP_POLL_BIT, &fp->busy_poll_state); in bnx2x_fp_unlock_poll()
673 static inline bool bnx2x_fp_ll_polling(struct bnx2x_fastpath *fp) in bnx2x_fp_ll_polling() argument
675 return READ_ONCE(fp->busy_poll_state) & BNX2X_STATE_FP_POLL; in bnx2x_fp_ll_polling()
679 static inline bool bnx2x_fp_ll_disable(struct bnx2x_fastpath *fp) in bnx2x_fp_ll_disable() argument
681 set_bit(BNX2X_STATE_FP_DISABLE_BIT, &fp->busy_poll_state); in bnx2x_fp_ll_disable()
682 return !bnx2x_fp_ll_polling(fp); in bnx2x_fp_ll_disable()
686 static inline void bnx2x_fp_busy_poll_init(struct bnx2x_fastpath *fp) in bnx2x_fp_busy_poll_init() argument
690 static inline bool bnx2x_fp_lock_napi(struct bnx2x_fastpath *fp) in bnx2x_fp_lock_napi() argument
695 static inline void bnx2x_fp_unlock_napi(struct bnx2x_fastpath *fp) in bnx2x_fp_unlock_napi() argument
699 static inline bool bnx2x_fp_lock_poll(struct bnx2x_fastpath *fp) in bnx2x_fp_lock_poll() argument
704 static inline void bnx2x_fp_unlock_poll(struct bnx2x_fastpath *fp) in bnx2x_fp_unlock_poll() argument
708 static inline bool bnx2x_fp_ll_polling(struct bnx2x_fastpath *fp) in bnx2x_fp_ll_polling() argument
712 static inline bool bnx2x_fp_ll_disable(struct bnx2x_fastpath *fp) in bnx2x_fp_ll_disable() argument
725 #define bnx2x_fcoe_fp(bp) (&bp->fp[FCOE_IDX(bp)])
733 #define IS_ETH_FP(fp) ((fp)->index < BNX2X_NUM_ETH_QUEUES((fp)->bp)) argument
734 #define IS_FCOE_FP(fp) ((fp)->index == FCOE_IDX((fp)->bp)) argument
930 (&fp->sb_index_values[HC_INDEX_ETH_RX_CQ_CONS])
935 (&fp->sb_index_values[HC_INDEX_ETH_TX_CQ_CONS_COS0])
1422 struct bnx2x_fastpath *fp; member
2035 #define for_each_cos_in_tx_queue(fp, var) \ argument
2036 for ((var) = 0; (var) < (fp)->max_cos; (var)++)