Lines Matching refs:fp
322 #define FP_COS_TO_TXQ(fp, cos, bp) \ argument
323 ((fp)->index + cos * BNX2X_NUM_NON_CNIC_QUEUES(bp))
615 #define bnx2x_fp(bp, nr, var) ((bp)->fp[(nr)].var)
616 #define bnx2x_sp_obj(bp, fp) ((bp)->sp_objs[(fp)->index]) argument
617 #define bnx2x_fp_stats(bp, fp) (&((bp)->fp_stats[(fp)->index])) argument
618 #define bnx2x_fp_qstats(bp, fp) (&((bp)->fp_stats[(fp)->index].eth_q_stats)) argument
634 static inline void bnx2x_fp_busy_poll_init(struct bnx2x_fastpath *fp) in bnx2x_fp_busy_poll_init() argument
636 WRITE_ONCE(fp->busy_poll_state, 0); in bnx2x_fp_busy_poll_init()
640 static inline bool bnx2x_fp_lock_napi(struct bnx2x_fastpath *fp) in bnx2x_fp_lock_napi() argument
642 unsigned long prev, old = READ_ONCE(fp->busy_poll_state); in bnx2x_fp_lock_napi()
649 &fp->busy_poll_state); in bnx2x_fp_lock_napi()
656 prev = cmpxchg(&fp->busy_poll_state, old, BNX2X_STATE_FP_NAPI); in bnx2x_fp_lock_napi()
665 static inline void bnx2x_fp_unlock_napi(struct bnx2x_fastpath *fp) in bnx2x_fp_unlock_napi() argument
668 fp->busy_poll_state = 0; in bnx2x_fp_unlock_napi()
672 static inline bool bnx2x_fp_lock_poll(struct bnx2x_fastpath *fp) in bnx2x_fp_lock_poll() argument
674 return cmpxchg(&fp->busy_poll_state, 0, BNX2X_STATE_FP_POLL) == 0; in bnx2x_fp_lock_poll()
677 static inline void bnx2x_fp_unlock_poll(struct bnx2x_fastpath *fp) in bnx2x_fp_unlock_poll() argument
680 clear_bit(BNX2X_STATE_FP_POLL_BIT, &fp->busy_poll_state); in bnx2x_fp_unlock_poll()
684 static inline bool bnx2x_fp_ll_polling(struct bnx2x_fastpath *fp) in bnx2x_fp_ll_polling() argument
686 return READ_ONCE(fp->busy_poll_state) & BNX2X_STATE_FP_POLL; in bnx2x_fp_ll_polling()
690 static inline bool bnx2x_fp_ll_disable(struct bnx2x_fastpath *fp) in bnx2x_fp_ll_disable() argument
692 set_bit(BNX2X_STATE_FP_DISABLE_BIT, &fp->busy_poll_state); in bnx2x_fp_ll_disable()
693 return !bnx2x_fp_ll_polling(fp); in bnx2x_fp_ll_disable()
697 static inline void bnx2x_fp_busy_poll_init(struct bnx2x_fastpath *fp) in bnx2x_fp_busy_poll_init() argument
701 static inline bool bnx2x_fp_lock_napi(struct bnx2x_fastpath *fp) in bnx2x_fp_lock_napi() argument
706 static inline void bnx2x_fp_unlock_napi(struct bnx2x_fastpath *fp) in bnx2x_fp_unlock_napi() argument
710 static inline bool bnx2x_fp_lock_poll(struct bnx2x_fastpath *fp) in bnx2x_fp_lock_poll() argument
715 static inline void bnx2x_fp_unlock_poll(struct bnx2x_fastpath *fp) in bnx2x_fp_unlock_poll() argument
719 static inline bool bnx2x_fp_ll_polling(struct bnx2x_fastpath *fp) in bnx2x_fp_ll_polling() argument
723 static inline bool bnx2x_fp_ll_disable(struct bnx2x_fastpath *fp) in bnx2x_fp_ll_disable() argument
736 #define bnx2x_fcoe_fp(bp) (&bp->fp[FCOE_IDX(bp)])
744 #define IS_ETH_FP(fp) ((fp)->index < BNX2X_NUM_ETH_QUEUES((fp)->bp)) argument
745 #define IS_FCOE_FP(fp) ((fp)->index == FCOE_IDX((fp)->bp)) argument
941 (&fp->sb_index_values[HC_INDEX_ETH_RX_CQ_CONS])
946 (&fp->sb_index_values[HC_INDEX_ETH_TX_CQ_CONS_COS0])
1449 struct bnx2x_fastpath *fp; member
2059 #define for_each_cos_in_tx_queue(fp, var) \ argument
2060 for ((var) = 0; (var) < (fp)->max_cos; (var)++)