Lines Matching refs:q

475 typedef int (*rspq_handler_t)(struct sge_rspq *q, const __be64 *rsp,
574 struct sge_txq q; member
586 struct sge_txq q; member
595 struct sge_txq q; member
924 static inline void cxgb_busy_poll_init_lock(struct sge_rspq *q) in cxgb_busy_poll_init_lock() argument
926 spin_lock_init(&q->bpoll_lock); in cxgb_busy_poll_init_lock()
927 q->bpoll_state = CXGB_POLL_STATE_IDLE; in cxgb_busy_poll_init_lock()
930 static inline bool cxgb_poll_lock_napi(struct sge_rspq *q) in cxgb_poll_lock_napi() argument
934 spin_lock(&q->bpoll_lock); in cxgb_poll_lock_napi()
935 if (q->bpoll_state & CXGB_POLL_LOCKED) { in cxgb_poll_lock_napi()
936 q->bpoll_state |= CXGB_POLL_STATE_NAPI_YIELD; in cxgb_poll_lock_napi()
939 q->bpoll_state = CXGB_POLL_STATE_NAPI; in cxgb_poll_lock_napi()
941 spin_unlock(&q->bpoll_lock); in cxgb_poll_lock_napi()
945 static inline bool cxgb_poll_unlock_napi(struct sge_rspq *q) in cxgb_poll_unlock_napi() argument
949 spin_lock(&q->bpoll_lock); in cxgb_poll_unlock_napi()
950 if (q->bpoll_state & CXGB_POLL_STATE_POLL_YIELD) in cxgb_poll_unlock_napi()
952 q->bpoll_state = CXGB_POLL_STATE_IDLE; in cxgb_poll_unlock_napi()
953 spin_unlock(&q->bpoll_lock); in cxgb_poll_unlock_napi()
957 static inline bool cxgb_poll_lock_poll(struct sge_rspq *q) in cxgb_poll_lock_poll() argument
961 spin_lock_bh(&q->bpoll_lock); in cxgb_poll_lock_poll()
962 if (q->bpoll_state & CXGB_POLL_LOCKED) { in cxgb_poll_lock_poll()
963 q->bpoll_state |= CXGB_POLL_STATE_POLL_YIELD; in cxgb_poll_lock_poll()
966 q->bpoll_state |= CXGB_POLL_STATE_POLL; in cxgb_poll_lock_poll()
968 spin_unlock_bh(&q->bpoll_lock); in cxgb_poll_lock_poll()
972 static inline bool cxgb_poll_unlock_poll(struct sge_rspq *q) in cxgb_poll_unlock_poll() argument
976 spin_lock_bh(&q->bpoll_lock); in cxgb_poll_unlock_poll()
977 if (q->bpoll_state & CXGB_POLL_STATE_POLL_YIELD) in cxgb_poll_unlock_poll()
979 q->bpoll_state = CXGB_POLL_STATE_IDLE; in cxgb_poll_unlock_poll()
980 spin_unlock_bh(&q->bpoll_lock); in cxgb_poll_unlock_poll()
984 static inline bool cxgb_poll_busy_polling(struct sge_rspq *q) in cxgb_poll_busy_polling() argument
986 return q->bpoll_state & CXGB_POLL_USER_PEND; in cxgb_poll_busy_polling()
989 static inline void cxgb_busy_poll_init_lock(struct sge_rspq *q) in cxgb_busy_poll_init_lock() argument
993 static inline bool cxgb_poll_lock_napi(struct sge_rspq *q) in cxgb_poll_lock_napi() argument
998 static inline bool cxgb_poll_unlock_napi(struct sge_rspq *q) in cxgb_poll_unlock_napi() argument
1003 static inline bool cxgb_poll_lock_poll(struct sge_rspq *q) in cxgb_poll_lock_poll() argument
1008 static inline bool cxgb_poll_unlock_poll(struct sge_rspq *q) in cxgb_poll_unlock_poll() argument
1013 static inline bool cxgb_poll_busy_polling(struct sge_rspq *q) in cxgb_poll_busy_polling() argument
1032 const struct sge_rspq *q) in qtimer_val() argument
1034 unsigned int idx = q->intr_params >> 1; in qtimer_val()
1049 void t4_free_ofld_rxqs(struct adapter *adap, int n, struct sge_ofld_rxq *q);
1052 int t4_ethrx_handler(struct sge_rspq *q, const __be64 *rsp,
1072 int cxgb4_set_rspq_intr_params(struct sge_rspq *q, unsigned int us,
1192 const struct sge_rspq *q);