| /linux/include/linux/ |
| H A D | percpu-refcount.h | 59 struct percpu_ref; 60 typedef void (percpu_ref_func_t)(struct percpu_ref *); 102 struct percpu_ref *ref; 105 struct percpu_ref { struct 121 int __must_check percpu_ref_init(struct percpu_ref *ref, 124 void percpu_ref_exit(struct percpu_ref *ref); 125 void percpu_ref_switch_to_atomic(struct percpu_ref *ref, 127 void percpu_ref_switch_to_atomic_sync(struct percpu_ref *ref); 128 void percpu_ref_switch_to_percpu(struct percpu_ref *ref); 129 void percpu_ref_kill_and_confirm(struct percpu_ref *ref, [all …]
|
| H A D | bpf-cgroup-defs.h | 75 struct percpu_ref refcnt;
|
| H A D | memremap.h | 135 struct percpu_ref ref;
|
| H A D | io_uring_types.h | 329 struct percpu_ref refs;
|
| /linux/lib/ |
| H A D | percpu-refcount.c | 42 static unsigned long __percpu *percpu_count_ptr(struct percpu_ref *ref) in percpu_count_ptr() 63 int percpu_ref_init(struct percpu_ref *ref, percpu_ref_func_t *release, in percpu_ref_init() 108 static void __percpu_ref_exit(struct percpu_ref *ref) in __percpu_ref_exit() 130 void percpu_ref_exit(struct percpu_ref *ref) in percpu_ref_exit() 154 struct percpu_ref *ref = data->ref; in percpu_ref_call_confirm_rcu() 171 struct percpu_ref *ref = data->ref; in percpu_ref_switch_to_atomic_rcu() 209 static void percpu_ref_noop_confirm_switch(struct percpu_ref *ref) in percpu_ref_noop_confirm_switch() 213 static void __percpu_ref_switch_to_atomic(struct percpu_ref *ref, in __percpu_ref_switch_to_atomic() 237 static void __percpu_ref_switch_to_percpu(struct percpu_ref *ref) in __percpu_ref_switch_to_percpu() 265 static void __percpu_ref_switch_mode(struct percpu_ref *ref, in __percpu_ref_switch_mode() [all …]
|
| /linux/drivers/target/ |
| H A D | target_core_xcopy.h | 30 struct percpu_ref *remote_lun_ref;
|
| H A D | target_core_tpg.c | 436 static void core_tpg_lun_ref_release(struct percpu_ref *ref) in core_tpg_lun_ref_release()
|
| H A D | target_core_xcopy.c | 72 struct percpu_ref **_found_lun_ref) in target_xcopy_locate_se_dev_e4()
|
| /linux/include/rdma/ |
| H A D | rdmavt_mr.h | 44 struct percpu_ref refcount;
|
| /linux/drivers/nvme/target/ |
| H A D | nvmet.h | 94 struct percpu_ref ref; 101 struct percpu_ref ref; 152 struct percpu_ref ref;
|
| H A D | pr.c | 436 static void nvmet_pr_confirm_ns_pc_ref(struct percpu_ref *ref) in nvmet_pr_confirm_ns_pc_ref() 1001 static void nvmet_pr_ctrl_ns_all_cmds_done(struct percpu_ref *ref) in nvmet_pr_ctrl_ns_all_cmds_done()
|
| H A D | core.c | 465 static void nvmet_destroy_namespace(struct percpu_ref *ref) in nvmet_destroy_namespace() 866 static void nvmet_confirm_sq(struct percpu_ref *ref) in nvmet_confirm_sq() 1007 static void nvmet_sq_free(struct percpu_ref *ref) in nvmet_sq_free()
|
| /linux/drivers/md/ |
| H A D | md.h | 418 struct percpu_ref active_io; 577 struct percpu_ref writes_pending;
|
| H A D | md-llbitmap.c | 271 struct percpu_ref active; 579 static void active_release(struct percpu_ref *ref) in active_release()
|
| /linux/mm/ |
| H A D | zswap.c | 156 struct percpu_ref ref; 243 static void __zswap_pool_empty(struct percpu_ref *ref); 397 static void __zswap_pool_empty(struct percpu_ref *ref) in __zswap_pool_empty()
|
| /linux/fs/nfsd/ |
| H A D | nfssvc.c | 221 static void nfsd_net_done(struct percpu_ref *ref) in nfsd_net_done() 228 static void nfsd_net_free(struct percpu_ref *ref) in nfsd_net_free()
|
| /linux/tools/testing/nvdimm/test/ |
| H A D | iomap.c | 108 static void dev_pagemap_percpu_release(struct percpu_ref *ref)
|
| /linux/net/smc/ |
| H A D | smc_wr.c | 841 static void smcr_wr_tx_refs_free(struct percpu_ref *ref) in smcr_wr_tx_refs_free() 848 static void smcr_wr_reg_refs_free(struct percpu_ref *ref) in smcr_wr_reg_refs_free()
|
| /linux/net/core/ |
| H A D | devmem.c | 52 static void net_devmem_dmabuf_binding_release(struct percpu_ref *ref) in net_devmem_dmabuf_binding_release()
|
| /linux/drivers/dma/idxd/ |
| H A D | idxd.h | 194 struct percpu_ref wq_active;
|
| H A D | device.c | 406 static void idxd_wq_ref_release(struct percpu_ref *ref) in idxd_wq_ref_release()
|
| /linux/drivers/infiniband/sw/rdmavt/ |
| H A D | mr.c | 85 static void __rvt_mregion_complete(struct percpu_ref *ref) in __rvt_mregion_complete()
|
| /linux/block/ |
| H A D | blk-core.c | 417 static void blk_queue_usage_counter_release(struct percpu_ref *ref) in blk_alloc_queue() 487 * Init percpu_ref in atomic mode so that it's faster to shutdown. in blk_get_queue()
|
| /linux/kernel/bpf/ |
| H A D | trampoline.c | 560 static void __bpf_tramp_image_release(struct percpu_ref *pcref) in bpf_tramp_image_put() 587 * percpu_ref to protect trampoline itself in bpf_tramp_image_alloc() 588 * rcu tasks to protect trampoline asm not covered by percpu_ref in bpf_tramp_image_alloc() 623 * function and doesn't use percpu_ref. in bpf_trampoline_update()
|
| /linux/kernel/cgroup/ |
| H A D | cgroup.c | 279 static void css_release(struct percpu_ref *ref); 5576 * 1. Destruction starts. Killing of the percpu_ref is initiated. in css_free_rwork_fn() 5579 * 2. When the percpu_ref is confirmed to be visible as killed on all CPUs in css_free_rwork_fn() 5584 * 3. When the percpu_ref reaches zero, the only possible remaining in css_free_rwork_fn() 5713 static void css_release(struct percpu_ref *ref) in online_css() 6094 static void css_killed_ref_fn(struct percpu_ref *ref) 6214 * - The percpu_ref kill chain: css_killed_ref_fn -> css_killed_work_fn -> in cgroup_destroy_locked() 6342 * percpu_ref during early init. Disable refcnting. in cgroup_init_early()
|