Lines Matching refs:q_vector

260 	struct ixgbe_q_vector *q_vector; /* backpointer to host q_vector */  member
415 static inline void ixgbe_qv_init_lock(struct ixgbe_q_vector *q_vector) in ixgbe_qv_init_lock() argument
418 atomic_set(&q_vector->state, IXGBE_QV_STATE_IDLE); in ixgbe_qv_init_lock()
422 static inline bool ixgbe_qv_lock_napi(struct ixgbe_q_vector *q_vector) in ixgbe_qv_lock_napi() argument
424 int rc = atomic_cmpxchg(&q_vector->state, IXGBE_QV_STATE_IDLE, in ixgbe_qv_lock_napi()
428 q_vector->tx.ring->stats.yields++; in ixgbe_qv_lock_napi()
435 static inline void ixgbe_qv_unlock_napi(struct ixgbe_q_vector *q_vector) in ixgbe_qv_unlock_napi() argument
437 WARN_ON(atomic_read(&q_vector->state) != IXGBE_QV_STATE_NAPI); in ixgbe_qv_unlock_napi()
440 if (q_vector->napi.gro_list) in ixgbe_qv_unlock_napi()
441 napi_gro_flush(&q_vector->napi, false); in ixgbe_qv_unlock_napi()
444 atomic_set(&q_vector->state, IXGBE_QV_STATE_IDLE); in ixgbe_qv_unlock_napi()
448 static inline bool ixgbe_qv_lock_poll(struct ixgbe_q_vector *q_vector) in ixgbe_qv_lock_poll() argument
450 int rc = atomic_cmpxchg(&q_vector->state, IXGBE_QV_STATE_IDLE, in ixgbe_qv_lock_poll()
454 q_vector->tx.ring->stats.yields++; in ixgbe_qv_lock_poll()
460 static inline void ixgbe_qv_unlock_poll(struct ixgbe_q_vector *q_vector) in ixgbe_qv_unlock_poll() argument
462 WARN_ON(atomic_read(&q_vector->state) != IXGBE_QV_STATE_POLL); in ixgbe_qv_unlock_poll()
465 atomic_set(&q_vector->state, IXGBE_QV_STATE_IDLE); in ixgbe_qv_unlock_poll()
469 static inline bool ixgbe_qv_busy_polling(struct ixgbe_q_vector *q_vector) in ixgbe_qv_busy_polling() argument
471 return atomic_read(&q_vector->state) == IXGBE_QV_STATE_POLL; in ixgbe_qv_busy_polling()
475 static inline bool ixgbe_qv_disable(struct ixgbe_q_vector *q_vector) in ixgbe_qv_disable() argument
477 int rc = atomic_cmpxchg(&q_vector->state, IXGBE_QV_STATE_IDLE, in ixgbe_qv_disable()
484 static inline void ixgbe_qv_init_lock(struct ixgbe_q_vector *q_vector) in ixgbe_qv_init_lock() argument
488 static inline bool ixgbe_qv_lock_napi(struct ixgbe_q_vector *q_vector) in ixgbe_qv_lock_napi() argument
493 static inline bool ixgbe_qv_unlock_napi(struct ixgbe_q_vector *q_vector) in ixgbe_qv_unlock_napi() argument
498 static inline bool ixgbe_qv_lock_poll(struct ixgbe_q_vector *q_vector) in ixgbe_qv_lock_poll() argument
503 static inline bool ixgbe_qv_unlock_poll(struct ixgbe_q_vector *q_vector) in ixgbe_qv_unlock_poll() argument
508 static inline bool ixgbe_qv_busy_polling(struct ixgbe_q_vector *q_vector) in ixgbe_qv_busy_polling() argument
513 static inline bool ixgbe_qv_disable(struct ixgbe_q_vector *q_vector) in ixgbe_qv_disable() argument
688 struct ixgbe_q_vector *q_vector[MAX_Q_VECTORS]; member