Home
last modified time | relevance | path

Searched refs:kref (Results 1 – 17 of 17) sorted by relevance

/arch/powerpc/platforms/cell/spufs/
Dgang.c36 kref_init(&gang->kref); in alloc_spu_gang()
46 static void destroy_spu_gang(struct kref *kref) in destroy_spu_gang() argument
49 gang = container_of(kref, struct spu_gang, kref); in destroy_spu_gang()
56 kref_get(&gang->kref); in get_spu_gang()
62 return kref_put(&gang->kref, &destroy_spu_gang); in put_spu_gang()
Dcontext.c48 kref_init(&ctx->kref); in alloc_spu_context()
77 void destroy_spu_context(struct kref *kref) in destroy_spu_context() argument
80 ctx = container_of(kref, struct spu_context, kref); in destroy_spu_context()
98 kref_get(&ctx->kref); in get_spu_context()
104 return kref_put(&ctx->kref, &destroy_spu_context); in put_spu_context()
Dspufs.h100 struct kref kref; member
117 struct kref *prof_priv_kref;
118 void ( * prof_priv_release) (struct kref *kref);
161 struct kref kref; member
286 void destroy_spu_context(struct kref *kref);
/arch/powerpc/platforms/cell/
Dspu_notify.c54 struct kref *prof_info_kref, in spu_set_profile_private_kref()
55 void (* prof_info_release) (struct kref *kref)) in spu_set_profile_private_kref()
/arch/sh/kernel/cpu/
Dclock.c100 if (unlikely(atomic_read(&clk->kref.refcount) == 1)) in __clk_enable()
104 kref_get(&clk->kref); in __clk_enable()
133 static void clk_kref_release(struct kref *kref) in clk_kref_release() argument
140 int count = kref_put(&clk->kref, clk_kref_release); in __clk_disable()
171 kref_init(&clk->kref); in clk_register()
325 (atomic_read(&clk->kref.refcount) != 1)) ? in show_clocks()
/arch/sh/include/asm/
Dclock.h30 struct kref kref; member
/arch/sparc/include/asm/
Dprom.h59 struct kref kref; member
/arch/powerpc/oprofile/cell/
Dspu_task_sync.c139 struct kref cache_ref;
144 static void destroy_cached_info(struct kref *kref) in destroy_cached_info() argument
148 info = container_of(kref, struct cached_info, cache_ref); in destroy_cached_info()
160 struct kref *ref; in get_cached_info()
/arch/powerpc/kernel/
Dprom.c324 kref_init(&np->kref); in unflatten_dt_node()
1356 kref_get(&node->kref); in of_node_get()
1361 static inline struct device_node * kref_to_device_node(struct kref *kref) in kref_to_device_node() argument
1363 return container_of(kref, struct device_node, kref); in kref_to_device_node()
1373 static void of_node_release(struct kref *kref) in of_node_release() argument
1375 struct device_node *node = kref_to_device_node(kref); in of_node_release()
1382 kref_init(&node->kref); in of_node_release()
1415 kref_put(&node->kref, of_node_release); in of_node_put()
/arch/powerpc/include/asm/
Dprom.h100 struct kref kref; member
Dspu.h231 struct kref *prof_info_kref,
232 void ( * prof_info_release) (struct kref *kref));
Dpmac_pfunc.h155 struct kref ref;
/arch/powerpc/platforms/powermac/
Dpfunc_core.c543 struct kref ref;
550 static void pmf_release_device(struct kref *kref) in pmf_release_device() argument
552 struct pmf_device *dev = container_of(kref, struct pmf_device, ref); in pmf_release_device()
757 static void pmf_release_function(struct kref *kref) in pmf_release_function() argument
760 container_of(kref, struct pmf_function, ref); in pmf_release_function()
/arch/powerpc/sysdev/
Dmsi_bitmap.c203 kref_init(&of_node.kref); in test_of_node()
/arch/sparc/kernel/
Dprom_common.c232 kref_init(&dp->kref); in prom_create_node()
/arch/powerpc/platforms/iseries/
Dvio.c97 kref_init(&np->kref); in new_node()
/arch/powerpc/platforms/pseries/
Dreconfig.c127 kref_init(&np->kref); in pSeries_reconfig_add_node()