Home
last modified time | relevance | path

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

/Linux-v5.10/kernel/dma/
Dops_helpers.c32 unsigned long user_count = vma_pages(vma); in dma_common_mmap() local
42 if (off >= count || user_count > count - off) in dma_common_mmap()
47 user_count << PAGE_SHIFT, vma->vm_page_prot); in dma_common_mmap()
Dcoherent.c262 unsigned long user_count = vma_pages(vma); in __dma_mmap_from_coherent() local
266 if (off < count && user_count <= count - off) { in __dma_mmap_from_coherent()
269 user_count << PAGE_SHIFT, in __dma_mmap_from_coherent()
Ddirect.c456 unsigned long user_count = vma_pages(vma); in dma_direct_mmap() local
466 if (vma->vm_pgoff >= count || user_count > count - vma->vm_pgoff) in dma_direct_mmap()
469 user_count << PAGE_SHIFT, vma->vm_page_prot); in dma_direct_mmap()
/Linux-v5.10/lib/
Dobjagg.c84 objagg_obj->stats.user_count++; in objagg_obj_stats_inc()
92 objagg_obj->stats.user_count--; in objagg_obj_stats_dec()
584 return stats_info2->stats.user_count - stats_info1->stats.user_count; in objagg_stats_info_sort_cmp_func()
653 unsigned int user_count = objagg_obj->stats.user_count; in objagg_hints_node_create() local
661 hnode->stats_info.stats.user_count = user_count; in objagg_hints_node_create()
662 hnode->stats_info.stats.delta_user_count = user_count; in objagg_hints_node_create()
664 parent_hnode->stats_info.stats.delta_user_count += user_count; in objagg_hints_node_create()
738 unsigned int weight = node->objagg_obj->stats.user_count; in objagg_tmp_graph_node_weight()
751 weight += node->objagg_obj->stats.user_count; in objagg_tmp_graph_node_weight()
Dtest_objagg.c262 if (stats->stats_info[i].stats.user_count != 2) { in check_stats_nodelta()
425 #define ROOT(key_id, user_count, delta_user_count) \ argument
426 {{user_count, delta_user_count}, true, key_id}
428 #define DELTA(key_id, user_count) \ argument
429 {{user_count, user_count}, false, key_id}
650 if (stats_info->stats.user_count != in check_expect_stats_nums()
651 expect_stats_info->stats.user_count) { in check_expect_stats_nums()
867 stats->stats_info[i].stats.user_count, in __pr_debug_stats()
/Linux-v5.10/drivers/pwm/
Dpwm-sifive.c52 int user_count; member
66 ddata->user_count++; in pwm_sifive_request()
77 ddata->user_count--; in pwm_sifive_free()
189 if (ddata->user_count != 1) { in pwm_sifive_apply()
Dpwm-imx-tpm.c64 u32 user_count; member
189 if (tpm->user_count > 1) in pwm_imx_tpm_apply_hw()
313 tpm->user_count++; in pwm_imx_tpm_request()
324 tpm->user_count--; in pwm_imx_tpm_free()
/Linux-v5.10/drivers/hwtracing/intel_th/
Dmsu.c151 atomic_t user_count; member
731 atomic_inc(&win->msc->user_count); in msc_win_set_lockout()
733 atomic_dec(&win->msc->user_count); in msc_win_set_lockout()
873 if (!atomic_inc_unless_negative(&msc->user_count)) in intel_th_msc_activate()
885 atomic_dec(&msc->user_count); in intel_th_msc_activate()
897 atomic_dec(&msc->user_count); in intel_th_msc_deactivate()
1291 if (atomic_read(&msc->user_count) != -1) in msc_buffer_alloc()
1309 if (WARN_ON_ONCE(atomic_cmpxchg(&msc->user_count, -1, 0) != -1)) in msc_buffer_alloc()
1331 count = atomic_cmpxchg(&msc->user_count, 0, -1); in msc_buffer_unlocked_free_unless_used()
1507 if (!atomic_inc_unless_negative(&msc->user_count)) in intel_th_msc_read()
[all …]
/Linux-v5.10/include/linux/
Dobjagg.h34 unsigned int user_count; member
/Linux-v5.10/include/uapi/linux/
Dfscrypt.h154 __u32 user_count; member
/Linux-v5.10/tools/include/uapi/linux/
Dfscrypt.h154 __u32 user_count; member
/Linux-v5.10/drivers/gpu/drm/rockchip/
Drockchip_drm_gem.c218 unsigned long user_count = vma_pages(vma); in rockchip_drm_gem_object_mmap_iommu() local
220 if (user_count == 0) in rockchip_drm_gem_object_mmap_iommu()
/Linux-v5.10/fs/crypto/
Dkeyring.c1068 arg.user_count = 0; in fscrypt_ioctl_get_key_status()
1092 arg.user_count = mk->mk_users->keys.nr_leaves_on_tree; in fscrypt_ioctl_get_key_status()
/Linux-v5.10/drivers/infiniband/hw/qib/
Dqib_file_ops.c2350 static atomic_t user_count = ATOMIC_INIT(0); variable
2354 if (atomic_dec_return(&user_count) == 0) in qib_user_remove()
2365 if (atomic_inc_return(&user_count) == 1) { in qib_user_add()
/Linux-v5.10/Documentation/filesystems/
Dfscrypt.rst972 __u32 user_count;
1000 - ``user_count`` specifies the number of users who have added the key.