| /arch/powerpc/platforms/cell/spufs/ |
| A D | gang.c | 23 kref_init(&gang->kref); in alloc_spu_gang() 34 static void destroy_spu_gang(struct kref *kref) in destroy_spu_gang() argument 37 gang = container_of(kref, struct spu_gang, kref); in destroy_spu_gang() 44 kref_get(&gang->kref); in get_spu_gang() 50 return kref_put(&gang->kref, &destroy_spu_gang); in put_spu_gang()
|
| A D | context.c | 39 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()
|
| A D | spufs.h | 87 struct kref kref; member 101 struct kref *prof_priv_kref; 102 void ( * prof_priv_release) (struct kref *kref); 145 struct kref kref; member 272 void destroy_spu_context(struct kref *kref);
|
| /arch/s390/pci/ |
| A D | pci_bus.h | 23 void zpci_release_device(struct kref *kref); 29 kref_get(&zdev->kref); in zpci_zdev_get()
|
| A D | pci_bus.c | 215 static void zpci_bus_release(struct kref *kref) in zpci_bus_release() argument 217 struct zpci_bus *zbus = container_of(kref, struct zpci_bus, kref); in zpci_bus_release() 238 kref_put(&zbus->kref, zpci_bus_release); in zpci_bus_put() 250 kref_get(&zbus->kref); in zpci_bus_get() 275 kref_init(&zbus->kref); in zpci_bus_alloc()
|
| A D | pci.c | 79 kref_put_lock(&zdev->kref, zpci_release_device, &zpci_list_lock); in zpci_zdev_put() 860 kref_init(&zdev->kref); in zpci_add_device() 958 void zpci_release_device(struct kref *kref) in zpci_release_device() argument 960 struct zpci_dev *zdev = container_of(kref, struct zpci_dev, kref); in zpci_release_device()
|
| /arch/arm/include/asm/ |
| A D | dma-iommu.h | 23 struct kref kref; member
|
| /arch/powerpc/include/asm/ |
| A D | pnv-pci.h | 37 struct kref kref; member
|
| A D | pmac_pfunc.h | 156 struct kref ref;
|
| A D | iommu.h | 116 struct kref it_kref;
|
| A D | kvm_host.h | 184 struct kref kref; member
|
| /arch/s390/include/asm/ |
| A D | pci.h | 106 struct kref kref; member 124 struct kref kref; member
|
| /arch/powerpc/kvm/ |
| A D | book3s_64_vio.c | 71 static void kvm_spapr_tce_liobn_put(struct kref *kref) in kvm_spapr_tce_liobn_put() argument 73 struct kvmppc_spapr_tce_iommu_table *stit = container_of(kref, in kvm_spapr_tce_liobn_put() 74 struct kvmppc_spapr_tce_iommu_table, kref); in kvm_spapr_tce_liobn_put() 101 kref_put(&stit->kref, kvm_spapr_tce_liobn_put); in kvm_spapr_tce_release_iommu_group() 166 if (!kref_get_unless_zero(&stit->kref)) { in kvm_spapr_tce_attach_iommu_group() 188 kref_init(&stit->kref); in kvm_spapr_tce_attach_iommu_group() 267 WARN_ON(!kref_read(&stit->kref)); in kvm_spapr_tce_release() 269 if (kref_put(&stit->kref, kvm_spapr_tce_liobn_put)) in kvm_spapr_tce_release()
|
| /arch/x86/kernel/cpu/sgx/ |
| A D | encl.h | 65 struct kref refcount; 107 void sgx_encl_release(struct kref *ref);
|
| A D | encl.c | 700 void sgx_encl_release(struct kref *ref) in sgx_encl_release()
|
| /arch/powerpc/kernel/ |
| A D | pci-common.c | 377 struct kref kref; member 384 static void ppc_pci_intx_release(struct kref *kref) in ppc_pci_intx_release() argument 386 struct pci_intx_virq *vi = container_of(kref, struct pci_intx_virq, kref); in ppc_pci_intx_release() 404 kref_put(&vi->kref, ppc_pci_intx_release); in ppc_pci_unmap_irq_line() 481 kref_get(&vitmp->kref); in pci_read_irq_line() 489 kref_init(&vi->kref); in pci_read_irq_line()
|
| A D | iommu.c | 804 static void iommu_table_free(struct kref *kref) in iommu_table_free() argument 808 tbl = container_of(kref, struct iommu_table, it_kref); in iommu_table_free()
|
| /arch/powerpc/platforms/powermac/ |
| A D | pfunc_core.c | 544 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/ |
| A D | dma-mapping.c | 1594 kref_init(&mapping->kref); in arm_iommu_create_mapping() 1607 static void release_iommu_mapping(struct kref *kref) in release_iommu_mapping() argument 1611 container_of(kref, struct dma_iommu_mapping, kref); in release_iommu_mapping() 1641 kref_put(&mapping->kref, release_iommu_mapping); in arm_iommu_release_mapping() 1654 kref_get(&mapping->kref); in __arm_iommu_attach_device() 1706 kref_put(&mapping->kref, release_iommu_mapping); in arm_iommu_detach_device()
|
| /arch/arm64/kvm/vgic/ |
| A D | vgic.c | 122 static void vgic_irq_release(struct kref *ref) in vgic_irq_release()
|