Home
last modified time | relevance | path

Searched refs:busy_poll_state (Results 1 – 1 of 1) sorted by relevance

/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x.h535 unsigned long busy_poll_state; member
625 WRITE_ONCE(fp->busy_poll_state, 0); in bnx2x_fp_busy_poll_init()
631 unsigned long prev, old = READ_ONCE(fp->busy_poll_state); in bnx2x_fp_lock_napi()
638 &fp->busy_poll_state); in bnx2x_fp_lock_napi()
645 prev = cmpxchg(&fp->busy_poll_state, old, BNX2X_STATE_FP_NAPI); in bnx2x_fp_lock_napi()
657 fp->busy_poll_state = 0; in bnx2x_fp_unlock_napi()
663 return cmpxchg(&fp->busy_poll_state, 0, BNX2X_STATE_FP_POLL) == 0; in bnx2x_fp_lock_poll()
669 clear_bit(BNX2X_STATE_FP_POLL_BIT, &fp->busy_poll_state); in bnx2x_fp_unlock_poll()
675 return READ_ONCE(fp->busy_poll_state) & BNX2X_STATE_FP_POLL; in bnx2x_fp_ll_polling()
681 set_bit(BNX2X_STATE_FP_DISABLE_BIT, &fp->busy_poll_state); in bnx2x_fp_ll_disable()