Searched refs:refcount (Results 1 - 25 of 757) sorted by relevance

1234567891011>>

/linux-master/include/linux/
H A Drefcount_api.h1 #include <linux/refcount.h>
H A Dkref.h17 #include <linux/refcount.h>
20 refcount_t refcount; member in struct:kref
23 #define KREF_INIT(n) { .refcount = REFCOUNT_INIT(n), }
31 refcount_set(&kref->refcount, 1);
36 return refcount_read(&kref->refcount);
40 * kref_get - increment refcount for object.
45 refcount_inc(&kref->refcount);
49 * kref_put - decrement refcount for object.
56 * Decrement the refcount, and if 0, call release().
64 if (refcount_dec_and_test(&kref->refcount)) {
[all...]
H A Dns_common.h5 #include <linux/refcount.h>
H A Dipc.h9 #include <linux/refcount.h>
28 refcount_t refcount; member in struct:kern_ipc_perm
H A Dshrinker.h7 #include <linux/refcount.h>
94 * initial refcount of 1, then the lookup operations are now allowed
96 * the initial refcount will be discarded, and will free the shrinker
97 * asynchronously via RCU after its refcount reaches 0.
99 refcount_t refcount; member in struct:shrinker
100 struct completion done; /* use to wait for refcount to reach 0 */
141 return refcount_inc_not_zero(&shrinker->refcount);
146 if (refcount_dec_and_test(&shrinker->refcount))
/linux-master/arch/arm64/kvm/hyp/include/nvhe/
H A Dmemory.h11 unsigned short refcount; member in struct:hyp_page
43 * hyp_pool::lock must be held if atomic access to the refcount is required.
49 return p->refcount;
54 BUG_ON(p->refcount == USHRT_MAX);
55 p->refcount++;
60 BUG_ON(!p->refcount);
61 p->refcount--;
67 return (p->refcount == 0);
72 BUG_ON(p->refcount);
73 p->refcount
[all...]
/linux-master/drivers/dax/pmem/
H A Dpmem.c3 #include <linux/percpu-refcount.h>
/linux-master/include/media/
H A Dvideobuf2-memops.h19 #include <linux/refcount.h>
22 * struct vb2_vmarea_handler - common vma refcount tracking handler.
24 * @refcount: pointer to &refcount_t entry in the buffer.
25 * @put: callback to function that decreases buffer refcount.
29 refcount_t *refcount; member in struct:vb2_vmarea_handler
/linux-master/fs/bcachefs/
H A Dreflink_format.h12 * outside the range we point to, we'd leak a refcount: so when creating
22 __le64 refcount; member in struct:bch_reflink_v
29 __le64 refcount; member in struct:bch_indirect_inline_data
H A Dreflink.h58 return &bkey_s_c_to_reflink_v(k).v->refcount;
60 return &bkey_s_c_to_indirect_inline_data(k).v->refcount;
70 return &bkey_s_to_reflink_v(k).v->refcount;
72 return &bkey_s_to_indirect_inline_data(k).v->refcount;
/linux-master/include/trace/events/
H A Dobjagg.h88 unsigned int refcount),
90 TP_ARGS(objagg, obj, refcount),
95 __field(unsigned int, refcount)
101 __entry->refcount = refcount;
104 TP_printk("objagg %p, obj %p, refcount %u",
105 __entry->objagg, __entry->obj, __entry->refcount)
111 unsigned int refcount),
113 TP_ARGS(objagg, obj, refcount),
118 __field(unsigned int, refcount)
[all...]
/linux-master/tools/lib/perf/include/internal/
H A Dthreadmap.h5 #include <linux/refcount.h>
/linux-master/drivers/infiniband/core/
H A Diwcm.h55 refcount_t refcount; member in struct:iwcm_id_private
/linux-master/fs/xfs/
H A Dxfs_attr_item.h17 refcount_t refcount; member in struct:xfs_attri_log_nameval
/linux-master/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_sink.c62 kref_get(&sink->refcount);
67 struct dc_sink *sink = container_of(kref, struct dc_sink, refcount);
74 kref_put(&sink->refcount, dc_sink_free);
87 kref_init(&sink->refcount);
H A Ddc_surface.c114 kref_init(&plane_state->refcount);
181 kref_get(&plane_state->refcount);
186 struct dc_plane_state *plane_state = container_of(kref, struct dc_plane_state, refcount);
193 kref_put(&plane_state->refcount, dc_plane_state_free);
198 kref_get(&gamma->refcount);
203 struct dc_gamma *gamma = container_of(kref, struct dc_gamma, refcount);
209 kref_put(&(*gamma)->refcount, dc_gamma_free);
220 kref_init(&gamma->refcount);
229 kref_get(&tf->refcount);
234 struct dc_transfer_func *tf = container_of(kref, struct dc_transfer_func, refcount);
[all...]
/linux-master/drivers/gpu/host1x/
H A Dcontext.h12 #include <linux/refcount.h>
/linux-master/drivers/infiniband/hw/hfi1/
H A Dtrace_mmu.h22 __field(unsigned int, refcount)
26 __entry->refcount = kref_read(&node->refcount);
28 TP_printk("MMU node addr 0x%lx, len %lu, refcount %u",
31 __entry->refcount
H A Dmmu_rb.h19 struct kref refcount; member in struct:mmu_rb_node
60 void hfi1_mmu_rb_release(struct kref *refcount);
/linux-master/drivers/dpll/
H A Ddpll_core.h12 #include <linux/refcount.h>
25 * @refcount: refcount
35 refcount_t refcount; member in struct:dpll_device
49 * @refcount: refcount
60 refcount_t refcount; member in struct:dpll_pin
69 * @refcount: refcount
77 refcount_t refcount; member in struct:dpll_pin_ref
[all...]
/linux-master/net/dsa/
H A Dtrace.h15 #include <linux/refcount.h>
58 * is first seen and its refcount is 1.
71 * when the refcount on shared ports reaches 0
86 const struct dsa_db *db, const refcount_t *refcount),
88 TP_ARGS(dp, addr, vid, db, refcount),
97 __field(unsigned int, refcount)
107 __entry->refcount = refcount_read(refcount);
110 TP_printk("%s %s port %d addr %pM vid %u db \"%s\" refcount %u",
112 __entry->vid, __entry->db_buf, __entry->refcount)
[all...]
/linux-master/net/batman-adv/
H A Doriginator.h99 kref_put(&orig_vlan->refcount, batadv_orig_node_vlan_release);
113 kref_put(&neigh_ifinfo->refcount, batadv_neigh_ifinfo_release);
127 kref_put(&hardif_neigh->refcount, batadv_hardif_neigh_release);
140 kref_put(&neigh_node->refcount, batadv_neigh_node_release);
154 kref_put(&orig_ifinfo->refcount, batadv_orig_ifinfo_release);
167 kref_put(&orig_node->refcount, batadv_orig_node_release);
/linux-master/include/net/
H A Dcalipso.h27 #include <linux/refcount.h>
46 refcount_t refcount; member in struct:calipso_doi
/linux-master/mm/
H A Dzpool.c36 atomic_set(&driver->refcount, 0);
54 int ret = 0, refcount; local
57 refcount = atomic_read(&driver->refcount);
58 WARN_ON(refcount < 0);
59 if (refcount > 0)
80 atomic_inc(&driver->refcount);
92 atomic_dec(&driver->refcount);
/linux-master/drivers/gpu/drm/xe/
H A Dxe_sched_job_types.h23 /** @refcount: ref count of this job */
24 struct kref refcount; member in struct:xe_sched_job

Completed in 348 milliseconds

1234567891011>>