Home
last modified time | relevance | path

Searched refs:user_count (Results 1 – 8 of 8) sorted by relevance

/linux-4.4.14/drivers/hwtracing/intel_th/
Dmsu.c120 atomic_t user_count; member
574 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 …]
/linux-4.4.14/drivers/base/
Ddma-coherent.c255 int user_count = (vma->vm_end - vma->vm_start) >> PAGE_SHIFT; in dma_mmap_from_coherent() local
259 if (off < count && user_count <= count - off) { in dma_mmap_from_coherent()
262 user_count << PAGE_SHIFT, in dma_mmap_from_coherent()
Ddma-mapping.c251 unsigned long user_count = (vma->vm_end - vma->vm_start) >> PAGE_SHIFT; in dma_common_mmap() local
261 if (off < count && user_count <= (count - off)) { in dma_common_mmap()
264 user_count << PAGE_SHIFT, in dma_common_mmap()
/linux-4.4.14/arch/microblaze/kernel/
Ddma.c163 unsigned long user_count = (vma->vm_end - vma->vm_start) >> PAGE_SHIFT; in dma_direct_mmap_coherent() local
168 if (off >= count || user_count > (count - off)) in dma_direct_mmap_coherent()
/linux-4.4.14/arch/mips/mm/
Ddma-default.c204 unsigned long user_count = (vma->vm_end - vma->vm_start) >> PAGE_SHIFT; in mips_dma_mmap() local
224 if (off < count && user_count <= (count - off)) { in mips_dma_mmap()
227 user_count << PAGE_SHIFT, in mips_dma_mmap()
/linux-4.4.14/drivers/staging/rdma/hfi1/
Dfile_ops.c2083 static atomic_t user_count = ATOMIC_INIT(0); variable
2087 if (atomic_dec_return(&user_count) == 0) in user_remove()
2099 if (atomic_inc_return(&user_count) == 1) { in user_add()
/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_file_ops.c2370 static atomic_t user_count = ATOMIC_INIT(0); variable
2374 if (atomic_dec_return(&user_count) == 0) in qib_user_remove()
2385 if (atomic_inc_return(&user_count) == 1) { in qib_user_add()
/linux-4.4.14/drivers/staging/rdma/ipath/
Dipath_file_ops.c2562 static atomic_t user_count = ATOMIC_INIT(0); variable
2570 if (atomic_inc_return(&user_count) == 1) { in ipath_user_add()
2608 if (atomic_dec_return(&user_count) == 0) { in ipath_user_remove()