Lines Matching refs:q_vector

252 	struct ixgbe_q_vector *q_vector; /* backpointer to host q_vector */  member
407 static inline void ixgbe_qv_init_lock(struct ixgbe_q_vector *q_vector) in ixgbe_qv_init_lock() argument
410 atomic_set(&q_vector->state, IXGBE_QV_STATE_IDLE); in ixgbe_qv_init_lock()
414 static inline bool ixgbe_qv_lock_napi(struct ixgbe_q_vector *q_vector) in ixgbe_qv_lock_napi() argument
416 int rc = atomic_cmpxchg(&q_vector->state, IXGBE_QV_STATE_IDLE, in ixgbe_qv_lock_napi()
420 q_vector->tx.ring->stats.yields++; in ixgbe_qv_lock_napi()
427 static inline void ixgbe_qv_unlock_napi(struct ixgbe_q_vector *q_vector) in ixgbe_qv_unlock_napi() argument
429 WARN_ON(atomic_read(&q_vector->state) != IXGBE_QV_STATE_NAPI); in ixgbe_qv_unlock_napi()
432 if (q_vector->napi.gro_list) in ixgbe_qv_unlock_napi()
433 napi_gro_flush(&q_vector->napi, false); in ixgbe_qv_unlock_napi()
436 atomic_set(&q_vector->state, IXGBE_QV_STATE_IDLE); in ixgbe_qv_unlock_napi()
440 static inline bool ixgbe_qv_lock_poll(struct ixgbe_q_vector *q_vector) in ixgbe_qv_lock_poll() argument
442 int rc = atomic_cmpxchg(&q_vector->state, IXGBE_QV_STATE_IDLE, in ixgbe_qv_lock_poll()
446 q_vector->tx.ring->stats.yields++; in ixgbe_qv_lock_poll()
452 static inline void ixgbe_qv_unlock_poll(struct ixgbe_q_vector *q_vector) in ixgbe_qv_unlock_poll() argument
454 WARN_ON(atomic_read(&q_vector->state) != IXGBE_QV_STATE_POLL); in ixgbe_qv_unlock_poll()
457 atomic_set(&q_vector->state, IXGBE_QV_STATE_IDLE); in ixgbe_qv_unlock_poll()
461 static inline bool ixgbe_qv_busy_polling(struct ixgbe_q_vector *q_vector) in ixgbe_qv_busy_polling() argument
463 return atomic_read(&q_vector->state) == IXGBE_QV_STATE_POLL; in ixgbe_qv_busy_polling()
467 static inline bool ixgbe_qv_disable(struct ixgbe_q_vector *q_vector) in ixgbe_qv_disable() argument
469 int rc = atomic_cmpxchg(&q_vector->state, IXGBE_QV_STATE_IDLE, in ixgbe_qv_disable()
476 static inline void ixgbe_qv_init_lock(struct ixgbe_q_vector *q_vector) in ixgbe_qv_init_lock() argument
480 static inline bool ixgbe_qv_lock_napi(struct ixgbe_q_vector *q_vector) in ixgbe_qv_lock_napi() argument
485 static inline bool ixgbe_qv_unlock_napi(struct ixgbe_q_vector *q_vector) in ixgbe_qv_unlock_napi() argument
490 static inline bool ixgbe_qv_lock_poll(struct ixgbe_q_vector *q_vector) in ixgbe_qv_lock_poll() argument
495 static inline bool ixgbe_qv_unlock_poll(struct ixgbe_q_vector *q_vector) in ixgbe_qv_unlock_poll() argument
500 static inline bool ixgbe_qv_busy_polling(struct ixgbe_q_vector *q_vector) in ixgbe_qv_busy_polling() argument
505 static inline bool ixgbe_qv_disable(struct ixgbe_q_vector *q_vector) in ixgbe_qv_disable() argument
675 struct ixgbe_q_vector *q_vector[MAX_Q_VECTORS]; member