Searched refs:busy_poll_state (Results 1 – 2 of 2) sorted by relevance
/drivers/net/ethernet/sfc/ |
D | net_driver.h | 436 unsigned long busy_poll_state; member 484 WRITE_ONCE(channel->busy_poll_state, EFX_CHANNEL_STATE_IDLE); in efx_channel_busy_poll_init() 490 unsigned long prev, old = READ_ONCE(channel->busy_poll_state); in efx_channel_lock_napi() 497 &channel->busy_poll_state); in efx_channel_lock_napi() 504 prev = cmpxchg(&channel->busy_poll_state, old, in efx_channel_lock_napi() 521 WRITE_ONCE(channel->busy_poll_state, EFX_CHANNEL_STATE_IDLE); in efx_channel_unlock_napi() 527 return cmpxchg(&channel->busy_poll_state, EFX_CHANNEL_STATE_IDLE, in efx_channel_try_lock_poll() 533 clear_bit_unlock(EFX_CHANNEL_STATE_POLL_BIT, &channel->busy_poll_state); in efx_channel_unlock_poll() 538 return test_bit(EFX_CHANNEL_STATE_POLL_BIT, &channel->busy_poll_state); in efx_channel_busy_polling() 544 &channel->busy_poll_state); in efx_channel_enable() [all …]
|
/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x.h | 544 unsigned long busy_poll_state; member 636 WRITE_ONCE(fp->busy_poll_state, 0); in bnx2x_fp_busy_poll_init() 642 unsigned long prev, old = READ_ONCE(fp->busy_poll_state); in bnx2x_fp_lock_napi() 649 &fp->busy_poll_state); in bnx2x_fp_lock_napi() 656 prev = cmpxchg(&fp->busy_poll_state, old, BNX2X_STATE_FP_NAPI); in bnx2x_fp_lock_napi() 668 fp->busy_poll_state = 0; in bnx2x_fp_unlock_napi() 674 return cmpxchg(&fp->busy_poll_state, 0, BNX2X_STATE_FP_POLL) == 0; in bnx2x_fp_lock_poll() 680 clear_bit(BNX2X_STATE_FP_POLL_BIT, &fp->busy_poll_state); in bnx2x_fp_unlock_poll() 686 return READ_ONCE(fp->busy_poll_state) & BNX2X_STATE_FP_POLL; in bnx2x_fp_ll_polling() 692 set_bit(BNX2X_STATE_FP_DISABLE_BIT, &fp->busy_poll_state); in bnx2x_fp_ll_disable()
|