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.c52 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
114 struct kref *prof_priv_kref;
115 void ( * prof_priv_release) (struct kref *kref);
158 struct kref kref; member
284 void destroy_spu_context(struct kref *kref);
/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.h26 struct kref kref; member
/arch/mips/include/asm/
Dclock.h30 struct kref kref; member
/arch/powerpc/kvm/
Dbook3s_64_vio.c107 static void kvm_spapr_tce_liobn_put(struct kref *kref) in kvm_spapr_tce_liobn_put() argument
109 struct kvmppc_spapr_tce_iommu_table *stit = container_of(kref, in kvm_spapr_tce_liobn_put()
110 struct kvmppc_spapr_tce_iommu_table, kref); in kvm_spapr_tce_liobn_put()
136 kref_put(&stit->kref, kvm_spapr_tce_liobn_put); in kvm_spapr_tce_release_iommu_group()
201 if (!kref_get_unless_zero(&stit->kref)) { in kvm_spapr_tce_attach_iommu_group()
220 kref_init(&stit->kref); in kvm_spapr_tce_attach_iommu_group()
274 WARN_ON(!kref_read(&stit->kref)); in kvm_spapr_tce_release()
276 if (kref_put(&stit->kref, kvm_spapr_tce_liobn_put)) in kvm_spapr_tce_release()
/arch/powerpc/include/asm/
Dpnv-pci.h64 struct kref kref; member
Dspu.h226 struct kref *prof_info_kref,
227 void ( * prof_info_release) (struct kref *kref));
Dpmac_pfunc.h156 struct kref ref;
Diommu.h122 struct kref it_kref;
Dkvm_host.h191 struct kref kref; member
/arch/powerpc/platforms/powernv/
Dnpu-dma.c404 struct kref kref; member
772 kref_init(&npu_context->kref); in pnv_npu2_init_context()
774 kref_get(&npu_context->kref); in pnv_npu2_init_context()
798 static void pnv_npu2_release_context(struct kref *kref) in pnv_npu2_release_context() argument
801 container_of(kref, struct npu_context, kref); in pnv_npu2_release_context()
834 kref_put(&npu_context->kref, pnv_npu2_release_context); in pnv_npu2_destroy_context()
/arch/powerpc/oprofile/cell/
Dspu_task_sync.c141 struct kref cache_ref;
146 static void destroy_cached_info(struct kref *kref) in destroy_cached_info() argument
150 info = container_of(kref, struct cached_info, cache_ref); in destroy_cached_info()
162 struct kref *ref; in get_cached_info()
/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/arm/mm/
Ddma-mapping.c2209 kref_init(&mapping->kref); in arm_iommu_create_mapping()
2222 static void release_iommu_mapping(struct kref *kref) in release_iommu_mapping() argument
2226 container_of(kref, struct dma_iommu_mapping, kref); in release_iommu_mapping()
2256 kref_put(&mapping->kref, release_iommu_mapping); in arm_iommu_release_mapping()
2269 kref_get(&mapping->kref); in __arm_iommu_attach_device()
2321 kref_put(&mapping->kref, release_iommu_mapping); in arm_iommu_detach_device()
/arch/powerpc/kernel/
Diommu.c713 static void iommu_table_free(struct kref *kref) in iommu_table_free() argument
719 tbl = container_of(kref, struct iommu_table, it_kref); in iommu_table_free()