Home
last modified time | relevance | path

Searched refs:mmap_count (Results 1 – 10 of 10) sorted by relevance

/linux/drivers/staging/vme_user/
H A Dvme_user.c98 int mmap_count; /* Number of current mmap's */ member
368 if (image[minor].mmap_count != 0) { in vme_user_ioctl()
465 image[minor].mmap_count--; in vme_user_vm_close()
488 image[minor].mmap_count++; in vme_user_vm_mapped()
/linux/drivers/gpu/drm/panthor/
H A Dpanthor_gem.c162 if (refcount_read(&bo->cmap.mmap_count)) in panthor_gem_evaluate_reclaim_state_locked()
613 drm_printf_indent(p, indent, "mmap_count=%u\n", refcount_read(&bo->cmap.mmap_count)); in panthor_gem_print_info()
767 if (!refcount_inc_not_zero(&bo->cmap.mmap_count)) { in panthor_gem_mmap()
769 if (!refcount_inc_not_zero(&bo->cmap.mmap_count)) { in panthor_gem_mmap()
770 refcount_set(&bo->cmap.mmap_count, 1); in panthor_gem_mmap()
932 drm_WARN_ON(bo->base.dev, !refcount_inc_not_zero(&bo->cmap.mmap_count)); in panthor_gem_vm_open()
944 if (refcount_dec_not_one(&bo->cmap.mmap_count)) in panthor_gem_vm_close()
948 if (refcount_dec_and_test(&bo->cmap.mmap_count)) { in panthor_gem_vm_close()
/linux/sound/core/oss/
H A Dpcm_oss.c699 if (atomic_read(&substream->mmap_count)) { in snd_pcm_oss_period_size()
872 if (atomic_read(&substream->mmap_count)) in snd_pcm_oss_change_params_locked()
881 if (atomic_read(&substream->mmap_count)) in snd_pcm_oss_change_params_locked()
1007 if (atomic_read(&substream->mmap_count) || in snd_pcm_oss_change_params_locked()
1016 if (atomic_read(&substream->mmap_count) || in snd_pcm_oss_change_params_locked()
1405 if (atomic_read(&substream->mmap_count)) in snd_pcm_oss_write1()
1515 if (atomic_read(&substream->mmap_count)) in snd_pcm_oss_read1()
1670 if (atomic_read(&substream->mmap_count)) in snd_pcm_oss_sync()
1854 if (atomic_read(&substream->mmap_count)) in snd_pcm_oss_get_formats()
2099 if (atomic_read(&psubstream->mmap_count)) in snd_pcm_oss_set_trigger()
[all...]
/linux/kernel/bpf/
H A Darena.c428 refcount_t mmap_count; member
439 refcount_set(&vml->mmap_count, 1); in remember_vma()
451 refcount_inc(&vml->mmap_count); in arena_vm_open()
470 if (!refcount_dec_and_test(&vml->mmap_count)) in arena_vm_close()
/linux/kernel/events/
H A Dinternal.h38 refcount_t mmap_count; member
H A Dcore.c4095 if (likely(!refcount_read(&event->mmap_count))) in event_update_userpage()
7015 refcount_inc(&event->mmap_count); in perf_mmap_open()
7016 refcount_inc(&event->rb->mmap_count); in perf_mmap_open()
7074 * rb revival after rb->mmap_count reaches zero. in perf_mmap_close()
7076 if (refcount_dec_and_mutex_lock(&event->mmap_count, in perf_mmap_close()
7083 if (!refcount_dec_and_test(&rb->mmap_count)) in perf_mmap_close()
7311 * If this event doesn't have mmap_count, we're attempting to in perf_mmap_rb()
7316 if (!refcount_read(&event->mmap_count)) in perf_mmap_rb()
7319 if (refcount_inc_not_zero(&event->rb->mmap_count)) { in perf_mmap_rb()
7325 refcount_inc(&event->mmap_count); in perf_mmap_rb()
[all...]
H A Dring_buffer.c343 refcount_set(&rb->mmap_count, 1); in ring_buffer_init()
/linux/drivers/hwtracing/intel_th/
H A Dmsu.c162 atomic_t mmap_count; member
1595 atomic_inc(&msc->mmap_count); in msc_mmap_open()
1603 if (!atomic_dec_and_mutex_lock(&msc->mmap_count, &msc->buf_mutex)) in msc_mmap_close()
1655 atomic_set(&msc->mmap_count, 1); in intel_th_msc_mmap()
/linux/sound/core/
H A Dpcm_native.c801 atomic_read(&substream->mmap_count)) in snd_pcm_hw_params()
962 if (atomic_read(&substream->mmap_count)) in snd_pcm_hw_free()
3894 atomic_inc(&substream->mmap_count); in snd_pcm_mmap_data_open()
3904 atomic_dec(&substream->mmap_count); in snd_pcm_mmap_data_close()
4061 atomic_inc(&substream->mmap_count); in snd_pcm_mmap_data()
H A Dpcm.c688 atomic_set(&substream->mmap_count, 0); in snd_pcm_new_stream()