Searched refs:user_count (Results 1 – 8 of 8) sorted by relevance
91 unsigned long user_count = vma_pages(vma); in arch_dma_mmap() local102 if (off < count && user_count <= (count - off)) { in arch_dma_mmap()105 user_count << PAGE_SHIFT, in arch_dma_mmap()
51 unsigned long user_count = vma_pages(vma); in arch_dma_mmap() local56 if (off >= count || user_count > (count - off)) in arch_dma_mmap()
99 unsigned long user_count = vma_pages(vma); in arch_dma_mmap() local119 if (off < count && user_count <= (count - off)) { in arch_dma_mmap()122 user_count << PAGE_SHIFT, in arch_dma_mmap()
114 atomic_t user_count; member579 if (!atomic_inc_unless_negative(&msc->user_count)) in intel_th_msc_activate()591 atomic_dec(&msc->user_count); in intel_th_msc_activate()603 atomic_dec(&msc->user_count); in intel_th_msc_deactivate()905 if (atomic_read(&msc->user_count) != -1) in msc_buffer_alloc()923 if (WARN_ON_ONCE(atomic_cmpxchg(&msc->user_count, -1, 0) != -1)) in msc_buffer_alloc()945 count = atomic_cmpxchg(&msc->user_count, 0, -1); in msc_buffer_unlocked_free_unless_used()1108 if (!atomic_inc_unless_negative(&msc->user_count)) in intel_th_msc_read()1143 atomic_dec(&msc->user_count); in intel_th_msc_read()1181 atomic_dec(&msc->user_count); in msc_mmap_close()[all …]
227 unsigned long user_count = vma_pages(vma); in dma_common_mmap() local236 if (off < count && user_count <= (count - off)) in dma_common_mmap()239 user_count << PAGE_SHIFT, in dma_common_mmap()
289 int user_count = vma_pages(vma); in __dma_mmap_from_coherent() local293 if (off < count && user_count <= count - off) { in __dma_mmap_from_coherent()296 user_count << PAGE_SHIFT, in __dma_mmap_from_coherent()
225 unsigned long user_count = vma_pages(vma); in rockchip_drm_gem_object_mmap_iommu() local228 unsigned long end = user_count + offset; in rockchip_drm_gem_object_mmap_iommu()231 if (user_count == 0) in rockchip_drm_gem_object_mmap_iommu()
2352 static atomic_t user_count = ATOMIC_INIT(0); variable2356 if (atomic_dec_return(&user_count) == 0) in qib_user_remove()2367 if (atomic_inc_return(&user_count) == 1) { in qib_user_add()