Lines Matching refs:q
506 typedef int (*rspq_handler_t)(struct sge_rspq *q, const __be64 *rsp,
605 struct sge_txq q; member
617 struct sge_txq q; member
626 struct sge_txq q; member
972 static inline void cxgb_busy_poll_init_lock(struct sge_rspq *q) in cxgb_busy_poll_init_lock() argument
974 spin_lock_init(&q->bpoll_lock); in cxgb_busy_poll_init_lock()
975 q->bpoll_state = CXGB_POLL_STATE_IDLE; in cxgb_busy_poll_init_lock()
978 static inline bool cxgb_poll_lock_napi(struct sge_rspq *q) in cxgb_poll_lock_napi() argument
982 spin_lock(&q->bpoll_lock); in cxgb_poll_lock_napi()
983 if (q->bpoll_state & CXGB_POLL_LOCKED) { in cxgb_poll_lock_napi()
984 q->bpoll_state |= CXGB_POLL_STATE_NAPI_YIELD; in cxgb_poll_lock_napi()
987 q->bpoll_state = CXGB_POLL_STATE_NAPI; in cxgb_poll_lock_napi()
989 spin_unlock(&q->bpoll_lock); in cxgb_poll_lock_napi()
993 static inline bool cxgb_poll_unlock_napi(struct sge_rspq *q) in cxgb_poll_unlock_napi() argument
997 spin_lock(&q->bpoll_lock); in cxgb_poll_unlock_napi()
998 if (q->bpoll_state & CXGB_POLL_STATE_POLL_YIELD) in cxgb_poll_unlock_napi()
1000 q->bpoll_state = CXGB_POLL_STATE_IDLE; in cxgb_poll_unlock_napi()
1001 spin_unlock(&q->bpoll_lock); in cxgb_poll_unlock_napi()
1005 static inline bool cxgb_poll_lock_poll(struct sge_rspq *q) in cxgb_poll_lock_poll() argument
1009 spin_lock_bh(&q->bpoll_lock); in cxgb_poll_lock_poll()
1010 if (q->bpoll_state & CXGB_POLL_LOCKED) { in cxgb_poll_lock_poll()
1011 q->bpoll_state |= CXGB_POLL_STATE_POLL_YIELD; in cxgb_poll_lock_poll()
1014 q->bpoll_state |= CXGB_POLL_STATE_POLL; in cxgb_poll_lock_poll()
1016 spin_unlock_bh(&q->bpoll_lock); in cxgb_poll_lock_poll()
1020 static inline bool cxgb_poll_unlock_poll(struct sge_rspq *q) in cxgb_poll_unlock_poll() argument
1024 spin_lock_bh(&q->bpoll_lock); in cxgb_poll_unlock_poll()
1025 if (q->bpoll_state & CXGB_POLL_STATE_POLL_YIELD) in cxgb_poll_unlock_poll()
1027 q->bpoll_state = CXGB_POLL_STATE_IDLE; in cxgb_poll_unlock_poll()
1028 spin_unlock_bh(&q->bpoll_lock); in cxgb_poll_unlock_poll()
1032 static inline bool cxgb_poll_busy_polling(struct sge_rspq *q) in cxgb_poll_busy_polling() argument
1034 return q->bpoll_state & CXGB_POLL_USER_PEND; in cxgb_poll_busy_polling()
1037 static inline void cxgb_busy_poll_init_lock(struct sge_rspq *q) in cxgb_busy_poll_init_lock() argument
1041 static inline bool cxgb_poll_lock_napi(struct sge_rspq *q) in cxgb_poll_lock_napi() argument
1046 static inline bool cxgb_poll_unlock_napi(struct sge_rspq *q) in cxgb_poll_unlock_napi() argument
1051 static inline bool cxgb_poll_lock_poll(struct sge_rspq *q) in cxgb_poll_lock_poll() argument
1056 static inline bool cxgb_poll_unlock_poll(struct sge_rspq *q) in cxgb_poll_unlock_poll() argument
1061 static inline bool cxgb_poll_busy_polling(struct sge_rspq *q) in cxgb_poll_busy_polling() argument
1080 const struct sge_rspq *q) in qtimer_val() argument
1082 unsigned int idx = q->intr_params >> 1; in qtimer_val()
1097 void t4_free_ofld_rxqs(struct adapter *adap, int n, struct sge_ofld_rxq *q);
1100 int t4_ethrx_handler(struct sge_rspq *q, const __be64 *rsp,
1120 int cxgb4_set_rspq_intr_params(struct sge_rspq *q, unsigned int us,
1275 const struct sge_rspq *q);