Searched refs:user_count (Results 1 – 8 of 8) sorted by relevance
120 atomic_t user_count; member574 if (!atomic_inc_unless_negative(&msc->user_count)) in intel_th_msc_activate()583 atomic_dec(&msc->user_count); in intel_th_msc_activate()598 atomic_dec(&msc->user_count); in intel_th_msc_deactivate()898 if (atomic_read(&msc->user_count) != -1) in msc_buffer_alloc()916 if (WARN_ON_ONCE(atomic_cmpxchg(&msc->user_count, -1, 0) != -1)) in msc_buffer_alloc()938 count = atomic_cmpxchg(&msc->user_count, 0, -1); in msc_buffer_unlocked_free_unless_used()1101 if (!atomic_inc_unless_negative(&msc->user_count)) in intel_th_msc_read()1142 atomic_dec(&msc->user_count); in intel_th_msc_read()1180 atomic_dec(&msc->user_count); in msc_mmap_close()[all …]
255 int user_count = (vma->vm_end - vma->vm_start) >> PAGE_SHIFT; in dma_mmap_from_coherent() local259 if (off < count && user_count <= count - off) { in dma_mmap_from_coherent()262 user_count << PAGE_SHIFT, in dma_mmap_from_coherent()
251 unsigned long user_count = (vma->vm_end - vma->vm_start) >> PAGE_SHIFT; in dma_common_mmap() local261 if (off < count && user_count <= (count - off)) { in dma_common_mmap()264 user_count << PAGE_SHIFT, in dma_common_mmap()
163 unsigned long user_count = (vma->vm_end - vma->vm_start) >> PAGE_SHIFT; in dma_direct_mmap_coherent() local168 if (off >= count || user_count > (count - off)) in dma_direct_mmap_coherent()
204 unsigned long user_count = (vma->vm_end - vma->vm_start) >> PAGE_SHIFT; in mips_dma_mmap() local224 if (off < count && user_count <= (count - off)) { in mips_dma_mmap()227 user_count << PAGE_SHIFT, in mips_dma_mmap()
2083 static atomic_t user_count = ATOMIC_INIT(0); variable2087 if (atomic_dec_return(&user_count) == 0) in user_remove()2099 if (atomic_inc_return(&user_count) == 1) { in user_add()
2370 static atomic_t user_count = ATOMIC_INIT(0); variable2374 if (atomic_dec_return(&user_count) == 0) in qib_user_remove()2385 if (atomic_inc_return(&user_count) == 1) { in qib_user_add()
2562 static atomic_t user_count = ATOMIC_INIT(0); variable2570 if (atomic_inc_return(&user_count) == 1) { in ipath_user_add()2608 if (atomic_dec_return(&user_count) == 0) { in ipath_user_remove()