Home
last modified time | relevance | path

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

/Linux-v6.6/kernel/dma/
Dops_helpers.c39 unsigned long user_count = vma_pages(vma); in dma_common_mmap() local
50 if (off >= count || user_count > count - off) in dma_common_mmap()
55 user_count << PAGE_SHIFT, vma->vm_page_prot); in dma_common_mmap()
Dcoherent.c239 unsigned long user_count = vma_pages(vma); in __dma_mmap_from_coherent() local
243 if (off < count && user_count <= count - off) { in __dma_mmap_from_coherent()
246 user_count << PAGE_SHIFT, in __dma_mmap_from_coherent()
Ddirect.c558 unsigned long user_count = vma_pages(vma); in dma_direct_mmap() local
572 if (vma->vm_pgoff >= count || user_count > count - vma->vm_pgoff) in dma_direct_mmap()
575 user_count << PAGE_SHIFT, vma->vm_page_prot); in dma_direct_mmap()
/Linux-v6.6/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-v6.6/drivers/pwm/
Dpwm-sifive.c51 int user_count; member
65 ddata->user_count++; in pwm_sifive_request()
76 ddata->user_count--; in pwm_sifive_free()
171 if (ddata->user_count != 1 && ddata->approx_period) { in pwm_sifive_apply()
Dpwm-imx-tpm.c64 u32 user_count; member
191 if (tpm->user_count > 1) in pwm_imx_tpm_apply_hw()
315 tpm->user_count++; in pwm_imx_tpm_request()
326 tpm->user_count--; in pwm_imx_tpm_free()
Dpwm-rz-mtu3.c79 u32 user_count[RZ_MTU3_MAX_HW_CHANNELS]; member
183 if (!rz_mtu3_pwm->user_count[ch]) { in rz_mtu3_pwm_request()
191 rz_mtu3_pwm->user_count[ch]++; in rz_mtu3_pwm_request()
207 rz_mtu3_pwm->user_count[ch]--; in rz_mtu3_pwm_free()
208 if (!rz_mtu3_pwm->user_count[ch]) in rz_mtu3_pwm_free()
/Linux-v6.6/drivers/hwtracing/intel_th/
Dmsu.c151 atomic_t user_count; member
729 atomic_inc(&win->msc->user_count); in msc_win_set_lockout()
731 atomic_dec(&win->msc->user_count); in msc_win_set_lockout()
871 if (!atomic_inc_unless_negative(&msc->user_count)) in intel_th_msc_activate()
883 atomic_dec(&msc->user_count); in intel_th_msc_activate()
895 atomic_dec(&msc->user_count); in intel_th_msc_deactivate()
1313 if (atomic_read(&msc->user_count) != -1) in msc_buffer_alloc()
1333 if (WARN_ON_ONCE(atomic_cmpxchg(&msc->user_count, -1, 0) != -1)) in msc_buffer_alloc()
1355 count = atomic_cmpxchg(&msc->user_count, 0, -1); in msc_buffer_unlocked_free_unless_used()
1531 if (!atomic_inc_unless_negative(&msc->user_count)) in intel_th_msc_read()
[all …]
/Linux-v6.6/tools/tracing/rtla/src/
Dtimerlat_top.c54 int user_count; member
144 cpu_data->user_count++; in timerlat_top_update()
272 if (!cpu_data->user_count) { in timerlat_top_print()
281 (cpu_data->sum_user / cpu_data->user_count) / divisor); in timerlat_top_print()
Dtimerlat_hist.c63 int user_count; member
198 data->hist[cpu].user_count++; in timerlat_hist_update()
313 data->hist[cpu].user_count); in timerlat_print_summary()
368 if (data->hist[cpu].user_count) in timerlat_print_summary()
370 data->hist[cpu].sum_user / data->hist[cpu].user_count); in timerlat_print_summary()
/Linux-v6.6/include/linux/
Dobjagg.h34 unsigned int user_count; member
/Linux-v6.6/tools/include/uapi/linux/
Dfscrypt.h156 __u32 user_count; member
/Linux-v6.6/include/uapi/linux/
Dfscrypt.h156 __u32 user_count; member
/Linux-v6.6/drivers/gpu/drm/rockchip/
Drockchip_drm_gem.c220 unsigned long user_count = vma_pages(vma); in rockchip_drm_gem_object_mmap_iommu() local
222 if (user_count == 0) in rockchip_drm_gem_object_mmap_iommu()
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dlegacy.c69 atomic64_set(&esw->user_count, 0); in esw_destroy_legacy_fdb_table()
182 atomic64_set(&esw->user_count, 0); in esw_create_legacy_table()
/Linux-v6.6/fs/crypto/
Dkeyring.c1142 arg.user_count = 0; in fscrypt_ioctl_get_key_status()
1165 arg.user_count = mk->mk_users->keys.nr_leaves_on_tree; in fscrypt_ioctl_get_key_status()
/Linux-v6.6/drivers/infiniband/hw/qib/
Dqib_file_ops.c2348 static atomic_t user_count = ATOMIC_INIT(0); variable
2352 if (atomic_dec_return(&user_count) == 0) in qib_user_remove()
2363 if (atomic_inc_return(&user_count) == 1) { in qib_user_add()
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch.c2284 atomic64_inc(&esw->user_count); in mlx5_esw_get()
2296 atomic64_dec_if_positive(&esw->user_count); in mlx5_esw_put()
2315 if (atomic64_read(&esw->user_count) > 0) { in mlx5_esw_try_lock()
Deswitch.h359 atomic64_t user_count; member
Deswitch_offloads.c1954 atomic64_set(&esw->user_count, 0); in esw_destroy_offloads_fdb_tables()
3295 atomic64_set(&esw->user_count, 0); in esw_offloads_steering_init()
/Linux-v6.6/Documentation/filesystems/
Dfscrypt.rst1065 __u32 user_count;
1093 - ``user_count`` specifies the number of users who have added the key.