Lines Matching refs:user_count
151 atomic_t user_count; member
729 atomic_inc(&win->msc->user_count); in msc_win_set_lockout()
731 atomic_dec(&win->msc->user_count); in msc_win_set_lockout()
871 if (!atomic_inc_unless_negative(&msc->user_count)) in intel_th_msc_activate()
883 atomic_dec(&msc->user_count); in intel_th_msc_activate()
895 atomic_dec(&msc->user_count); in intel_th_msc_deactivate()
1313 if (atomic_read(&msc->user_count) != -1) in msc_buffer_alloc()
1333 if (WARN_ON_ONCE(atomic_cmpxchg(&msc->user_count, -1, 0) != -1)) in msc_buffer_alloc()
1355 count = atomic_cmpxchg(&msc->user_count, 0, -1); in msc_buffer_unlocked_free_unless_used()
1531 if (!atomic_inc_unless_negative(&msc->user_count)) in intel_th_msc_read()
1566 atomic_dec(&msc->user_count); in intel_th_msc_read()
1604 atomic_dec(&msc->user_count); in msc_mmap_close()
1644 if (!atomic_inc_unless_negative(&msc->user_count)) in intel_th_msc_mmap()
1659 atomic_dec(&msc->user_count); in intel_th_msc_mmap()
1694 atomic_set(&msc->user_count, -1); in intel_th_msc_init()