Home
last modified time | relevance | path

Searched refs:kref (Results 1 – 16 of 16) 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.c51 kref_init(&ctx->kref); in alloc_spu_context()
82 void destroy_spu_context(struct kref *kref) in destroy_spu_context() argument
85 ctx = container_of(kref, struct spu_context, kref); in destroy_spu_context()
103 kref_get(&ctx->kref); in get_spu_context()
109 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/s390/hypfs/
Dhypfs_dbfs.c20 kref_init(&data->kref); in hypfs_dbfs_data_alloc()
25 static void hypfs_dbfs_data_free(struct kref *kref) in hypfs_dbfs_data_free() argument
29 data = container_of(kref, struct hypfs_dbfs_data, kref); in hypfs_dbfs_data_free()
44 kref_put(&data->kref, hypfs_dbfs_data_free); in data_free_delayed()
76 kref_get(&data->kref); in dbfs_read()
80 kref_put(&data->kref, hypfs_dbfs_data_free); in dbfs_read()
Dhypfs.h50 struct kref kref; member
/arch/powerpc/platforms/cell/
Dspu_notify.c55 struct kref *prof_info_kref, in spu_set_profile_private_kref()
56 void (* prof_info_release) (struct kref *kref)) in spu_set_profile_private_kref()
/arch/arm/include/asm/
Ddma-iommu.h22 struct kref kref; member
/arch/mips/include/asm/
Dclock.h29 struct kref kref; member
/arch/powerpc/oprofile/cell/
Dspu_task_sync.c140 struct kref cache_ref;
145 static void destroy_cached_info(struct kref *kref) in destroy_cached_info() argument
149 info = container_of(kref, struct cached_info, cache_ref); in destroy_cached_info()
161 struct kref *ref; in get_cached_info()
/arch/powerpc/platforms/powermac/
Dpfunc_core.c544 struct kref ref;
551 static void pmf_release_device(struct kref *kref) in pmf_release_device() argument
553 struct pmf_device *dev = container_of(kref, struct pmf_device, ref); in pmf_release_device()
758 static void pmf_release_function(struct kref *kref) in pmf_release_function() argument
761 container_of(kref, struct pmf_function, ref); in pmf_release_function()
/arch/powerpc/include/asm/
Dspu.h224 struct kref *prof_info_kref,
225 void ( * prof_info_release) (struct kref *kref));
Dpmac_pfunc.h155 struct kref ref;
/arch/arm/mm/
Ddma-mapping.c1834 kref_init(&mapping->kref); in arm_iommu_create_mapping()
1845 static void release_iommu_mapping(struct kref *kref) in release_iommu_mapping() argument
1848 container_of(kref, struct dma_iommu_mapping, kref); in release_iommu_mapping()
1858 kref_put(&mapping->kref, release_iommu_mapping); in arm_iommu_release_mapping()
1882 kref_get(&mapping->kref); in arm_iommu_attach_device()
1909 kref_put(&mapping->kref, release_iommu_mapping); in arm_iommu_detach_device()
/arch/powerpc/sysdev/
Dmsi_bitmap.c205 kref_init(&of_node.kref); in test_of_node()
/arch/powerpc/platforms/pseries/
Dreconfig.c73 kref_init(&np->kref); in pSeries_reconfig_add_node()
Ddlpar.c260 kref_init(&dn->kref); in dlpar_attach_node()