Lines Matching refs:user_count
160 atomic_t user_count; member
738 atomic_inc(&win->msc->user_count); in msc_win_set_lockout()
740 atomic_dec(&win->msc->user_count); in msc_win_set_lockout()
882 if (!atomic_inc_unless_negative(&msc->user_count)) in intel_th_msc_activate()
894 atomic_dec(&msc->user_count); in intel_th_msc_activate()
906 atomic_dec(&msc->user_count); in intel_th_msc_deactivate()
1325 if (atomic_read(&msc->user_count) != -1) in msc_buffer_alloc()
1345 if (WARN_ON_ONCE(atomic_cmpxchg(&msc->user_count, -1, 0) != -1)) in msc_buffer_alloc()
1367 count = atomic_cmpxchg(&msc->user_count, 0, -1); in msc_buffer_unlocked_free_unless_used()
1548 if (!atomic_inc_unless_negative(&msc->user_count)) in intel_th_msc_read()
1583 atomic_dec(&msc->user_count); in intel_th_msc_read()
1621 atomic_dec(&msc->user_count); in msc_mmap_close()
1661 if (!atomic_inc_unless_negative(&msc->user_count)) in intel_th_msc_mmap()
1676 atomic_dec(&msc->user_count); in intel_th_msc_mmap()
1710 atomic_set(&msc->user_count, -1); in intel_th_msc_init()