Searched refs:bpoll_state (Results 1 – 2 of 2) sorted by relevance
96 atomic_t bpoll_state; member213 atomic_set(&rq->bpoll_state, ENIC_POLL_STATE_IDLE); in enic_busy_poll_init_lock()218 int rc = atomic_cmpxchg(&rq->bpoll_state, ENIC_POLL_STATE_IDLE, in enic_poll_lock_napi()227 WARN_ON(atomic_read(&rq->bpoll_state) != ENIC_POLL_STATE_NAPI); in enic_poll_unlock_napi()229 atomic_set(&rq->bpoll_state, ENIC_POLL_STATE_IDLE); in enic_poll_unlock_napi()234 int rc = atomic_cmpxchg(&rq->bpoll_state, ENIC_POLL_STATE_IDLE, in enic_poll_lock_poll()243 WARN_ON(atomic_read(&rq->bpoll_state) != ENIC_POLL_STATE_POLL); in enic_poll_unlock_poll()244 atomic_set(&rq->bpoll_state, ENIC_POLL_STATE_IDLE); in enic_poll_unlock_poll()249 return atomic_read(&rq->bpoll_state) & ENIC_POLL_STATE_POLL; in enic_poll_busy_polling()
544 unsigned int bpoll_state; member975 q->bpoll_state = CXGB_POLL_STATE_IDLE; in cxgb_busy_poll_init_lock()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()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()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()[all …]