Home
last modified time | relevance | path

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

/arch/powerpc/platforms/cell/spufs/
Dgang.c23 kref_init(&gang->kref); in alloc_spu_gang()
33 static void destroy_spu_gang(struct kref *kref) in destroy_spu_gang() argument
36 gang = container_of(kref, struct spu_gang, kref); in destroy_spu_gang()
43 kref_get(&gang->kref); in get_spu_gang()
49 return kref_put(&gang->kref, &destroy_spu_gang); in put_spu_gang()
Dcontext.c39 kref_init(&ctx->kref); in alloc_spu_context()
69 void destroy_spu_context(struct kref *kref) in destroy_spu_context() argument
72 ctx = container_of(kref, struct spu_context, kref); in destroy_spu_context()
90 kref_get(&ctx->kref); in get_spu_context()
96 return kref_put(&ctx->kref, &destroy_spu_context); in put_spu_context()
Dspufs.h87 struct kref kref; member
101 struct kref *prof_priv_kref;
102 void ( * prof_priv_release) (struct kref *kref);
145 struct kref kref; member
270 void destroy_spu_context(struct kref *kref);
/arch/powerpc/platforms/cell/
Dspu_notify.c42 struct kref *prof_info_kref, in spu_set_profile_private_kref()
43 void (* prof_info_release) (struct kref *kref)) in spu_set_profile_private_kref()
/arch/arm/include/asm/
Ddma-iommu.h24 struct kref kref; member
/arch/mips/include/asm/
Dclock.h30 struct kref kref; member
/arch/powerpc/include/asm/
Dpnv-pci.h52 struct kref kref; member
Dspu.h213 struct kref *prof_info_kref,
214 void ( * prof_info_release) (struct kref *kref));
Dpmac_pfunc.h156 struct kref ref;
Diommu.h113 struct kref it_kref;
Dkvm_host.h190 struct kref kref; member
/arch/powerpc/kvm/
Dbook3s_64_vio.c59 static void kvm_spapr_tce_liobn_put(struct kref *kref) in kvm_spapr_tce_liobn_put() argument
61 struct kvmppc_spapr_tce_iommu_table *stit = container_of(kref, in kvm_spapr_tce_liobn_put()
62 struct kvmppc_spapr_tce_iommu_table, kref); in kvm_spapr_tce_liobn_put()
88 kref_put(&stit->kref, kvm_spapr_tce_liobn_put); in kvm_spapr_tce_release_iommu_group()
151 if (!kref_get_unless_zero(&stit->kref)) { in kvm_spapr_tce_attach_iommu_group()
170 kref_init(&stit->kref); in kvm_spapr_tce_attach_iommu_group()
249 WARN_ON(!kref_read(&stit->kref)); in kvm_spapr_tce_release()
251 if (kref_put(&stit->kref, kvm_spapr_tce_liobn_put)) in kvm_spapr_tce_release()
/arch/powerpc/oprofile/cell/
Dspu_task_sync.c137 struct kref cache_ref;
142 static void destroy_cached_info(struct kref *kref) in destroy_cached_info() argument
146 info = container_of(kref, struct cached_info, cache_ref); in destroy_cached_info()
158 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/arm/mm/
Ddma-mapping.c2117 kref_init(&mapping->kref); in arm_iommu_create_mapping()
2130 static void release_iommu_mapping(struct kref *kref) in release_iommu_mapping() argument
2134 container_of(kref, struct dma_iommu_mapping, kref); in release_iommu_mapping()
2164 kref_put(&mapping->kref, release_iommu_mapping); in arm_iommu_release_mapping()
2177 kref_get(&mapping->kref); in __arm_iommu_attach_device()
2229 kref_put(&mapping->kref, release_iommu_mapping); in arm_iommu_detach_device()
/arch/powerpc/kernel/
Diommu.c738 static void iommu_table_free(struct kref *kref) in iommu_table_free() argument
744 tbl = container_of(kref, struct iommu_table, it_kref); in iommu_table_free()