Symbol: kref
arch/arm/include/asm/dma-iommu.h
23
struct kref kref;
arch/arm/mm/dma-mapping.c
1534
kref_init(&mapping->kref);
arch/arm/mm/dma-mapping.c
1547
static void release_iommu_mapping(struct kref *kref)
arch/arm/mm/dma-mapping.c
1551
container_of(kref, struct dma_iommu_mapping, kref);
arch/arm/mm/dma-mapping.c
1581
kref_put(&mapping->kref, release_iommu_mapping);
arch/arm/mm/dma-mapping.c
1594
kref_get(&mapping->kref);
arch/arm/mm/dma-mapping.c
1646
kref_put(&mapping->kref, release_iommu_mapping);
arch/powerpc/include/asm/iommu.h
116
struct kref it_kref;
arch/powerpc/include/asm/kvm_host.h
184
struct kref kref;
arch/powerpc/include/asm/pmac_pfunc.h
156
struct kref ref;
arch/powerpc/include/asm/pnv-pci.h
37
struct kref kref;
arch/powerpc/kernel/iommu.c
804
static void iommu_table_free(struct kref *kref)
arch/powerpc/kernel/iommu.c
808
tbl = container_of(kref, struct iommu_table, it_kref);
arch/powerpc/kernel/pci-common.c
377
struct kref kref;
arch/powerpc/kernel/pci-common.c
384
static void ppc_pci_intx_release(struct kref *kref)
arch/powerpc/kernel/pci-common.c
386
struct pci_intx_virq *vi = container_of(kref, struct pci_intx_virq, kref);
arch/powerpc/kernel/pci-common.c
404
kref_put(&vi->kref, ppc_pci_intx_release);
arch/powerpc/kernel/pci-common.c
481
kref_get(&vitmp->kref);
arch/powerpc/kernel/pci-common.c
489
kref_init(&vi->kref);
arch/powerpc/kvm/book3s_64_vio.c
101
kref_put(&stit->kref, kvm_spapr_tce_liobn_put);
arch/powerpc/kvm/book3s_64_vio.c
166
if (!kref_get_unless_zero(&stit->kref)) {
arch/powerpc/kvm/book3s_64_vio.c
188
kref_init(&stit->kref);
arch/powerpc/kvm/book3s_64_vio.c
267
WARN_ON(!kref_read(&stit->kref));
arch/powerpc/kvm/book3s_64_vio.c
269
if (kref_put(&stit->kref, kvm_spapr_tce_liobn_put))
arch/powerpc/kvm/book3s_64_vio.c
71
static void kvm_spapr_tce_liobn_put(struct kref *kref)
arch/powerpc/kvm/book3s_64_vio.c
73
struct kvmppc_spapr_tce_iommu_table *stit = container_of(kref,
arch/powerpc/kvm/book3s_64_vio.c
74
struct kvmppc_spapr_tce_iommu_table, kref);
arch/powerpc/platforms/cell/spufs/context.c
39
kref_init(&ctx->kref);
arch/powerpc/platforms/cell/spufs/context.c
69
void destroy_spu_context(struct kref *kref)
arch/powerpc/platforms/cell/spufs/context.c
72
ctx = container_of(kref, struct spu_context, kref);
arch/powerpc/platforms/cell/spufs/context.c
90
kref_get(&ctx->kref);
arch/powerpc/platforms/cell/spufs/context.c
96
return kref_put(&ctx->kref, &destroy_spu_context);
arch/powerpc/platforms/cell/spufs/gang.c
23
kref_init(&gang->kref);
arch/powerpc/platforms/cell/spufs/gang.c
34
static void destroy_spu_gang(struct kref *kref)
arch/powerpc/platforms/cell/spufs/gang.c
37
gang = container_of(kref, struct spu_gang, kref);
arch/powerpc/platforms/cell/spufs/gang.c
44
kref_get(&gang->kref);
arch/powerpc/platforms/cell/spufs/gang.c
50
return kref_put(&gang->kref, &destroy_spu_gang);
arch/powerpc/platforms/cell/spufs/spufs.h
101
struct kref *prof_priv_kref;
arch/powerpc/platforms/cell/spufs/spufs.h
102
void ( * prof_priv_release) (struct kref *kref);
arch/powerpc/platforms/cell/spufs/spufs.h
145
struct kref kref;
arch/powerpc/platforms/cell/spufs/spufs.h
272
void destroy_spu_context(struct kref *kref);
arch/powerpc/platforms/cell/spufs/spufs.h
87
struct kref kref;
arch/powerpc/platforms/powermac/pfunc_core.c
544
struct kref ref;
arch/powerpc/platforms/powermac/pfunc_core.c
551
static void pmf_release_device(struct kref *kref)
arch/powerpc/platforms/powermac/pfunc_core.c
553
struct pmf_device *dev = container_of(kref, struct pmf_device, ref);
arch/powerpc/platforms/powermac/pfunc_core.c
758
static void pmf_release_function(struct kref *kref)
arch/powerpc/platforms/powermac/pfunc_core.c
761
container_of(kref, struct pmf_function, ref);
arch/s390/include/asm/pci.h
107
struct kref kref;
arch/s390/include/asm/pci.h
126
struct kref kref;
arch/s390/pci/pci.c
78
kref_put_lock(&zdev->kref, zpci_release_device, &zpci_list_lock);
arch/s390/pci/pci.c
878
kref_init(&zdev->kref);
arch/s390/pci/pci.c
976
void zpci_release_device(struct kref *kref)
arch/s390/pci/pci.c
979
struct zpci_dev *zdev = container_of(kref, struct zpci_dev, kref);
arch/s390/pci/pci_bus.c
216
static inline void zpci_bus_release(struct kref *kref)
arch/s390/pci/pci_bus.c
219
struct zpci_bus *zbus = container_of(kref, struct zpci_bus, kref);
arch/s390/pci/pci_bus.c
249
kref_get(&zbus->kref);
arch/s390/pci/pci_bus.c
254
kref_put_mutex(&zbus->kref, zpci_bus_release, &zbus_list_lock);
arch/s390/pci/pci_bus.c
326
kref_init(&zbus->kref);
arch/s390/pci/pci_bus.h
36
void zpci_release_device(struct kref *kref);
arch/s390/pci/pci_bus.h
42
kref_get(&zdev->kref);
arch/x86/kernel/cpu/sgx/encl.c
700
void sgx_encl_release(struct kref *ref)
arch/x86/kernel/cpu/sgx/encl.h
107
void sgx_encl_release(struct kref *ref);
arch/x86/kernel/cpu/sgx/encl.h
65
struct kref refcount;
block/bsg-lib.c
156
static void bsg_teardown_job(struct kref *kref)
block/bsg-lib.c
158
struct bsg_job *job = container_of(kref, struct bsg_job, kref);
block/bsg-lib.c
171
kref_put(&job->kref, bsg_teardown_job);
block/bsg-lib.c
177
return kref_get_unless_zero(&job->kref);
block/bsg-lib.c
252
kref_init(&job->kref);
block/sed-opal.c
307
key_ref_t kref;
block/sed-opal.c
313
kref = keyring_search(make_key_ref(sed_opal_keyring, true),
block/sed-opal.c
316
if (IS_ERR(kref))
block/sed-opal.c
317
return PTR_ERR(kref);
block/sed-opal.c
319
key = key_ref_to_ptr(kref);
block/sed-opal.c
330
key_ref_put(kref);
certs/blacklist.c
228
key_ref_t kref;
certs/blacklist.c
235
kref = keyring_search(make_key_ref(blacklist_keyring, true),
certs/blacklist.c
237
if (!IS_ERR(kref)) {
certs/blacklist.c
238
key_ref_put(kref);
drivers/accel/amdxdna/aie2_ctx.c
32
static void aie2_job_release(struct kref *ref)
drivers/accel/amdxdna/amdxdna_ctx.h
127
struct kref refcnt;
drivers/accel/amdxdna/amdxdna_gem.c
161
static void amdxdna_umap_release(struct kref *ref)
drivers/accel/amdxdna/amdxdna_gem.h
19
struct kref refcnt;
drivers/accel/ethosu/ethosu_job.c
158
static void ethosu_job_cleanup(struct kref *ref)
drivers/accel/ethosu/ethosu_job.h
30
struct kref refcount;
drivers/accel/habanalabs/common/command_submission.c
135
static void hl_sob_reset(struct kref *ref)
drivers/accel/habanalabs/common/command_submission.c
138
kref);
drivers/accel/habanalabs/common/command_submission.c
148
void hl_sob_reset_error(struct kref *ref)
drivers/accel/habanalabs/common/command_submission.c
151
kref);
drivers/accel/habanalabs/common/command_submission.c
162
kref_put(&hw_sob->kref, hl_sob_reset);
drivers/accel/habanalabs/common/command_submission.c
168
kref_put(&hw_sob->kref, hl_sob_reset_error);
drivers/accel/habanalabs/common/command_submission.c
174
kref_get(&hw_sob->kref);
drivers/accel/habanalabs/common/command_submission.c
1827
if (kref_read(&other_sob->kref) != 1) {
drivers/accel/habanalabs/common/command_submission.c
209
static void hl_fence_release(struct kref *kref)
drivers/accel/habanalabs/common/command_submission.c
212
container_of(kref, struct hl_fence, refcount);
drivers/accel/habanalabs/common/command_submission.c
265
static void cs_job_do_release(struct kref *ref)
drivers/accel/habanalabs/common/command_submission.c
55
static void cs_do_release(struct kref *ref);
drivers/accel/habanalabs/common/command_submission.c
694
static void cs_do_release(struct kref *ref)
drivers/accel/habanalabs/common/context.c
131
void hl_ctx_do_release(struct kref *ref)
drivers/accel/habanalabs/common/context.c
30
void hl_encaps_release_handle_and_put_ctx(struct kref *ref)
drivers/accel/habanalabs/common/context.c
38
static void hl_encaps_release_handle_and_put_sob(struct kref *ref)
drivers/accel/habanalabs/common/context.c
46
void hl_encaps_release_handle_and_put_sob_ctx(struct kref *ref)
drivers/accel/habanalabs/common/device.c
460
static void hpriv_release(struct kref *ref)
drivers/accel/habanalabs/common/habanalabs.h
1939
struct kref refcount;
drivers/accel/habanalabs/common/habanalabs.h
2053
struct kref refcount;
drivers/accel/habanalabs/common/habanalabs.h
2123
struct kref refcount;
drivers/accel/habanalabs/common/habanalabs.h
2275
struct kref dram_pg_pool_refcount;
drivers/accel/habanalabs/common/habanalabs.h
2349
struct kref refcount;
drivers/accel/habanalabs/common/habanalabs.h
3639
struct kref refcount;
drivers/accel/habanalabs/common/habanalabs.h
3830
void hl_ctx_do_release(struct kref *ref);
drivers/accel/habanalabs/common/habanalabs.h
3879
void hl_sob_reset_error(struct kref *ref);
drivers/accel/habanalabs/common/habanalabs.h
4082
void hl_encaps_release_handle_and_put_ctx(struct kref *ref);
drivers/accel/habanalabs/common/habanalabs.h
4083
void hl_encaps_release_handle_and_put_sob_ctx(struct kref *ref);
drivers/accel/habanalabs/common/habanalabs.h
427
struct kref kref;
drivers/accel/habanalabs/common/habanalabs.h
846
struct kref refcount;
drivers/accel/habanalabs/common/habanalabs.h
958
struct kref refcount;
drivers/accel/habanalabs/common/hw_queue.c
526
kref_get(&cs_cmpl->hw_sob->kref);
drivers/accel/habanalabs/common/hw_queue.c
968
kref_init(&hw_sob->kref);
drivers/accel/habanalabs/common/hw_queue.c
981
kref_init(&prop->hw_sob[prop->curr_sob_offset].kref);
drivers/accel/habanalabs/common/memory.c
288
static void dram_pg_pool_do_release(struct kref *ref)
drivers/accel/habanalabs/common/memory_mgr.c
61
static void hl_mmap_mem_buf_release(struct kref *kref)
drivers/accel/habanalabs/common/memory_mgr.c
64
container_of(kref, struct hl_mmap_mem_buf, refcount);
drivers/accel/habanalabs/common/memory_mgr.c
81
static void hl_mmap_mem_buf_remove_idr_locked(struct kref *kref)
drivers/accel/habanalabs/common/memory_mgr.c
84
container_of(kref, struct hl_mmap_mem_buf, refcount);
drivers/accel/habanalabs/gaudi/gaudi.c
1123
static void gaudi_sob_group_hw_reset(struct kref *ref)
drivers/accel/habanalabs/gaudi/gaudi.c
1126
container_of(ref, struct gaudi_hw_sob_group, kref);
drivers/accel/habanalabs/gaudi/gaudi.c
1134
kref_init(&hw_sob_group->kref);
drivers/accel/habanalabs/gaudi/gaudi.c
1137
static void gaudi_sob_group_reset_error(struct kref *ref)
drivers/accel/habanalabs/gaudi/gaudi.c
1140
container_of(ref, struct gaudi_hw_sob_group, kref);
drivers/accel/habanalabs/gaudi/gaudi.c
1185
gaudi_sob_group_hw_reset(&prop->hw_sob_group[i].kref);
drivers/accel/habanalabs/gaudi/gaudi.c
1204
kref_put(&cprop->hw_sob_group[sob_group].kref,
drivers/accel/habanalabs/gaudi/gaudi.c
1360
kref_get(&cs_cmpl->hw_sob->kref);
drivers/accel/habanalabs/gaudi/gaudi.c
1384
kref_get(&cprop->hw_sob_group[sob_group_offset].kref);
drivers/accel/habanalabs/gaudi/gaudi.c
1393
kref_put(&cprop->hw_sob_group[sob_group_offset].kref,
drivers/accel/habanalabs/gaudi/gaudi.c
8773
kref_init(&hw_sob->kref);
drivers/accel/habanalabs/gaudi/gaudiP.h
266
struct kref kref;
drivers/accel/habanalabs/gaudi2/gaudi2.c
11477
kref_init(&hw_sob->kref);
drivers/accel/ivpu/ivpu_drv.c
97
static void file_priv_release(struct kref *ref)
drivers/accel/ivpu/ivpu_drv.h
184
struct kref ref;
drivers/accel/qaic/qaic.h
305
struct kref ref_count;
drivers/accel/qaic/qaic.h
72
struct kref ref_count;
drivers/accel/qaic/qaic_control.c
290
static void free_wrapper(struct kref *ref)
drivers/accel/qaic/qaic_control.c
77
struct kref ref_count;
drivers/accel/qaic/qaic_data.c
160
static void free_slice(struct kref *kref)
drivers/accel/qaic/qaic_data.c
162
struct bo_slice *slice = container_of(kref, struct bo_slice, ref_count);
drivers/accel/qaic/qaic_drv.c
132
static void free_usr(struct kref *kref)
drivers/accel/qaic/qaic_drv.c
134
struct qaic_user *usr = container_of(kref, struct qaic_user, ref_count);
drivers/accel/rocket/rocket_drv.c
29
rocket_iommu_domain_destroy(struct kref *kref)
drivers/accel/rocket/rocket_drv.c
31
struct rocket_iommu_domain *domain = container_of(kref, struct rocket_iommu_domain, kref);
drivers/accel/rocket/rocket_drv.c
53
kref_init(&domain->kref);
drivers/accel/rocket/rocket_drv.c
61
kref_get(&rocket_priv->domain->kref);
drivers/accel/rocket/rocket_drv.c
68
kref_put(&domain->kref, rocket_iommu_domain_destroy);
drivers/accel/rocket/rocket_drv.h
16
struct kref kref;
drivers/accel/rocket/rocket_job.c
230
static void rocket_job_cleanup(struct kref *ref)
drivers/accel/rocket/rocket_job.h
41
struct kref refcount;
drivers/acpi/acpi_ipmi.c
124
kref_init(&ipmi_device->kref);
drivers/acpi/acpi_ipmi.c
151
static void ipmi_dev_release_kref(struct kref *kref)
drivers/acpi/acpi_ipmi.c
154
container_of(kref, struct acpi_ipmi_device, kref);
drivers/acpi/acpi_ipmi.c
179
kref_get(&ipmi_device->kref);
drivers/acpi/acpi_ipmi.c
188
kref_put(&ipmi_device->kref, ipmi_dev_release_kref);
drivers/acpi/acpi_ipmi.c
206
kref_init(&ipmi_msg->kref);
drivers/acpi/acpi_ipmi.c
221
static void ipmi_msg_release_kref(struct kref *kref)
drivers/acpi/acpi_ipmi.c
224
container_of(kref, struct acpi_ipmi_msg, kref);
drivers/acpi/acpi_ipmi.c
231
kref_get(&tx_msg->kref);
drivers/acpi/acpi_ipmi.c
238
kref_put(&tx_msg->kref, ipmi_msg_release_kref);
drivers/acpi/acpi_ipmi.c
42
struct kref kref;
drivers/acpi/acpi_ipmi.c
86
struct kref kref;
drivers/acpi/ec.c
1072
kref_get(&handler->kref);
drivers/acpi/ec.c
1081
static void acpi_ec_query_handler_release(struct kref *kref)
drivers/acpi/ec.c
1084
container_of(kref, struct acpi_ec_query_handler, kref);
drivers/acpi/ec.c
1091
kref_put(&handler->kref, acpi_ec_query_handler_release);
drivers/acpi/ec.c
1112
kref_init(&handler->kref);
drivers/acpi/ec.c
152
struct kref kref;
drivers/ata/libata-core.c
5719
static void ata_host_release(struct kref *kref)
drivers/ata/libata-core.c
5721
struct ata_host *host = container_of(kref, struct ata_host, kref);
drivers/ata/libata-core.c
5733
kref_get(&host->kref);
drivers/ata/libata-core.c
5738
kref_put(&host->kref, ata_host_release);
drivers/ata/libata-core.c
5788
kref_init(&host->kref);
drivers/ata/libata-core.c
6024
kref_init(&host->kref);
drivers/base/core.c
1232
kref_put(&link->kref, __device_link_del);
drivers/base/core.c
1636
__device_link_del(&link->kref);
drivers/base/core.c
1642
__device_link_del(&link->kref);
drivers/base/core.c
3347
WARN_ON_ONCE(kref_read(&kobj->kref) == 0);
drivers/base/core.c
3414
ref = kref_read(&glue_dir->kref);
drivers/base/core.c
808
kref_get(&link->kref);
drivers/base/core.c
834
kref_get(&link->kref);
drivers/base/core.c
860
kref_init(&link->kref);
drivers/base/core.c
927
static void __device_link_del(struct kref *kref)
drivers/base/core.c
929
struct device_link *link = container_of(kref, struct device_link, kref);
drivers/base/core.c
943
kref_put(&link->kref, __device_link_del);
drivers/base/core.c
945
__device_link_del(&link->kref);
drivers/base/firmware_loader/firmware.h
65
struct kref ref;
drivers/base/firmware_loader/main.c
203
static void __free_fw_priv(struct kref *ref)
drivers/base/firmware_loader/main.c
83
static inline struct fw_priv *to_fw_priv(struct kref *ref)
drivers/block/drbd/drbd_bitmap.c
1025
kref_put(&ctx->kref, &drbd_bm_aio_ctx_destroy);
drivers/block/drbd/drbd_bitmap.c
1092
.kref = KREF_INIT(2),
drivers/block/drbd/drbd_bitmap.c
1176
kref_put(&ctx->kref, &drbd_bm_aio_ctx_destroy);
drivers/block/drbd/drbd_bitmap.c
1209
kref_put(&ctx->kref, &drbd_bm_aio_ctx_destroy);
drivers/block/drbd/drbd_bitmap.c
924
static void drbd_bm_aio_ctx_destroy(struct kref *kref)
drivers/block/drbd/drbd_bitmap.c
926
struct drbd_bm_aio_ctx *ctx = container_of(kref, struct drbd_bm_aio_ctx, kref);
drivers/block/drbd/drbd_bitmap.c
973
kref_put(&ctx->kref, &drbd_bm_aio_ctx_destroy);
drivers/block/drbd/drbd_debugfs.c
319
kref_get(&req->kref);
drivers/block/drbd/drbd_debugfs.c
324
if (kref_put(&req->kref, drbd_req_destroy))
drivers/block/drbd/drbd_debugfs.c
369
if (!connection || !kref_get_unless_zero(&connection->kref))
drivers/block/drbd/drbd_debugfs.c
413
kref_put(&connection->kref, drbd_destroy_connection);
drivers/block/drbd/drbd_debugfs.c
419
void *data, struct kref *kref,
drivers/block/drbd/drbd_debugfs.c
420
void (*release)(struct kref *))
drivers/block/drbd/drbd_debugfs.c
432
&& kref_get_unless_zero(kref))
drivers/block/drbd/drbd_debugfs.c
438
kref_put(kref, release);
drivers/block/drbd/drbd_debugfs.c
447
&resource->kref, drbd_destroy_resource);
drivers/block/drbd/drbd_debugfs.c
453
kref_put(&resource->kref, drbd_destroy_resource);
drivers/block/drbd/drbd_debugfs.c
555
&connection->kref, drbd_destroy_connection);
drivers/block/drbd/drbd_debugfs.c
561
kref_put(&connection->kref, drbd_destroy_connection);
drivers/block/drbd/drbd_debugfs.c
602
&connection->kref, drbd_destroy_connection);
drivers/block/drbd/drbd_debugfs.c
608
kref_put(&connection->kref, drbd_destroy_connection);
drivers/block/drbd/drbd_debugfs.c
749
&device->kref, drbd_destroy_device); \
drivers/block/drbd/drbd_debugfs.c
754
kref_put(&device->kref, drbd_destroy_device); \
drivers/block/drbd/drbd_int.h
1354
extern void drbd_destroy_device(struct kref *kref);
drivers/block/drbd/drbd_int.h
1362
extern void drbd_destroy_connection(struct kref *kref);
drivers/block/drbd/drbd_int.h
1366
extern void drbd_destroy_resource(struct kref *kref);
drivers/block/drbd/drbd_int.h
286
struct kref kref;
drivers/block/drbd/drbd_int.h
592
struct kref kref;
drivers/block/drbd/drbd_int.h
627
struct kref kref;
drivers/block/drbd/drbd_int.h
766
struct kref kref;
drivers/block/drbd/drbd_int.h
915
struct kref kref;
drivers/block/drbd/drbd_main.c
2159
void drbd_destroy_device(struct kref *kref)
drivers/block/drbd/drbd_main.c
2161
struct drbd_device *device = container_of(kref, struct drbd_device, kref);
drivers/block/drbd/drbd_main.c
2195
kref_put(&peer_device->connection->kref, drbd_destroy_connection);
drivers/block/drbd/drbd_main.c
2201
kref_put(&resource->kref, drbd_destroy_resource);
drivers/block/drbd/drbd_main.c
2246
kref_put(&req->kref, drbd_req_destroy);
drivers/block/drbd/drbd_main.c
2283
void drbd_destroy_resource(struct kref *kref)
drivers/block/drbd/drbd_main.c
2286
container_of(kref, struct drbd_resource, kref);
drivers/block/drbd/drbd_main.c
2301
kref_put(&connection->kref, drbd_destroy_connection);
drivers/block/drbd/drbd_main.c
2304
kref_put(&resource->kref, drbd_destroy_resource);
drivers/block/drbd/drbd_main.c
2389
kref_get(&resource->kref);
drivers/block/drbd/drbd_main.c
2412
kref_get(&connection->kref);
drivers/block/drbd/drbd_main.c
2525
kref_init(&resource->kref);
drivers/block/drbd/drbd_main.c
2593
kref_init(&connection->kref);
drivers/block/drbd/drbd_main.c
2600
kref_get(&resource->kref);
drivers/block/drbd/drbd_main.c
2616
void drbd_destroy_connection(struct kref *kref)
drivers/block/drbd/drbd_main.c
2618
struct drbd_connection *connection = container_of(kref, struct drbd_connection, kref);
drivers/block/drbd/drbd_main.c
2632
kref_put(&resource->kref, drbd_destroy_resource);
drivers/block/drbd/drbd_main.c
2676
kref_init(&device->kref);
drivers/block/drbd/drbd_main.c
2678
kref_get(&resource->kref);
drivers/block/drbd/drbd_main.c
2719
kref_get(&device->kref);
drivers/block/drbd/drbd_main.c
2727
kref_get(&device->kref);
drivers/block/drbd/drbd_main.c
2739
kref_get(&device->kref);
drivers/block/drbd/drbd_main.c
2747
kref_get(&connection->kref);
drivers/block/drbd/drbd_main.c
2778
kref_put(&connection->kref, drbd_destroy_connection);
drivers/block/drbd/drbd_main.c
2795
kref_put(&resource->kref, drbd_destroy_resource);
drivers/block/drbd/drbd_main.c
2812
kref_put(&device->kref, drbd_destroy_device);
drivers/block/drbd/drbd_main.c
2815
kref_put(&device->kref, drbd_destroy_device);
drivers/block/drbd/drbd_main.c
2817
kref_put(&device->kref, drbd_destroy_device);
drivers/block/drbd/drbd_main.c
2820
kref_put(&device->kref, drbd_destroy_device);
drivers/block/drbd/drbd_main.c
2927
kref_get(&device->kref);
drivers/block/drbd/drbd_main.c
2930
kref_put(&device->kref, drbd_destroy_device);
drivers/block/drbd/drbd_main.c
346
kref_put(&thi->connection->kref, drbd_destroy_connection);
drivers/block/drbd/drbd_main.c
347
kref_put(&resource->kref, drbd_destroy_resource);
drivers/block/drbd/drbd_main.c
386
kref_get(&resource->kref);
drivers/block/drbd/drbd_main.c
388
kref_get(&thi->connection->kref);
drivers/block/drbd/drbd_main.c
403
kref_put(&thi->connection->kref, drbd_destroy_connection);
drivers/block/drbd/drbd_main.c
404
kref_put(&resource->kref, drbd_destroy_resource);
drivers/block/drbd/drbd_nl.c
231
kref_get(&adm_ctx->device->kref);
drivers/block/drbd/drbd_nl.c
292
kref_get(&adm_ctx->resource->kref);
drivers/block/drbd/drbd_nl.c
307
kref_put(&adm_ctx->device->kref, drbd_destroy_device);
drivers/block/drbd/drbd_nl.c
311
kref_put(&adm_ctx->connection->kref, &drbd_destroy_connection);
drivers/block/drbd/drbd_nl.c
315
kref_put(&adm_ctx->resource->kref, drbd_destroy_resource);
drivers/block/drbd/drbd_nl.c
3352
kref_put(&resource->kref, drbd_destroy_resource);
drivers/block/drbd/drbd_nl.c
3480
kref_get(&resource->kref);
drivers/block/drbd/drbd_nl.c
3519
kref_put(&resource->kref, drbd_destroy_resource);
drivers/block/drbd/drbd_nl.c
3521
kref_get(&resource->kref);
drivers/block/drbd/drbd_nl.c
4035
kref_put(&resource->kref, drbd_destroy_resource); /* get_one_status() revalidates the resource */
drivers/block/drbd/drbd_nl.c
592
kref_put(&connection->kref, drbd_destroy_connection);
drivers/block/drbd/drbd_nl.c
600
kref_get(&connection->kref);
drivers/block/drbd/drbd_nl.c
610
kref_put(&connection->kref, drbd_destroy_connection);
drivers/block/drbd/drbd_receiver.c
1088
kref_put(&device->kref, drbd_destroy_device);
drivers/block/drbd/drbd_receiver.c
1109
kref_put(&device->kref, drbd_destroy_device);
drivers/block/drbd/drbd_receiver.c
1141
kref_get(&device->kref);
drivers/block/drbd/drbd_receiver.c
1561
kref_get(&device->kref);
drivers/block/drbd/drbd_receiver.c
1564
kref_put(&device->kref, drbd_destroy_device);
drivers/block/drbd/drbd_receiver.c
2316
kref_get(&device->kref);
drivers/block/drbd/drbd_receiver.c
2319
kref_put(&device->kref, drbd_destroy_device);
drivers/block/drbd/drbd_receiver.c
4948
kref_get(&device->kref);
drivers/block/drbd/drbd_receiver.c
4951
kref_put(&device->kref, drbd_destroy_device);
drivers/block/drbd/drbd_receiver.c
5919
kref_put(&device->kref, drbd_destroy_device);
drivers/block/drbd/drbd_receiver.c
920
kref_get(&device->kref);
drivers/block/drbd/drbd_receiver.c
929
kref_put(&device->kref, drbd_destroy_device);
drivers/block/drbd/drbd_req.c
1289
kref_put(&req->kref, drbd_req_destroy);
drivers/block/drbd/drbd_req.c
1312
kref_get(&req->kref);
drivers/block/drbd/drbd_req.c
1315
kref_put(&tmp->kref, drbd_req_destroy);
drivers/block/drbd/drbd_req.c
317
kref_put(&req->kref, drbd_req_destroy);
drivers/block/drbd/drbd_req.c
434
kref_get(&req->kref);
drivers/block/drbd/drbd_req.c
450
kref_get(&req->kref); /* wait for the DONE */
drivers/block/drbd/drbd_req.c
477
kref_put(&req->kref, drbd_req_destroy);
drivers/block/drbd/drbd_req.c
499
kref_put(&req->kref, drbd_req_destroy);
drivers/block/drbd/drbd_req.c
517
kref_put(&req->kref, drbd_req_destroy);
drivers/block/drbd/drbd_req.c
54
kref_init(&req->kref);
drivers/block/drbd/drbd_req.c
71
void drbd_req_destroy(struct kref *kref)
drivers/block/drbd/drbd_req.c
73
struct drbd_request *req = container_of(kref, struct drbd_request, kref);
drivers/block/drbd/drbd_req.h
268
extern void drbd_req_destroy(struct kref *kref);
drivers/block/drbd/drbd_state.c
103
kref_get(&resource->kref);
drivers/block/drbd/drbd_state.c
113
kref_get(&connection->kref);
drivers/block/drbd/drbd_state.c
125
kref_get(&device->kref);
drivers/block/drbd/drbd_state.c
2108
kref_put(&connection->kref, drbd_destroy_connection);
drivers/block/drbd/drbd_state.c
2361
kref_get(&connection->kref);
drivers/block/drbd/drbd_state.c
262
kref_put(&state_change->resource->resource->kref, drbd_destroy_resource);
drivers/block/drbd/drbd_state.c
267
kref_put(&device->kref, drbd_destroy_device);
drivers/block/drbd/drbd_state.c
274
kref_put(&connection->kref, drbd_destroy_connection);
drivers/block/drbd/drbd_worker.c
150
kref_get(&device->kref); /* put is in drbd_send_acks_wf() */
drivers/block/drbd/drbd_worker.c
152
kref_put(&device->kref, drbd_destroy_device);
drivers/block/drbd/drbd_worker.c
2050
kref_get(&device->kref);
drivers/block/drbd/drbd_worker.c
2053
kref_put(&device->kref, drbd_destroy_device);
drivers/block/drbd/drbd_worker.c
2214
kref_get(&device->kref);
drivers/block/drbd/drbd_worker.c
2217
kref_put(&device->kref, drbd_destroy_device);
drivers/block/rbd.c
1268
static void rbd_obj_request_destroy(struct kref *kref);
drivers/block/rbd.c
1273
kref_read(&obj_request->kref));
drivers/block/rbd.c
1274
kref_put(&obj_request->kref, rbd_obj_request_destroy);
drivers/block/rbd.c
1480
kref_init(&obj_request->kref);
drivers/block/rbd.c
1486
static void rbd_obj_request_destroy(struct kref *kref)
drivers/block/rbd.c
1492
obj_request = container_of(kref, struct rbd_obj_request, kref);
drivers/block/rbd.c
198
struct kref kref;
drivers/block/rbd.c
206
struct kref kref;
drivers/block/rbd.c
315
struct kref kref;
drivers/block/rbd.c
5276
kref_get(&spec->kref);
drivers/block/rbd.c
5281
static void rbd_spec_free(struct kref *kref);
drivers/block/rbd.c
5285
kref_put(&spec->kref, rbd_spec_free);
drivers/block/rbd.c
5298
kref_init(&spec->kref);
drivers/block/rbd.c
5303
static void rbd_spec_free(struct kref *kref)
drivers/block/rbd.c
5305
struct rbd_spec *spec = container_of(kref, struct rbd_spec, kref);
drivers/block/rbd.c
714
kref_init(&rbdc->kref);
drivers/block/rbd.c
747
kref_get(&rbdc->kref);
drivers/block/rbd.c
872
static void rbd_client_release(struct kref *kref)
drivers/block/rbd.c
874
struct rbd_client *rbdc = container_of(kref, struct rbd_client, kref);
drivers/block/rbd.c
892
kref_put(&rbdc->kref, rbd_client_release);
drivers/block/rnbd/rnbd-srv.c
192
static void destroy_device(struct kref *kref)
drivers/block/rnbd/rnbd-srv.c
194
struct rnbd_srv_dev *dev = container_of(kref, struct rnbd_srv_dev, kref);
drivers/block/rnbd/rnbd-srv.c
216
kref_put(&dev->kref, destroy_device);
drivers/block/rnbd/rnbd-srv.c
449
kref_init(&dev->kref);
drivers/block/rnbd/rnbd-srv.c
464
if (!kref_get_unless_zero(&dev->kref))
drivers/block/rnbd/rnbd-srv.c
588
kref_init(&sdev->kref);
drivers/block/rnbd/rnbd-srv.c
74
static void rnbd_sess_dev_release(struct kref *kref)
drivers/block/rnbd/rnbd-srv.c
78
sess_dev = container_of(kref, struct rnbd_srv_sess_dev, kref);
drivers/block/rnbd/rnbd-srv.c
84
kref_put(&sess_dev->kref, rnbd_sess_dev_release);
drivers/block/rnbd/rnbd-srv.c
96
ret = kref_get_unless_zero(&sess_dev->kref);
drivers/block/rnbd/rnbd-srv.h
37
struct kref kref;
drivers/block/rnbd/rnbd-srv.h
56
struct kref kref;
drivers/cdx/controller/mcdi.c
414
struct kref ref;
drivers/cdx/controller/mcdi.c
423
static void cdx_mcdi_blocking_data_release(struct kref *ref)
drivers/cdx/controller/mcdi.c
58
static void cdx_mcdi_cmd_release(struct kref *ref)
drivers/char/hw_random/core.c
92
static inline void cleanup_rng(struct kref *kref)
drivers/char/hw_random/core.c
94
struct hwrng *rng = container_of(kref, struct hwrng, ref);
drivers/char/ipmi/ipmi_msghandler.c
187
struct kref refcount;
drivers/char/ipmi/ipmi_msghandler.c
300
struct kref usecount;
drivers/char/ipmi/ipmi_msghandler.c
3097
cleanup_bmc_device(struct kref *ref)
drivers/char/ipmi/ipmi_msghandler.c
423
struct kref refcount;
drivers/char/ipmi/ipmi_msghandler.c
50
static void intf_free(struct kref *ref);
drivers/char/ipmi/ipmi_msghandler.c
621
static void free_ipmi_user(struct kref *ref)
drivers/char/ipmi/ipmi_msghandler.c
725
static void intf_free(struct kref *ref)
drivers/char/virtio_console.c
1015
kref_put(&port->kref, remove_port);
drivers/char/virtio_console.c
1070
kref_put(&port->kref, remove_port);
drivers/char/virtio_console.c
1333
kref_init(&port->kref);
drivers/char/virtio_console.c
1445
static void remove_port(struct kref *kref)
drivers/char/virtio_console.c
1449
port = container_of(kref, struct port, kref);
drivers/char/virtio_console.c
1519
kref_put(&port->kref, remove_port);
drivers/char/virtio_console.c
211
struct kref kref;
drivers/char/virtio_console.c
262
kref_get(&port->kref);
drivers/char/virtio_console.c
984
static void remove_port(struct kref *kref);
drivers/char/xillybus/xillyusb.c
1253
kref_get(&xdev->kref);
drivers/char/xillybus/xillyusb.c
1421
kref_put(&xdev->kref, cleanup_dev);
drivers/char/xillybus/xillyusb.c
1426
kref_put(&xdev->kref, cleanup_dev);
drivers/char/xillybus/xillyusb.c
169
struct kref kref;
drivers/char/xillybus/xillyusb.c
1772
kref_put(&xdev->kref, cleanup_dev);
drivers/char/xillybus/xillyusb.c
2156
kref_init(&xdev->kref);
drivers/char/xillybus/xillyusb.c
2194
kref_put(&xdev->kref, cleanup_dev);
drivers/char/xillybus/xillyusb.c
2262
kref_put(&xdev->kref, cleanup_dev);
drivers/char/xillybus/xillyusb.c
547
static void cleanup_dev(struct kref *kref)
drivers/char/xillybus/xillyusb.c
550
container_of(kref, struct xillyusb_dev, kref);
drivers/char/xillybus/xillyusb.c
609
kref_put(&xdev->kref, cleanup_dev);
drivers/char/xillybus/xillyusb.c
626
kref_get(&xdev->kref); /* xdev is used by work item */
drivers/clk/clk.c
103
struct kref ref;
drivers/clk/clk.c
4302
static void __clk_release(struct kref *ref)
drivers/comedi/comedi_buf.c
21
static void comedi_buf_map_kref_release(struct kref *kref)
drivers/comedi/comedi_buf.c
24
container_of(kref, struct comedi_buf_map, refcount);
drivers/comedi/comedi_fops.c
114
static void comedi_dev_kref_release(struct kref *kref)
drivers/comedi/comedi_fops.c
117
container_of(kref, struct comedi_device, refcount);
drivers/crypto/ccp/sev-dev.c
2635
static void sev_exit(struct kref *ref)
drivers/crypto/ccp/sev-dev.h
33
struct kref refcount;
drivers/crypto/ccp/sfs.c
185
static void sfs_exit(struct kref *ref)
drivers/crypto/ccp/sfs.h
24
struct kref refcount;
drivers/crypto/tegra/tegra-se-main.c
26
static void tegra_se_cmdbuf_release(struct kref *ref)
drivers/crypto/tegra/tegra-se.h
442
struct kref ref;
drivers/dax/bus.c
479
static void dax_region_free(struct kref *kref)
drivers/dax/bus.c
483
dax_region = container_of(kref, struct dax_region, kref);
drivers/dax/bus.c
489
kref_put(&dax_region->kref, dax_region_free);
drivers/dax/bus.c
529
kref_get(&dax_region->kref);
drivers/dax/bus.c
658
kref_init(&dax_region->kref);
drivers/dax/dax-private.h
34
struct kref kref;
drivers/dma-buf/dma-fence.c
561
void dma_fence_release(struct kref *kref)
drivers/dma-buf/dma-fence.c
564
container_of(kref, struct dma_fence, refcount);
drivers/dma-buf/sw_sync.c
108
kref_init(&obj->kref);
drivers/dma-buf/sw_sync.c
121
static void sync_timeline_free(struct kref *kref)
drivers/dma-buf/sw_sync.c
124
container_of(kref, struct sync_timeline, kref);
drivers/dma-buf/sw_sync.c
133
kref_get(&obj->kref);
drivers/dma-buf/sw_sync.c
138
kref_put(&obj->kref, sync_timeline_free);
drivers/dma-buf/sync_debug.h
34
struct kref kref;
drivers/dma/dmaengine.c
1382
static void dmaengine_unmap(struct kref *kref)
drivers/dma/dmaengine.c
1384
struct dmaengine_unmap_data *unmap = container_of(kref, typeof(*unmap), kref);
drivers/dma/dmaengine.c
1410
kref_put(&unmap->kref, dmaengine_unmap);
drivers/dma/dmaengine.c
1465
kref_init(&unmap->kref);
drivers/dma/dmaengine.c
425
static void dma_device_release(struct kref *ref)
drivers/firewire/core-card.c
584
kref_init(&card->kref);
drivers/firewire/core-card.c
765
void fw_card_release(struct kref *kref)
drivers/firewire/core-card.c
767
struct fw_card *card = container_of(kref, struct fw_card, kref);
drivers/firewire/core-cdev.c
308
kref_init(&client->kref);
drivers/firewire/core-cdev.c
75
struct kref kref;
drivers/firewire/core-cdev.c
80
kref_get(&client->kref);
drivers/firewire/core-cdev.c
83
static void client_release(struct kref *kref)
drivers/firewire/core-cdev.c
85
struct client *client = container_of(kref, struct client, kref);
drivers/firewire/core-cdev.c
93
kref_put(&client->kref, client_release);
drivers/firewire/core-topology.c
42
kref_init(&node->kref);
drivers/firewire/core-transaction.c
612
static void complete_address_handler(struct kref *kref)
drivers/firewire/core-transaction.c
614
struct fw_address_handler *handler = container_of(kref, struct fw_address_handler, kref);
drivers/firewire/core-transaction.c
621
kref_get(&handler->kref);
drivers/firewire/core-transaction.c
626
return kref_put(&handler->kref, complete_address_handler);
drivers/firewire/core-transaction.c
676
kref_init(&handler->kref);
drivers/firewire/core-transaction.c
709
struct kref kref;
drivers/firewire/core-transaction.c
720
kref_get(&request->kref);
drivers/firewire/core-transaction.c
723
static void release_request(struct kref *kref)
drivers/firewire/core-transaction.c
725
struct fw_request *request = container_of(kref, struct fw_request, kref);
drivers/firewire/core-transaction.c
732
kref_put(&request->kref, release_request);
drivers/firewire/core-transaction.c
897
kref_init(&request->kref);
drivers/firewire/core.h
213
struct kref kref;
drivers/firewire/core.h
226
kref_get(&node->kref);
drivers/firewire/core.h
231
static void release_node(struct kref *kref)
drivers/firewire/core.h
233
struct fw_node *node = container_of(kref, struct fw_node, kref);
drivers/firewire/core.h
240
kref_put(&node->kref, release_node);
drivers/firewire/nosy.c
103
kref_put(&lynx->kref, lynx_release);
drivers/firewire/nosy.c
559
kref_init(&lynx->kref);
drivers/firewire/nosy.c
83
struct kref kref;
drivers/firewire/nosy.c
89
kref_get(&lynx->kref);
drivers/firewire/nosy.c
95
lynx_release(struct kref *kref)
drivers/firewire/nosy.c
97
kfree(container_of(kref, struct pcilynx, kref));
drivers/firewire/sbp2.c
1458
kref_init(&orb->base.kref);
drivers/firewire/sbp2.c
1490
kref_put(&orb->base.kref, free_orb);
drivers/firewire/sbp2.c
258
struct kref kref;
drivers/firewire/sbp2.c
399
static void free_orb(struct kref *kref)
drivers/firewire/sbp2.c
401
struct sbp2_orb *orb = container_of(kref, struct sbp2_orb, kref);
drivers/firewire/sbp2.c
450
kref_put(&orb->kref, free_orb); /* orb callback reference */
drivers/firewire/sbp2.c
482
kref_put(&orb->kref, free_orb); /* orb callback reference */
drivers/firewire/sbp2.c
487
kref_put(&orb->kref, free_orb); /* transaction callback reference */
drivers/firewire/sbp2.c
505
kref_get(&orb->kref); /* transaction callback reference */
drivers/firewire/sbp2.c
506
kref_get(&orb->kref); /* orb callback reference */
drivers/firewire/sbp2.c
532
kref_put(&orb->kref, free_orb); /* orb callback reference */
drivers/firewire/sbp2.c
565
kref_init(&orb->base.kref);
drivers/firewire/sbp2.c
642
kref_put(&orb->base.kref, free_orb);
drivers/firmware/raspberrypi.c
254
static void rpi_firmware_delete(struct kref *kref)
drivers/firmware/raspberrypi.c
256
struct rpi_firmware *fw = container_of(kref, struct rpi_firmware,
drivers/firmware/raspberrypi.c
34
struct kref consumers;
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
1263
struct kref kref;
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
1268
#define to_skel_dev(d) container_of(d, struct usb_skel, kref)
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
1273
static void skel_delete(struct kref *kref)
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
1275
struct usb_skel *dev = to_skel_dev(kref);
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
1311
kref_get(&dev->kref);
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
1339
kref_put(&dev->kref, skel_delete);
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
1748
kref_get(&dev->kref);
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
1772
kref_put(&dev->kref, skel_delete);
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
1872
kref_init(&dev->kref);
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
1937
kref_put(&dev->kref, skel_delete);
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
1965
kref_put(&dev->kref, skel_delete);
drivers/gpio/gpiolib-shared.c
59
struct kref ref;
drivers/gpio/gpiolib-shared.c
623
static void gpio_shared_release(struct kref *kref)
drivers/gpio/gpiolib-shared.c
626
container_of(kref, struct gpio_shared_entry, ref);
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c
49
static void amdgpu_bo_list_free(struct kref *ref)
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.h
47
struct kref refcount;
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
406
static void amdgpu_ctx_fini(struct kref *ref)
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
508
static void amdgpu_ctx_do_release(struct kref *ref)
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h
46
struct kref refcount;
drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c
263
void amdgpu_reset_destroy_reset_domain(struct kref *ref)
drivers/gpu/drm/amd/amdgpu/amdgpu_reset.h
121
void amdgpu_reset_destroy_reset_domain(struct kref *ref);
drivers/gpu/drm/amd/amdgpu/amdgpu_reset.h
96
struct kref refcount;
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
673
static void amdgpu_userq_kref_destroy(struct kref *kref)
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
677
container_of(kref, struct amdgpu_usermode_queue, refcount);
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h
77
struct kref refcount;
drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c
185
void amdgpu_userq_fence_driver_destroy(struct kref *ref)
drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.h
46
struct kref refcount;
drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.h
71
void amdgpu_userq_fence_driver_destroy(struct kref *ref);
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
2467
static void amdgpu_vm_destroy_task_info(struct kref *kref)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
2469
struct amdgpu_task_info *ti = container_of(kref, struct amdgpu_task_info, refcount);
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
244
struct kref refcount;
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c
582
pr_debug_ratelimited("ref: %d\n", kref_read(&svm_bo->kref));
drivers/gpu/drm/amd/amdkfd/kfd_priv.h
910
struct kref ref;
drivers/gpu/drm/amd/amdkfd/kfd_process.c
1261
static void kfd_process_ref_release(struct kref *ref)
drivers/gpu/drm/amd/amdkfd/kfd_process.c
70
static void kfd_process_ref_release(struct kref *ref);
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
3691
WARN_ONCE(!r && kref_read(&svm_bo->kref) != 1, "This was not the last reference\n");
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
374
if (!svm_bo || !kref_get_unless_zero(&svm_bo->kref))
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
380
static void svm_range_bo_release(struct kref *kref)
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
384
svm_bo = container_of(kref, struct svm_range_bo, kref);
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
443
svm_range_bo_release(&svm_bo->kref);
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
446
static void svm_range_bo_release_async(struct kref *kref)
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
450
svm_bo = container_of(kref, struct svm_range_bo, kref);
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
458
kref_put(&svm_bo->kref, svm_range_bo_release_async);
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
464
kref_put(&svm_bo->kref, svm_range_bo_release);
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
546
kref_init(&svm_bo->kref);
drivers/gpu/drm/amd/amdkfd/kfd_svm.h
157
kref_get(&svm_bo->kref);
drivers/gpu/drm/amd/amdkfd/kfd_svm.h
43
struct kref kref;
drivers/gpu/drm/amd/display/dc/core/dc.c
3407
struct kref temp_refcount = stream->refcount;
drivers/gpu/drm/amd/display/dc/core/dc_sink.c
65
static void dc_sink_free(struct kref *kref)
drivers/gpu/drm/amd/display/dc/core/dc_sink.c
67
struct dc_sink *sink = container_of(kref, struct dc_sink, refcount);
drivers/gpu/drm/amd/display/dc/core/dc_state.c
228
struct kref refcount = dst_state->refcount;
drivers/gpu/drm/amd/display/dc/core/dc_state.c
347
static void dc_state_free(struct kref *kref)
drivers/gpu/drm/amd/display/dc/core/dc_state.c
349
struct dc_state *state = container_of(kref, struct dc_state, refcount);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
149
static void dc_stream_free(struct kref *kref)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
151
struct dc_stream_state *stream = container_of(kref, struct dc_stream_state, refcount);
drivers/gpu/drm/amd/display/dc/core/dc_surface.c
167
static void dc_plane_state_free(struct kref *kref)
drivers/gpu/drm/amd/display/dc/core/dc_surface.c
169
struct dc_plane_state *plane_state = container_of(kref, struct dc_plane_state, refcount);
drivers/gpu/drm/amd/display/dc/core/dc_surface.c
184
static void dc_gamma_free(struct kref *kref)
drivers/gpu/drm/amd/display/dc/core/dc_surface.c
186
struct dc_gamma *gamma = container_of(kref, struct dc_gamma, refcount);
drivers/gpu/drm/amd/display/dc/core/dc_surface.c
215
static void dc_transfer_func_free(struct kref *kref)
drivers/gpu/drm/amd/display/dc/core/dc_surface.c
217
struct dc_transfer_func *tf = container_of(kref, struct dc_transfer_func, refcount);
drivers/gpu/drm/amd/display/dc/core/dc_surface.c
241
static void dc_3dlut_func_free(struct kref *kref)
drivers/gpu/drm/amd/display/dc/core/dc_surface.c
243
struct dc_3dlut *lut = container_of(kref, struct dc_3dlut, refcount);
drivers/gpu/drm/amd/display/dc/core/dc_surface.c
302
struct kref temp_refcount;
drivers/gpu/drm/amd/display/dc/core/dc_surface.c
305
memcpy(&temp_refcount, &dst->refcount, sizeof(struct kref));
drivers/gpu/drm/amd/display/dc/core/dc_surface.c
311
memcpy(&dst->refcount, &temp_refcount, sizeof(struct kref));
drivers/gpu/drm/amd/display/dc/dc.h
1348
struct kref refcount;
drivers/gpu/drm/amd/display/dc/dc.h
1407
struct kref refcount;
drivers/gpu/drm/amd/display/dc/dc.h
1526
struct kref refcount;
drivers/gpu/drm/amd/display/dc/dc.h
2681
struct kref refcount;
drivers/gpu/drm/amd/display/dc/dc_hw_types.h
543
struct kref refcount;
drivers/gpu/drm/amd/display/dc/dc_stream.h
284
struct kref refcount;
drivers/gpu/drm/amd/display/dc/inc/core_types.h
675
struct kref refcount;
drivers/gpu/drm/display/drm_dp_aux_dev.c
49
struct kref refcount;
drivers/gpu/drm/display/drm_dp_aux_dev.c
97
static void release_drm_dp_aux_dev(struct kref *ref)
drivers/gpu/drm/display/drm_dp_mst_topology.c
1349
static void drm_dp_free_mst_branch_device(struct kref *kref)
drivers/gpu/drm/display/drm_dp_mst_topology.c
1352
container_of(kref, struct drm_dp_mst_branch, malloc_kref);
drivers/gpu/drm/display/drm_dp_mst_topology.c
1484
static void drm_dp_free_mst_port(struct kref *kref)
drivers/gpu/drm/display/drm_dp_mst_topology.c
1487
container_of(kref, struct drm_dp_mst_port, malloc_kref);
drivers/gpu/drm/display/drm_dp_mst_topology.c
1718
static void drm_dp_destroy_mst_branch_device(struct kref *kref)
drivers/gpu/drm/display/drm_dp_mst_topology.c
1721
container_of(kref, struct drm_dp_mst_branch, topology_kref);
drivers/gpu/drm/display/drm_dp_mst_topology.c
1827
static void drm_dp_destroy_port(struct kref *kref)
drivers/gpu/drm/display/drm_dp_mst_topology.c
1830
container_of(kref, struct drm_dp_mst_port, topology_kref);
drivers/gpu/drm/display/drm_dp_tunnel.c
134
struct kref kref;
drivers/gpu/drm/display/drm_dp_tunnel.c
367
kref_get(&tunnel->kref);
drivers/gpu/drm/display/drm_dp_tunnel.c
372
static void free_tunnel(struct kref *kref)
drivers/gpu/drm/display/drm_dp_tunnel.c
374
struct drm_dp_tunnel *tunnel = container_of(kref, typeof(*tunnel), kref);
drivers/gpu/drm/display/drm_dp_tunnel.c
386
kref_put(&tunnel->kref, free_tunnel);
drivers/gpu/drm/display/drm_dp_tunnel.c
485
kref_init(&tunnel->kref);
drivers/gpu/drm/drm_atomic.c
325
void __drm_atomic_state_free(struct kref *ref)
drivers/gpu/drm/drm_atomic.c
50
void __drm_crtc_commit_free(struct kref *kref)
drivers/gpu/drm/drm_atomic.c
53
container_of(kref, struct drm_crtc_commit, ref);
drivers/gpu/drm/drm_auth.c
403
static void drm_master_destroy(struct kref *kref)
drivers/gpu/drm/drm_auth.c
405
struct drm_master *master = container_of(kref, struct drm_master, refcount);
drivers/gpu/drm/drm_bridge.c
267
static void __drm_bridge_free(struct kref *kref)
drivers/gpu/drm/drm_bridge.c
269
struct drm_bridge *bridge = container_of(kref, struct drm_bridge, refcount);
drivers/gpu/drm/drm_connector.c
194
static void drm_connector_free(struct kref *kref)
drivers/gpu/drm/drm_connector.c
197
container_of(kref, struct drm_connector, base.refcount);
drivers/gpu/drm/drm_connector.c
3536
static void drm_tile_group_free(struct kref *kref)
drivers/gpu/drm/drm_connector.c
3538
struct drm_tile_group *tg = container_of(kref, struct drm_tile_group, refcount);
drivers/gpu/drm/drm_crtc_internal.h
155
void (*obj_free_cb)(struct kref *kref));
drivers/gpu/drm/drm_crtc_internal.h
212
void drm_framebuffer_free(struct kref *kref);
drivers/gpu/drm/drm_crtc_internal.h
67
struct kref;
drivers/gpu/drm/drm_drv.c
901
static void drm_dev_release(struct kref *ref)
drivers/gpu/drm/drm_framebuffer.c
827
void drm_framebuffer_free(struct kref *kref)
drivers/gpu/drm/drm_framebuffer.c
830
container_of(kref, struct drm_framebuffer, base.refcount);
drivers/gpu/drm/drm_gem.c
1122
drm_gem_object_free(struct kref *kref)
drivers/gpu/drm/drm_gem.c
1125
container_of(kref, struct drm_gem_object, refcount);
drivers/gpu/drm/drm_gpusvm.c
1272
static void drm_gpusvm_range_destroy(struct kref *refcount)
drivers/gpu/drm/drm_gpuvm.c
1112
kref_init(&gpuvm->kref);
drivers/gpu/drm/drm_gpuvm.c
1160
drm_gpuvm_free(struct kref *kref)
drivers/gpu/drm/drm_gpuvm.c
1162
struct drm_gpuvm *gpuvm = container_of(kref, struct drm_gpuvm, kref);
drivers/gpu/drm/drm_gpuvm.c
1184
kref_put(&gpuvm->kref, drm_gpuvm_free);
drivers/gpu/drm/drm_gpuvm.c
1593
kref_init(&vm_bo->kref);
drivers/gpu/drm/drm_gpuvm.c
1633
drm_gpuvm_bo_destroy_not_in_lists_kref(struct kref *kref)
drivers/gpu/drm/drm_gpuvm.c
1635
struct drm_gpuvm_bo *vm_bo = container_of(kref, struct drm_gpuvm_bo,
drivers/gpu/drm/drm_gpuvm.c
1636
kref);
drivers/gpu/drm/drm_gpuvm.c
1642
drm_gpuvm_bo_destroy(struct kref *kref)
drivers/gpu/drm/drm_gpuvm.c
1644
struct drm_gpuvm_bo *vm_bo = container_of(kref, struct drm_gpuvm_bo,
drivers/gpu/drm/drm_gpuvm.c
1645
kref);
drivers/gpu/drm/drm_gpuvm.c
1683
return !!kref_put(&vm_bo->kref, drm_gpuvm_bo_destroy);
drivers/gpu/drm/drm_gpuvm.c
1698
drm_gpuvm_bo_into_zombie(struct kref *kref)
drivers/gpu/drm/drm_gpuvm.c
1700
struct drm_gpuvm_bo *vm_bo = container_of(kref, struct drm_gpuvm_bo,
drivers/gpu/drm/drm_gpuvm.c
1701
kref);
drivers/gpu/drm/drm_gpuvm.c
1730
drm_gpuvm_bo_defer_free(struct kref *kref)
drivers/gpu/drm/drm_gpuvm.c
1732
struct drm_gpuvm_bo *vm_bo = container_of(kref, struct drm_gpuvm_bo,
drivers/gpu/drm/drm_gpuvm.c
1733
kref);
drivers/gpu/drm/drm_gpuvm.c
1735
drm_gpuvm_bo_into_zombie(kref);
drivers/gpu/drm/drm_gpuvm.c
1760
return !!kref_put_mutex(&vm_bo->kref,
drivers/gpu/drm/drm_gpuvm.c
1914
kref_put(&__vm_bo->kref, drm_gpuvm_bo_destroy_not_in_lists_kref);
drivers/gpu/drm/drm_gpuvm.c
2170
should_defer_bo = kref_put(&vm_bo->kref, drm_gpuvm_bo_into_zombie);
drivers/gpu/drm/drm_gpuvm.c
775
if (kref_get_unless_zero(&__vm_bo->kref)) { \
drivers/gpu/drm/drm_gpuvm.c
902
return !kref_read(&vm_bo->kref);
drivers/gpu/drm/drm_mode_object.c
42
void (*obj_free_cb)(struct kref *kref))
drivers/gpu/drm/drm_pagemap.c
128
static void drm_pagemap_zdd_destroy(struct kref *ref)
drivers/gpu/drm/drm_pagemap.c
78
struct kref refcount;
drivers/gpu/drm/drm_pagemap.c
805
static void drm_pagemap_release(struct kref *ref)
drivers/gpu/drm/drm_pagemap_util.c
457
struct kref kref;
drivers/gpu/drm/drm_pagemap_util.c
460
static void drm_pagemap_owner_release(struct kref *kref)
drivers/gpu/drm/drm_pagemap_util.c
462
kfree(container_of(kref, struct drm_pagemap_owner, kref));
drivers/gpu/drm/drm_pagemap_util.c
482
kref_put(&peer->owner->kref, drm_pagemap_owner_release);
drivers/gpu/drm/drm_pagemap_util.c
552
kref_init(&owner->kref);
drivers/gpu/drm/drm_pagemap_util.c
555
kref_get(&owner->kref);
drivers/gpu/drm/drm_panel.c
346
static void __drm_panel_free(struct kref *kref)
drivers/gpu/drm/drm_panel.c
348
struct drm_panel *panel = container_of(kref, struct drm_panel, refcount);
drivers/gpu/drm/drm_property.c
527
static void drm_property_free_blob(struct kref *kref)
drivers/gpu/drm/drm_property.c
530
container_of(kref, struct drm_property_blob, base.refcount);
drivers/gpu/drm/drm_syncobj.c
526
void drm_syncobj_free(struct kref *kref)
drivers/gpu/drm/drm_syncobj.c
528
struct drm_syncobj *syncobj = container_of(kref,
drivers/gpu/drm/etnaviv/etnaviv_gem.h
94
struct kref refcount;
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c
358
static void submit_cleanup(struct kref *kref)
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c
361
container_of(kref, struct etnaviv_gem_submit, refcount);
drivers/gpu/drm/etnaviv/etnaviv_mmu.c
341
static void etnaviv_iommu_context_free(struct kref *kref)
drivers/gpu/drm/etnaviv/etnaviv_mmu.c
344
container_of(kref, struct etnaviv_iommu_context, refcount);
drivers/gpu/drm/etnaviv/etnaviv_mmu.h
70
struct kref refcount;
drivers/gpu/drm/i915/display/intel_global_state.c
47
struct kref ref;
drivers/gpu/drm/i915/display/intel_global_state.c
65
static void __commit_free(struct kref *kref)
drivers/gpu/drm/i915/display/intel_global_state.c
68
container_of(kref, typeof(*commit), ref);
drivers/gpu/drm/i915/display/intel_global_state.c
87
static void __intel_atomic_global_state_free(struct kref *kref)
drivers/gpu/drm/i915/display/intel_global_state.c
90
container_of(kref, struct intel_global_state, ref);
drivers/gpu/drm/i915/display/intel_global_state.h
34
struct kref ref;
drivers/gpu/drm/i915/gem/i915_gem_context.c
1315
void i915_gem_context_release(struct kref *ref)
drivers/gpu/drm/i915/gem/i915_gem_context.h
123
void i915_gem_context_release(struct kref *ctx_ref);
drivers/gpu/drm/i915/gem/i915_gem_context_types.h
313
struct kref ref;
drivers/gpu/drm/i915/gem/i915_gem_object_frontbuffer.c
74
static void frontbuffer_release(struct kref *ref)
drivers/gpu/drm/i915/gem/i915_gem_object_frontbuffer.h
20
struct kref ref;
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
253
static void i915_ttm_tt_release(struct kref *ref)
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
256
container_of(ref, typeof(*i915_tt), cached_rsgt.kref);
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
938
if (!kref_read(&bo->kref))
drivers/gpu/drm/i915/gt/intel_breadcrumbs.c
328
void intel_breadcrumbs_free(struct kref *kref)
drivers/gpu/drm/i915/gt/intel_breadcrumbs.c
330
struct intel_breadcrumbs *b = container_of(kref, typeof(*b), ref);
drivers/gpu/drm/i915/gt/intel_breadcrumbs.h
20
void intel_breadcrumbs_free(struct kref *kref);
drivers/gpu/drm/i915/gt/intel_breadcrumbs_types.h
36
struct kref ref;
drivers/gpu/drm/i915/gt/intel_context_types.h
64
void (*destroy)(struct kref *kref);
drivers/gpu/drm/i915/gt/intel_context_types.h
85
struct kref ref; /* no kref_get_unless_zero()! */
drivers/gpu/drm/i915/gt/intel_engine_cs.c
2006
if (!kref_get_unless_zero(&tl->kref))
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
3662
static void virtual_context_destroy(struct kref *kref)
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
3665
container_of(kref, typeof(*ve), context.ref);
drivers/gpu/drm/i915/gt/intel_gt_requests.c
186
if (refcount_dec_and_test(&tl->kref.refcount)) {
drivers/gpu/drm/i915/gt/intel_gt_requests.c
194
__intel_timeline_free(&tl->kref);
drivers/gpu/drm/i915/gt/intel_gtt.c
223
void i915_vm_resv_release(struct kref *kref)
drivers/gpu/drm/i915/gt/intel_gtt.c
226
container_of(kref, typeof(*vm), resv_ref);
drivers/gpu/drm/i915/gt/intel_gtt.c
250
void i915_vm_release(struct kref *kref)
drivers/gpu/drm/i915/gt/intel_gtt.c
253
container_of(kref, struct i915_address_space, ref);
drivers/gpu/drm/i915/gt/intel_gtt.h
248
struct kref ref;
drivers/gpu/drm/i915/gt/intel_gtt.h
268
struct kref resv_ref; /* kref to keep the reservation lock alive. */
drivers/gpu/drm/i915/gt/intel_gtt.h
510
void i915_vm_release(struct kref *kref);
drivers/gpu/drm/i915/gt/intel_gtt.h
512
void i915_vm_resv_release(struct kref *kref);
drivers/gpu/drm/i915/gt/intel_lrc.c
1248
void lrc_destroy(struct kref *kref)
drivers/gpu/drm/i915/gt/intel_lrc.c
1250
struct intel_context *ce = container_of(kref, typeof(*ce), ref);
drivers/gpu/drm/i915/gt/intel_lrc.h
20
struct kref;
drivers/gpu/drm/i915/gt/intel_lrc.h
40
void lrc_destroy(struct kref *kref);
drivers/gpu/drm/i915/gt/intel_ring.c
184
void intel_ring_free(struct kref *ref)
drivers/gpu/drm/i915/gt/intel_ring.h
27
void intel_ring_free(struct kref *ref);
drivers/gpu/drm/i915/gt/intel_ring_submission.c
490
static void ring_context_destroy(struct kref *ref)
drivers/gpu/drm/i915/gt/intel_ring_types.h
25
struct kref ref;
drivers/gpu/drm/i915/gt/intel_timeline.c
392
void __intel_timeline_free(struct kref *kref)
drivers/gpu/drm/i915/gt/intel_timeline.c
395
container_of(kref, typeof(*timeline), kref);
drivers/gpu/drm/i915/gt/intel_timeline.c
480
if (refcount_dec_and_test(&tl->kref.refcount)) {
drivers/gpu/drm/i915/gt/intel_timeline.c
488
__intel_timeline_free(&tl->kref);
drivers/gpu/drm/i915/gt/intel_timeline.c
81
kref_init(&timeline->kref);
drivers/gpu/drm/i915/gt/intel_timeline.h
36
kref_get(&timeline->kref);
drivers/gpu/drm/i915/gt/intel_timeline.h
40
void __intel_timeline_free(struct kref *kref);
drivers/gpu/drm/i915/gt/intel_timeline.h
43
kref_put(&timeline->kref, __intel_timeline_free);
drivers/gpu/drm/i915/gt/intel_timeline_types.h
88
struct kref kref;
drivers/gpu/drm/i915/gt/mock_engine.c
148
static void mock_context_destroy(struct kref *ref)
drivers/gpu/drm/i915/gt/selftest_engine_heartbeat.c
44
struct kref kref;
drivers/gpu/drm/i915/gt/selftest_engine_heartbeat.c
49
kref_get(&container_of(active, struct pulse, active)->kref);
drivers/gpu/drm/i915/gt/selftest_engine_heartbeat.c
53
static void pulse_free(struct kref *kref)
drivers/gpu/drm/i915/gt/selftest_engine_heartbeat.c
55
struct pulse *p = container_of(kref, typeof(*p), kref);
drivers/gpu/drm/i915/gt/selftest_engine_heartbeat.c
63
kref_put(&p->kref, pulse_free);
drivers/gpu/drm/i915/gt/selftest_engine_heartbeat.c
79
kref_init(&p->kref);
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
3580
static void guc_context_destroy(struct kref *kref)
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
3582
struct intel_context *ce = container_of(kref, typeof(*ce), ref);
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
4142
static void guc_child_context_destroy(struct kref *kref)
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
4144
struct intel_context *ce = container_of(kref, typeof(*ce), ref);
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
4617
static void guc_sched_engine_destroy(struct kref *kref)
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
4620
container_of(kref, typeof(*sched_engine), ref);
drivers/gpu/drm/i915/gvt/dmabuf.c
133
static void dmabuf_gem_object_free(struct kref *kref)
drivers/gpu/drm/i915/gvt/dmabuf.c
136
container_of(kref, struct intel_vgpu_dmabuf_obj, kref);
drivers/gpu/drm/i915/gvt/dmabuf.c
164
kref_get(&obj->kref);
drivers/gpu/drm/i915/gvt/dmabuf.c
169
kref_put(&obj->kref, dmabuf_gem_object_free);
drivers/gpu/drm/i915/gvt/dmabuf.c
441
vgpu->id, kref_read(&dmabuf_obj->kref),
drivers/gpu/drm/i915/gvt/dmabuf.c
477
kref_init(&dmabuf_obj->kref);
drivers/gpu/drm/i915/gvt/dmabuf.c
487
__func__, kref_read(&dmabuf_obj->kref), ret);
drivers/gpu/drm/i915/gvt/dmabuf.c
554
kref_read(&dmabuf_obj->kref),
drivers/gpu/drm/i915/gvt/dmabuf.h
63
struct kref kref;
drivers/gpu/drm/i915/gvt/gtt.c
1888
void _intel_vgpu_mm_release(struct kref *mm_ref)
drivers/gpu/drm/i915/gvt/gtt.h
153
struct kref ref;
drivers/gpu/drm/i915/gvt/gtt.h
190
void _intel_vgpu_mm_release(struct kref *mm_ref);
drivers/gpu/drm/i915/gvt/kvmgt.c
104
struct kref ref;
drivers/gpu/drm/i915/gvt/kvmgt.c
1675
static void __gvt_dma_release(struct kref *ref)
drivers/gpu/drm/i915/i915_active.c
1122
struct kref ref;
drivers/gpu/drm/i915/i915_active.c
1133
static void auto_release(struct kref *ref)
drivers/gpu/drm/i915/i915_drm_client.c
28
kref_init(&client->kref);
drivers/gpu/drm/i915/i915_drm_client.c
39
void __i915_drm_client_free(struct kref *kref)
drivers/gpu/drm/i915/i915_drm_client.c
42
container_of(kref, typeof(*client), kref);
drivers/gpu/drm/i915/i915_drm_client.h
25
struct kref kref;
drivers/gpu/drm/i915/i915_drm_client.h
53
kref_get(&client->kref);
drivers/gpu/drm/i915/i915_drm_client.h
57
void __i915_drm_client_free(struct kref *kref);
drivers/gpu/drm/i915/i915_drm_client.h
61
kref_put(&client->kref, __i915_drm_client_free);
drivers/gpu/drm/i915/i915_gpu_error.c
1120
void __i915_gpu_coredump_free(struct kref *error_ref)
drivers/gpu/drm/i915/i915_gpu_error.h
191
struct kref ref;
drivers/gpu/drm/i915/i915_gpu_error.h
320
void __i915_gpu_coredump_free(struct kref *kref);
drivers/gpu/drm/i915/i915_perf.c
398
void i915_oa_config_release(struct kref *ref)
drivers/gpu/drm/i915/i915_perf.h
51
void i915_oa_config_release(struct kref *ref);
drivers/gpu/drm/i915/i915_perf_types.h
94
struct kref ref;
drivers/gpu/drm/i915/i915_scatterlist.c
43
static void i915_refct_sgt_release(struct kref *ref)
drivers/gpu/drm/i915/i915_scatterlist.c
46
container_of(ref, typeof(*rsgt), kref);
drivers/gpu/drm/i915/i915_scatterlist.h
172
void (*release)(struct kref *ref);
drivers/gpu/drm/i915/i915_scatterlist.h
185
struct kref kref;
drivers/gpu/drm/i915/i915_scatterlist.h
198
kref_put(&rsgt->kref, rsgt->ops->release);
drivers/gpu/drm/i915/i915_scatterlist.h
208
kref_get(&rsgt->kref);
drivers/gpu/drm/i915/i915_scatterlist.h
224
kref_init(&rsgt->kref);
drivers/gpu/drm/i915/i915_scheduler.c
437
static void default_destroy(struct kref *kref)
drivers/gpu/drm/i915/i915_scheduler.c
440
container_of(kref, typeof(*sched_engine), ref);
drivers/gpu/drm/i915/i915_scheduler_types.h
109
struct kref ref;
drivers/gpu/drm/i915/i915_scheduler_types.h
169
void (*destroy)(struct kref *kref);
drivers/gpu/drm/i915/selftests/i915_active.c
22
struct kref ref;
drivers/gpu/drm/i915/selftests/i915_active.c
37
static void __live_release(struct kref *ref)
drivers/gpu/drm/i915/selftests/lib_sw_fence.c
122
static void heap_fence_release(struct kref *ref)
drivers/gpu/drm/i915/selftests/lib_sw_fence.c
87
struct kref ref;
drivers/gpu/drm/imagination/pvr_context.c
373
pvr_context_release(struct kref *ref_count)
drivers/gpu/drm/imagination/pvr_context.h
34
struct kref ref_count;
drivers/gpu/drm/imagination/pvr_free_list.c
470
pvr_free_list_release(struct kref *ref_count)
drivers/gpu/drm/imagination/pvr_free_list.h
49
struct kref ref_count;
drivers/gpu/drm/imagination/pvr_fw.h
31
struct kref ref_count;
drivers/gpu/drm/imagination/pvr_hwrt.c
500
pvr_hwrt_dataset_release(struct kref *ref_count)
drivers/gpu/drm/imagination/pvr_hwrt.h
59
struct kref ref_count;
drivers/gpu/drm/imagination/pvr_job.c
23
static void pvr_job_release(struct kref *kref)
drivers/gpu/drm/imagination/pvr_job.c
25
struct pvr_job *job = container_of(kref, struct pvr_job, ref_count);
drivers/gpu/drm/imagination/pvr_job.h
35
struct kref ref_count;
drivers/gpu/drm/imagination/pvr_vm.c
60
struct kref ref_count;
drivers/gpu/drm/imagination/pvr_vm.c
616
pvr_vm_context_release(struct kref *ref_count)
drivers/gpu/drm/lima/lima_ctx.c
43
static void lima_ctx_do_release(struct kref *ref)
drivers/gpu/drm/lima/lima_ctx.h
13
struct kref refcnt;
drivers/gpu/drm/lima/lima_vm.c
235
void lima_vm_release(struct kref *kref)
drivers/gpu/drm/lima/lima_vm.c
237
struct lima_vm *vm = container_of(kref, struct lima_vm, refcount);
drivers/gpu/drm/lima/lima_vm.h
31
struct kref refcount;
drivers/gpu/drm/lima/lima_vm.h
47
void lima_vm_release(struct kref *kref);
drivers/gpu/drm/msm/adreno/a5xx_gpu.c
1600
static void a5xx_gpu_state_destroy(struct kref *kref)
drivers/gpu/drm/msm/adreno/a5xx_gpu.c
1602
struct msm_gpu_state *state = container_of(kref,
drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c
1667
static void a6xx_gpu_state_destroy(struct kref *kref)
drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c
1670
struct msm_gpu_state *state = container_of(kref,
drivers/gpu/drm/msm/adreno/adreno_gpu.c
834
static void adreno_gpu_state_kref_destroy(struct kref *kref)
drivers/gpu/drm/msm/adreno/adreno_gpu.c
836
struct msm_gpu_state *state = container_of(kref,
drivers/gpu/drm/msm/msm_gem.h
431
struct kref ref;
drivers/gpu/drm/msm/msm_gem.h
484
void __msm_gem_submit_destroy(struct kref *kref);
drivers/gpu/drm/msm/msm_gem_submit.c
85
void __msm_gem_submit_destroy(struct kref *kref)
drivers/gpu/drm/msm/msm_gem_submit.c
88
container_of(kref, struct msm_gem_submit, ref);
drivers/gpu/drm/msm/msm_gpu.h
376
struct kref ref;
drivers/gpu/drm/msm/msm_gpu.h
547
struct kref ref;
drivers/gpu/drm/msm/msm_gpu.h
564
struct kref ref;
drivers/gpu/drm/msm/msm_gpu.h
665
void msm_submitqueue_destroy(struct kref *kref);
drivers/gpu/drm/msm/msm_gpu.h
668
void __msm_context_destroy(struct kref *kref);
drivers/gpu/drm/msm/msm_submitqueue.c
52
void __msm_context_destroy(struct kref *kref)
drivers/gpu/drm/msm/msm_submitqueue.c
54
struct msm_context *ctx = container_of(kref,
drivers/gpu/drm/msm/msm_submitqueue.c
72
void msm_submitqueue_destroy(struct kref *kref)
drivers/gpu/drm/msm/msm_submitqueue.c
74
struct msm_gpu_submitqueue *queue = container_of(kref,
drivers/gpu/drm/nouveau/include/nvkm/core/memory.h
25
struct kref kref;
drivers/gpu/drm/nouveau/include/nvkm/subdev/mmu.h
31
struct kref kref;
drivers/gpu/drm/nouveau/nouveau_fence.c
111
nouveau_fence_context_put(struct kref *fence_ref)
drivers/gpu/drm/nouveau/nouveau_fence.h
37
struct kref fence_ref;
drivers/gpu/drm/nouveau/nouveau_uvmm.c
1027
kref_init(&(*pjob)->kref);
drivers/gpu/drm/nouveau/nouveau_uvmm.c
1033
nouveau_uvmm_bind_job_free(struct kref *kref)
drivers/gpu/drm/nouveau/nouveau_uvmm.c
1036
container_of(kref, struct nouveau_uvmm_bind_job, kref);
drivers/gpu/drm/nouveau/nouveau_uvmm.c
1051
kref_get(&job->kref);
drivers/gpu/drm/nouveau/nouveau_uvmm.c
1057
kref_put(&job->kref, nouveau_uvmm_bind_job_free);
drivers/gpu/drm/nouveau/nouveau_uvmm.c
253
kref_init(&(*preg)->kref);
drivers/gpu/drm/nouveau/nouveau_uvmm.c
259
nouveau_uvma_region_free(struct kref *kref)
drivers/gpu/drm/nouveau/nouveau_uvmm.c
262
container_of(kref, struct nouveau_uvma_region, kref);
drivers/gpu/drm/nouveau/nouveau_uvmm.c
270
kref_get(&reg->kref);
drivers/gpu/drm/nouveau/nouveau_uvmm.c
276
kref_put(&reg->kref, nouveau_uvma_region_free);
drivers/gpu/drm/nouveau/nouveau_uvmm.h
25
struct kref kref;
drivers/gpu/drm/nouveau/nouveau_uvmm.h
47
struct kref kref;
drivers/gpu/drm/nouveau/nvkm/core/memory.c
104
kref_init(&memory->kref);
drivers/gpu/drm/nouveau/nvkm/core/memory.c
108
nvkm_memory_del(struct kref *kref)
drivers/gpu/drm/nouveau/nvkm/core/memory.c
110
struct nvkm_memory *memory = container_of(kref, typeof(*memory), kref);
drivers/gpu/drm/nouveau/nvkm/core/memory.c
123
kref_put(&memory->kref, nvkm_memory_del);
drivers/gpu/drm/nouveau/nvkm/core/memory.c
132
kref_get(&memory->kref);
drivers/gpu/drm/nouveau/nvkm/engine/fifo/cgrp.c
175
nvkm_cgrp_del(struct kref *kref)
drivers/gpu/drm/nouveau/nvkm/engine/fifo/cgrp.c
177
struct nvkm_cgrp *cgrp = container_of(kref, typeof(*cgrp), kref);
drivers/gpu/drm/nouveau/nvkm/engine/fifo/cgrp.c
196
kref_put(&cgrp->kref, nvkm_cgrp_del);
drivers/gpu/drm/nouveau/nvkm/engine/fifo/cgrp.c
204
kref_get(&cgrp->kref);
drivers/gpu/drm/nouveau/nvkm/engine/fifo/cgrp.c
236
kref_init(&cgrp->kref);
drivers/gpu/drm/nouveau/nvkm/engine/fifo/cgrp.h
38
struct kref kref;
drivers/gpu/drm/nouveau/nvkm/engine/fifo/chid.c
54
nvkm_chid_del(struct kref *kref)
drivers/gpu/drm/nouveau/nvkm/engine/fifo/chid.c
56
struct nvkm_chid *chid = container_of(kref, typeof(*chid), kref);
drivers/gpu/drm/nouveau/nvkm/engine/fifo/chid.c
72
kref_put(&chid->kref, nvkm_chid_del);
drivers/gpu/drm/nouveau/nvkm/engine/fifo/chid.c
80
kref_get(&chid->kref);
drivers/gpu/drm/nouveau/nvkm/engine/fifo/chid.c
95
kref_init(&chid->kref);
drivers/gpu/drm/nouveau/nvkm/engine/fifo/chid.h
7
struct kref kref;
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c
1125
kref_init(&vmm->kref);
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c
1964
nvkm_vmm_del(struct kref *kref)
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c
1966
struct nvkm_vmm *vmm = container_of(kref, typeof(*vmm), kref);
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c
1976
kref_put(&vmm->kref, nvkm_vmm_del);
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c
1985
kref_get(&vmm->kref);
drivers/gpu/drm/panfrost/panfrost_device.h
189
struct kref refcount;
drivers/gpu/drm/panfrost/panfrost_gem.c
140
static void panfrost_gem_mapping_release(struct kref *kref)
drivers/gpu/drm/panfrost/panfrost_gem.c
144
mapping = container_of(kref, struct panfrost_gem_mapping, refcount);
drivers/gpu/drm/panfrost/panfrost_gem.h
113
struct kref refcount;
drivers/gpu/drm/panfrost/panfrost_job.c
351
static void panfrost_job_cleanup(struct kref *ref)
drivers/gpu/drm/panfrost/panfrost_job.c
984
static void panfrost_jm_ctx_release(struct kref *kref)
drivers/gpu/drm/panfrost/panfrost_job.c
986
struct panfrost_jm_ctx *jm_ctx = container_of(kref, struct panfrost_jm_ctx, refcnt);
drivers/gpu/drm/panfrost/panfrost_job.h
17
struct kref refcount;
drivers/gpu/drm/panfrost/panfrost_job.h
51
struct kref refcnt;
drivers/gpu/drm/panfrost/panfrost_mmu.c
717
static void panfrost_mmu_release_ctx(struct kref *kref)
drivers/gpu/drm/panfrost/panfrost_mmu.c
719
struct panfrost_mmu *mmu = container_of(kref, struct panfrost_mmu,
drivers/gpu/drm/panthor/panthor_heap.c
492
static void panthor_heap_pool_release(struct kref *refcount)
drivers/gpu/drm/panthor/panthor_heap.c
85
struct kref refcount;
drivers/gpu/drm/panthor/panthor_mmu.c
2339
static void panthor_vm_bind_job_release(struct kref *kref)
drivers/gpu/drm/panthor/panthor_mmu.c
2341
struct panthor_vm_bind_job *job = container_of(kref, struct panthor_vm_bind_job, refcount);
drivers/gpu/drm/panthor/panthor_mmu.c
397
struct kref refcount;
drivers/gpu/drm/panthor/panthor_sched.c
3910
static void job_release(struct kref *ref)
drivers/gpu/drm/panthor/panthor_sched.c
532
struct kref refcount;
drivers/gpu/drm/panthor/panthor_sched.c
798
struct kref refcount;
drivers/gpu/drm/panthor/panthor_sched.c
962
static void group_release(struct kref *kref)
drivers/gpu/drm/panthor/panthor_sched.c
964
struct panthor_group *group = container_of(kref,
drivers/gpu/drm/tegra/submit.c
34
struct kref ref;
drivers/gpu/drm/tegra/submit.c
51
static void gather_bo_release(struct kref *ref)
drivers/gpu/drm/tegra/uapi.c
15
static void tegra_drm_mapping_release(struct kref *ref)
drivers/gpu/drm/tegra/uapi.h
28
struct kref ref;
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
130
KUNIT_EXPECT_EQ(test, kref_read(&bo->kref), 1);
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
179
KUNIT_EXPECT_EQ(test, kref_read(&bo->kref), 1);
drivers/gpu/drm/ttm/tests/ttm_kunit_helpers.c
192
kref_init(&bo->kref);
drivers/gpu/drm/ttm/ttm_bo.c
250
static void ttm_bo_release(struct kref *kref)
drivers/gpu/drm/ttm/ttm_bo.c
253
container_of(kref, struct ttm_buffer_object, kref);
drivers/gpu/drm/ttm/ttm_bo.c
301
kref_init(&bo->kref);
drivers/gpu/drm/ttm/ttm_bo.c
326
kref_put(&bo->kref, ttm_bo_release);
drivers/gpu/drm/ttm/ttm_bo.c
628
WARN_ON_ONCE(!kref_read(&bo->kref));
drivers/gpu/drm/ttm/ttm_bo.c
647
WARN_ON_ONCE(!kref_read(&bo->kref));
drivers/gpu/drm/ttm/ttm_bo.c
938
kref_init(&bo->kref);
drivers/gpu/drm/ttm/ttm_bo_internal.h
37
kref_get(&bo->kref);
drivers/gpu/drm/ttm/ttm_bo_internal.h
53
if (!kref_get_unless_zero(&bo->kref))
drivers/gpu/drm/ttm/ttm_bo_util.c
250
kref_init(&fbo->base.kref);
drivers/gpu/drm/v3d/v3d_drv.h
297
struct kref refcount;
drivers/gpu/drm/v3d/v3d_drv.h
326
void (*free)(struct kref *ref);
drivers/gpu/drm/v3d/v3d_submit.c
110
v3d_render_job_free(struct kref *ref)
drivers/gpu/drm/v3d/v3d_submit.c
161
struct v3d_job *job, void (*free)(struct kref *ref),
drivers/gpu/drm/v3d/v3d_submit.c
89
v3d_job_free(struct kref *ref)
drivers/gpu/drm/vc4/vc4_drv.h
236
struct kref bin_bo_kref;
drivers/gpu/drm/vc4/vc4_v3d.c
352
static void bin_bo_release(struct kref *ref)
drivers/gpu/drm/vmwgfx/ttm_object.c
125
struct kref kref;
drivers/gpu/drm/vmwgfx/ttm_object.c
169
static void ttm_object_file_destroy(struct kref *kref)
drivers/gpu/drm/vmwgfx/ttm_object.c
172
container_of(kref, struct ttm_object_file, refcount);
drivers/gpu/drm/vmwgfx/ttm_object.c
224
static void ttm_release_base(struct kref *kref)
drivers/gpu/drm/vmwgfx/ttm_object.c
227
container_of(kref, struct ttm_base_object, refcount);
drivers/gpu/drm/vmwgfx/ttm_object.c
311
if (kref_get_unless_zero(&ref->kref)) {
drivers/gpu/drm/vmwgfx/ttm_object.c
329
kref_init(&ref->kref);
drivers/gpu/drm/vmwgfx/ttm_object.c
346
ttm_ref_object_release(struct kref *kref)
drivers/gpu/drm/vmwgfx/ttm_object.c
349
container_of(kref, struct ttm_ref_object, kref);
drivers/gpu/drm/vmwgfx/ttm_object.c
375
kref_put(&ref->kref, ttm_ref_object_release);
drivers/gpu/drm/vmwgfx/ttm_object.c
397
ttm_ref_object_release(&ref->kref);
drivers/gpu/drm/vmwgfx/ttm_object.c
82
struct kref refcount;
drivers/gpu/drm/vmwgfx/ttm_object.h
105
struct kref refcount;
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
136
struct kref kref;
drivers/gpu/drm/vmwgfx/vmwgfx_page_dirty.c
263
static void vmw_bo_dirty_free(struct kref *kref)
drivers/gpu/drm/vmwgfx/vmwgfx_page_dirty.c
265
struct vmw_bo_dirty *dirty = container_of(kref, struct vmw_bo_dirty, ref_count);
drivers/gpu/drm/vmwgfx/vmwgfx_page_dirty.c
46
struct kref ref_count;
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
114
static void vmw_resource_release(struct kref *kref)
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
117
container_of(kref, struct vmw_resource, kref);
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
173
kref_put(&res->kref, vmw_resource_release);
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
220
kref_init(&res->kref);
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
85
kref_get(&res->kref);
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
92
return kref_get_unless_zero(&res->kref) ? res : NULL;
drivers/gpu/drm/xe/display/intel_bo.c
53
struct kref ref;
drivers/gpu/drm/xe/display/intel_bo.c
82
static void frontbuffer_release(struct kref *ref)
drivers/gpu/drm/xe/xe_bo.c
1525
xe_assert(xe, !kref_read(&ttm_bo->kref));
drivers/gpu/drm/xe/xe_bo.c
3546
void __xe_bo_release_dummy(struct kref *kref)
drivers/gpu/drm/xe/xe_bo.h
344
void __xe_bo_release_dummy(struct kref *kref);
drivers/gpu/drm/xe/xe_device.c
122
static void xe_file_destroy(struct kref *ref)
drivers/gpu/drm/xe/xe_device_types.h
787
struct kref refcount;
drivers/gpu/drm/xe/xe_drm_client.c
113
void __xe_drm_client_free(struct kref *kref)
drivers/gpu/drm/xe/xe_drm_client.c
116
container_of(kref, typeof(*client), kref);
drivers/gpu/drm/xe/xe_drm_client.c
95
kref_init(&client->kref);
drivers/gpu/drm/xe/xe_drm_client.h
21
struct kref kref;
drivers/gpu/drm/xe/xe_drm_client.h
40
kref_get(&client->kref);
drivers/gpu/drm/xe/xe_drm_client.h
44
void __xe_drm_client_free(struct kref *kref);
drivers/gpu/drm/xe/xe_drm_client.h
48
kref_put(&client->kref, __xe_drm_client_free);
drivers/gpu/drm/xe/xe_exec_queue.c
471
void xe_exec_queue_destroy(struct kref *ref)
drivers/gpu/drm/xe/xe_exec_queue.h
35
void xe_exec_queue_destroy(struct kref *ref);
drivers/gpu/drm/xe/xe_exec_queue_types.h
90
struct kref refcount;
drivers/gpu/drm/xe/xe_lrc.c
1639
void xe_lrc_destroy(struct kref *ref)
drivers/gpu/drm/xe/xe_lrc.h
55
void xe_lrc_destroy(struct kref *ref);
drivers/gpu/drm/xe/xe_lrc_types.h
40
struct kref refcount;
drivers/gpu/drm/xe/xe_oa.c
159
static void xe_oa_config_release(struct kref *ref)
drivers/gpu/drm/xe/xe_oa.c
81
struct kref ref;
drivers/gpu/drm/xe/xe_sched_job.c
171
void xe_sched_job_destroy(struct kref *ref)
drivers/gpu/drm/xe/xe_sched_job.h
23
void xe_sched_job_destroy(struct kref *ref);
drivers/gpu/drm/xe/xe_sched_job_types.h
43
struct kref refcount;
drivers/gpu/drm/xe/xe_sync.c
24
struct kref refcount;
drivers/gpu/drm/xe/xe_sync.c
33
static void user_fence_destroy(struct kref *kref)
drivers/gpu/drm/xe/xe_sync.c
35
struct xe_user_fence *ufence = container_of(kref, struct xe_user_fence,
drivers/gpu/drm/xe/xe_tlb_inval_job.c
174
static void xe_tlb_inval_job_destroy(struct kref *ref)
drivers/gpu/drm/xe/xe_tlb_inval_job.c
32
struct kref refcount;
drivers/gpu/host1x/bus.c
933
static void __host1x_bo_unpin(struct kref *ref)
drivers/gpu/host1x/channel.c
102
static void release_channel(struct kref *kref)
drivers/gpu/host1x/channel.c
105
container_of(kref, struct host1x_channel, refcount);
drivers/gpu/host1x/channel.h
28
struct kref refcount;
drivers/gpu/host1x/job.c
84
static void job_free(struct kref *ref)
drivers/gpu/host1x/syncpt.c
340
static void syncpt_release(struct kref *ref)
drivers/gpu/host1x/syncpt.c
504
static void do_nothing(struct kref *ref)
drivers/gpu/host1x/syncpt.h
31
struct kref ref;
drivers/greybus/connection.c
16
static void gb_connection_kref_release(struct kref *kref);
drivers/greybus/connection.c
197
kref_init(&connection->kref);
drivers/greybus/connection.c
38
kref_get(&connection->kref);
drivers/greybus/connection.c
47
kref_put(&connection->kref, gb_connection_kref_release);
drivers/greybus/connection.c
94
static void gb_connection_kref_release(struct kref *kref)
drivers/greybus/connection.c
98
connection = container_of(kref, struct gb_connection, kref);
drivers/greybus/operation.c
554
kref_init(&operation->kref);
drivers/greybus/operation.c
663
kref_get(&operation->kref);
drivers/greybus/operation.c
670
static void _gb_operation_destroy(struct kref *kref)
drivers/greybus/operation.c
674
operation = container_of(kref, struct gb_operation, kref);
drivers/greybus/operation.c
694
kref_put(&operation->kref, _gb_operation_destroy);
drivers/hid/hid-core.c
756
void hiddev_free(struct kref *ref)
drivers/hid/hid-cougar.c
126
kref_get(&shared->kref);
drivers/hid/hid-cougar.c
133
static void cougar_release_shared_data(struct kref *kref)
drivers/hid/hid-cougar.c
135
struct cougar_shared *shared = container_of(kref,
drivers/hid/hid-cougar.c
136
struct cougar_shared, kref);
drivers/hid/hid-cougar.c
150
kref_put(&cougar->shared->kref, cougar_release_shared_data);
drivers/hid/hid-cougar.c
175
kref_init(&shared->kref);
drivers/hid/hid-cougar.c
70
struct kref kref;
drivers/hid/hid-logitech-dj.c
147
struct kref kref;
drivers/hid/hid-logitech-dj.c
680
kref_get(&djrcv_dev->kref);
drivers/hid/hid-logitech-dj.c
685
kref_get(&djrcv_dev->kref);
drivers/hid/hid-logitech-dj.c
690
kref_get(&djrcv_dev->kref);
drivers/hid/hid-logitech-dj.c
698
static void dj_release_receiver_dev(struct kref *kref)
drivers/hid/hid-logitech-dj.c
700
struct dj_receiver_dev *djrcv_dev = container_of(kref, struct dj_receiver_dev, kref);
drivers/hid/hid-logitech-dj.c
720
kref_put(&djrcv_dev->kref, dj_release_receiver_dev);
drivers/hid/hid-logitech-dj.c
749
kref_init(&djrcv_dev->kref);
drivers/hid/wacom_sys.c
755
struct kref kref;
drivers/hid/wacom_sys.c
836
kref_get(&data->kref);
drivers/hid/wacom_sys.c
844
kref_get(&data->kref);
drivers/hid/wacom_sys.c
852
static void wacom_release_shared_data(struct kref *kref)
drivers/hid/wacom_sys.c
855
container_of(kref, struct wacom_hdev_data, kref);
drivers/hid/wacom_sys.c
879
kref_put(&data->kref, wacom_release_shared_data);
drivers/hid/wacom_sys.c
901
kref_init(&data->kref);
drivers/hv/mshv_regions.c
350
static void mshv_region_destroy(struct kref *ref)
drivers/hv/mshv_root.h
85
struct kref mreg_refcount;
drivers/hwmon/fschmd.c
1099
kref_init(&data->kref);
drivers/hwmon/fschmd.c
1291
kref_put(&data->kref, fschmd_release_resources);
drivers/hwmon/fschmd.c
261
struct kref kref;
drivers/hwmon/fschmd.c
310
static void fschmd_release_resources(struct kref *ref)
drivers/hwmon/fschmd.c
312
struct fschmd_data *data = container_of(ref, struct fschmd_data, kref);
drivers/hwmon/fschmd.c
816
kref_get(&data->kref);
drivers/hwmon/fschmd.c
845
kref_put(&data->kref, fschmd_release_resources);
drivers/hwmon/w83793.c
1315
kref_get(&data->kref);
drivers/hwmon/w83793.c
1349
kref_put(&data->kref, w83793_release_resources);
drivers/hwmon/w83793.c
1554
kref_put(&data->kref, w83793_release_resources);
drivers/hwmon/w83793.c
1664
kref_init(&data->kref);
drivers/hwmon/w83793.c
253
struct kref kref;
drivers/hwmon/w83793.c
277
static void w83793_release_resources(struct kref *ref)
drivers/hwmon/w83793.c
279
struct w83793_data *data = container_of(ref, struct w83793_data, kref);
drivers/iio/buffer/industrialio-buffer-dma.c
100
struct iio_dma_buffer_block *block = container_of(kref,
drivers/iio/buffer/industrialio-buffer-dma.c
101
struct iio_dma_buffer_block, kref);
drivers/iio/buffer/industrialio-buffer-dma.c
119
kref_get(&block->kref);
drivers/iio/buffer/industrialio-buffer-dma.c
124
kref_put(&block->kref, iio_buffer_block_release);
drivers/iio/buffer/industrialio-buffer-dma.c
143
iio_buffer_block_release(&block->kref);
drivers/iio/buffer/industrialio-buffer-dma.c
147
static void iio_buffer_block_release_atomic(struct kref *kref)
drivers/iio/buffer/industrialio-buffer-dma.c
151
block = container_of(kref, struct iio_dma_buffer_block, kref);
drivers/iio/buffer/industrialio-buffer-dma.c
164
kref_put(&block->kref, iio_buffer_block_release_atomic);
drivers/iio/buffer/industrialio-buffer-dma.c
193
kref_init(&block->kref);
drivers/iio/buffer/industrialio-buffer-dma.c
98
static void iio_buffer_block_release(struct kref *kref)
drivers/iio/industrialio-buffer.c
1561
static void iio_buffer_dmabuf_release(struct kref *ref)
drivers/iio/industrialio-buffer.c
2466
static void iio_buffer_release(struct kref *ref)
drivers/iio/industrialio-buffer.c
43
struct kref ref;
drivers/infiniband/core/cache.c
215
static void schedule_free_gid(struct kref *kref)
drivers/infiniband/core/cache.c
218
container_of(kref, struct ib_gid_table_entry, kref);
drivers/infiniband/core/cache.c
264
static void free_gid_entry(struct kref *kref)
drivers/infiniband/core/cache.c
267
container_of(kref, struct ib_gid_table_entry, kref);
drivers/infiniband/core/cache.c
313
kref_init(&entry->kref);
drivers/infiniband/core/cache.c
337
kref_get(&entry->kref);
drivers/infiniband/core/cache.c
342
kref_put(&entry->kref, schedule_free_gid);
drivers/infiniband/core/cache.c
347
kref_put(&entry->kref, free_gid_entry);
drivers/infiniband/core/cache.c
808
kref_read(&table->data_vec[i]->kref));
drivers/infiniband/core/cache.c
86
struct kref kref;
drivers/infiniband/core/cm.c
169
struct kref kref;
drivers/infiniband/core/cm.c
253
static void cm_dev_release(struct kref *kref)
drivers/infiniband/core/cm.c
255
struct cm_device *cm_dev = container_of(kref, struct cm_device, kref);
drivers/infiniband/core/cm.c
266
kref_put(&cm_dev->kref, cm_dev_release);
drivers/infiniband/core/cm.c
4355
kref_init(&cm_dev->kref);
drivers/infiniband/core/cm.c
464
kref_get(&port->cm_dev->kref);
drivers/infiniband/core/counters.c
196
kref_init(&counter->kref);
drivers/infiniband/core/counters.c
311
if (counter && !kref_get_unless_zero(&counter->kref))
drivers/infiniband/core/counters.c
318
static void counter_release(struct kref *kref)
drivers/infiniband/core/counters.c
322
counter = container_of(kref, struct rdma_counter, kref);
drivers/infiniband/core/counters.c
353
kref_put(&counter->kref, counter_release);
drivers/infiniband/core/counters.c
383
kref_put(&counter->kref, counter_release);
drivers/infiniband/core/counters.c
485
kref_get(&counter->kref);
drivers/infiniband/core/counters.c
534
kref_put(&counter->kref, counter_release);
drivers/infiniband/core/device.c
1544
WARN_ON(kref_read(&ib_dev->dev.kobj.kref) <= 1);
drivers/infiniband/core/ib_core_uverbs.c
183
static void rdma_user_mmap_entry_free(struct kref *kref)
drivers/infiniband/core/ib_core_uverbs.c
186
container_of(kref, struct rdma_user_mmap_entry, ref);
drivers/infiniband/core/ib_core_uverbs.c
254
kref_put(&uverbs_dmabuf->kref, ib_uverbs_dmabuf_done);
drivers/infiniband/core/iwpm_msg.c
125
iwpm_free_nlmsg_request(&nlmsg_request->kref);
drivers/infiniband/core/iwpm_msg.c
210
iwpm_free_nlmsg_request(&nlmsg_request->kref);
drivers/infiniband/core/iwpm_msg.c
299
iwpm_free_nlmsg_request(&nlmsg_request->kref);
drivers/infiniband/core/iwpm_msg.c
435
kref_put(&nlmsg_request->kref, iwpm_free_nlmsg_request);
drivers/infiniband/core/iwpm_msg.c
507
kref_put(&nlmsg_request->kref, iwpm_free_nlmsg_request);
drivers/infiniband/core/iwpm_msg.c
605
kref_put(&nlmsg_request->kref, iwpm_free_nlmsg_request);
drivers/infiniband/core/iwpm_msg.c
804
kref_put(&nlmsg_request->kref, iwpm_free_nlmsg_request);
drivers/infiniband/core/iwpm_util.c
321
kref_init(&nlmsg_request->kref);
drivers/infiniband/core/iwpm_util.c
322
kref_get(&nlmsg_request->kref);
drivers/infiniband/core/iwpm_util.c
332
void iwpm_free_nlmsg_request(struct kref *kref)
drivers/infiniband/core/iwpm_util.c
337
nlmsg_request = container_of(kref, struct iwpm_nlmsg_request, kref);
drivers/infiniband/core/iwpm_util.c
360
kref_get(&nlmsg_request->kref);
drivers/infiniband/core/iwpm_util.c
380
kref_put(&nlmsg_request->kref, iwpm_free_nlmsg_request);
drivers/infiniband/core/iwpm_util.h
112
void iwpm_free_nlmsg_request(struct kref *kref);
drivers/infiniband/core/iwpm_util.h
72
struct kref kref;
drivers/infiniband/core/rdma_core.c
45
static void uverbs_uobject_free(struct kref *ref)
drivers/infiniband/core/restrack.c
171
kref_init(&res->kref);
drivers/infiniband/core/restrack.c
232
return kref_get_unless_zero(&res->kref);
drivers/infiniband/core/restrack.c
261
static void restrack_release(struct kref *kref)
drivers/infiniband/core/restrack.c
265
res = container_of(kref, struct rdma_restrack_entry, kref);
drivers/infiniband/core/restrack.c
275
return kref_put(&res->kref, restrack_release);
drivers/infiniband/core/sa_query.c
1182
static void free_sm_ah(struct kref *kref)
drivers/infiniband/core/sa_query.c
1184
struct ib_sa_sm_ah *sm_ah = container_of(kref, struct ib_sa_sm_ah, ref);
drivers/infiniband/core/sa_query.c
66
struct kref ref;
drivers/infiniband/core/ucaps.c
198
static void ib_release_ucap(struct kref *ref)
drivers/infiniband/core/ucaps.c
23
struct kref ref;
drivers/infiniband/core/user_mad.c
110
struct kref kref;
drivers/infiniband/core/user_mad.c
1403
kref_init(&umad_dev->kref);
drivers/infiniband/core/user_mad.c
156
static void ib_umad_dev_free(struct kref *kref)
drivers/infiniband/core/user_mad.c
159
container_of(kref, struct ib_umad_device, kref);
drivers/infiniband/core/user_mad.c
166
kref_get(&dev->kref);
drivers/infiniband/core/user_mad.c
171
kref_put(&dev->kref, ib_umad_dev_free);
drivers/infiniband/core/uverbs.h
143
struct kref kref;
drivers/infiniband/core/uverbs.h
214
void ib_uverbs_release_file(struct kref *ref);
drivers/infiniband/core/uverbs.h
306
static inline void ib_uverbs_dmabuf_done(struct kref *kref)
drivers/infiniband/core/uverbs.h
309
container_of(kref, struct ib_uverbs_dmabuf_file, kref);
drivers/infiniband/core/uverbs_main.c
197
void ib_uverbs_release_file(struct kref *ref)
drivers/infiniband/core/uverbs_std_types_dmabuf.c
126
kref_init(&uverbs_dmabuf->kref);
drivers/infiniband/core/uverbs_std_types_dmabuf.c
180
kref_put(&uverbs_dmabuf->kref, ib_uverbs_dmabuf_done);
drivers/infiniband/core/uverbs_std_types_dmabuf.c
42
kref_get(&priv->kref);
drivers/infiniband/core/uverbs_std_types_dmabuf.c
54
kref_put(&priv->kref, ib_uverbs_dmabuf_done);
drivers/infiniband/hw/cxgb4/cm.c
321
kref_init(&epc->kref);
drivers/infiniband/hw/cxgb4/cm.c
386
void _c4iw_free_ep(struct kref *kref)
drivers/infiniband/hw/cxgb4/cm.c
390
ep = container_of(kref, struct c4iw_ep, com.kref);
drivers/infiniband/hw/cxgb4/device.c
1511
void _c4iw_free_wr_wait(struct kref *kref)
drivers/infiniband/hw/cxgb4/device.c
1515
wr_waitp = container_of(kref, struct c4iw_wr_wait, kref);
drivers/infiniband/hw/cxgb4/device.c
1526
kref_init(&wr_waitp->kref);
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
112
struct kref kref;
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
194
struct kref rqt_kref;
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
195
struct kref pbl_kref;
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
213
struct kref kref;
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
216
void _c4iw_free_wr_wait(struct kref *kref);
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
221
kref_read(&wr_waitp->kref));
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
222
WARN_ON(kref_read(&wr_waitp->kref) == 0);
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
223
kref_put(&wr_waitp->kref, _c4iw_free_wr_wait);
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
229
kref_read(&wr_waitp->kref));
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
230
WARN_ON(kref_read(&wr_waitp->kref) == 0);
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
231
kref_get(&wr_waitp->kref);
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
717
ep, kref_read(&((ep)->kref))); \
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
718
WARN_ON(kref_read(&((ep)->kref)) < 1); \
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
719
kref_put(&((ep)->kref), _c4iw_free_ep); \
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
724
ep, kref_read(&((ep)->kref))); \
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
725
kref_get(&((ep)->kref)); \
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
727
void _c4iw_free_ep(struct kref *kref);
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
883
struct kref kref;
drivers/infiniband/hw/cxgb4/resource.c
281
static void destroy_pblpool(struct kref *kref)
drivers/infiniband/hw/cxgb4/resource.c
285
rdev = container_of(kref, struct c4iw_rdev, pbl_kref);
drivers/infiniband/hw/cxgb4/resource.c
363
static void destroy_rqtpool(struct kref *kref)
drivers/infiniband/hw/cxgb4/resource.c
367
rdev = container_of(kref, struct c4iw_rdev, rqt_kref);
drivers/infiniband/hw/erdma/erdma_cm.c
179
static void __erdma_cep_dealloc(struct kref *ref)
drivers/infiniband/hw/erdma/erdma_cm.h
91
struct kref ref;
drivers/infiniband/hw/erdma/erdma_qp.c
307
static void erdma_qp_safe_free(struct kref *ref)
drivers/infiniband/hw/erdma/erdma_verbs.h
298
struct kref ref;
drivers/infiniband/hw/hfi1/affinity.c
790
static void hfi1_irq_notifier_release(struct kref *ref)
drivers/infiniband/hw/hfi1/hfi.h
249
struct kref kref;
drivers/infiniband/hw/hfi1/init.c
164
kref_init(&rcd->kref);
drivers/infiniband/hw/hfi1/init.c
172
static void hfi1_rcd_free(struct kref *kref)
drivers/infiniband/hw/hfi1/init.c
176
container_of(kref, struct hfi1_ctxtdata, kref);
drivers/infiniband/hw/hfi1/init.c
196
return kref_put(&rcd->kref, hfi1_rcd_free);
drivers/infiniband/hw/hfi1/init.c
212
return kref_get_unless_zero(&rcd->kref);
drivers/infiniband/hw/hfi1/mmu_rb.c
188
static void release_immediate(struct kref *refcount)
drivers/infiniband/hw/hfi1/mmu_rb.c
197
static void release_nolock(struct kref *refcount)
drivers/infiniband/hw/hfi1/mmu_rb.c
213
void hfi1_mmu_rb_release(struct kref *refcount)
drivers/infiniband/hw/hfi1/mmu_rb.c
22
static void release_immediate(struct kref *refcount);
drivers/infiniband/hw/hfi1/mmu_rb.h
19
struct kref refcount;
drivers/infiniband/hw/hfi1/mmu_rb.h
60
void hfi1_mmu_rb_release(struct kref *refcount);
drivers/infiniband/hw/hfi1/sdma.c
1410
kref_init(&sde->state.kref);
drivers/infiniband/hw/hfi1/sdma.c
190
static void sdma_complete(struct kref *);
drivers/infiniband/hw/hfi1/sdma.c
222
kref_get(&ss->kref);
drivers/infiniband/hw/hfi1/sdma.c
225
static void sdma_complete(struct kref *kref)
drivers/infiniband/hw/hfi1/sdma.c
228
container_of(kref, struct sdma_state, kref);
drivers/infiniband/hw/hfi1/sdma.c
235
kref_put(&ss->kref, sdma_complete);
drivers/infiniband/hw/hfi1/sdma.h
145
struct kref kref;
drivers/infiniband/hw/ionic/ionic_ibdev.h
213
struct kref cq_kref;
drivers/infiniband/hw/ionic/ionic_ibdev.h
285
struct kref qp_kref;
drivers/infiniband/hw/ionic/ionic_ibdev.h
419
static inline void ionic_qp_complete(struct kref *kref)
drivers/infiniband/hw/ionic/ionic_ibdev.h
421
struct ionic_qp *qp = container_of(kref, struct ionic_qp, qp_kref);
drivers/infiniband/hw/ionic/ionic_ibdev.h
426
static inline void ionic_cq_complete(struct kref *kref)
drivers/infiniband/hw/ionic/ionic_ibdev.h
428
struct ionic_cq *cq = container_of(kref, struct ionic_cq, cq_kref);
drivers/infiniband/hw/mlx5/dm.c
163
static void mlx5_ib_dm_memic_free(struct kref *kref)
drivers/infiniband/hw/mlx5/dm.c
166
container_of(kref, struct mlx5_ib_dm_memic, ref);
drivers/infiniband/hw/mlx5/dm.h
33
struct kref ref;
drivers/infiniband/hw/qedr/qedr.h
437
struct kref refcnt;
drivers/infiniband/hw/qedr/qedr.h
545
struct kref refcnt;
drivers/infiniband/hw/qedr/qedr_iw_cm.c
82
static void qedr_iw_free_qp(struct kref *ref)
drivers/infiniband/hw/qedr/qedr_iw_cm.c
90
qedr_iw_free_ep(struct kref *ref)
drivers/infiniband/hw/usnic/usnic_ib.h
84
struct kref vf_cnt;
drivers/infiniband/hw/usnic/usnic_ib_main.c
475
static void usnic_ib_undiscover_pf(struct kref *kref)
drivers/infiniband/hw/usnic/usnic_ib_main.c
481
dev = container_of(kref, struct usnic_ib_dev, vf_cnt)->pdev;
drivers/infiniband/sw/rdmavt/mmap.c
28
void rvt_release_mmap_info(struct kref *ref)
drivers/infiniband/sw/rdmavt/mmap.h
12
void rvt_release_mmap_info(struct kref *ref);
drivers/infiniband/sw/rxe/rxe_loc.h
40
void rxe_cleanup_mcg(struct kref *kref);
drivers/infiniband/sw/rxe/rxe_loc.h
46
struct kref ref;
drivers/infiniband/sw/rxe/rxe_loc.h
52
void rxe_mmap_release(struct kref *ref);
drivers/infiniband/sw/rxe/rxe_mcast.c
260
void rxe_cleanup_mcg(struct kref *kref)
drivers/infiniband/sw/rxe/rxe_mcast.c
262
struct rxe_mcg *mcg = container_of(kref, typeof(*mcg), ref_cnt);
drivers/infiniband/sw/rxe/rxe_mmap.c
16
void rxe_mmap_release(struct kref *ref)
drivers/infiniband/sw/rxe/rxe_pool.c
170
static void rxe_elem_release(struct kref *kref)
drivers/infiniband/sw/rxe/rxe_pool.c
172
struct rxe_pool_elem *elem = container_of(kref, typeof(*elem), ref_cnt);
drivers/infiniband/sw/rxe/rxe_pool.h
25
struct kref ref_cnt;
drivers/infiniband/sw/rxe/rxe_verbs.h
393
struct kref ref_cnt;
drivers/infiniband/sw/siw/siw.h
145
struct kref ref;
drivers/infiniband/sw/siw/siw.h
420
struct kref ref;
drivers/infiniband/sw/siw/siw.h
514
void siw_free_qp(struct kref *ref);
drivers/infiniband/sw/siw/siw_cm.c
295
static void __siw_cep_dealloc(struct kref *ref)
drivers/infiniband/sw/siw/siw_cm.h
42
struct kref ref;
drivers/infiniband/sw/siw/siw_mem.c
108
void siw_free_mem(struct kref *ref)
drivers/infiniband/sw/siw/siw_mem.h
25
void siw_free_mem(struct kref *ref);
drivers/infiniband/sw/siw/siw_qp.c
1295
void siw_free_qp(struct kref *ref)
drivers/infiniband/ulp/ipoib/ipoib.h
421
struct kref ref;
drivers/infiniband/ulp/ipoib/ipoib.h
485
void ipoib_free_ah(struct kref *kref);
drivers/infiniband/ulp/ipoib/ipoib_ib.c
82
void ipoib_free_ah(struct kref *kref)
drivers/infiniband/ulp/ipoib/ipoib_ib.c
84
struct ipoib_ah *ah = container_of(kref, struct ipoib_ah, ref);
drivers/infiniband/ulp/isert/ib_isert.c
310
kref_init(&isert_conn->kref);
drivers/infiniband/ulp/isert/ib_isert.c
520
kref_get(&isert_conn->kref);
drivers/infiniband/ulp/isert/ib_isert.c
532
isert_release_kref(struct kref *kref)
drivers/infiniband/ulp/isert/ib_isert.c
534
struct isert_conn *isert_conn = container_of(kref,
drivers/infiniband/ulp/isert/ib_isert.c
535
struct isert_conn, kref);
drivers/infiniband/ulp/isert/ib_isert.c
546
kref_put(&isert_conn->kref, isert_release_kref);
drivers/infiniband/ulp/isert/ib_isert.h
187
struct kref kref;
drivers/infiniband/ulp/rtrs/rtrs-pri.h
85
struct kref ref;
drivers/infiniband/ulp/rtrs/rtrs.c
578
static void dev_free(struct kref *ref)
drivers/infiniband/ulp/srpt/ib_srpt.c
105
static void srpt_free_ch(struct kref *kref);
drivers/infiniband/ulp/srpt/ib_srpt.c
1971
kref_get(&ch->kref);
drivers/infiniband/ulp/srpt/ib_srpt.c
1988
kref_put(&ch->kref, srpt_free_ch);
drivers/infiniband/ulp/srpt/ib_srpt.c
2124
static void srpt_free_ch(struct kref *kref)
drivers/infiniband/ulp/srpt/ib_srpt.c
2126
struct srpt_rdma_ch *ch = container_of(kref, struct srpt_rdma_ch, kref);
drivers/infiniband/ulp/srpt/ib_srpt.c
2189
kref_put(&ch->kref, srpt_free_ch);
drivers/infiniband/ulp/srpt/ib_srpt.c
2282
kref_init(&ch->kref);
drivers/infiniband/ulp/srpt/ib_srpt.c
3187
static void srpt_free_sdev(struct kref *refcnt)
drivers/infiniband/ulp/srpt/ib_srpt.h
307
struct kref kref;
drivers/infiniband/ulp/srpt/ib_srpt.h
453
struct kref refcnt;
drivers/input/serio/serio_raw.c
105
static void serio_raw_free(struct kref *kref)
drivers/input/serio/serio_raw.c
108
container_of(kref, struct serio_raw, kref);
drivers/input/serio/serio_raw.c
124
kref_put(&serio_raw->kref, serio_raw_free);
drivers/input/serio/serio_raw.c
281
kref_init(&serio_raw->kref);
drivers/input/serio/serio_raw.c
329
kref_put(&serio_raw->kref, serio_raw_free);
drivers/input/serio/serio_raw.c
33
struct kref kref;
drivers/input/serio/serio_raw.c
382
kref_put(&serio_raw->kref, serio_raw_free);
drivers/input/serio/serio_raw.c
94
kref_get(&serio_raw->kref);
drivers/iommu/iommufd/device.c
26
static void iommufd_group_release(struct kref *kref)
drivers/iommu/iommufd/device.c
29
container_of(kref, struct iommufd_group, ref);
drivers/iommu/iommufd/io_pagetable.c
1372
kref_get(&rhs->pages->kref);
drivers/iommu/iommufd/io_pagetable.c
726
kref_get(&elm->pages->kref);
drivers/iommu/iommufd/io_pagetable.h
223
struct kref kref;
drivers/iommu/iommufd/io_pagetable.h
277
void iopt_release_pages(struct kref *kref);
drivers/iommu/iommufd/io_pagetable.h
280
kref_put(&pages->kref, iopt_release_pages);
drivers/iommu/iommufd/iommufd_private.h
470
struct kref ref;
drivers/iommu/iommufd/pages.c
1379
kref_init(&pages->kref);
drivers/iommu/iommufd/pages.c
1645
void iopt_release_pages(struct kref *kref)
drivers/iommu/iommufd/pages.c
1647
struct iopt_pages *pages = container_of(kref, struct iopt_pages, kref);
drivers/macintosh/windfarm.h
109
struct kref ref;
drivers/macintosh/windfarm.h
41
struct kref ref;
drivers/macintosh/windfarm_ad7417_sensor.c
152
static void wf_ad7417_release(struct kref *ref)
drivers/macintosh/windfarm_ad7417_sensor.c
27
struct kref ref;
drivers/macintosh/windfarm_core.c
147
static void wf_control_release(struct kref *kref)
drivers/macintosh/windfarm_core.c
149
struct wf_control *ct = container_of(kref, struct wf_control, ref);
drivers/macintosh/windfarm_core.c
277
static void wf_sensor_release(struct kref *kref)
drivers/macintosh/windfarm_core.c
279
struct wf_sensor *sr = container_of(kref, struct wf_sensor, ref);
drivers/macintosh/windfarm_fcu_controls.c
56
struct kref ref;
drivers/macintosh/windfarm_fcu_controls.c
71
static void wf_fcu_release(struct kref *ref)
drivers/macintosh/windfarm_smu_sat.c
168
static void wf_sat_release(struct kref *ref)
drivers/macintosh/windfarm_smu_sat.c
28
struct kref ref;
drivers/md/dm-pcache/cache.h
113
struct kref ref;
drivers/md/dm-pcache/cache_key.c
50
static void cache_key_destroy(struct kref *ref)
drivers/md/dm-pcache/dm_pcache.c
66
static void end_req(struct kref *ref)
drivers/md/dm-pcache/dm_pcache.h
56
struct kref ref;
drivers/media/cec/core/cec-notifier.c
101
kref_put(&n->kref, cec_notifier_release);
drivers/media/cec/core/cec-notifier.c
25
struct kref kref;
drivers/media/cec/core/cec-notifier.c
61
kref_get(&n->kref);
drivers/media/cec/core/cec-notifier.c
81
kref_init(&n->kref);
drivers/media/cec/core/cec-notifier.c
88
static void cec_notifier_release(struct kref *kref)
drivers/media/cec/core/cec-notifier.c
91
container_of(kref, struct cec_notifier, kref);
drivers/media/common/siano/smsdvb-debugfs.c
24
struct kref refcount;
drivers/media/common/siano/smsdvb-debugfs.c
244
static void smsdvb_debugfs_data_release(struct kref *ref)
drivers/media/dvb-core/dvb_ca_en50221.c
114
struct kref refcount;
drivers/media/dvb-core/dvb_ca_en50221.c
174
static void dvb_ca_private_release(struct kref *ref)
drivers/media/dvb-core/dvb_frontend.c
146
static void dvb_frontend_free(struct kref *ref)
drivers/media/dvb-core/dvbdev.c
612
static void dvb_free_device(struct kref *ref)
drivers/media/mc/mc-dev-allocator.c
33
struct kref refcount;
drivers/media/mc/mc-dev-allocator.c
42
static void media_device_instance_release(struct kref *kref)
drivers/media/mc/mc-dev-allocator.c
45
container_of(kref, struct media_device_instance, refcount);
drivers/media/mc/mc-request.c
309
kref_init(&req->kref);
drivers/media/mc/mc-request.c
344
static void media_request_object_release(struct kref *kref)
drivers/media/mc/mc-request.c
347
container_of(kref, struct media_request_object, kref);
drivers/media/mc/mc-request.c
384
kref_put(&obj->kref, media_request_object_release);
drivers/media/mc/mc-request.c
395
kref_init(&obj->kref);
drivers/media/mc/mc-request.c
61
static void media_request_release(struct kref *kref)
drivers/media/mc/mc-request.c
64
container_of(kref, struct media_request, kref);
drivers/media/mc/mc-request.c
83
kref_put(&req->kref, media_request_release);
drivers/media/platform/allegro-dvt/allegro-core.c
202
struct kref ref;
drivers/media/platform/allegro-dvt/allegro-core.c
472
static void allegro_free_channel(struct kref *ref)
drivers/media/platform/broadcom/bcm2835-unicam.c
183
struct kref kref;
drivers/media/platform/broadcom/bcm2835-unicam.c
248
static void unicam_release(struct kref *kref)
drivers/media/platform/broadcom/bcm2835-unicam.c
251
container_of(kref, struct unicam_device, kref);
drivers/media/platform/broadcom/bcm2835-unicam.c
262
kref_get(&unicam->kref);
drivers/media/platform/broadcom/bcm2835-unicam.c
2649
kref_init(&unicam->kref);
drivers/media/platform/broadcom/bcm2835-unicam.c
269
kref_put(&unicam->kref, unicam_release);
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_drv.h
139
struct kref refcount;
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
245
static void mtk_vcodec_dec_request_release(struct kref *ref)
drivers/media/platform/raspberrypi/rp1-cfe/cfe.c
1915
static void cfe_release(struct kref *kref)
drivers/media/platform/raspberrypi/rp1-cfe/cfe.c
1917
struct cfe_device *cfe = container_of(kref, struct cfe_device, kref);
drivers/media/platform/raspberrypi/rp1-cfe/cfe.c
1926
kref_put(&cfe->kref, cfe_release);
drivers/media/platform/raspberrypi/rp1-cfe/cfe.c
1931
kref_get(&cfe->kref);
drivers/media/platform/raspberrypi/rp1-cfe/cfe.c
2288
kref_init(&cfe->kref);
drivers/media/platform/raspberrypi/rp1-cfe/cfe.c
272
struct kref kref;
drivers/media/platform/renesas/rcar-vin/rcar-core.c
102
static void rvin_group_release(struct kref *kref)
drivers/media/platform/renesas/rcar-vin/rcar-core.c
105
container_of(kref, struct rvin_group, refcount);
drivers/media/platform/renesas/rcar-vin/rcar-vin.h
242
struct kref refcount;
drivers/media/platform/renesas/vsp1/vsp1_pipe.c
444
kref_init(&pipe->kref);
drivers/media/platform/renesas/vsp1/vsp1_pipe.h
111
struct kref kref;
drivers/media/platform/renesas/vsp1/vsp1_video.c
580
kref_get(&pipe->kref);
drivers/media/platform/renesas/vsp1/vsp1_video.c
586
static void vsp1_video_pipeline_release(struct kref *kref)
drivers/media/platform/renesas/vsp1/vsp1_video.c
588
struct vsp1_pipeline *pipe = container_of(kref, typeof(*pipe), kref);
drivers/media/platform/renesas/vsp1/vsp1_video.c
599
kref_put(&pipe->kref, vsp1_video_pipeline_release);
drivers/media/usb/as102/as102_drv.h
53
struct kref kref;
drivers/media/usb/as102/as102_usb_drv.c
301
static void as102_usb_release(struct kref *kref)
drivers/media/usb/as102/as102_usb_drv.c
305
as102_dev = container_of(kref, struct as102_dev_t, kref);
drivers/media/usb/as102/as102_usb_drv.c
329
kref_put(&as102_dev->kref, as102_usb_release);
drivers/media/usb/as102/as102_usb_drv.c
371
kref_init(&as102_dev->kref);
drivers/media/usb/as102/as102_usb_drv.c
443
kref_get(&dev->kref);
drivers/media/usb/as102/as102_usb_drv.c
456
kref_put(&dev->kref, as102_usb_release);
drivers/media/usb/em28xx/em28xx-cards.c
3554
void em28xx_free_device(struct kref *ref)
drivers/media/usb/em28xx/em28xx-video.c
2113
static void em28xx_free_v4l2(struct kref *ref)
drivers/media/usb/em28xx/em28xx.h
543
struct kref ref;
drivers/media/usb/em28xx/em28xx.h
637
struct kref ref;
drivers/media/usb/em28xx/em28xx.h
840
void em28xx_free_device(struct kref *ref);
drivers/media/usb/uvc/uvc_driver.c
1939
static void uvc_delete(struct kref *kref)
drivers/media/usb/uvc/uvc_driver.c
1941
struct uvc_device *dev = container_of(kref, struct uvc_device, ref);
drivers/media/usb/uvc/uvc_queue.c
354
static void uvc_queue_buffer_complete(struct kref *ref)
drivers/media/usb/uvc/uvcvideo.h
328
struct kref ref;
drivers/media/usb/uvc/uvcvideo.h
605
struct kref ref;
drivers/media/v4l2-core/v4l2-device.c
45
static void v4l2_device_release(struct kref *ref)
drivers/media/v4l2-core/v4l2-mem2mem.c
114
struct kref kref;
drivers/media/v4l2-core/v4l2-mem2mem.c
1202
kref_init(&m2m_dev->kref);
drivers/media/v4l2-core/v4l2-mem2mem.c
1216
kref_get(&m2m_dev->kref);
drivers/media/v4l2-core/v4l2-mem2mem.c
1220
static void v4l2_m2m_release_from_kref(struct kref *kref)
drivers/media/v4l2-core/v4l2-mem2mem.c
1222
struct v4l2_m2m_dev *m2m_dev = container_of(kref, struct v4l2_m2m_dev, kref);
drivers/media/v4l2-core/v4l2-mem2mem.c
1229
kref_put(&m2m_dev->kref, v4l2_m2m_release_from_kref);
drivers/misc/bcm-vk/bcm_vk.h
381
struct kref kref;
drivers/misc/bcm-vk/bcm_vk.h
495
void bcm_vk_release_data(struct kref *kref);
drivers/misc/bcm-vk/bcm_vk_dev.c
1296
kref_init(&vk->kref);
drivers/misc/bcm-vk/bcm_vk_dev.c
1534
void bcm_vk_release_data(struct kref *kref)
drivers/misc/bcm-vk/bcm_vk_dev.c
1536
struct bcm_vk *vk = container_of(kref, struct bcm_vk, kref);
drivers/misc/bcm-vk/bcm_vk_dev.c
1599
kref_put(&vk->kref, bcm_vk_release_data);
drivers/misc/bcm-vk/bcm_vk_msg.c
1317
kref_put(&vk->kref, bcm_vk_release_data);
drivers/misc/bcm-vk/bcm_vk_msg.c
247
kref_get(&vk->kref);
drivers/misc/fastrpc.c
226
struct kref refcount;
drivers/misc/fastrpc.c
239
struct kref refcount;
drivers/misc/fastrpc.c
276
struct kref refcount;
drivers/misc/fastrpc.c
333
static void fastrpc_free_map(struct kref *ref)
drivers/misc/fastrpc.c
481
static void fastrpc_channel_ctx_free(struct kref *ref)
drivers/misc/fastrpc.c
500
static void fastrpc_context_free(struct kref *ref)
drivers/misc/genwqe/card_dev.c
1377
rc = kref_read(&cd->cdev_genwqe.kobj.kref);
drivers/misc/ibmasm/command.c
39
kref_init(&cmd->kref);
drivers/misc/ibmasm/command.c
52
void ibmasm_free_command(struct kref *kref)
drivers/misc/ibmasm/command.c
54
struct command *cmd = to_command(kref);
drivers/misc/ibmasm/ibmasm.h
103
kref_get(&cmd->kref);
drivers/misc/ibmasm/ibmasm.h
85
struct kref kref;
drivers/misc/ibmasm/ibmasm.h
88
#define to_command(c) container_of(c, struct command, kref)
drivers/misc/ibmasm/ibmasm.h
90
void ibmasm_free_command(struct kref *kref);
drivers/misc/ibmasm/ibmasm.h
97
kref_put(&cmd->kref, ibmasm_free_command);
drivers/misc/mei/client.c
55
static void mei_me_cl_release(struct kref *ref)
drivers/misc/mei/mei_dev.h
208
struct kref refcnt;
drivers/misc/ocxl/core.c
24
kref_init(&afu->kref);
drivers/misc/ocxl/core.c
33
static void free_afu(struct kref *kref)
drivers/misc/ocxl/core.c
35
struct ocxl_afu *afu = container_of(kref, struct ocxl_afu, kref);
drivers/misc/ocxl/core.c
44
kref_get(&afu->kref);
drivers/misc/ocxl/core.c
50
kref_put(&afu->kref, free_afu);
drivers/misc/ocxl/link.c
469
static void release_xsl(struct kref *ref)
drivers/misc/ocxl/link.c
88
struct kref ref;
drivers/misc/ocxl/ocxl_internal.h
38
struct kref kref;
drivers/misc/vmw_vmci/vmci_context.c
114
kref_init(&context->kref);
drivers/misc/vmw_vmci/vmci_context.c
390
kref_get(&context->kref);
drivers/misc/vmw_vmci/vmci_context.c
404
static void ctx_free_ctx(struct kref *kref)
drivers/misc/vmw_vmci/vmci_context.c
406
struct vmci_ctx *context = container_of(kref, struct vmci_ctx, kref);
drivers/misc/vmw_vmci/vmci_context.c
477
kref_put(&context->kref, ctx_free_ctx);
drivers/misc/vmw_vmci/vmci_context.h
43
struct kref kref;
drivers/misc/vmw_vmci/vmci_resource.c
124
kref_init(&resource->kref);
drivers/misc/vmw_vmci/vmci_resource.c
186
kref_get(&resource->kref);
drivers/misc/vmw_vmci/vmci_resource.c
191
static void vmci_release_resource(struct kref *kref)
drivers/misc/vmw_vmci/vmci_resource.c
194
container_of(kref, struct vmci_resource, kref);
drivers/misc/vmw_vmci/vmci_resource.c
215
return kref_put(&resource->kref, vmci_release_resource) ?
drivers/misc/vmw_vmci/vmci_resource.h
31
struct kref kref;
drivers/mmc/core/block.c
125
struct kref kref;
drivers/mmc/core/block.c
199
if (md && !kref_get_unless_zero(&md->kref))
drivers/mmc/core/block.c
212
static void mmc_blk_kref_release(struct kref *ref)
drivers/mmc/core/block.c
214
struct mmc_blk_data *md = container_of(ref, struct mmc_blk_data, kref);
drivers/mmc/core/block.c
230
kref_put(&md->kref, mmc_blk_kref_release);
drivers/mmc/core/block.c
2599
kref_init(&md->kref);
drivers/mmc/host/vub300.c
1746
kref_put(&vub300->kref, vub300_delete);
drivers/mmc/host/vub300.c
1783
kref_put(&vub300->kref, vub300_delete);
drivers/mmc/host/vub300.c
1789
kref_put(&vub300->kref, vub300_delete);
drivers/mmc/host/vub300.c
1930
kref_get(&vub300->kref);
drivers/mmc/host/vub300.c
1941
kref_put(&vub300->kref, vub300_delete);
drivers/mmc/host/vub300.c
1954
kref_put(&vub300->kref, vub300_delete);
drivers/mmc/host/vub300.c
2011
kref_get(&vub300->kref);
drivers/mmc/host/vub300.c
2038
kref_put(&vub300->kref, vub300_delete);
drivers/mmc/host/vub300.c
2052
kref_get(&vub300->kref);
drivers/mmc/host/vub300.c
2074
kref_put(&vub300->kref, vub300_delete);
drivers/mmc/host/vub300.c
2320
kref_init(&vub300->kref);
drivers/mmc/host/vub300.c
2322
kref_get(&vub300->kref);
drivers/mmc/host/vub300.c
2374
kref_put(&vub300->kref, vub300_delete);
drivers/mmc/host/vub300.c
299
struct kref kref;
drivers/mmc/host/vub300.c
355
#define kref_to_vub300_mmc_host(d) container_of(d, struct vub300_mmc_host, kref)
drivers/mmc/host/vub300.c
369
static void vub300_delete(struct kref *kref)
drivers/mmc/host/vub300.c
371
struct vub300_mmc_host *vub300 = kref_to_vub300_mmc_host(kref);
drivers/mmc/host/vub300.c
388
kref_get(&vub300->kref);
drivers/mmc/host/vub300.c
402
kref_put(&vub300->kref, vub300_delete);
drivers/mmc/host/vub300.c
408
kref_get(&vub300->kref);
drivers/mmc/host/vub300.c
422
kref_put(&vub300->kref, vub300_delete);
drivers/mmc/host/vub300.c
428
kref_get(&vub300->kref);
drivers/mmc/host/vub300.c
442
kref_put(&vub300->kref, vub300_delete);
drivers/mmc/host/vub300.c
683
kref_put(&vub300->kref, vub300_delete);
drivers/mmc/host/vub300.c
706
kref_put(&vub300->kref, vub300_delete);
drivers/mmc/host/vub300.c
714
kref_put(&vub300->kref, vub300_delete);
drivers/mmc/host/vub300.c
739
kref_put(&vub300->kref, vub300_delete);
drivers/mmc/host/vub300.c
747
kref_put(&vub300->kref, vub300_delete);
drivers/mtd/devices/mtd_intel_dg.c
27
struct kref refcnt;
drivers/mtd/devices/mtd_intel_dg.c
664
static void intel_dg_nvm_release(struct kref *kref)
drivers/mtd/devices/mtd_intel_dg.c
666
struct intel_dg_nvm *nvm = container_of(kref, struct intel_dg_nvm, refcnt);
drivers/mtd/mtd_blkdevs.c
27
static void blktrans_dev_release(struct kref *kref)
drivers/mtd/mtd_blkdevs.c
30
container_of(kref, struct mtd_blktrans_dev, ref);
drivers/mtd/mtdcore.c
107
static void mtd_device_release(struct kref *kref)
drivers/mtd/mtdcore.c
109
struct mtd_info *mtd = container_of(kref, struct mtd_info, refcnt);
drivers/net/ethernet/broadcom/bnxt/bnxt.c
11659
static void bnxt_irq_affinity_release(struct kref *ref)
drivers/net/ethernet/broadcom/bnxt/bnxt.c
11662
container_of(ref, struct irq_affinity_notify, kref);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
289
struct kref kref;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
526
static inline void chtls_sock_free(struct kref *ref)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
529
kref);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
535
kref_put(&csk->kref, chtls_sock_free);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
541
kref_get(&csk->kref);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1250
chtls_sock_release(&csk->kref);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
488
kref_put(&csk->kref, chtls_sock_release);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
71
kref_init(&csk->kref);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
85
static void chtls_sock_release(struct kref *ref)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
88
container_of(ref, struct chtls_sock, kref);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_main.c
175
static inline void chtls_dev_release(struct kref *kref)
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_main.c
181
dev = container_of(kref, struct tls_toe_device, kref);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_main.c
203
kref_init(&tlsdev->kref);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_main.c
309
kref_put(&cdev->tlsdev.kref, cdev->tlsdev.release);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_main.c
331
kref_put(&cdev->tlsdev.kref, cdev->tlsdev.release);
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c
319
static void ppm_destroy(struct kref *kref)
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c
321
struct cxgbi_ppm *ppm = container_of(kref,
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.h
129
struct kref refcnt;
drivers/net/ethernet/fungible/funeth/funeth_main.c
242
static void fun_irq_aff_release(struct kref __always_unused *ref)
drivers/net/ethernet/intel/i40e/i40e_main.c
4117
static void i40e_irq_affinity_release(struct kref *ref) {}
drivers/net/ethernet/intel/ice/ice_vf_lib.c
55
static void ice_release_vf(struct kref *ref)
drivers/net/ethernet/intel/ice/ice_vf_lib.h
142
struct kref refcnt;
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c
232
static void mlx5_ldev_free(struct kref *ref)
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.h
66
struct kref ref;
drivers/net/ethernet/mellanox/mlx5/core/lib/devcom.c
143
mlx5_devcom_comp_release(struct kref *ref)
drivers/net/ethernet/mellanox/mlx5/core/lib/devcom.c
23
struct kref ref;
drivers/net/ethernet/mellanox/mlx5/core/lib/devcom.c
38
struct kref ref;
drivers/net/ethernet/mellanox/mlx5/core/lib/devcom.c
99
mlx5_devcom_dev_release(struct kref *ref)
drivers/net/ethernet/mellanox/mlx5/core/uar.c
81
static void up_rel_func(struct kref *kref)
drivers/net/ethernet/mellanox/mlx5/core/uar.c
83
struct mlx5_uars_page *up = container_of(kref, struct mlx5_uars_page, ref_count);
drivers/net/ethernet/meta/fbnic/fbnic_fw.c
350
static void fbnic_fw_release_cmpl_data(struct kref *kref)
drivers/net/ethernet/meta/fbnic/fbnic_fw.c
354
cmpl_data = container_of(kref, struct fbnic_fw_completion,
drivers/net/ethernet/meta/fbnic/fbnic_fw.h
68
struct kref ref_count;
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c
130
static void __release_cpp_area(struct kref *kref)
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c
133
container_of(kref, struct nfp_cpp_area, kref);
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c
147
kref_put(&area->kref, __release_cpp_area);
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c
152
kref_get(&area->kref);
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c
195
__release_cpp_area(&area->kref);
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c
319
kref_init(&area->kref);
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c
91
struct kref kref;
drivers/net/ethernet/pensando/ionic/ionic_lif.c
286
static void ionic_irq_aff_release(struct kref __always_unused *ref)
drivers/net/ethernet/qlogic/qede/qede.h
130
struct kref refcnt;
drivers/net/ethernet/qlogic/qede/qede_rdma.c
64
static void qede_rdma_complete_event(struct kref *ref)
drivers/net/ovpn/crypto.c
29
void ovpn_crypto_key_slot_release(struct kref *kref)
drivers/net/ovpn/crypto.c
33
ks = container_of(kref, struct ovpn_crypto_key_slot, refcount);
drivers/net/ovpn/crypto.h
122
void ovpn_crypto_key_slot_release(struct kref *kref);
drivers/net/ovpn/crypto.h
48
struct kref refcount;
drivers/net/ovpn/peer.c
365
void ovpn_peer_release_kref(struct kref *kref)
drivers/net/ovpn/peer.c
367
struct ovpn_peer *peer = container_of(kref, struct ovpn_peer, refcount);
drivers/net/ovpn/peer.h
111
struct kref refcount;
drivers/net/ovpn/peer.h
129
void ovpn_peer_release_kref(struct kref *kref);
drivers/net/ovpn/socket.c
22
static void ovpn_socket_release_kref(struct kref *kref)
drivers/net/ovpn/socket.c
24
struct ovpn_socket *sock = container_of(kref, struct ovpn_socket,
drivers/net/ovpn/socket.h
40
struct kref refcount;
drivers/net/phy/sfp-bus.c
18
struct kref kref;
drivers/net/phy/sfp-bus.c
397
kref_get(&sfp->kref);
drivers/net/phy/sfp-bus.c
404
kref_init(&new->kref);
drivers/net/phy/sfp-bus.c
418
static void sfp_bus_release(struct kref *kref)
drivers/net/phy/sfp-bus.c
420
struct sfp_bus *bus = container_of(kref, struct sfp_bus, kref);
drivers/net/phy/sfp-bus.c
437
kref_put_mutex(&bus->kref, sfp_bus_release, &sfp_mutex);
drivers/net/phy/sfp-bus.c
667
kref_get(&bus->kref);
drivers/net/pse-pd/pse_core.c
1356
static void __pse_control_release(struct kref *kref)
drivers/net/pse-pd/pse_core.c
1358
struct pse_control *psec = container_of(kref, struct pse_control,
drivers/net/pse-pd/pse_core.c
41
struct kref refcnt;
drivers/net/pse-pd/pse_core.c
56
struct kref refcnt;
drivers/net/pse-pd/pse_core.c
881
static void __pse_pw_d_release(struct kref *kref)
drivers/net/pse-pd/pse_core.c
883
struct pse_power_domain *pw_d = container_of(kref,
drivers/net/usb/hso.c
258
struct kref ref;
drivers/net/usb/hso.c
3089
static void hso_serial_ref_free(struct kref *ref)
drivers/net/usb/hso.c
310
static void hso_serial_ref_free(struct kref *ref);
drivers/net/wireguard/noise.c
117
static void keypair_free_kref(struct kref *kref)
drivers/net/wireguard/noise.c
120
container_of(kref, struct noise_keypair, refcount);
drivers/net/wireguard/noise.h
38
struct kref refcount;
drivers/net/wireguard/peer.c
200
static void kref_release(struct kref *refcount)
drivers/net/wireguard/peer.h
61
struct kref refcount;
drivers/net/wireless/ath/carl9170/carl9170.h
500
struct kref ref;
drivers/net/wireless/ath/carl9170/tx.c
262
static void carl9170_tx_release(struct kref *ref)
drivers/net/wwan/t7xx/t7xx_state_monitor.c
107
static void fsm_release_command(struct kref *ref)
drivers/net/wwan/t7xx/t7xx_state_monitor.h
115
struct kref refcnt;
drivers/nvdimm/core.c
121
static void nvdimm_map_release(struct kref *kref)
drivers/nvdimm/core.c
126
nvdimm_map = container_of(kref, struct nvdimm_map, kref);
drivers/nvdimm/core.c
145
kref_put(&nvdimm_map->kref, nvdimm_map_release);
drivers/nvdimm/core.c
165
kref_get(&nvdimm_map->kref);
drivers/nvdimm/core.c
62
struct kref kref;
drivers/nvdimm/core.c
92
kref_init(&nvdimm_map->kref);
drivers/nvdimm/dimm.c
54
kref_init(&ndd->kref);
drivers/nvdimm/dimm_devs.c
222
void nvdimm_drvdata_release(struct kref *kref)
drivers/nvdimm/dimm_devs.c
224
struct nvdimm_drvdata *ndd = container_of(kref, typeof(*ndd), kref);
drivers/nvdimm/dimm_devs.c
241
kref_get(&ndd->kref);
drivers/nvdimm/dimm_devs.c
247
kref_put(&ndd->kref, nvdimm_drvdata_release);
drivers/nvdimm/nd.h
36
struct kref kref;
drivers/nvdimm/nd.h
640
void nvdimm_drvdata_release(struct kref *kref);
drivers/nvme/host/core.c
3109
static void nvme_destroy_subsystem(struct kref *ref)
drivers/nvme/host/core.c
4131
kref_init(&ns->kref);
drivers/nvme/host/core.c
665
static void nvme_free_ns_head(struct kref *ref)
drivers/nvme/host/core.c
688
static void nvme_free_ns(struct kref *kref)
drivers/nvme/host/core.c
690
struct nvme_ns *ns = container_of(kref, struct nvme_ns, kref);
drivers/nvme/host/core.c
700
return kref_get_unless_zero(&ns->kref);
drivers/nvme/host/core.c
705
kref_put(&ns->kref, nvme_free_ns);
drivers/nvme/host/fabrics.c
107
static void nvmf_host_destroy(struct kref *ref)
drivers/nvme/host/fabrics.h
30
struct kref ref;
drivers/nvme/host/fc.c
126
struct kref ref;
drivers/nvme/host/fc.c
141
struct kref ref;
drivers/nvme/host/fc.c
172
struct kref ref;
drivers/nvme/host/fc.c
2356
nvme_fc_ctrl_free(struct kref *ref)
drivers/nvme/host/fc.c
240
nvme_fc_free_lport(struct kref *ref)
drivers/nvme/host/fc.c
513
nvme_fc_free_rport(struct kref *ref)
drivers/nvme/host/nvme.h
489
struct kref ref;
drivers/nvme/host/nvme.h
535
struct kref ref;
drivers/nvme/host/nvme.h
594
struct kref kref;
drivers/nvme/host/rdma.c
343
static void nvme_rdma_free_dev(struct kref *ref)
drivers/nvme/host/rdma.c
45
struct kref ref;
drivers/nvme/target/core.c
1733
static void nvmet_ctrl_free(struct kref *ref)
drivers/nvme/target/core.c
1900
static void nvmet_subsys_free(struct kref *ref)
drivers/nvme/target/fc.c
114
struct kref ref;
drivers/nvme/target/fc.c
1162
nvmet_fc_target_assoc_free(struct kref *ref)
drivers/nvme/target/fc.c
1440
nvmet_fc_free_tgtport(struct kref *ref)
drivers/nvme/target/fc.c
149
struct kref ref;
drivers/nvme/target/fc.c
158
struct kref ref;
drivers/nvme/target/fc.c
171
struct kref ref;
drivers/nvme/target/fc.c
837
nvmet_fc_tgt_queue_free(struct kref *ref)
drivers/nvme/target/fc.c
970
nvmet_fc_hostport_free(struct kref *ref)
drivers/nvme/target/nvmet.h
279
struct kref ref;
drivers/nvme/target/nvmet.h
319
struct kref ref;
drivers/nvme/target/rdma.c
1178
static void nvmet_rdma_free_dev(struct kref *ref)
drivers/nvme/target/rdma.c
139
struct kref ref;
drivers/nvme/target/tcp.c
1382
static void nvmet_tcp_release_queue(struct kref *kref)
drivers/nvme/target/tcp.c
1385
container_of(kref, struct nvmet_tcp_queue, kref);
drivers/nvme/target/tcp.c
1400
kref_put(&queue->kref, nvmet_tcp_release_queue);
drivers/nvme/target/tcp.c
154
struct kref kref;
drivers/nvme/target/tcp.c
1838
kref_put(&queue->kref, nvmet_tcp_release_queue);
drivers/nvme/target/tcp.c
1860
kref_put(&queue->kref, nvmet_tcp_release_queue);
drivers/nvme/target/tcp.c
1873
kref_get(&queue->kref);
drivers/nvme/target/tcp.c
1884
kref_put(&queue->kref, nvmet_tcp_release_queue);
drivers/nvme/target/tcp.c
1911
kref_init(&queue->kref);
drivers/nvmem/core.c
1049
static void nvmem_device_release(struct kref *kref)
drivers/nvmem/core.c
1053
nvmem = container_of(kref, struct nvmem_device, refcnt);
drivers/nvmem/internals.h
17
struct kref refcnt;
drivers/of/dynamic.c
526
if (kref_read(&ce->np->kobj.kref) > 1) {
drivers/of/dynamic.c
528
kref_read(&ce->np->kobj.kref), ce->np);
drivers/of/unittest.c
3667
refcount = kref_read(&np->kobj.kref);
drivers/of/unittest.c
54
#define OF_KREF_READ(NODE) kref_read(&(NODE)->kobj.kref)
drivers/opp/core.c
1568
kref_init(&opp_table->kref);
drivers/opp/core.c
1707
static void _opp_table_kref_release(struct kref *kref)
drivers/opp/core.c
1709
struct opp_table *opp_table = container_of(kref, struct opp_table, kref);
drivers/opp/core.c
1743
kref_get(&opp_table->kref);
drivers/opp/core.c
1750
kref_put_mutex(&opp_table->kref, _opp_table_kref_release,
drivers/opp/core.c
1760
static void _opp_kref_release(struct kref *kref)
drivers/opp/core.c
1762
struct dev_pm_opp *opp = container_of(kref, struct dev_pm_opp, kref);
drivers/opp/core.c
1780
kref_get(&opp->kref);
drivers/opp/core.c
1787
kref_put_mutex(&opp->kref, _opp_kref_release, &opp->opp_table->lock);
drivers/opp/core.c
2094
kref_init(&new_opp->kref);
drivers/opp/opp.h
110
struct kref kref;
drivers/opp/opp.h
212
struct kref kref;
drivers/pci/hotplug/acpiphp.h
59
struct kref ref;
drivers/pci/hotplug/acpiphp_glue.c
149
static void free_bridge(struct kref *kref)
drivers/pci/hotplug/acpiphp_glue.c
158
bridge = container_of(kref, struct acpiphp_bridge, ref);
drivers/pci/hotplug/acpiphp_glue.c
51
static void free_bridge(struct kref *kref);
drivers/pci/hotplug/pnv_php.c
72
static void pnv_php_free_slot(struct kref *kref)
drivers/pci/hotplug/pnv_php.c
74
struct pnv_php_slot *php_slot = container_of(kref,
drivers/pci/hotplug/pnv_php.c
75
struct pnv_php_slot, kref);
drivers/pci/hotplug/pnv_php.c
818
kref_init(&php_slot->kref);
drivers/pci/hotplug/pnv_php.c
90
kref_put(&php_slot->kref, pnv_php_free_slot);
drivers/pci/hotplug/pnv_php.c
99
kref_get(&php_slot->kref);
drivers/pci/slot.c
319
slot->number, kref_read(&slot->kobj.kref) - 1);
drivers/pci/switch/switchtec.c
105
static void stuser_free(struct kref *kref)
drivers/pci/switch/switchtec.c
109
stuser = container_of(kref, struct switchtec_user, kref);
drivers/pci/switch/switchtec.c
119
kref_put(&stuser->kref, stuser_free);
drivers/pci/switch/switchtec.c
193
kref_get(&stuser->kref);
drivers/pci/switch/switchtec.c
59
struct kref kref;
drivers/pci/switch/switchtec.c
95
kref_init(&stuser->kref);
drivers/pcmcia/cs_internal.h
30
struct kref ref;
drivers/pcmcia/ds.c
230
static void pcmcia_release_function(struct kref *ref)
drivers/pinctrl/core.c
1209
static void pinctrl_release(struct kref *kref)
drivers/pinctrl/core.c
1211
struct pinctrl *p = container_of(kref, struct pinctrl, users);
drivers/pinctrl/core.h
93
struct kref users;
drivers/platform/cznic/turris-signing-key.c
139
key_ref_t kref;
drivers/platform/cznic/turris-signing-key.c
141
kref = key_create(make_key_ref(turris_signing_keyring, true),
drivers/platform/cznic/turris-signing-key.c
146
if (IS_ERR(kref))
drivers/platform/cznic/turris-signing-key.c
147
return PTR_ERR(kref);
drivers/platform/cznic/turris-signing-key.c
149
key = key_ref_to_ptr(kref);
drivers/platform/raspberrypi/vchiq-interface/vchiq_core.c
373
static void service_release(struct kref *kref)
drivers/platform/raspberrypi/vchiq-interface/vchiq_core.c
376
container_of(kref, struct vchiq_service, ref_count);
drivers/platform/surface/aggregator/controller.c
1210
kref_init(&ctrl->kref);
drivers/platform/surface/aggregator/controller.c
882
static void __ssam_controller_release(struct kref *kref)
drivers/platform/surface/aggregator/controller.c
884
struct ssam_controller *ctrl = to_ssam_controller(kref, kref);
drivers/platform/surface/aggregator/controller.c
907
kref_get(&c->kref);
drivers/platform/surface/aggregator/controller.c
919
kref_put(&c->kref, __ssam_controller_release);
drivers/platform/surface/aggregator/controller.h
199
struct kref kref;
drivers/platform/surface/aggregator/core.c
65
if (WARN_ON(!kref_get_unless_zero(&ctrl->kref)))
drivers/platform/surface/aggregator/ssh_packet_layer.c
510
static void __ssh_ptl_packet_release(struct kref *kref)
drivers/platform/surface/aggregator/ssh_packet_layer.c
512
struct ssh_packet *p = container_of(kref, struct ssh_packet, refcnt);
drivers/platform/surface/surface_aggregator_cdev.c
37
struct kref kref;
drivers/platform/surface/surface_aggregator_cdev.c
692
kref_init(&cdev->kref);
drivers/platform/surface/surface_aggregator_cdev.c
71
static void __ssam_cdev_release(struct kref *kref)
drivers/platform/surface/surface_aggregator_cdev.c
73
kfree(container_of(kref, struct ssam_cdev, kref));
drivers/platform/surface/surface_aggregator_cdev.c
79
kref_get(&cdev->kref);
drivers/platform/surface/surface_aggregator_cdev.c
87
kref_put(&cdev->kref, __ssam_cdev_release);
drivers/platform/surface/surface_dtx.c
146
struct kref kref;
drivers/platform/surface/surface_dtx.c
187
static void __sdtx_device_release(struct kref *kref)
drivers/platform/surface/surface_dtx.c
189
struct sdtx_device *ddev = container_of(kref, struct sdtx_device, kref);
drivers/platform/surface/surface_dtx.c
198
kref_get(&ddev->kref);
drivers/platform/surface/surface_dtx.c
206
kref_put(&ddev->kref, __sdtx_device_release);
drivers/platform/surface/surface_dtx.c
948
kref_init(&ddev->kref);
drivers/platform/x86/intel/pmt/class.h
31
struct kref kref;
drivers/platform/x86/intel/pmt/telemetry.c
124
kref_init(&ep->kref);
drivers/platform/x86/intel/pmt/telemetry.c
138
static void pmt_telem_ep_release(struct kref *kref)
drivers/platform/x86/intel/pmt/telemetry.c
142
ep = container_of(kref, struct telem_endpoint, kref);
drivers/platform/x86/intel/pmt/telemetry.c
178
kref_get(&entry->ep->kref);
drivers/platform/x86/intel/pmt/telemetry.c
187
kref_put(&ep->kref, pmt_telem_ep_release);
drivers/platform/x86/intel/pmt/telemetry.c
236
static void pmt_feature_group_release(struct kref *kref)
drivers/platform/x86/intel/pmt/telemetry.c
240
feature_group = container_of(kref, struct pmt_feature_group, kref);
drivers/platform/x86/intel/pmt/telemetry.c
286
kref_init(&feature_group->kref);
drivers/platform/x86/intel/pmt/telemetry.c
294
kref_put(&feature_group->kref, pmt_feature_group_release);
drivers/platform/x86/intel/pmt/telemetry.c
371
kref_put(&entry->ep->kref, pmt_telem_ep_release);
drivers/power/sequencing/core.c
118
static void pwrseq_unit_release(struct kref *ref);
drivers/power/sequencing/core.c
166
static void pwrseq_unit_release(struct kref *ref)
drivers/power/sequencing/core.c
80
struct kref ref;
drivers/rapidio/devices/rio_mport_cdev.c
118
struct kref ref; /* refcount of vmas sharing the mapping */
drivers/rapidio/devices/rio_mport_cdev.c
159
struct kref dma_ref;
drivers/rapidio/devices/rio_mport_cdev.c
193
struct kref dma_ref;
drivers/rapidio/devices/rio_mport_cdev.c
2128
static void mport_release_mapping(struct kref *ref)
drivers/rapidio/devices/rio_mport_cdev.c
238
static void mport_release_mapping(struct kref *ref);
drivers/rapidio/devices/rio_mport_cdev.c
517
struct kref refcount;
drivers/rapidio/devices/rio_mport_cdev.c
533
static void mport_release_def_dma(struct kref *dma_ref)
drivers/rapidio/devices/rio_mport_cdev.c
543
static void mport_release_dma(struct kref *dma_ref)
drivers/rapidio/devices/rio_mport_cdev.c
552
static void dma_req_free(struct kref *ref)
drivers/rapidio/rio_cm.c
1362
static void riocm_ch_free(struct kref *ref)
drivers/rapidio/rio_cm.c
178
struct kref ref; /* channel refcount */
drivers/rapidio/rio_cm.c
219
static void riocm_ch_free(struct kref *ref);
drivers/remoteproc/remoteproc_internal.h
58
void rproc_release(struct kref *kref);
drivers/reset/core.c
55
struct kref refcnt;
drivers/reset/core.c
801
static void __reset_control_release(struct kref *kref)
drivers/reset/core.c
803
struct reset_control *rstc = container_of(kref, struct reset_control,
drivers/rpmsg/mtk_rpmsg.c
65
static void __mtk_ept_release(struct kref *kref)
drivers/rpmsg/mtk_rpmsg.c
67
struct rpmsg_endpoint *ept = container_of(kref, struct rpmsg_endpoint,
drivers/rpmsg/qcom_glink_native.c
169
struct kref refcount;
drivers/rpmsg/qcom_glink_native.c
260
static void qcom_glink_channel_release(struct kref *ref)
drivers/rpmsg/qcom_smd.c
894
static void __ept_release(struct kref *kref)
drivers/rpmsg/qcom_smd.c
896
struct rpmsg_endpoint *ept = container_of(kref, struct rpmsg_endpoint,
drivers/rpmsg/virtio_rpmsg_bus.c
192
static void __ept_release(struct kref *kref)
drivers/rpmsg/virtio_rpmsg_bus.c
194
struct rpmsg_endpoint *ept = container_of(kref, struct rpmsg_endpoint,
drivers/s390/crypto/zcrypt_api.h
106
struct kref refcount; /* device refcounting */
drivers/s390/crypto/zcrypt_api.h
123
struct kref refcount; /* device refcounting */
drivers/s390/crypto/zcrypt_card.c
157
static void zcrypt_card_release(struct kref *kref)
drivers/s390/crypto/zcrypt_card.c
160
container_of(kref, struct zcrypt_card, refcount);
drivers/s390/crypto/zcrypt_queue.c
142
static void zcrypt_queue_release(struct kref *kref)
drivers/s390/crypto/zcrypt_queue.c
145
container_of(kref, struct zcrypt_queue, refcount);
drivers/s390/scsi/zfcp_aux.c
469
void zfcp_adapter_release(struct kref *ref)
drivers/s390/scsi/zfcp_def.h
149
struct kref ref;
drivers/s390/scsi/zfcp_ext.h
24
extern void zfcp_adapter_release(struct kref *);
drivers/scsi/bnx2fc/bnx2fc.h
260
struct kref kref;
drivers/scsi/bnx2fc/bnx2fc.h
420
struct kref refcount;
drivers/scsi/bnx2fc/bnx2fc.h
500
void bnx2fc_cmd_release(struct kref *ref);
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
1300
static void bnx2fc_interface_release(struct kref *kref)
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
1307
interface = container_of(kref, struct bnx2fc_interface, kref);
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
1326
kref_get(&interface->kref);
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
1331
kref_put(&interface->kref, bnx2fc_interface_release);
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
1450
kref_init(&interface->kref);
drivers/scsi/bnx2fc/bnx2fc_io.c
515
void bnx2fc_cmd_release(struct kref *ref)
drivers/scsi/ch.c
110
struct kref ref;
drivers/scsi/ch.c
573
static void ch_destroy(struct kref *ref)
drivers/scsi/csiostor/csio_lnode.c
1352
csio_free_fcfinfo(struct kref *kref)
drivers/scsi/csiostor/csio_lnode.c
1354
struct csio_fcf_info *fcfinfo = container_of(kref,
drivers/scsi/csiostor/csio_lnode.c
1355
struct csio_fcf_info, kref);
drivers/scsi/csiostor/csio_lnode.c
2013
kref_init(&ln->fcfinfo->kref);
drivers/scsi/csiostor/csio_lnode.c
2028
kref_get(&pln->fcfinfo->kref);
drivers/scsi/csiostor/csio_lnode.c
2039
kref_init(&ln->fcfinfo->kref);
drivers/scsi/csiostor/csio_lnode.c
2060
kref_put(&pln->fcfinfo->kref, csio_free_fcfinfo);
drivers/scsi/csiostor/csio_lnode.c
2062
kref_put(&ln->fcfinfo->kref, csio_free_fcfinfo);
drivers/scsi/csiostor/csio_lnode.h
75
struct kref kref;
drivers/scsi/cxgbi/libcxgbi.h
144
struct kref refcnt;
drivers/scsi/cxgbi/libcxgbi.h
307
static inline void cxgbi_sock_free(struct kref *kref)
drivers/scsi/cxgbi/libcxgbi.h
309
struct cxgbi_sock *csk = container_of(kref,
drivers/scsi/device_handler/scsi_dh_alua.c
1030
kref_get(&pg->kref);
drivers/scsi/device_handler/scsi_dh_alua.c
1039
kref_get(&pg->kref);
drivers/scsi/device_handler/scsi_dh_alua.c
1051
kref_put(&pg->kref, release_port_group);
drivers/scsi/device_handler/scsi_dh_alua.c
109
static void release_port_group(struct kref *kref)
drivers/scsi/device_handler/scsi_dh_alua.c
113
pg = container_of(kref, struct alua_port_group, kref);
drivers/scsi/device_handler/scsi_dh_alua.c
1151
if (!pg || !kref_get_unless_zero(&pg->kref)) {
drivers/scsi/device_handler/scsi_dh_alua.c
1167
kref_put(&pg->kref, release_port_group);
drivers/scsi/device_handler/scsi_dh_alua.c
1187
if (!pg || !kref_get_unless_zero(&pg->kref)) {
drivers/scsi/device_handler/scsi_dh_alua.c
1193
kref_put(&pg->kref, release_port_group);
drivers/scsi/device_handler/scsi_dh_alua.c
1280
kref_put(&pg->kref, release_port_group);
drivers/scsi/device_handler/scsi_dh_alua.c
200
if (!kref_get_unless_zero(&pg->kref))
drivers/scsi/device_handler/scsi_dh_alua.c
245
kref_init(&pg->kref);
drivers/scsi/device_handler/scsi_dh_alua.c
363
kref_get(&pg->kref);
drivers/scsi/device_handler/scsi_dh_alua.c
387
kref_put(&pg->kref, release_port_group);
drivers/scsi/device_handler/scsi_dh_alua.c
390
kref_put(&old_pg->kref, release_port_group);
drivers/scsi/device_handler/scsi_dh_alua.c
62
struct kref kref;
drivers/scsi/device_handler/scsi_dh_alua.c
711
kref_put(&tmp_pg->kref, release_port_group);
drivers/scsi/device_handler/scsi_dh_alua.c
902
kref_put(&pg->kref, release_port_group);
drivers/scsi/device_handler/scsi_dh_alua.c
984
kref_put(&pg->kref, release_port_group);
drivers/scsi/device_handler/scsi_dh_rdac.c
154
struct kref kref;
drivers/scsi/device_handler/scsi_dh_rdac.c
317
static void release_controller(struct kref *kref)
drivers/scsi/device_handler/scsi_dh_rdac.c
320
ctlr = container_of(kref, struct rdac_controller, kref);
drivers/scsi/device_handler/scsi_dh_rdac.c
335
kref_get(&tmp->kref);
drivers/scsi/device_handler/scsi_dh_rdac.c
349
kref_init(&ctlr->kref);
drivers/scsi/device_handler/scsi_dh_rdac.c
776
kref_put(&h->ctlr->kref, release_controller);
drivers/scsi/device_handler/scsi_dh_rdac.c
794
kref_put(&h->ctlr->kref, release_controller);
drivers/scsi/elx/efct/efct_hw.c
1654
efct_hw_io_free_internal(struct kref *arg)
drivers/scsi/elx/efct/efct_hw.h
216
struct kref ref;
drivers/scsi/elx/efct/efct_hw.h
218
void (*release)(struct kref *arg);
drivers/scsi/elx/efct/efct_hw.h
641
void efct_hw_io_free_internal(struct kref *arg);
drivers/scsi/elx/efct/efct_io.h
104
struct kref ref;
drivers/scsi/elx/efct/efct_io.h
105
void (*release)(struct kref *arg);
drivers/scsi/elx/efct/efct_lio.c
1056
_efct_tgt_node_free(struct kref *arg)
drivers/scsi/elx/efct/efct_lio.h
70
struct kref ref;
drivers/scsi/elx/efct/efct_lio.h
71
void (*release)(struct kref *arg);
drivers/scsi/elx/efct/efct_scsi.c
75
_efct_scsi_io_free(struct kref *arg)
drivers/scsi/elx/efct/efct_scsi.h
190
void _efct_scsi_io_free(struct kref *arg);
drivers/scsi/elx/libefc/efc_domain.c
104
_efc_domain_free(struct kref *arg)
drivers/scsi/elx/libefc/efc_els.c
107
_efc_els_io_free(struct kref *arg)
drivers/scsi/elx/libefc/efc_els.h
15
struct kref ref;
drivers/scsi/elx/libefc/efc_els.h
16
void (*release)(struct kref *arg);
drivers/scsi/elx/libefc/efc_els.h
31
void _efc_els_io_free(struct kref *arg);
drivers/scsi/elx/libefc/efc_node.c
32
_efc_node_free(struct kref *arg)
drivers/scsi/elx/libefc/efc_nport.c
58
_efc_nport_free(struct kref *arg)
drivers/scsi/elx/libefc/efclib.h
139
struct kref ref;
drivers/scsi/elx/libefc/efclib.h
140
void (*release)(struct kref *arg);
drivers/scsi/elx/libefc/efclib.h
214
struct kref ref;
drivers/scsi/elx/libefc/efclib.h
215
void (*release)(struct kref *arg);
drivers/scsi/elx/libefc/efclib.h
324
struct kref ref;
drivers/scsi/elx/libefc/efclib.h
325
void (*release)(struct kref *arg);
drivers/scsi/fcoe/fcoe_ctlr.c
2165
if (kref_get_unless_zero(&rdata->kref)) {
drivers/scsi/fcoe/fcoe_ctlr.c
2167
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/fcoe/fcoe_ctlr.c
2553
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/fcoe/fcoe_ctlr.c
2664
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/fcoe/fcoe_ctlr.c
2701
if (!kref_get_unless_zero(&rdata->kref))
drivers/scsi/fcoe/fcoe_ctlr.c
2705
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/fcoe/fcoe_ctlr.c
2718
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/fcoe/fcoe_ctlr.c
3056
if (!kref_get_unless_zero(&rdata->kref))
drivers/scsi/fcoe/fcoe_ctlr.c
3061
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/ibmvscsi/ibmvfc.c
1237
kref_get(&tgt->kref);
drivers/scsi/ibmvscsi/ibmvfc.c
1366
static void ibmvfc_release_tgt(struct kref *kref)
drivers/scsi/ibmvscsi/ibmvfc.c
1368
struct ibmvfc_target *tgt = container_of(kref, struct ibmvfc_target, kref);
drivers/scsi/ibmvscsi/ibmvfc.c
1384
kref_put(&tgt->kref, ibmvfc_release_tgt);
drivers/scsi/ibmvscsi/ibmvfc.c
1399
kref_put(&tgt->kref, ibmvfc_release_tgt);
drivers/scsi/ibmvscsi/ibmvfc.c
1414
kref_put(&tgt->kref, ibmvfc_release_tgt);
drivers/scsi/ibmvscsi/ibmvfc.c
4091
kref_put(&tgt->kref, ibmvfc_release_tgt);
drivers/scsi/ibmvscsi/ibmvfc.c
4110
kref_get(&tgt->kref);
drivers/scsi/ibmvscsi/ibmvfc.c
4114
kref_put(&tgt->kref, ibmvfc_release_tgt);
drivers/scsi/ibmvscsi/ibmvfc.c
4145
kref_put(&tgt->kref, ibmvfc_release_tgt);
drivers/scsi/ibmvscsi/ibmvfc.c
4203
kref_put(&tgt->kref, ibmvfc_release_tgt);
drivers/scsi/ibmvscsi/ibmvfc.c
4222
kref_get(&tgt->kref);
drivers/scsi/ibmvscsi/ibmvfc.c
4227
kref_put(&tgt->kref, ibmvfc_release_tgt);
drivers/scsi/ibmvscsi/ibmvfc.c
4250
kref_put(&tgt->kref, ibmvfc_release_tgt);
drivers/scsi/ibmvscsi/ibmvfc.c
4276
kref_put(&tgt->kref, ibmvfc_release_tgt);
drivers/scsi/ibmvscsi/ibmvfc.c
4286
kref_put(&tgt->kref, ibmvfc_release_tgt);
drivers/scsi/ibmvscsi/ibmvfc.c
4305
kref_get(&tgt->kref);
drivers/scsi/ibmvscsi/ibmvfc.c
4339
kref_put(&tgt->kref, ibmvfc_release_tgt);
drivers/scsi/ibmvscsi/ibmvfc.c
4348
kref_put(&tgt->kref, ibmvfc_release_tgt);
drivers/scsi/ibmvscsi/ibmvfc.c
4381
kref_put(&tgt->kref, ibmvfc_release_tgt);
drivers/scsi/ibmvscsi/ibmvfc.c
4411
kref_put(&tgt->kref, ibmvfc_release_tgt);
drivers/scsi/ibmvscsi/ibmvfc.c
4460
kref_put(&tgt->kref, ibmvfc_release_tgt);
drivers/scsi/ibmvscsi/ibmvfc.c
4480
kref_get(&tgt->kref);
drivers/scsi/ibmvscsi/ibmvfc.c
4484
kref_put(&tgt->kref, ibmvfc_release_tgt);
drivers/scsi/ibmvscsi/ibmvfc.c
4506
kref_put(&tgt->kref, ibmvfc_release_tgt);
drivers/scsi/ibmvscsi/ibmvfc.c
4569
kref_put(&tgt->kref, ibmvfc_release_tgt);
drivers/scsi/ibmvscsi/ibmvfc.c
4620
kref_put(&tgt->kref, ibmvfc_release_tgt);
drivers/scsi/ibmvscsi/ibmvfc.c
4652
kref_get(&tgt->kref);
drivers/scsi/ibmvscsi/ibmvfc.c
4657
kref_put(&tgt->kref, ibmvfc_release_tgt);
drivers/scsi/ibmvscsi/ibmvfc.c
4683
kref_put(&tgt->kref, ibmvfc_release_tgt);
drivers/scsi/ibmvscsi/ibmvfc.c
4710
kref_get(&tgt->kref);
drivers/scsi/ibmvscsi/ibmvfc.c
4714
kref_put(&tgt->kref, ibmvfc_release_tgt);
drivers/scsi/ibmvscsi/ibmvfc.c
4747
kref_put(&tgt->kref, ibmvfc_release_tgt);
drivers/scsi/ibmvscsi/ibmvfc.c
4800
kref_put(&tgt->kref, ibmvfc_release_tgt);
drivers/scsi/ibmvscsi/ibmvfc.c
4819
kref_get(&tgt->kref);
drivers/scsi/ibmvscsi/ibmvfc.c
4823
kref_put(&tgt->kref, ibmvfc_release_tgt);
drivers/scsi/ibmvscsi/ibmvfc.c
4841
kref_put(&tgt->kref, ibmvfc_release_tgt);
drivers/scsi/ibmvscsi/ibmvfc.c
4926
kref_init(&tgt->kref);
drivers/scsi/ibmvscsi/ibmvfc.c
5525
kref_put(&tgt->kref, ibmvfc_release_tgt);
drivers/scsi/ibmvscsi/ibmvfc.c
5678
kref_put(&tgt->kref, ibmvfc_release_tgt);
drivers/scsi/ibmvscsi/ibmvfc.c
6283
kref_get(&tgt->kref);
drivers/scsi/ibmvscsi/ibmvfc.c
6297
kref_put(&tgt->kref, ibmvfc_release_tgt);
drivers/scsi/ibmvscsi/ibmvfc.h
745
struct kref kref;
drivers/scsi/ipr.c
3215
static void ipr_release_dump(struct kref *kref)
drivers/scsi/ipr.c
3217
struct ipr_dump *dump = container_of(kref, struct ipr_dump, kref);
drivers/scsi/ipr.c
3322
kref_get(&dump->kref);
drivers/scsi/ipr.c
3325
kref_put(&dump->kref, ipr_release_dump);
drivers/scsi/ipr.c
4197
kref_get(&dump->kref);
drivers/scsi/ipr.c
4201
kref_put(&dump->kref, ipr_release_dump);
drivers/scsi/ipr.c
4259
kref_put(&dump->kref, ipr_release_dump);
drivers/scsi/ipr.c
4298
kref_init(&dump->kref);
drivers/scsi/ipr.c
4345
kref_put(&dump->kref, ipr_release_dump);
drivers/scsi/ipr.h
1661
struct kref kref;
drivers/scsi/isci/remote_device.c
1490
void isci_remote_device_release(struct kref *kref)
drivers/scsi/isci/remote_device.c
1492
struct isci_remote_device *idev = container_of(kref, typeof(*idev), kref);
drivers/scsi/isci/remote_device.c
1586
kref_init(&isci_device->kref);
drivers/scsi/isci/remote_device.c
604
kref_get(&idev->kref);
drivers/scsi/isci/remote_device.h
116
kref_get(&idev->kref);
drivers/scsi/isci/remote_device.h
125
kref_get(&idev->kref);
drivers/scsi/isci/remote_device.h
132
void isci_remote_device_release(struct kref *kref);
drivers/scsi/isci/remote_device.h
136
kref_put(&idev->kref, isci_remote_device_release);
drivers/scsi/isci/remote_device.h
92
struct kref kref;
drivers/scsi/libfc/fc_disc.c
276
if (!kref_get_unless_zero(&rdata->kref))
drivers/scsi/libfc/fc_disc.c
284
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_disc.c
58
if (kref_get_unless_zero(&rdata->kref)) {
drivers/scsi/libfc/fc_disc.c
60
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_disc.c
633
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_disc.c
657
kref_get(&rdata->kref);
drivers/scsi/libfc/fc_exch.c
2402
kref_get(&mp->kref);
drivers/scsi/libfc/fc_exch.c
2411
static void fc_exch_mgr_destroy(struct kref *kref)
drivers/scsi/libfc/fc_exch.c
2413
struct fc_exch_mgr *mp = container_of(kref, struct fc_exch_mgr, kref);
drivers/scsi/libfc/fc_exch.c
2428
kref_put(&ema->mp->kref, fc_exch_mgr_destroy);
drivers/scsi/libfc/fc_exch.c
2531
kref_init(&mp->kref);
drivers/scsi/libfc/fc_exch.c
2542
kref_put(&mp->kref, fc_exch_mgr_destroy);
drivers/scsi/libfc/fc_exch.c
88
struct kref kref;
drivers/scsi/libfc/fc_lport.c
1010
kref_put(&lport->ptp_rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_lport.c
2185
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_lport.c
240
kref_put(&lport->ptp_rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_lport.c
250
kref_get(&lport->ptp_rdata->kref);
drivers/scsi/libfc/fc_rport.c
1046
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_rport.c
1096
kref_get(&rdata->kref);
drivers/scsi/libfc/fc_rport.c
1101
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_rport.c
112
kref_get_unless_zero(&tmp_rdata->kref)) {
drivers/scsi/libfc/fc_rport.c
1236
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_rport.c
1298
kref_get(&rdata->kref);
drivers/scsi/libfc/fc_rport.c
1302
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_rport.c
137
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_rport.c
1375
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_rport.c
1402
kref_get(&rdata->kref);
drivers/scsi/libfc/fc_rport.c
1407
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_rport.c
1463
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_rport.c
1485
kref_get(&rdata->kref);
drivers/scsi/libfc/fc_rport.c
1488
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_rport.c
152
kref_init(&rdata->kref);
drivers/scsi/libfc/fc_rport.c
1550
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_rport.c
1576
kref_get(&rdata->kref);
drivers/scsi/libfc/fc_rport.c
1581
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_rport.c
1726
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_rport.c
1735
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_rport.c
175
void fc_rport_destroy(struct kref *kref)
drivers/scsi/libfc/fc_rport.c
1769
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_rport.c
179
rdata = container_of(kref, struct fc_rport_priv, kref);
drivers/scsi/libfc/fc_rport.c
2172
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_rport.c
284
kref_get(&rdata->kref);
drivers/scsi/libfc/fc_rport.c
294
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_rport.c
320
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_rport.c
347
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_rport.c
369
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_rport.c
384
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_rport.c
403
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_rport.c
487
kref_get(&rdata->kref);
drivers/scsi/libfc/fc_rport.c
489
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_rport.c
553
kref_get(&rdata->kref);
drivers/scsi/libfc/fc_rport.c
556
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_rport.c
603
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_rport.c
678
kref_get(&rdata->kref);
drivers/scsi/libfc/fc_rport.c
680
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_rport.c
806
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_rport.c
839
kref_get(&rdata->kref);
drivers/scsi/libfc/fc_rport.c
844
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_rport.c
961
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libfc/fc_rport.c
966
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/libsas/sas_ata.c
853
kref_get(&dev->kref);
drivers/scsi/libsas/sas_discover.c
187
kref_get(&dev->kref);
drivers/scsi/libsas/sas_discover.c
285
void sas_free_device(struct kref *kref)
drivers/scsi/libsas/sas_discover.c
287
struct domain_device *dev = container_of(kref, typeof(*dev), kref);
drivers/scsi/libsas/sas_expander.c
824
kref_get(&parent->kref);
drivers/scsi/libsas/sas_expander.c
934
kref_get(&parent->kref);
drivers/scsi/libsas/sas_internal.h
102
void sas_free_device(struct kref *kref);
drivers/scsi/libsas/sas_internal.h
201
kref_init(&dev->kref);
drivers/scsi/libsas/sas_internal.h
209
kref_put(&dev->kref, sas_free_device);
drivers/scsi/libsas/sas_scsi_host.c
672
kref_get(&dev->kref);
drivers/scsi/libsas/sas_scsi_host.c
801
kref_get(&found_dev->kref);
drivers/scsi/lpfc/lpfc_bsg.c
55
struct kref kref;
drivers/scsi/lpfc/lpfc_bsg.c
791
lpfc_bsg_event_free(struct kref *kref)
drivers/scsi/lpfc/lpfc_bsg.c
793
struct lpfc_bsg_event *evt = container_of(kref, struct lpfc_bsg_event,
drivers/scsi/lpfc/lpfc_bsg.c
794
kref);
drivers/scsi/lpfc/lpfc_bsg.c
824
kref_get(&evt->kref);
drivers/scsi/lpfc/lpfc_bsg.c
834
kref_put(&evt->kref, lpfc_bsg_event_free);
drivers/scsi/lpfc/lpfc_bsg.c
859
kref_init(&evt->kref);
drivers/scsi/lpfc/lpfc_debugfs.c
903
kref_read(&ndlp->kref));
drivers/scsi/lpfc/lpfc_disc.h
156
struct kref kref;
drivers/scsi/lpfc/lpfc_els.c
1032
cmdiocb->iotag, tmo, kref_read(&ndlp->kref));
drivers/scsi/lpfc/lpfc_els.c
10526
cmd, did, kref_read(&ndlp->kref), vport->port_state,
drivers/scsi/lpfc/lpfc_els.c
1102
sp->cmn.priority_tagging, kref_read(&ndlp->kref));
drivers/scsi/lpfc/lpfc_els.c
11668
kref_read(&ndlp->kref), ndlp->nlp_flag,
drivers/scsi/lpfc/lpfc_els.c
2245
ndlp->nlp_DID, kref_read(&ndlp->kref), 0);
drivers/scsi/lpfc/lpfc_els.c
2371
did, kref_read(&ndlp->kref), 0);
drivers/scsi/lpfc/lpfc_els.c
2695
ndlp->nlp_DID, kref_read(&ndlp->kref), 0);
drivers/scsi/lpfc/lpfc_els.c
3027
ndlp->nlp_DID, kref_read(&ndlp->kref), 0);
drivers/scsi/lpfc/lpfc_els.c
3097
kref_read(&ndlp->kref), ndlp->nlp_flag,
drivers/scsi/lpfc/lpfc_els.c
3237
ndlp->nlp_DID, kref_read(&ndlp->kref), 0);
drivers/scsi/lpfc/lpfc_els.c
3607
ndlp->nlp_DID, kref_read(&ndlp->kref), 0);
drivers/scsi/lpfc/lpfc_els.c
3710
ndlp->nlp_DID, kref_read(&ndlp->kref), 0);
drivers/scsi/lpfc/lpfc_els.c
3906
ndlp->nlp_DID, kref_read(&ndlp->kref), 0);
drivers/scsi/lpfc/lpfc_els.c
4250
ndlp->nlp_DID, kref_read(&ndlp->kref), 0);
drivers/scsi/lpfc/lpfc_els.c
4426
ndlp->nlp_DID, kref_read(&ndlp->kref), 0);
drivers/scsi/lpfc/lpfc_els.c
5332
ndlp->nlp_DID, kref_read(&ndlp->kref),
drivers/scsi/lpfc/lpfc_els.c
5393
kref_read(&ndlp->kref), ndlp, mbx_cmd,
drivers/scsi/lpfc/lpfc_els.c
5476
ndlp->nlp_rpi, kref_read(&ndlp->kref), mbox, ndlp);
drivers/scsi/lpfc/lpfc_els.c
5864
ndlp->nlp_rpi, vport->fc_flag, kref_read(&ndlp->kref));
drivers/scsi/lpfc/lpfc_els.c
6034
kref_read(&ndlp->kref));
drivers/scsi/lpfc/lpfc_els.c
6140
ndlp->nlp_DID, ndlp->nlp_flag, kref_read(&ndlp->kref));
drivers/scsi/lpfc/lpfc_els.c
6332
ndlp->nlp_DID, ndlp->nlp_flag, kref_read(&ndlp->kref));
drivers/scsi/lpfc/lpfc_els.c
6446
ndlp->nlp_DID, ndlp->nlp_flag, kref_read(&ndlp->kref));
drivers/scsi/lpfc/lpfc_els.c
6580
ndlp->nlp_DID, ndlp->nlp_flag, kref_read(&ndlp->kref));
drivers/scsi/lpfc/lpfc_hbadisc.c
181
vport->load_flag, kref_read(&ndlp->kref),
drivers/scsi/lpfc/lpfc_hbadisc.c
241
ndlp->nlp_state, kref_read(&ndlp->kref));
drivers/scsi/lpfc/lpfc_hbadisc.c
299
vport->load_flag, kref_read(&ndlp->kref));
drivers/scsi/lpfc/lpfc_hbadisc.c
3874
kref_read(&ndlp->kref),
drivers/scsi/lpfc/lpfc_hbadisc.c
433
ndlp->nlp_DID, kref_read(&ndlp->kref), ndlp,
drivers/scsi/lpfc/lpfc_hbadisc.c
4366
kref_read(&ndlp->kref),
drivers/scsi/lpfc/lpfc_hbadisc.c
4541
kref_read(&ndlp->kref));
drivers/scsi/lpfc/lpfc_hbadisc.c
4568
kref_read(&ndlp->kref));
drivers/scsi/lpfc/lpfc_hbadisc.c
4697
kref_read(&ndlp->kref));
drivers/scsi/lpfc/lpfc_hbadisc.c
474
ndlp->fc4_xpt_flags, kref_read(&ndlp->kref));
drivers/scsi/lpfc/lpfc_hbadisc.c
4929
kref_init(&ndlp->kref);
drivers/scsi/lpfc/lpfc_hbadisc.c
5222
(kref_read(&ndlp->kref) > 0)) {
drivers/scsi/lpfc/lpfc_hbadisc.c
549
ndlp->nlp_DID, kref_read(&ndlp->kref),
drivers/scsi/lpfc/lpfc_hbadisc.c
564
ndlp->nlp_DID, kref_read(&ndlp->kref),
drivers/scsi/lpfc/lpfc_hbadisc.c
589
kref_read(&ndlp->kref));
drivers/scsi/lpfc/lpfc_hbadisc.c
6339
kref_read(&ndlp->kref),
drivers/scsi/lpfc/lpfc_hbadisc.c
6527
ndlp->nlp_flag, kref_read(&ndlp->kref));
drivers/scsi/lpfc/lpfc_hbadisc.c
6550
lpfc_nlp_release(struct kref *kref)
drivers/scsi/lpfc/lpfc_hbadisc.c
6552
struct lpfc_nodelist *ndlp = container_of(kref, struct lpfc_nodelist,
drivers/scsi/lpfc/lpfc_hbadisc.c
6553
kref);
drivers/scsi/lpfc/lpfc_hbadisc.c
6563
kref_read(&ndlp->kref), ndlp->nlp_rpi);
drivers/scsi/lpfc/lpfc_hbadisc.c
6605
kref_read(&ndlp->kref));
drivers/scsi/lpfc/lpfc_hbadisc.c
6612
if (!kref_get_unless_zero(&ndlp->kref)) {
drivers/scsi/lpfc/lpfc_hbadisc.c
6616
__func__, (void *)ndlp, kref_read(&ndlp->kref));
drivers/scsi/lpfc/lpfc_hbadisc.c
6637
kref_read(&ndlp->kref));
drivers/scsi/lpfc/lpfc_hbadisc.c
6642
return ndlp ? kref_put(&ndlp->kref, lpfc_nlp_release) : 0;
drivers/scsi/lpfc/lpfc_init.c
3106
kref_read(&ndlp->kref),
drivers/scsi/lpfc/lpfc_nportdisc.c
2268
kref_read(&ndlp->kref));
drivers/scsi/lpfc/lpfc_nportdisc.c
2624
kref_read(&ndlp->kref));
drivers/scsi/lpfc/lpfc_nportdisc.c
925
kref_read(&ndlp->kref));
drivers/scsi/lpfc/lpfc_nvme.c
2506
ret, ndlp->nlp_DID, kref_read(&ndlp->kref));
drivers/scsi/lpfc/lpfc_nvme.c
2610
ndlp->nlp_type, kref_read(&ndlp->kref));
drivers/scsi/lpfc/lpfc_nvmet.c
1392
kref_read(&ndlp->kref));
drivers/scsi/lpfc/lpfc_sli.c
12445
ulp_command, kref_read(&cmdiocb->ndlp->kref),
drivers/scsi/lpfc/lpfc_sli.c
2918
ndlp, vport->load_flag, kref_read(&ndlp->kref));
drivers/scsi/lpfc/lpfc_sli.c
3298
kref_read(&ndlp->kref));
drivers/scsi/mpi3mr/mpi3mr.h
1427
struct kref ref_count;
drivers/scsi/mpi3mr/mpi3mr.h
770
struct kref ref_count;
drivers/scsi/mpi3mr/mpi3mr.h
791
static inline void mpi3mr_free_tgtdev(struct kref *r)
drivers/scsi/mpi3mr/mpi3mr_os.c
174
static void mpi3mr_fwevt_free(struct kref *r)
drivers/scsi/mpt3sas/mpt3sas_base.h
583
struct kref refcount;
drivers/scsi/mpt3sas/mpt3sas_base.h
595
static inline void sas_device_free(struct kref *r)
drivers/scsi/mpt3sas/mpt3sas_base.h
650
struct kref refcount;
drivers/scsi/mpt3sas/mpt3sas_base.h
673
static inline void pcie_device_free(struct kref *r)
drivers/scsi/mpt3sas/mpt3sas_scsih.c
282
struct kref refcount;
drivers/scsi/mpt3sas/mpt3sas_scsih.c
287
static void fw_event_work_free(struct kref *r)
drivers/scsi/qedf/qedf.h
137
struct kref refcount;
drivers/scsi/qedf/qedf.h
503
extern void qedf_release_cmd(struct kref *ref);
drivers/scsi/qedf/qedf_els.c
395
if (rdata && !kref_get_unless_zero(&rdata->kref)) {
drivers/scsi/qedf/qedf_els.c
406
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/qedf/qedf_io.c
1870
if (!rdata || !kref_get_unless_zero(&rdata->kref)) {
drivers/scsi/qedf/qedf_io.c
1948
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/qedf/qedf_io.c
2416
if (!rdata || !kref_get_unless_zero(&rdata->kref)) {
drivers/scsi/qedf/qedf_io.c
2468
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/qedf/qedf_io.c
428
void qedf_release_cmd(struct kref *ref)
drivers/scsi/qedf/qedf_main.c
1123
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/qedf/qedf_main.c
1458
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/qedf/qedf_main.c
1535
kref_get(&rdata->kref);
drivers/scsi/qedf/qedf_main.c
447
if (kref_get_unless_zero(&rdata->kref)) {
drivers/scsi/qedf/qedf_main.c
449
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/qedf/qedf_main.c
744
if (!rdata || !kref_get_unless_zero(&rdata->kref)) {
drivers/scsi/qedf/qedf_main.c
859
kref_put(&rdata->kref, fc_rport_destroy);
drivers/scsi/qla2xxx/qla_def.h
2642
struct kref sess_kref;
drivers/scsi/qla2xxx/qla_def.h
3642
struct kref kref;
drivers/scsi/qla2xxx/qla_def.h
728
struct kref cmd_kref; /* need to migrate ref_count over to this */
drivers/scsi/qla2xxx/qla_def.h
782
void (*put_fn)(struct kref *kref);
drivers/scsi/qla2xxx/qla_gbl.h
332
void qla2x00_sp_release(struct kref *kref);
drivers/scsi/qla2xxx/qla_init.c
9225
kref_get(&cs84xx->kref);
drivers/scsi/qla2xxx/qla_init.c
9234
kref_init(&cs84xx->kref);
drivers/scsi/qla2xxx/qla_init.c
9246
__qla84xx_chip_release(struct kref *kref)
drivers/scsi/qla2xxx/qla_init.c
9249
container_of(kref, struct qla_chip_state_84xx, kref);
drivers/scsi/qla2xxx/qla_init.c
9263
kref_put(&ha->cs84xx->kref, __qla84xx_chip_release);
drivers/scsi/qla2xxx/qla_iocb.c
2587
qla2x00_sp_release(struct kref *kref)
drivers/scsi/qla2xxx/qla_iocb.c
2589
struct srb *sp = container_of(kref, struct srb, cmd_kref);
drivers/scsi/qla2xxx/qla_nvme.c
164
static void qla_nvme_release_fcp_cmd_kref(struct kref *kref)
drivers/scsi/qla2xxx/qla_nvme.c
166
struct srb *sp = container_of(kref, struct srb, cmd_kref);
drivers/scsi/qla2xxx/qla_nvme.c
196
static void qla_nvme_release_ls_cmd_kref(struct kref *kref)
drivers/scsi/qla2xxx/qla_nvme.c
198
struct srb *sp = container_of(kref, struct srb, cmd_kref);
drivers/scsi/qla2xxx/qla_nvme.c
241
static void qla_nvme_release_lsrsp_cmd_kref(struct kref *kref)
drivers/scsi/qla2xxx/qla_nvme.c
243
struct srb *sp = container_of(kref, struct srb, cmd_kref);
drivers/scsi/qla2xxx/tcm_qla2xxx.c
365
static void tcm_qla2xxx_release_session(struct kref *kref)
drivers/scsi/qla2xxx/tcm_qla2xxx.c
367
struct fc_port *sess = container_of(kref,
drivers/scsi/qla4xxx/ql4_def.h
252
struct kref srb_ref; /* reference count for this srb */
drivers/scsi/qla4xxx/ql4_glbl.h
71
void qla4xxx_srb_compl(struct kref *ref);
drivers/scsi/qla4xxx/ql4_os.c
4085
void qla4xxx_srb_compl(struct kref *ref)
drivers/scsi/scsi_lib.c
2137
void scsi_mq_free_tags(struct kref *kref)
drivers/scsi/scsi_lib.c
2139
struct Scsi_Host *shost = container_of(kref, typeof(*shost),
drivers/scsi/scsi_priv.h
112
extern void scsi_mq_free_tags(struct kref *kref);
drivers/scsi/scsi_scan.c
458
static void scsi_target_reap_ref_release(struct kref *kref)
drivers/scsi/scsi_scan.c
461
= container_of(kref, struct scsi_target, reap_ref);
drivers/scsi/sg.c
1566
sg_device_destroy(struct kref *kref)
drivers/scsi/sg.c
1568
struct sg_device *sdp = container_of(kref, struct sg_device, d_ref);
drivers/scsi/sg.c
158
struct kref f_ref;
drivers/scsi/sg.c
176
struct kref d_ref;
drivers/scsi/sg.c
198
static void sg_remove_sfp(struct kref *);
drivers/scsi/sg.c
203
static void sg_device_destroy(struct kref *kref);
drivers/scsi/sg.c
2246
sg_remove_sfp(struct kref *kref)
drivers/scsi/sg.c
2248
struct sg_fd *sfp = container_of(kref, struct sg_fd, f_ref);
drivers/scsi/st.c
224
static void scsi_tape_release(struct kref *);
drivers/scsi/st.c
226
#define to_scsi_tape(obj) container_of(obj, struct scsi_tape, kref)
drivers/scsi/st.c
254
kref_get(&STp->kref);
drivers/scsi/st.c
265
kref_put(&STp->kref, scsi_tape_release);
drivers/scsi/st.c
278
kref_put(&STp->kref, scsi_tape_release);
drivers/scsi/st.c
4382
kref_init(&tpnt->kref);
drivers/scsi/st.c
4512
kref_put(&tpnt->kref, scsi_tape_release);
drivers/scsi/st.c
4528
static void scsi_tape_release(struct kref *kref)
drivers/scsi/st.c
4530
struct scsi_tape *tpnt = to_scsi_tape(kref);
drivers/scsi/st.h
197
struct kref kref;
drivers/sh/clk/core.c
388
static void clk_destroy_mapping(struct kref *kref)
drivers/sh/clk/core.c
392
mapping = container_of(kref, struct clk_mapping, ref);
drivers/soc/microchip/mpfs-sys-controller.c
36
struct kref consumers;
drivers/soc/microchip/mpfs-sys-controller.c
91
static void mpfs_sys_controller_delete(struct kref *kref)
drivers/soc/microchip/mpfs-sys-controller.c
94
container_of(kref, struct mpfs_sys_controller, consumers);
drivers/soc/qcom/smem_state.c
131
static void qcom_smem_state_release(struct kref *ref)
drivers/soc/qcom/smem_state.c
27
struct kref refcount;
drivers/spi/spi-offload.c
141
static void spi_offload_trigger_free(struct kref *ref)
drivers/spi/spi-offload.c
41
struct kref ref;
drivers/staging/greybus/authentication.c
29
struct kref kref;
drivers/staging/greybus/authentication.c
317
kref_init(&cap->kref);
drivers/staging/greybus/authentication.c
48
static void cap_kref_release(struct kref *kref)
drivers/staging/greybus/authentication.c
50
struct gb_cap *cap = container_of(kref, struct gb_cap, kref);
drivers/staging/greybus/authentication.c
62
kref_put(&cap->kref, cap_kref_release);
drivers/staging/greybus/authentication.c
74
kref_get(&cap->kref);
drivers/staging/greybus/camera.c
1205
static void gb_camera_release_module(struct kref *ref)
drivers/staging/greybus/fw-download.c
100
kref_get(&fw_req->kref);
drivers/staging/greybus/fw-download.c
198
kref_init(&fw_req->kref);
drivers/staging/greybus/fw-download.c
32
struct kref kref;
drivers/staging/greybus/fw-download.c
44
static void fw_req_release(struct kref *kref)
drivers/staging/greybus/fw-download.c
453
kref_get(&fw_req->kref);
drivers/staging/greybus/fw-download.c
46
struct fw_request *fw_req = container_of(kref, struct fw_request, kref);
drivers/staging/greybus/fw-download.c
87
kref_put(&fw_req->kref, fw_req_release);
drivers/staging/greybus/fw-management.c
26
struct kref kref;
drivers/staging/greybus/fw-management.c
592
kref_init(&fw_mgmt->kref);
drivers/staging/greybus/fw-management.c
67
static void fw_mgmt_kref_release(struct kref *kref)
drivers/staging/greybus/fw-management.c
69
struct fw_mgmt *fw_mgmt = container_of(kref, struct fw_mgmt, kref);
drivers/staging/greybus/fw-management.c
82
kref_put(&fw_mgmt->kref, fw_mgmt_kref_release);
drivers/staging/greybus/fw-management.c
94
kref_get(&fw_mgmt->kref);
drivers/staging/greybus/gb-camera.h
115
struct kref refcount;
drivers/staging/greybus/gb-camera.h
116
void (*release)(struct kref *kref);
drivers/staging/media/atomisp/include/hmm/hmm_bo.h
104
struct kref kref;
drivers/staging/media/atomisp/include/hmm/hmm_bo.h
49
list_entry((kref_ptr), struct hmm_buffer_object, kref)
drivers/staging/media/atomisp/pci/hmm/hmm_bo.c
216
kref_init(&bo->kref);
drivers/staging/media/atomisp/pci/hmm/hmm_bo.c
958
kref_get(&bo->kref);
drivers/staging/media/atomisp/pci/hmm/hmm_bo.c
961
static void kref_hmm_bo_release(struct kref *kref)
drivers/staging/media/atomisp/pci/hmm/hmm_bo.c
963
if (!kref)
drivers/staging/media/atomisp/pci/hmm/hmm_bo.c
966
hmm_bo_release(kref_to_hmm_bo(kref));
drivers/staging/media/atomisp/pci/hmm/hmm_bo.c
973
kref_put(&bo->kref, kref_hmm_bo_release);
drivers/target/iscsi/cxgbit/cxgbit.h
140
struct kref kref;
drivers/target/iscsi/cxgbit/cxgbit.h
185
struct kref kref;
drivers/target/iscsi/cxgbit/cxgbit.h
211
struct kref kref;
drivers/target/iscsi/cxgbit/cxgbit.h
244
void _cxgbit_free_cdev(struct kref *kref);
drivers/target/iscsi/cxgbit/cxgbit.h
245
void _cxgbit_free_csk(struct kref *kref);
drivers/target/iscsi/cxgbit/cxgbit.h
246
void _cxgbit_free_cnp(struct kref *kref);
drivers/target/iscsi/cxgbit/cxgbit.h
250
kref_get(&cdev->kref);
drivers/target/iscsi/cxgbit/cxgbit.h
255
kref_put(&cdev->kref, _cxgbit_free_cdev);
drivers/target/iscsi/cxgbit/cxgbit.h
260
kref_get(&csk->kref);
drivers/target/iscsi/cxgbit/cxgbit.h
265
kref_put(&csk->kref, _cxgbit_free_csk);
drivers/target/iscsi/cxgbit/cxgbit.h
270
kref_get(&cnp->kref);
drivers/target/iscsi/cxgbit/cxgbit.h
275
kref_put(&cnp->kref, _cxgbit_free_cnp);
drivers/target/iscsi/cxgbit/cxgbit_cm.c
1307
kref_init(&csk->kref);
drivers/target/iscsi/cxgbit/cxgbit_cm.c
135
void _cxgbit_free_cnp(struct kref *kref)
drivers/target/iscsi/cxgbit/cxgbit_cm.c
139
cnp = container_of(kref, struct cxgbit_np, kref);
drivers/target/iscsi/cxgbit/cxgbit_cm.c
443
kref_init(&cnp->kref);
drivers/target/iscsi/cxgbit/cxgbit_cm.c
793
void _cxgbit_free_csk(struct kref *kref)
drivers/target/iscsi/cxgbit/cxgbit_cm.c
798
csk = container_of(kref, struct cxgbit_sock, kref);
drivers/target/iscsi/cxgbit/cxgbit_main.c
21
void _cxgbit_free_cdev(struct kref *kref)
drivers/target/iscsi/cxgbit/cxgbit_main.c
25
cdev = container_of(kref, struct cxgbit_device, kref);
drivers/target/iscsi/cxgbit/cxgbit_main.c
64
kref_init(&cdev->kref);
drivers/target/iscsi/iscsi_target.c
241
void iscsit_login_kref_put(struct kref *kref)
drivers/target/iscsi/iscsi_target.c
243
struct iscsi_tpg_np *tpg_np = container_of(kref,
drivers/target/iscsi/iscsi_target.h
14
struct kref;
drivers/target/iscsi/iscsi_target.h
22
extern void iscsit_login_kref_put(struct kref *);
drivers/target/target_core_device.c
274
void target_pr_kref_release(struct kref *kref)
drivers/target/target_core_device.c
276
struct se_dev_entry *deve = container_of(kref, struct se_dev_entry,
drivers/target/target_core_internal.h
63
void target_pr_kref_release(struct kref *);
drivers/target/target_core_transport.c
3045
static void target_release_cmd_kref(struct kref *kref)
drivers/target/target_core_transport.c
3047
struct se_cmd *se_cmd = container_of(kref, struct se_cmd, cmd_kref);
drivers/target/target_core_transport.c
540
static void target_complete_nacl(struct kref *kref)
drivers/target/target_core_transport.c
542
struct se_node_acl *nacl = container_of(kref,
drivers/target/target_core_user.c
113
struct kref kref;
drivers/target/target_core_user.c
1608
kref_init(&udev->kref);
drivers/target/target_core_user.c
1712
static void tcmu_dev_kref_release(struct kref *kref)
drivers/target/target_core_user.c
1714
struct tcmu_dev *udev = container_of(kref, struct tcmu_dev, kref);
drivers/target/target_core_user.c
1869
kref_get(&udev->kref);
drivers/target/target_core_user.c
1879
kref_put(&udev->kref, tcmu_dev_kref_release);
drivers/target/target_core_user.c
2284
kref_get(&udev->kref);
drivers/target/target_core_user.c
2297
kref_put(&udev->kref, tcmu_dev_kref_release);
drivers/target/target_core_user.c
2317
kref_put(&udev->kref, tcmu_dev_kref_release);
drivers/target/target_core_user.c
2336
kref_put(&udev->kref, tcmu_dev_kref_release);
drivers/target/tcm_fc/tcm_fc.h
37
struct kref kref; /* ref for hash and outstanding I/Os */
drivers/target/tcm_fc/tfc_sess.c
175
kref_get(&sess->kref);
drivers/target/tcm_fc/tfc_sess.c
226
kref_init(&sess->kref); /* ref for table entry */
drivers/target/tcm_fc/tfc_sess.c
434
static void ft_sess_free(struct kref *kref)
drivers/target/tcm_fc/tfc_sess.c
436
struct ft_sess *sess = container_of(kref, struct ft_sess, kref);
drivers/target/tcm_fc/tfc_sess.c
444
int sess_held = kref_read(&sess->kref);
drivers/target/tcm_fc/tfc_sess.c
447
kref_put(&sess->kref, ft_sess_free);
drivers/tee/amdtee/amdtee_private.h
59
struct kref refcount;
drivers/tee/amdtee/core.c
223
static void destroy_session(struct kref *ref)
drivers/tee/qcomtee/core.c
119
static void qcomtee_object_release(struct kref *refcount)
drivers/tee/qcomtee/qcomtee_object.h
233
struct kref refcount;
drivers/tee/tee_core.c
84
static void teedev_ctx_release(struct kref *ref)
drivers/tee/tee_heap.c
20
struct kref kref;
drivers/tee/tee_heap.c
267
kref_init(&h->kref);
drivers/tee/tee_heap.c
301
kref_init(&h->kref);
drivers/tee/tee_heap.c
49
static void tee_heap_release(struct kref *kref)
drivers/tee/tee_heap.c
51
struct tee_dma_heap *h = container_of(kref, struct tee_dma_heap, kref);
drivers/tee/tee_heap.c
61
kref_put(&h->kref, tee_heap_release);
drivers/tee/tee_heap.c
66
kref_get(&h->kref);
drivers/thunderbolt/ctl.c
108
kref_get(&req->kref);
drivers/thunderbolt/ctl.c
112
static void tb_cfg_request_destroy(struct kref *kref)
drivers/thunderbolt/ctl.c
114
struct tb_cfg_request *req = container_of(kref, typeof(*req), kref);
drivers/thunderbolt/ctl.c
129
kref_put(&req->kref, tb_cfg_request_destroy);
drivers/thunderbolt/ctl.c
96
kref_init(&req->kref);
drivers/thunderbolt/ctl.h
78
struct kref kref;
drivers/thunderbolt/tunnel.c
197
kref_init(&tunnel->kref);
drivers/thunderbolt/tunnel.c
205
kref_get(&tunnel->kref);
drivers/thunderbolt/tunnel.c
209
static void tb_tunnel_destroy(struct kref *kref)
drivers/thunderbolt/tunnel.c
211
struct tb_tunnel *tunnel = container_of(kref, typeof(*tunnel), kref);
drivers/thunderbolt/tunnel.c
229
kref_put(&tunnel->kref, tb_tunnel_destroy);
drivers/thunderbolt/tunnel.h
74
struct kref kref;
drivers/tty/n_gsm.c
112
struct kref ref;
drivers/tty/n_gsm.c
277
struct kref ref;
drivers/tty/n_gsm.c
3235
static void gsm_free_muxr(struct kref *ref)
drivers/tty/n_gsm.c
3922
static void net_free(struct kref *ref)
drivers/tty/serial/icom.c
1313
kref_get(&icom_port->adapter->kref);
drivers/tty/serial/icom.c
1317
kref_put(&icom_port->adapter->kref, icom_kref_release);
drivers/tty/serial/icom.c
1338
kref_put(&icom_port->adapter->kref, icom_kref_release);
drivers/tty/serial/icom.c
1663
static void icom_kref_release(struct kref *kref)
drivers/tty/serial/icom.c
1665
struct icom_adapter *icom_adapter = container_of(kref,
drivers/tty/serial/icom.c
1666
struct icom_adapter, kref);
drivers/tty/serial/icom.c
1796
kref_init(&icom_adapter->kref);
drivers/tty/serial/icom.c
1818
kref_put(&icom_adapter->kref, icom_kref_release);
drivers/tty/serial/icom.c
292
struct kref kref;
drivers/tty/serial/icom.c
392
static void icom_kref_release(struct kref *kref);
drivers/tty/tty_io.c
1536
static void queue_release_one_tty(struct kref *kref)
drivers/tty/tty_io.c
1538
struct tty_struct *tty = container_of(kref, struct tty_struct, kref);
drivers/tty/tty_io.c
1557
kref_put(&tty->kref, queue_release_one_tty);
drivers/tty/tty_io.c
3106
kref_init(&tty->kref);
drivers/tty/tty_io.c
3340
kref_init(&driver->kref);
drivers/tty/tty_io.c
3380
static void destruct_tty_driver(struct kref *kref)
drivers/tty/tty_io.c
3382
struct tty_driver *driver = container_of(kref, struct tty_driver, kref);
drivers/tty/tty_io.c
3415
kref_put(&driver->kref, destruct_tty_driver);
drivers/tty/tty_port.c
263
static void tty_port_destructor(struct kref *kref)
drivers/tty/tty_port.c
265
struct tty_port *port = container_of(kref, struct tty_port, kref);
drivers/tty/tty_port.c
288
kref_put(&port->kref, tty_port_destructor);
drivers/tty/tty_port.c
98
kref_init(&port->kref);
drivers/tty/vt/vt_ioctl.c
54
return vc && kref_read(&vc->port.kref) > 1;
drivers/usb/atm/usbatm.c
694
static void usbatm_destroy_instance(struct kref *kref)
drivers/usb/atm/usbatm.c
696
struct usbatm_data *instance = container_of(kref, struct usbatm_data, refcount);
drivers/usb/atm/usbatm.h
142
struct kref refcount;
drivers/usb/class/usbtmc.c
108
struct kref kref;
drivers/usb/class/usbtmc.c
114
#define to_usbtmc_data(d) container_of(d, struct usbtmc_device_data, kref)
drivers/usb/class/usbtmc.c
155
static void usbtmc_delete(struct kref *kref)
drivers/usb/class/usbtmc.c
157
struct usbtmc_device_data *data = to_usbtmc_data(kref);
drivers/usb/class/usbtmc.c
187
kref_get(&data->kref);
drivers/usb/class/usbtmc.c
2371
kref_put(&data->kref, usbtmc_delete);
drivers/usb/class/usbtmc.c
2392
kref_init(&data->kref);
drivers/usb/class/usbtmc.c
2452
kref_get(&data->kref);
drivers/usb/class/usbtmc.c
2490
kref_put(&data->kref, usbtmc_delete);
drivers/usb/class/usbtmc.c
2514
kref_put(&data->kref, usbtmc_delete);
drivers/usb/class/usbtmc.c
262
kref_put(&file_data->data->kref, usbtmc_delete);
drivers/usb/core/config.c
538
void usb_release_interface_cache(struct kref *ref)
drivers/usb/core/hcd.c
2597
kref_init(&hcd->kref);
drivers/usb/core/hcd.c
2675
static void hcd_release(struct kref *kref)
drivers/usb/core/hcd.c
2677
struct usb_hcd *hcd = container_of (kref, struct usb_hcd, kref);
drivers/usb/core/hcd.c
2696
kref_get(&hcd->kref);
drivers/usb/core/hcd.c
2704
kref_put(&hcd->kref, hcd_release);
drivers/usb/core/hub.c
1776
static void hub_release(struct kref *kref)
drivers/usb/core/hub.c
1778
struct usb_hub *hub = container_of(kref, struct usb_hub, kref);
drivers/usb/core/hub.c
1787
kref_get(&hub->kref);
drivers/usb/core/hub.c
1792
kref_put(&hub->kref, hub_release);
drivers/usb/core/hub.c
1965
kref_init(&hub->kref);
drivers/usb/core/hub.h
23
struct kref kref;
drivers/usb/core/urb.c
113
kref_get(&urb->kref);
drivers/usb/core/urb.c
17
#define to_urb(d) container_of(d, struct urb, kref)
drivers/usb/core/urb.c
20
static void urb_destroy(struct kref *kref)
drivers/usb/core/urb.c
22
struct urb *urb = to_urb(kref);
drivers/usb/core/urb.c
48
kref_init(&urb->kref);
drivers/usb/core/urb.c
96
kref_put(&urb->kref, urb_destroy);
drivers/usb/core/usb.h
32
extern void usb_release_interface_cache(struct kref *ref);
drivers/usb/gadget/function/f_fs.c
1324
static void ffs_dmabuf_release(struct kref *ref)
drivers/usb/gadget/function/f_fs.c
138
struct kref ref;
drivers/usb/gadget/function/f_printer.c
1422
kref_put(&dev->kref, printer_dev_free);
drivers/usb/gadget/function/f_printer.c
1491
kref_init(&dev->kref);
drivers/usb/gadget/function/f_printer.c
228
static void printer_dev_free(struct kref *kref)
drivers/usb/gadget/function/f_printer.c
230
struct printer_dev *dev = container_of(kref, struct printer_dev, kref);
drivers/usb/gadget/function/f_printer.c
370
kref_get(&dev->kref);
drivers/usb/gadget/function/f_printer.c
388
kref_put(&dev->kref, printer_dev_free);
drivers/usb/gadget/function/f_printer.c
73
struct kref kref;
drivers/usb/gadget/function/tcm.h
78
struct kref ref;
drivers/usb/gadget/legacy/raw_gadget.c
161
struct kref count;
drivers/usb/gadget/legacy/raw_gadget.c
205
static void dev_free(struct kref *kref)
drivers/usb/gadget/legacy/raw_gadget.c
207
struct raw_dev *dev = container_of(kref, struct raw_dev, count);
drivers/usb/host/oxu210hp-hcd.c
1018
static void qh_destroy(struct kref *kref)
drivers/usb/host/oxu210hp-hcd.c
1020
struct ehci_qh *qh = container_of(kref, struct ehci_qh, kref);
drivers/usb/host/oxu210hp-hcd.c
1048
kref_init(&qh->kref);
drivers/usb/host/oxu210hp-hcd.c
1073
kref_get(&qh->kref);
drivers/usb/host/oxu210hp-hcd.c
1079
kref_put(&qh->kref, qh_destroy);
drivers/usb/host/oxu210hp-hcd.c
311
struct kref kref;
drivers/usb/misc/sisusbvga/sisusb.h
102
struct kref kref;
drivers/usb/misc/sisusbvga/sisusb.h
130
#define to_sisusb_dev(d) container_of(d, struct sisusb_usb_data, kref)
drivers/usb/misc/sisusbvga/sisusbvga.c
2243
kref_get(&sisusb->kref);
drivers/usb/misc/sisusbvga/sisusbvga.c
2254
static void sisusb_delete(struct kref *kref)
drivers/usb/misc/sisusbvga/sisusbvga.c
2256
struct sisusb_usb_data *sisusb = to_sisusb_dev(kref);
drivers/usb/misc/sisusbvga/sisusbvga.c
2291
kref_put(&sisusb->kref, sisusb_delete);
drivers/usb/misc/sisusbvga/sisusbvga.c
2804
kref_init(&sisusb->kref);
drivers/usb/misc/sisusbvga/sisusbvga.c
2937
kref_put(&sisusb->kref, sisusb_delete);
drivers/usb/misc/usblcd.c
100
kref_put(&dev->kref, lcd_delete);
drivers/usb/misc/usblcd.c
120
kref_put(&dev->kref, lcd_delete);
drivers/usb/misc/usblcd.c
330
kref_init(&dev->kref);
drivers/usb/misc/usblcd.c
388
kref_put(&dev->kref, lcd_delete);
drivers/usb/misc/usblcd.c
431
kref_put(&dev->kref, lcd_delete);
drivers/usb/misc/usblcd.c
51
struct kref kref;
drivers/usb/misc/usblcd.c
60
#define to_lcd_dev(d) container_of(d, struct usb_lcd, kref)
drivers/usb/misc/usblcd.c
67
static void lcd_delete(struct kref *kref)
drivers/usb/misc/usblcd.c
69
struct usb_lcd *dev = to_lcd_dev(kref);
drivers/usb/misc/usblcd.c
95
kref_get(&dev->kref);
drivers/usb/misc/uss720.c
50
struct kref ref_count;
drivers/usb/misc/uss720.c
58
struct kref ref_count;
drivers/usb/misc/uss720.c
68
static void destroy_priv(struct kref *kref)
drivers/usb/misc/uss720.c
70
struct parport_uss720_private *priv = container_of(kref, struct parport_uss720_private, ref_count);
drivers/usb/misc/uss720.c
78
static void destroy_async(struct kref *kref)
drivers/usb/misc/uss720.c
80
struct uss720_async_request *rq = container_of(kref, struct uss720_async_request, ref_count);
drivers/usb/misc/yurex.c
203
kref_init(&dev->kref);
drivers/usb/misc/yurex.c
303
kref_put(&dev->kref, yurex_delete);
drivers/usb/misc/yurex.c
330
kref_put(&dev->kref, yurex_delete);
drivers/usb/misc/yurex.c
375
kref_get(&dev->kref);
drivers/usb/misc/yurex.c
395
kref_put(&dev->kref, yurex_delete);
drivers/usb/misc/yurex.c
61
struct kref kref;
drivers/usb/misc/yurex.c
70
#define to_yurex_dev(d) container_of(d, struct usb_yurex, kref)
drivers/usb/misc/yurex.c
90
static void yurex_delete(struct kref *kref)
drivers/usb/misc/yurex.c
92
struct usb_yurex *dev = to_yurex_dev(kref);
drivers/usb/mon/mon_main.c
23
static void mon_bus_drop(struct kref *r);
drivers/usb/mon/mon_main.c
260
static void mon_bus_drop(struct kref *r)
drivers/usb/mon/usb_mon.h
33
struct kref ref; /* Under mon_lock */
drivers/usb/serial/console.c
141
kref_init(&tty->kref);
drivers/usb/serial/console.c
147
kref_get(&tty->driver->kref);
drivers/usb/serial/mos7720.c
251
static void destroy_mos_parport(struct kref *kref)
drivers/usb/serial/mos7720.c
254
container_of(kref, struct mos7715_parport, ref_count);
drivers/usb/serial/mos7720.c
90
struct kref ref_count; /* to instance of this struct */
drivers/usb/serial/usb-serial.c
162
static void destroy_serial(struct kref *kref)
drivers/usb/serial/usb-serial.c
168
serial = to_usb_serial(kref);
drivers/usb/serial/usb-serial.c
193
kref_put(&serial->kref, destroy_serial);
drivers/usb/serial/usb-serial.c
697
kref_init(&serial->kref);
drivers/usb/serial/usb-serial.c
77
kref_get(&serial->kref);
drivers/usb/usb-skeleton.c
111
kref_get(&dev->kref);
drivers/usb/usb-skeleton.c
132
kref_put(&dev->kref, skel_delete);
drivers/usb/usb-skeleton.c
500
kref_init(&dev->kref);
drivers/usb/usb-skeleton.c
556
kref_put(&dev->kref, skel_delete);
drivers/usb/usb-skeleton.c
580
kref_put(&dev->kref, skel_delete);
drivers/usb/usb-skeleton.c
62
struct kref kref;
drivers/usb/usb-skeleton.c
67
#define to_skel_dev(d) container_of(d, struct usb_skel, kref)
drivers/usb/usb-skeleton.c
72
static void skel_delete(struct kref *kref)
drivers/usb/usb-skeleton.c
74
struct usb_skel *dev = to_skel_dev(kref);
drivers/vfio/container.c
146
static void vfio_container_release(struct kref *kref)
drivers/vfio/container.c
149
container = container_of(kref, struct vfio_container, kref);
drivers/vfio/container.c
156
kref_get(&container->kref);
drivers/vfio/container.c
161
kref_put(&container->kref, vfio_container_release);
drivers/vfio/container.c
19
struct kref kref;
drivers/vfio/container.c
369
kref_init(&container->kref);
drivers/vhost/scsi.c
108
struct kref kref;
drivers/vhost/scsi.c
1867
kref_put(&vs->old_inflight[i]->kref, vhost_scsi_done_inflight);
drivers/vhost/scsi.c
297
static void vhost_scsi_done_inflight(struct kref *kref)
drivers/vhost/scsi.c
301
inflight = container_of(kref, struct vhost_scsi_inflight, kref);
drivers/vhost/scsi.c
325
kref_init(&new_inflight->kref);
drivers/vhost/scsi.c
340
kref_get(&inflight->kref);
drivers/vhost/scsi.c
347
kref_put(&inflight->kref, vhost_scsi_done_inflight);
drivers/video/fbdev/smscufx.c
1033
kref_get(&dev->kref);
drivers/video/fbdev/smscufx.c
1063
static void ufx_free(struct kref *kref)
drivers/video/fbdev/smscufx.c
1065
struct ufx_data *dev = container_of(kref, struct ufx_data, kref);
drivers/video/fbdev/smscufx.c
1081
kref_put(&dev->kref, ufx_free);
drivers/video/fbdev/smscufx.c
1108
kref_put(&dev->kref, ufx_free);
drivers/video/fbdev/smscufx.c
1135
kref_put(&dev->kref, ufx_free);
drivers/video/fbdev/smscufx.c
1604
kref_init(&dev->kref); /* matching kref_put in usb .disconnect fn */
drivers/video/fbdev/smscufx.c
1605
kref_get(&dev->kref); /* matching kref_put in free_framebuffer_work */
drivers/video/fbdev/smscufx.c
1724
kref_put(&dev->kref, ufx_free); /* ref for framebuffer */
drivers/video/fbdev/smscufx.c
1725
kref_put(&dev->kref, ufx_free); /* last ref from kref_init */
drivers/video/fbdev/smscufx.c
97
struct kref kref;
drivers/xen/gntdev-dmabuf.c
306
static void dmabuf_exp_release(struct kref *kref)
drivers/xen/gntdev-dmabuf.c
309
container_of(kref, struct gntdev_dmabuf, u.exp.refcount);
drivers/xen/gntdev-dmabuf.c
37
struct kref refcount;
drivers/xen/gntdev-dmabuf.c
90
static void dmabuf_exp_release(struct kref *kref);
drivers/xen/xen-pciback/pci_stub.c
112
static void pcistub_device_release(struct kref *kref)
drivers/xen/xen-pciback/pci_stub.c
118
psdev = container_of(kref, struct pcistub_device, kref);
drivers/xen/xen-pciback/pci_stub.c
168
kref_get(&psdev->kref);
drivers/xen/xen-pciback/pci_stub.c
173
kref_put(&psdev->kref, pcistub_device_release);
drivers/xen/xen-pciback/pci_stub.c
53
struct kref kref;
drivers/xen/xen-pciback/pci_stub.c
92
kref_init(&psdev->kref);
drivers/xen/xen-scsiback.c
1032
kref_put(&entry->kref, scsiback_free_translation_entry);
drivers/xen/xen-scsiback.c
1248
kref_put(&entry->kref, scsiback_free_translation_entry);
drivers/xen/xen-scsiback.c
271
static void scsiback_free_translation_entry(struct kref *kref)
drivers/xen/xen-scsiback.c
273
struct v2p_entry *entry = container_of(kref, struct v2p_entry, kref);
drivers/xen/xen-scsiback.c
392
kref_put(&pending_req->v2p->kref,
drivers/xen/xen-scsiback.c
660
kref_get(&entry->kref);
drivers/xen/xen-scsiback.c
733
kref_put(&v2p->kref, scsiback_free_translation_entry);
drivers/xen/xen-scsiback.c
81
struct kref kref;
drivers/xen/xen-scsiback.c
992
kref_init(&new->kref);
drivers/xen/xenbus/xenbus.h
107
void xs_free_req(struct kref *kref);
drivers/xen/xenbus/xenbus.h
80
struct kref kref;
drivers/xen/xenbus/xenbus_comms.c
313
kref_put(&req->kref, xs_free_req);
drivers/xen/xenbus/xenbus_comms.c
395
kref_put(&state.req->kref, xs_free_req);
drivers/xen/xenbus/xenbus_dev_frontend.c
119
struct kref kref;
drivers/xen/xenbus/xenbus_dev_frontend.c
339
static void xenbus_file_free(struct kref *kref)
drivers/xen/xenbus/xenbus_dev_frontend.c
347
u = container_of(kref, struct xenbus_file_priv, kref);
drivers/xen/xenbus/xenbus_dev_frontend.c
409
kref_put(&req->kref, xs_free_req);
drivers/xen/xenbus/xenbus_dev_frontend.c
411
kref_put(&u->kref, xenbus_file_free);
drivers/xen/xenbus/xenbus_dev_frontend.c
441
kref_put(&u->kref, xenbus_file_free);
drivers/xen/xenbus/xenbus_dev_frontend.c
620
kref_get(&u->kref);
drivers/xen/xenbus/xenbus_dev_frontend.c
638
kref_put(&u->kref, xenbus_file_free);
drivers/xen/xenbus/xenbus_dev_frontend.c
662
kref_init(&u->kref);
drivers/xen/xenbus/xenbus_dev_frontend.c
682
kref_put(&u->kref, xenbus_file_free);
drivers/xen/xenbus/xenbus_xs.c
115
void xs_free_req(struct kref *kref)
drivers/xen/xenbus/xenbus_xs.c
117
struct xb_req_data *req = container_of(kref, struct xb_req_data, kref);
drivers/xen/xenbus/xenbus_xs.c
250
kref_get(&req->kref);
drivers/xen/xenbus/xenbus_xs.c
277
kref_put(&req->kref, xs_free_req);
drivers/xen/xenbus/xenbus_xs.c
306
kref_init(&req->kref);
drivers/xen/xenbus/xenbus_xs.c
335
kref_init(&req->kref);
fs/ceph/mds_client.c
1089
void ceph_mdsc_release_request(struct kref *kref)
fs/ceph/mds_client.c
1091
struct ceph_mds_request *req = container_of(kref,
fs/ceph/mds_client.h
287
struct kref r_kref;
fs/ceph/mds_client.h
594
extern void ceph_mdsc_release_request(struct kref *kref);
fs/configfs/item.c
135
static void config_item_release(struct kref *kref)
fs/configfs/item.c
137
config_item_cleanup(container_of(kref, struct config_item, ci_kref));
fs/configfs/item.c
28
static void config_item_release(struct kref *kref);
fs/dlm/dlm_internal.h
255
struct kref lkb_ref;
fs/dlm/dlm_internal.h
313
struct kref res_ref;
fs/dlm/lock.c
1432
static void deactivate_rsb(struct kref *kref)
fs/dlm/lock.c
1434
struct dlm_rsb *r = container_of(kref, struct dlm_rsb, res_ref);
fs/dlm/lock.c
1567
static void kill_lkb(struct kref *kref)
fs/dlm/lock.c
1569
struct dlm_lkb *lkb = container_of(kref, struct dlm_lkb, lkb_ref);
fs/dlm/lock.c
1621
static void unhold_lkb_assert(struct kref *kref)
fs/dlm/lock.c
1623
struct dlm_lkb *lkb = container_of(kref, struct dlm_lkb, lkb_ref);
fs/dlm/lock.c
361
static inline int dlm_kref_put_write_lock_bh(struct kref *kref,
fs/dlm/lock.c
362
void (*release)(struct kref *kref),
fs/dlm/lock.c
365
if (dlm_refcount_dec_and_write_lock_bh(&kref->refcount, lock)) {
fs/dlm/lock.c
366
release(kref);
fs/dlm/lock.c
92
static void deactivate_rsb(struct kref *kref);
fs/dlm/lowcomms.c
136
struct kref ref;
fs/dlm/lowcomms.c
148
struct kref ref;
fs/dlm/lowcomms.c
682
static void dlm_page_release(struct kref *kref)
fs/dlm/lowcomms.c
684
struct writequeue_entry *e = container_of(kref, struct writequeue_entry,
fs/dlm/lowcomms.c
691
static void dlm_msg_release(struct kref *kref)
fs/dlm/lowcomms.c
693
struct dlm_msg *msg = container_of(kref, struct dlm_msg, ref);
fs/eventfd.c
105
kref_put(&ctx->kref, eventfd_free);
fs/eventfd.c
31
struct kref kref;
fs/eventfd.c
374
kref_get(&ctx->kref);
fs/eventfd.c
395
kref_init(&ctx->kref);
fs/eventfd.c
89
static void eventfd_free(struct kref *kref)
fs/eventfd.c
91
struct eventfd_ctx *ctx = container_of(kref, struct eventfd_ctx, kref);
fs/fuse/file.c
616
static void fuse_io_release(struct kref *kref)
fs/fuse/file.c
618
kfree(container_of(kref, struct fuse_io_priv, refcnt));
fs/fuse/fuse_i.h
379
struct kref refcnt;
fs/lockd/svclock.c
292
static void nlmsvc_free_block(struct kref *kref)
fs/lockd/svclock.c
294
struct nlm_block *block = container_of(kref, struct nlm_block, b_count);
fs/nfs/blocklayout/blocklayout.c
68
struct kref refcnt;
fs/nfs/blocklayout/blocklayout.c
90
static void destroy_parallel(struct kref *kref)
fs/nfs/blocklayout/blocklayout.c
92
struct parallel_io *p = container_of(kref, struct parallel_io, refcnt);
fs/nfs/direct.c
193
kref_init(&dreq->kref);
fs/nfs/direct.c
194
kref_get(&dreq->kref);
fs/nfs/direct.c
204
static void nfs_direct_req_free(struct kref *kref)
fs/nfs/direct.c
206
struct nfs_direct_req *dreq = container_of(kref, struct nfs_direct_req, kref);
fs/nfs/direct.c
218
kref_put(&dreq->kref, nfs_direct_req_free);
fs/nfs/dns_resolve.c
113
static void nfs_dns_ent_put(struct kref *ref)
fs/nfs/internal.h
975
struct kref kref; /* release manager */
fs/nfs/nfs42xattr.c
255
nfs4_xattr_free_entry_cb(struct kref *kref)
fs/nfs/nfs42xattr.c
259
entry = container_of(kref, struct nfs4_xattr_entry, ref);
fs/nfs/nfs42xattr.c
268
nfs4_xattr_free_cache_cb(struct kref *kref)
fs/nfs/nfs42xattr.c
273
cache = container_of(kref, struct nfs4_xattr_cache, ref);
fs/nfs/nfs42xattr.c
69
struct kref ref;
fs/nfs/nfs42xattr.c
80
struct kref ref;
fs/nfs/nfs4_fs.h
236
struct kref kref;
fs/nfs/nfs4proc.c
1445
kref_init(&p->kref);
fs/nfs/nfs4proc.c
1459
static void nfs4_opendata_free(struct kref *kref)
fs/nfs/nfs4proc.c
1461
struct nfs4_opendata *p = container_of(kref,
fs/nfs/nfs4proc.c
1462
struct nfs4_opendata, kref);
fs/nfs/nfs4proc.c
1486
kref_put(&p->kref, nfs4_opendata_free);
fs/nfs/nfs4proc.c
2453
kref_get(&data->kref);
fs/nfs/nfs4proc.c
2622
kref_get(&data->kref);
fs/nfs/pagelist.c
353
nfs_page_group_destroy(struct kref *kref)
fs/nfs/pagelist.c
355
struct nfs_page *req = container_of(kref, struct nfs_page, wb_kref);
fs/nfs/write.c
127
static void nfs_io_completion_release(struct kref *kref)
fs/nfs/write.c
129
struct nfs_io_completion *ioc = container_of(kref,
fs/nfs/write.c
50
struct kref refcount;
fs/nfsd/export.c
381
static void svc_export_put(struct kref *ref)
fs/nfsd/export.c
57
static void expkey_put(struct kref *ref)
fs/nfsd/nfs4idmap.c
91
ent_put(struct kref *ref)
fs/nfsd/nfs4state.c
2399
static void __free_client(struct kref *k)
fs/nfsd/nfs4state.c
318
free_nbl(struct kref *kref)
fs/nfsd/nfs4state.c
322
nbl = container_of(kref, struct nfsd4_blocked_lock, nbl_kref);
fs/nfsd/nfsd.h
111
struct kref cl_ref;
fs/nfsd/nfsd.h
112
void (*cl_release)(struct kref *kref);
fs/nfsd/state.h
785
struct kref nbl_kref;
fs/ocfs2/cluster/tcp.c
377
static void sc_kref_release(struct kref *kref)
fs/ocfs2/cluster/tcp.c
379
struct o2net_sock_container *sc = container_of(kref,
fs/ocfs2/cluster/tcp.c
784
static void o2net_handler_kref_release(struct kref *kref)
fs/ocfs2/cluster/tcp.c
787
nmh = container_of(kref, struct o2net_msg_handler, nh_kref);
fs/ocfs2/cluster/tcp_internal.h
115
struct kref sc_kref;
fs/ocfs2/cluster/tcp_internal.h
186
struct kref nh_kref;
fs/ocfs2/dlm/dlmcommon.h
143
struct kref dlm_refs;
fs/ocfs2/dlm/dlmcommon.h
278
struct kref refs;
fs/ocfs2/dlm/dlmcommon.h
344
struct kref lock_refs;
fs/ocfs2/dlm/dlmcommon.h
46
struct kref mle_refs;
fs/ocfs2/dlm/dlmdomain.c
307
static void dlm_ctxt_release(struct kref *kref)
fs/ocfs2/dlm/dlmdomain.c
311
dlm = container_of(kref, struct dlm_ctxt, dlm_refs);
fs/ocfs2/dlm/dlmlock.c
334
static void dlm_lock_release(struct kref *kref)
fs/ocfs2/dlm/dlmlock.c
338
lock = container_of(kref, struct dlm_lock, lock_refs);
fs/ocfs2/dlm/dlmlock.c
48
static void dlm_lock_release(struct kref *kref);
fs/ocfs2/dlm/dlmmaster.c
403
static void dlm_mle_release(struct kref *kref)
fs/ocfs2/dlm/dlmmaster.c
408
mle = container_of(kref, struct dlm_master_list_entry, mle_refs);
fs/ocfs2/dlm/dlmmaster.c
464
static void dlm_lockres_release(struct kref *kref)
fs/ocfs2/dlm/dlmmaster.c
469
res = container_of(kref, struct dlm_lock_resource, refs);
fs/ocfs2/dlm/dlmmaster.c
72
static void dlm_mle_release(struct kref *kref);
fs/ocfs2/dlmglue.c
3009
static void ocfs2_dlm_debug_free(struct kref *kref)
fs/ocfs2/dlmglue.c
3013
dlm_debug = container_of(kref, struct ocfs2_dlm_debug, d_refcnt);
fs/ocfs2/ocfs2.h
223
struct kref d_refcnt;
fs/ocfs2/refcounttree.c
271
static void ocfs2_kref_remove_refcount_tree(struct kref *kref)
fs/ocfs2/refcounttree.c
274
container_of(kref, struct ocfs2_refcount_tree, rf_getcnt);
fs/ocfs2/refcounttree.h
14
struct kref rf_getcnt;
fs/smb/client/cached_dir.c
17
static void smb2_close_cached_fid(struct kref *ref);
fs/smb/client/cached_dir.c
445
smb2_close_cached_fid(struct kref *ref)
fs/smb/client/cached_dir.h
45
struct kref refcount;
fs/smb/client/cifs_swn.c
24
struct kref ref_count;
fs/smb/client/cifs_swn.c
368
static void cifs_swn_reg_release(struct kref *ref)
fs/smb/client/cifsglob.h
1025
struct kref refcount;
fs/smb/client/cifsglob.h
1037
release_iface(struct kref *ref)
fs/smb/client/smbdirect.c
2709
static void smbd_mr_free_locked(struct kref *kref)
fs/smb/client/smbdirect.c
2712
container_of(kref, struct smbdirect_mr_io, kref);
fs/smb/client/smbdirect.c
2763
if (!kref_put(&mr->kref, smbd_mr_free_locked))
fs/smb/client/smbdirect.c
2795
kref_init(&mr->kref);
fs/smb/client/smbdirect.c
2867
kref_get(&ret->kref);
fs/smb/client/smbdirect.c
3019
if (!kref_put(&mr->kref, smbd_mr_free_locked))
fs/smb/client/smbdirect.c
3123
if (!kref_put(&mr->kref, smbd_mr_free_locked))
fs/smb/common/smbdirect/smbdirect_socket.h
545
struct kref kref;
fs/tracefs/event_inode.c
102
static void release_ei(struct kref *ref)
fs/tracefs/event_inode.c
104
struct eventfs_inode *ei = container_of(ref, struct eventfs_inode, kref);
fs/tracefs/event_inode.c
121
kref_put(&ei->kref, release_ei);
fs/tracefs/event_inode.c
147
kref_get(&ei->kref);
fs/tracefs/event_inode.c
436
kref_init(&ei->kref);
fs/tracefs/internal.h
59
struct kref kref;
fs/vboxsf/file.c
121
static void vboxsf_handle_release(struct kref *refcount)
fs/vboxsf/file.c
19
struct kref refcount;
include/drm/display/drm_dp_mst_helper.h
105
struct kref malloc_kref;
include/drm/display/drm_dp_mst_helper.h
202
struct kref topology_kref;
include/drm/display/drm_dp_mst_helper.h
209
struct kref malloc_kref;
include/drm/display/drm_dp_mst_helper.h
98
struct kref topology_kref;
include/drm/drm_atomic.h
473
struct kref ref;
include/drm/drm_atomic.h
638
void __drm_crtc_commit_free(struct kref *kref);
include/drm/drm_atomic.h
686
void __drm_atomic_state_free(struct kref *ref);
include/drm/drm_atomic.h
87
struct kref ref;
include/drm/drm_auth.h
48
struct kref refcount;
include/drm/drm_bridge.h
1131
struct kref refcount;
include/drm/drm_connector.h
2547
struct kref refcount;
include/drm/drm_device.h
80
struct kref ref;
include/drm/drm_gem.h
293
struct kref refcount;
include/drm/drm_gem.h
529
void drm_gem_object_free(struct kref *kref);
include/drm/drm_gpusvm.h
170
struct kref refcount;
include/drm/drm_gpuvm.h
273
struct kref kref;
include/drm/drm_gpuvm.h
363
kref_get(&gpuvm->kref);
include/drm/drm_gpuvm.h
688
struct kref kref;
include/drm/drm_gpuvm.h
756
kref_get(&vm_bo->kref);
include/drm/drm_mode_object.h
59
struct kref refcount;
include/drm/drm_mode_object.h
60
void (*free_cb)(struct kref *kref);
include/drm/drm_pagemap.h
166
struct kref ref;
include/drm/drm_panel.h
294
struct kref refcount;
include/drm/drm_syncobj.h
129
void drm_syncobj_free(struct kref *kref);
include/drm/drm_syncobj.h
43
struct kref refcount;
include/drm/drm_syncobj.h
70
void drm_syncobj_free(struct kref *kref);
include/drm/ttm/ttm_bo.h
115
struct kref kref;
include/kunit/resource.h
109
static inline void kunit_release_resource(struct kref *kref)
include/kunit/resource.h
111
struct kunit_resource *res = container_of(kref, struct kunit_resource,
include/kunit/resource.h
89
struct kref refcount;
include/linux/backing-dev-defs.h
177
struct kref refcnt; /* Reference counter for the structure */
include/linux/bsg-lib.h
32
struct kref kref;
include/linux/cache_coherency.h
28
struct kref kref;
include/linux/cdx/mcdi.h
109
struct kref ref;
include/linux/ceph/buffer.h
17
struct kref kref;
include/linux/ceph/buffer.h
23
extern void ceph_buffer_release(struct kref *kref);
include/linux/ceph/buffer.h
27
kref_get(&b->kref);
include/linux/ceph/buffer.h
34
kref_put(&b->kref, ceph_buffer_release);
include/linux/ceph/messenger.h
284
struct kref kref;
include/linux/ceph/mon_client.h
52
struct kref kref;
include/linux/ceph/osd_client.h
257
struct kref r_kref;
include/linux/ceph/osd_client.h
328
struct kref kref;
include/linux/ceph/string_table.h
11
struct kref kref;
include/linux/ceph/string_table.h
20
extern void ceph_release_string(struct kref *ref);
include/linux/ceph/string_table.h
27
kref_get(&str->kref);
include/linux/ceph/string_table.h
35
kref_put(&str->kref, ceph_release_string);
include/linux/ceph/string_table.h
56
kref_get_unless_zero(&___str->kref)) \
include/linux/comedi/comedidev.h
250
struct kref refcount;
include/linux/comedi/comedidev.h
557
struct kref refcount;
include/linux/configfs.h
41
struct kref ci_kref;
include/linux/cpu_rmap.h
24
struct kref refcount;
include/linux/device.h
703
struct kref kref;
include/linux/dma-fence.h
262
void dma_fence_release(struct kref *kref);
include/linux/dma-fence.h
96
struct kref refcount;
include/linux/dmaengine.h
570
struct kref kref;
include/linux/dmaengine.h
638
kref_get(&unmap->kref);
include/linux/dmaengine.h
869
struct kref ref;
include/linux/energy_model.h
50
struct kref kref;
include/linux/firewire.h
153
kref_get(&card->kref);
include/linux/firewire.h
158
void fw_card_release(struct kref *kref);
include/linux/firewire.h
162
kref_put(&card->kref, fw_card_release);
include/linux/firewire.h
373
struct kref kref;
include/linux/firewire.h
86
struct kref kref;
include/linux/greybus/connection.h
42
struct kref kref;
include/linux/greybus/operation.h
107
struct kref kref;
include/linux/hid.h
723
struct kref ref;
include/linux/hid.h
732
void hiddev_free(struct kref *ref);
include/linux/host1x.h
126
struct kref ref;
include/linux/host1x.h
141
static inline struct host1x_bo_mapping *to_host1x_bo_mapping(struct kref *ref)
include/linux/host1x.h
269
struct kref ref;
include/linux/hugetlb.h
104
struct kref refs;
include/linux/hugetlb.h
110
void resv_map_release(struct kref *ref);
include/linux/hugetlb.h
272
void hugetlb_vma_lock_release(struct kref *kref);
include/linux/hugetlb.h
50
struct kref refs;
include/linux/hw_random.h
51
struct kref ref;
include/linux/iio/buffer-dma.h
68
struct kref kref;
include/linux/iio/buffer_impl.h
166
struct kref ref;
include/linux/intel_vsec.h
183
struct kref kref;
include/linux/interrupt.h
273
struct kref kref;
include/linux/interrupt.h
276
void (*release)(struct kref *ref);
include/linux/klist.h
40
struct kref n_ref;
include/linux/kobject.h
71
struct kref kref;
include/linux/kref.h
103
static inline int kref_put_lock(struct kref *kref,
include/linux/kref.h
104
void (*release)(struct kref *kref),
include/linux/kref.h
108
if (refcount_dec_and_lock(&kref->refcount, lock)) {
include/linux/kref.h
109
release(kref);
include/linux/kref.h
131
static inline int __must_check kref_get_unless_zero(struct kref *kref)
include/linux/kref.h
133
return refcount_inc_not_zero(&kref->refcount);
include/linux/kref.h
29
static inline void kref_init(struct kref *kref)
include/linux/kref.h
31
refcount_set(&kref->refcount, 1);
include/linux/kref.h
34
static inline unsigned int kref_read(const struct kref *kref)
include/linux/kref.h
36
return refcount_read(&kref->refcount);
include/linux/kref.h
43
static inline void kref_get(struct kref *kref)
include/linux/kref.h
45
refcount_inc(&kref->refcount);
include/linux/kref.h
62
static inline int kref_put(struct kref *kref, void (*release)(struct kref *kref))
include/linux/kref.h
64
if (refcount_dec_and_test(&kref->refcount)) {
include/linux/kref.h
65
release(kref);
include/linux/kref.h
81
static inline int kref_put_mutex(struct kref *kref,
include/linux/kref.h
82
void (*release)(struct kref *kref),
include/linux/kref.h
86
if (refcount_dec_and_mutex_lock(&kref->refcount, mutex)) {
include/linux/kref.h
87
release(kref);
include/linux/libata.h
627
struct kref kref;
include/linux/lockd/lockd.h
177
struct kref b_count; /* Reference count */
include/linux/memory-tiers.h
33
struct kref kref;
include/linux/mlx5/driver.h
417
struct kref ref_count;
include/linux/mm_inline.h
387
kref_get(&anon_name->kref);
include/linux/mm_inline.h
393
kref_put(&anon_name->kref, anon_vma_name_free);
include/linux/mm_inline.h
400
if (kref_read(&anon_name->kref) < REFCOUNT_MAX) {
include/linux/mm_inline.h
451
void pfnmap_track_ctx_release(struct kref *ref);
include/linux/mm_types.h
729
struct kref kref;
include/linux/mm_types.h
742
void anon_vma_name_free(struct kref *kref);
include/linux/mm_types.h
806
struct kref kref;
include/linux/mtd/blktrans.h
29
struct kref ref;
include/linux/mtd/mtd.h
382
struct kref refcnt;
include/linux/nfs_page.h
54
struct kref wb_kref; /* reference count */
include/linux/raspberrypi/vchiq_core.h
192
struct kref ref_count;
include/linux/relay.h
61
struct kref kref; /* channel buffer refcount */
include/linux/relay.h
82
struct kref kref; /* channel refcount */
include/linux/rpmsg.h
95
struct kref refcount;
include/linux/sh_clk.h
19
struct kref ref;
include/linux/sunrpc/cache.h
56
struct kref ref;
include/linux/sunrpc/cache.h
77
void (*cache_put)(struct kref *);
include/linux/sunrpc/svc_xprt.h
55
struct kref xpt_ref;
include/linux/sunrpc/svcauth.h
80
struct kref ref;
include/linux/sunrpc/xprt.h
214
struct kref kref; /* Reference count */
include/linux/sunrpc/xprtmultipath.h
16
struct kref xps_kref;
include/linux/surface_aggregator/serial_hub.h
493
struct kref refcnt;
include/linux/tee_drv.h
42
struct kref refcount;
include/linux/tty.h
189
struct kref kref;
include/linux/tty.h
398
kref_get(&tty->kref);
include/linux/tty_driver.h
527
struct kref kref;
include/linux/tty_driver.h
579
kref_get(&d->kref);
include/linux/tty_port.h
122
struct kref kref;
include/linux/tty_port.h
163
if (port && kref_get_unless_zero(&port->kref))
include/linux/usb.h
1631
struct kref kref; /* reference count of the URB */
include/linux/usb.h
355
struct kref ref; /* reference counter */
include/linux/usb/hcd.h
74
struct kref kref; /* reference counter */
include/linux/usb/serial.h
157
struct kref kref;
include/linux/usb/serial.h
161
#define to_usb_serial(d) container_of(d, struct usb_serial, kref)
include/linux/watch_queue.h
45
struct kref usage; /* Object usage count */
include/linux/watch_queue.h
66
struct kref usage; /* Object usage count */
include/media/dvb_frontend.h
693
struct kref refcount;
include/media/dvbdev.h
164
struct kref ref;
include/media/media-request.h
183
kref_get(&req->kref);
include/media/media-request.h
312
struct kref kref;
include/media/media-request.h
327
kref_get(&obj->kref);
include/media/media-request.h
67
struct kref kref;
include/media/v4l2-device.h
55
struct kref ref;
include/net/bluetooth/hci_core.h
1721
kref_read(&d->dev.kobj.kref));
include/net/bluetooth/hci_core.h
1729
kref_read(&d->dev.kobj.kref));
include/net/bluetooth/l2cap.h
516
struct kref kref;
include/net/bluetooth/l2cap.h
674
struct kref ref;
include/net/dsa.h
140
struct kref refcount;
include/net/tls_toe.h
68
void (*release)(struct kref *kref);
include/net/tls_toe.h
69
struct kref kref;
include/rdma/ib_verbs.h
1572
struct kref ref;
include/rdma/ib_verbs.h
2363
struct kref ref;
include/rdma/rdma_counter.h
40
struct kref kref;
include/rdma/rdma_vt.h
178
struct kref ref;
include/rdma/restrack.h
93
struct kref kref;
include/rdma/uverbs_types.h
156
struct kref ref;
include/scsi/libfc.h
198
struct kref kref;
include/scsi/libfc.h
936
void fc_rport_destroy(struct kref *kref);
include/scsi/libsas.h
192
struct kref kref;
include/scsi/scsi_device.h
354
struct kref reap_ref; /* last put renders target invisible */
include/scsi/scsi_host.h
586
struct kref tagset_refcnt;
include/target/iscsi/iscsi_target_core.h
813
struct kref tpg_np_kref;
include/target/target_core_base.h
535
struct kref cmd_kref;
include/target/target_core_base.h
605
struct kref acl_kref;
include/target/target_core_base.h
692
struct kref pr_kref;
kernel/cgroup/dmem.c
26
struct kref ref;
kernel/cgroup/dmem.c
455
static void dmemcg_free_region(struct kref *ref)
kernel/cgroup/dmem.c
94
static void dmemcg_free_region(struct kref *ref);
kernel/irq/manage.c
369
kref_get(&desc->affinity_notify->kref);
kernel/irq/manage.c
372
kref_put(&desc->affinity_notify->kref, desc->affinity_notify->release);
kernel/irq/manage.c
539
kref_put(&notify->kref, notify->release);
kernel/irq/manage.c
567
kref_init(&notify->kref);
kernel/irq/manage.c
579
kref_put(&old_notify->kref, old_notify->release);
kernel/irq/manage.c
581
kref_put(&old_notify->kref, old_notify->release);
kernel/power/energy_model.c
188
static void em_release_table_kref(struct kref *kref)
kernel/power/energy_model.c
191
kfree_rcu(container_of(kref, struct em_perf_table, kref), rcu);
kernel/power/energy_model.c
202
kref_put(&table->kref, em_release_table_kref);
kernel/power/energy_model.c
224
kref_init(&table->kref);
kernel/power/energy_model.c
344
kref_get(&new_table->kref);
kernel/relay.c
165
kref_get(&buf->chan->kref);
kernel/relay.c
180
static void relay_destroy_channel(struct kref *kref)
kernel/relay.c
182
struct rchan *chan = container_of(kref, struct rchan, kref);
kernel/relay.c
205
kref_put(&chan->kref, relay_destroy_channel);
kernel/relay.c
216
static void relay_remove_buf(struct kref *kref)
kernel/relay.c
218
struct rchan_buf *buf = container_of(kref, struct rchan_buf, kref);
kernel/relay.c
292
kref_init(&buf->kref);
kernel/relay.c
434
kref_put(&buf->kref, relay_remove_buf);
kernel/relay.c
513
kref_init(&chan->kref);
kernel/relay.c
533
kref_put(&chan->kref, relay_destroy_channel);
kernel/relay.c
666
kref_put(&chan->kref, relay_destroy_channel);
kernel/relay.c
744
kref_get(&buf->kref);
kernel/relay.c
798
kref_put(&buf->kref, relay_remove_buf);
kernel/sched/autogroup.c
38
kref_init(&autogroup_default.kref);
kernel/sched/autogroup.c
49
static inline void autogroup_destroy(struct kref *kref)
kernel/sched/autogroup.c
51
struct autogroup *ag = container_of(kref, struct autogroup, kref);
kernel/sched/autogroup.c
64
kref_put(&ag->kref, autogroup_destroy);
kernel/sched/autogroup.c
69
kref_get(&ag->kref);
kernel/sched/autogroup.c
99
kref_init(&ag->kref);
kernel/sched/autogroup.h
15
struct kref kref;
kernel/watch_queue.c
394
static void __put_watch_queue(struct kref *kref)
kernel/watch_queue.c
397
container_of(kref, struct watch_queue, usage);
kernel/watch_queue.c
432
static void __put_watch(struct kref *kref)
kernel/watch_queue.c
434
struct watch *watch = container_of(kref, struct watch, usage);
lib/cache_maint.c
28
static void __cache_coherency_ops_instance_free(struct kref *kref)
lib/cache_maint.c
31
container_of(kref, struct cache_coherency_ops_inst, kref);
lib/cache_maint.c
37
kref_put(&cci->kref, __cache_coherency_ops_instance_free);
lib/cache_maint.c
99
kref_init(&cci->kref);
lib/cpu_rmap.c
278
static void irq_cpu_rmap_release(struct kref *ref)
lib/cpu_rmap.c
281
container_of(ref, struct irq_glue, notify.kref);
lib/cpu_rmap.c
66
static void cpu_rmap_release(struct kref *ref)
lib/digsig.c
214
key_ref_t kref;
lib/digsig.c
215
kref = keyring_search(make_key_ref(keyring, 1UL),
lib/digsig.c
217
if (IS_ERR(kref))
lib/digsig.c
218
key = ERR_CAST(kref);
lib/digsig.c
220
key = key_ref_to_ptr(kref);
lib/klist.c
183
static void klist_release(struct kref *kref)
lib/klist.c
186
struct klist_node *n = container_of(kref, struct klist_node, n_ref);
lib/kobject.c
201
kref_init(&kobj->kref);
lib/kobject.c
643
kref_get(&kobj->kref);
lib/kobject.c
653
if (!kref_get_unless_zero(&kobj->kref))
lib/kobject.c
709
static void kobject_release(struct kref *kref)
lib/kobject.c
711
struct kobject *kobj = container_of(kref, struct kobject, kref);
lib/kobject.c
737
kref_put(&kobj->kref, kobject_release);
mm/backing-dev.c
1183
static void release_bdi(struct kref *ref)
mm/hugetlb.c
1138
void resv_map_release(struct kref *ref)
mm/hugetlb.c
363
void hugetlb_vma_lock_release(struct kref *kref)
mm/hugetlb.c
365
struct hugetlb_vma_lock *vma_lock = container_of(kref,
mm/madvise.c
103
void anon_vma_name_free(struct kref *kref)
mm/madvise.c
106
container_of(kref, struct anon_vma_name, kref);
mm/madvise.c
96
kref_init(&anon_name->kref);
mm/memory-tiers.c
538
kref_get(&memtype->kref);
mm/memory-tiers.c
616
static void release_memtype(struct kref *kref)
mm/memory-tiers.c
620
memtype = container_of(kref, struct memory_dev_type, kref);
mm/memory-tiers.c
635
kref_init(&memtype->kref);
mm/memory-tiers.c
642
kref_put(&memtype->kref, release_memtype);
mm/memory.c
3046
kref_init(&ctx->kref);
mm/memory.c
3050
void pfnmap_track_ctx_release(struct kref *ref)
mm/memory.c
3052
struct pfnmap_track_ctx *ctx = container_of(ref, struct pfnmap_track_ctx, kref);
mm/memory.c
3088
kref_put(&ctx->kref, pfnmap_track_ctx_release);
mm/vma_init.c
107
kref_put(&ctx->kref, pfnmap_track_ctx_release);
mm/vma_init.c
93
if (unlikely(kref_read(&ctx->kref) >= REFCOUNT_MAX))
mm/vma_init.c
95
kref_get(&ctx->kref);
net/batman-adv/bridge_loop_avoidance.c
149
static void batadv_backbone_gw_release(struct kref *ref)
net/batman-adv/bridge_loop_avoidance.c
177
static void batadv_claim_release(struct kref *ref)
net/batman-adv/distributed-arp-table.c
112
static void batadv_dat_entry_release(struct kref *ref)
net/batman-adv/gateway_client.c
62
void batadv_gw_node_release(struct kref *ref)
net/batman-adv/gateway_client.h
31
void batadv_gw_node_release(struct kref *ref);
net/batman-adv/hard-interface.c
50
void batadv_hardif_release(struct kref *ref)
net/batman-adv/hard-interface.h
81
void batadv_hardif_release(struct kref *ref);
net/batman-adv/mesh-interface.c
496
void batadv_meshif_vlan_release(struct kref *ref)
net/batman-adv/mesh-interface.h
24
void batadv_meshif_vlan_release(struct kref *ref);
net/batman-adv/originator.c
203
void batadv_orig_node_vlan_release(struct kref *ref)
net/batman-adv/originator.c
247
void batadv_neigh_ifinfo_release(struct kref *ref)
net/batman-adv/originator.c
264
void batadv_hardif_neigh_release(struct kref *ref)
net/batman-adv/originator.c
284
void batadv_neigh_node_release(struct kref *ref)
net/batman-adv/originator.c
811
void batadv_orig_ifinfo_release(struct kref *ref)
net/batman-adv/originator.c
851
void batadv_orig_node_release(struct kref *ref)
net/batman-adv/originator.h
24
void batadv_orig_node_release(struct kref *ref);
net/batman-adv/originator.h
30
void batadv_hardif_neigh_release(struct kref *ref);
net/batman-adv/originator.h
35
void batadv_neigh_node_release(struct kref *ref);
net/batman-adv/originator.h
48
void batadv_neigh_ifinfo_release(struct kref *ref);
net/batman-adv/originator.h
58
void batadv_orig_ifinfo_release(struct kref *ref);
net/batman-adv/originator.h
67
void batadv_orig_node_vlan_release(struct kref *ref);
net/batman-adv/tp_meter.c
334
static void batadv_tp_vars_release(struct kref *ref)
net/batman-adv/translation-table.c
217
static void batadv_tt_local_entry_release(struct kref *ref)
net/batman-adv/translation-table.c
249
void batadv_tt_global_entry_release(struct kref *ref)
net/batman-adv/translation-table.c
2525
static void batadv_tt_req_node_release(struct kref *ref)
net/batman-adv/translation-table.c
388
static void batadv_tt_orig_list_entry_release(struct kref *ref)
net/batman-adv/translation-table.h
32
void batadv_tt_global_entry_release(struct kref *ref);
net/batman-adv/tvlv.c
38
static void batadv_tvlv_handler_release(struct kref *ref)
net/batman-adv/tvlv.c
97
static void batadv_tvlv_container_release(struct kref *ref)
net/batman-adv/types.h
1411
struct kref refcount;
net/batman-adv/types.h
1439
struct kref refcount;
net/batman-adv/types.h
1711
struct kref refcount;
net/batman-adv/types.h
1743
struct kref refcount;
net/batman-adv/types.h
1770
struct kref refcount;
net/batman-adv/types.h
1830
struct kref refcount;
net/batman-adv/types.h
1860
struct kref refcount;
net/batman-adv/types.h
193
struct kref refcount;
net/batman-adv/types.h
2099
struct kref refcount;
net/batman-adv/types.h
2146
struct kref refcount;
net/batman-adv/types.h
2188
struct kref refcount;
net/batman-adv/types.h
280
struct kref refcount;
net/batman-adv/types.h
350
struct kref refcount;
net/batman-adv/types.h
503
struct kref refcount;
net/batman-adv/types.h
561
struct kref refcount;
net/batman-adv/types.h
617
struct kref refcount;
net/batman-adv/types.h
652
struct kref refcount;
net/batman-adv/types.h
721
struct kref refcount;
net/bluetooth/6lowpan.c
804
kref_read(&chan->kref));
net/bluetooth/hidp/core.c
979
static void session_free(struct kref *ref)
net/bluetooth/hidp/hidp.h
139
struct kref ref;
net/bluetooth/iso.c
38
struct kref ref;
net/bluetooth/iso.c
98
static void iso_conn_free(struct kref *ref)
net/bluetooth/l2cap_core.c
1818
static void l2cap_conn_free(struct kref *ref)
net/bluetooth/l2cap_core.c
470
kref_init(&chan->kref);
net/bluetooth/l2cap_core.c
481
static void l2cap_chan_destroy(struct kref *kref)
net/bluetooth/l2cap_core.c
483
struct l2cap_chan *chan = container_of(kref, struct l2cap_chan, kref);
net/bluetooth/l2cap_core.c
496
BT_DBG("chan %p orig refcnt %u", c, kref_read(&c->kref));
net/bluetooth/l2cap_core.c
498
kref_get(&c->kref);
net/bluetooth/l2cap_core.c
504
BT_DBG("chan %p orig refcnt %u", c, kref_read(&c->kref));
net/bluetooth/l2cap_core.c
506
if (!kref_get_unless_zero(&c->kref))
net/bluetooth/l2cap_core.c
514
BT_DBG("chan %p orig refcnt %u", c, kref_read(&c->kref));
net/bluetooth/l2cap_core.c
516
kref_put(&c->kref, l2cap_chan_destroy);
net/bluetooth/sco.c
54
struct kref ref;
net/bluetooth/sco.c
80
static void sco_conn_free(struct kref *ref)
net/can/j1939/bus.c
157
kref_init(&ecu->kref);
net/can/j1939/bus.c
17
static void __j1939_ecu_release(struct kref *kref)
net/can/j1939/bus.c
19
struct j1939_ecu *ecu = container_of(kref, struct j1939_ecu, kref);
net/can/j1939/bus.c
29
kref_put(&ecu->kref, __j1939_ecu_release);
net/can/j1939/bus.c
34
kref_get(&ecu->kref);
net/can/j1939/j1939-priv.h
235
struct kref kref;
net/can/j1939/j1939-priv.h
39
struct kref kref;
net/can/j1939/j1939-priv.h
73
struct kref kref;
net/can/j1939/j1939-priv.h
92
struct kref rx_kref;
net/can/j1939/main.c
138
kref_init(&priv->kref);
net/can/j1939/main.c
155
static void __j1939_priv_release(struct kref *kref)
net/can/j1939/main.c
157
struct j1939_priv *priv = container_of(kref, struct j1939_priv, kref);
net/can/j1939/main.c
172
kref_put(&priv->kref, __j1939_priv_release);
net/can/j1939/main.c
177
kref_get(&priv->kref);
net/can/j1939/main.c
210
static void __j1939_rx_release(struct kref *kref)
net/can/j1939/main.c
213
struct j1939_priv *priv = container_of(kref, struct j1939_priv,
net/can/j1939/transport.c
1517
kref_init(&session->kref);
net/can/j1939/transport.c
249
kref_get(&session->kref);
net/can/j1939/transport.c
290
static void __j1939_session_release(struct kref *kref)
net/can/j1939/transport.c
292
struct j1939_session *session = container_of(kref, struct j1939_session,
net/can/j1939/transport.c
293
kref);
net/can/j1939/transport.c
300
kref_put(&session->kref, __j1939_session_release);
net/ceph/buffer.c
26
kref_init(&b->kref);
net/ceph/buffer.c
34
void ceph_buffer_release(struct kref *kref)
net/ceph/buffer.c
36
struct ceph_buffer *b = container_of(kref, struct ceph_buffer, kref);
net/ceph/messenger.c
1980
kref_init(&m->kref);
net/ceph/messenger.c
2160
static void ceph_msg_release(struct kref *kref)
net/ceph/messenger.c
2162
struct ceph_msg *m = container_of(kref, struct ceph_msg, kref);
net/ceph/messenger.c
2188
kref_read(&msg->kref));
net/ceph/messenger.c
2189
kref_get(&msg->kref);
net/ceph/messenger.c
2197
kref_read(&msg->kref));
net/ceph/messenger.c
2198
kref_put(&msg->kref, ceph_msg_release);
net/ceph/mon_client.c
581
static void release_generic_request(struct kref *kref)
net/ceph/mon_client.c
584
container_of(kref, struct ceph_mon_generic_request, kref);
net/ceph/mon_client.c
601
kref_put(&req->kref, release_generic_request);
net/ceph/mon_client.c
606
kref_get(&req->kref);
net/ceph/mon_client.c
619
kref_init(&req->kref);
net/ceph/msgpool.c
92
kref_init(&msg->kref); /* retake single ref */
net/ceph/osd_client.c
2765
static void linger_release(struct kref *kref)
net/ceph/osd_client.c
2768
container_of(kref, struct ceph_osd_linger_request, kref);
net/ceph/osd_client.c
2793
kref_put(&lreq->kref, linger_release);
net/ceph/osd_client.c
2799
kref_get(&lreq->kref);
net/ceph/osd_client.c
2812
kref_init(&lreq->kref);
net/ceph/osd_client.c
483
static void ceph_osdc_release_request(struct kref *kref)
net/ceph/osd_client.c
485
struct ceph_osd_request *req = container_of(kref,
net/ceph/string_table.c
31
if (exist && !kref_get_unless_zero(&exist->kref)) {
net/ceph/string_table.c
44
kref_init(&cs->kref);
net/ceph/string_table.c
70
} else if (!kref_get_unless_zero(&exist->kref)) {
net/ceph/string_table.c
88
void ceph_release_string(struct kref *ref)
net/ceph/string_table.c
90
struct ceph_string *cs = container_of(ref, struct ceph_string, kref);
net/core/dev.c
7322
static void netif_napi_affinity_release(struct kref *ref)
net/core/dev.c
7325
container_of(ref, struct napi_struct, notify.kref);
net/core/dev.c
7367
static void netif_napi_affinity_release(struct kref *ref)
net/dsa/dsa.c
261
static void dsa_tree_release(struct kref *ref)
net/ipv4/tcp_sigpool.c
141
kref_init(&e->kref);
net/ipv4/tcp_sigpool.c
173
if (!kref_get_unless_zero(&cpool[i].kref))
net/ipv4/tcp_sigpool.c
174
kref_init(&cpool[i].kref);
net/ipv4/tcp_sigpool.c
214
if (kref_read(&cpool[i].kref) > 0) {
net/ipv4/tcp_sigpool.c
228
static void cpool_schedule_cleanup(struct kref *kref)
net/ipv4/tcp_sigpool.c
244
kref_put(&cpool[id].kref, cpool_schedule_cleanup);
net/ipv4/tcp_sigpool.c
25
struct kref kref;
net/ipv4/tcp_sigpool.c
256
kref_get(&cpool[id].kref);
net/mac802154/llsec.c
162
static void llsec_key_release(struct kref *ref)
net/mac802154/llsec.h
26
struct kref ref;
net/nfc/llcp.h
54
struct kref ref;
net/nfc/llcp_core.c
175
static void local_release(struct kref *ref)
net/qrtr/af_qrtr.c
129
struct kref ref;
net/qrtr/af_qrtr.c
168
static void __qrtr_node_release(struct kref *kref)
net/qrtr/af_qrtr.c
170
struct qrtr_node *node = container_of(kref, struct qrtr_node, ref);
net/rds/rdma.c
115
void __rds_put_mr_final(struct kref *kref)
net/rds/rdma.c
117
struct rds_mr *mr = container_of(kref, struct rds_mr, r_kref);
net/rds/rds.h
315
struct kref r_kref;
net/rds/rds.h
980
void __rds_put_mr_final(struct kref *kref);
net/rxrpc/rxperf.c
558
key_ref_t kref;
net/rxrpc/rxperf.c
561
kref = key_create_or_update(make_key_ref(keyring, true),
net/rxrpc/rxperf.c
570
if (IS_ERR(kref)) {
net/rxrpc/rxperf.c
571
pr_err("Can't allocate rxperf server key: %ld\n", PTR_ERR(kref));
net/rxrpc/rxperf.c
572
return PTR_ERR(kref);
net/rxrpc/rxperf.c
575
ret = key_link(keyring, key_ref_to_ptr(kref));
net/rxrpc/rxperf.c
578
key_ref_put(kref);
net/rxrpc/rxperf.c
589
key_ref_t kref;
net/rxrpc/rxperf.c
603
kref = key_create_or_update(make_key_ref(keyring, true),
net/rxrpc/rxperf.c
610
if (IS_ERR(kref)) {
net/rxrpc/rxperf.c
611
pr_err("Can't allocate rxperf server key: %ld\n", PTR_ERR(kref));
net/rxrpc/rxperf.c
612
return PTR_ERR(kref);
net/rxrpc/rxperf.c
615
ret = key_link(keyring, key_ref_to_ptr(kref));
net/rxrpc/rxperf.c
618
key_ref_put(kref);
net/rxrpc/security.c
168
key_ref_t kref = NULL;
net/rxrpc/security.c
191
kref = keyring_search(make_key_ref(rx->securities, 1UL),
net/rxrpc/security.c
193
if (IS_ERR(kref)) {
net/rxrpc/security.c
194
key = ERR_CAST(kref);
net/rxrpc/security.c
198
key = key_ref_to_ptr(kref);
net/sunrpc/auth_gss/auth_gss.c
1004
static void __gss_pipe_release(struct kref *kref)
net/sunrpc/auth_gss/auth_gss.c
1006
struct gss_pipe *p = container_of(kref, struct gss_pipe, kref);
net/sunrpc/auth_gss/auth_gss.c
1014
kref_put(&p->kref, __gss_pipe_release);
net/sunrpc/auth_gss/auth_gss.c
1065
kref_init(&gss_auth->kref);
net/sunrpc/auth_gss/auth_gss.c
1123
gss_free_callback(struct kref *kref)
net/sunrpc/auth_gss/auth_gss.c
1125
struct gss_auth *gss_auth = container_of(kref, struct gss_auth, kref);
net/sunrpc/auth_gss/auth_gss.c
1133
kref_put(&gss_auth->kref, gss_free_callback);
net/sunrpc/auth_gss/auth_gss.c
1263
kref_get(&gss_auth->kref);
net/sunrpc/auth_gss/auth_gss.c
1394
kref_get(&gss_auth->kref);
net/sunrpc/auth_gss/auth_gss.c
42
static void gss_free_callback(struct kref *kref);
net/sunrpc/auth_gss/auth_gss.c
546
kref_get(&gss_auth->kref);
net/sunrpc/auth_gss/auth_gss.c
556
kref_put(&gss_auth->kref, gss_free_callback);
net/sunrpc/auth_gss/auth_gss.c
83
struct kref kref;
net/sunrpc/auth_gss/auth_gss.c
87
struct kref kref;
net/sunrpc/auth_gss/auth_gss.c
927
kref_init(&p->kref);
net/sunrpc/auth_gss/auth_gss.c
954
if (!kref_get_unless_zero(&gss_pipe->kref))
net/sunrpc/auth_gss/svcauth_gss.c
125
static void rsi_put(struct kref *ref)
net/sunrpc/auth_gss/svcauth_gss.c
396
static void rsc_put(struct kref *ref)
net/sunrpc/svc_xprt.c
166
static void svc_xprt_free(struct kref *kref)
net/sunrpc/svc_xprt.c
169
container_of(kref, struct svc_xprt, xpt_ref);
net/sunrpc/svcauth.c
221
static void auth_domain_release(struct kref *kref)
net/sunrpc/svcauth.c
224
struct auth_domain *dom = container_of(kref, struct auth_domain, ref);
net/sunrpc/svcauth_unix.c
106
static void ip_map_put(struct kref *kref)
net/sunrpc/svcauth_unix.c
108
struct cache_head *item = container_of(kref, struct cache_head, ref);
net/sunrpc/svcauth_unix.c
431
static void unix_gid_put(struct kref *kref)
net/sunrpc/svcauth_unix.c
433
struct cache_head *item = container_of(kref, struct cache_head, ref);
net/sunrpc/xprt.c
2025
kref_init(&xprt->kref);
net/sunrpc/xprt.c
2153
static void xprt_destroy_kref(struct kref *kref)
net/sunrpc/xprt.c
2155
xprt_destroy(container_of(kref, struct rpc_xprt, kref));
net/sunrpc/xprt.c
2165
if (xprt != NULL && kref_get_unless_zero(&xprt->kref))
net/sunrpc/xprt.c
2179
kref_put(&xprt->kref, xprt_destroy_kref);
net/sunrpc/xprtmultipath.c
188
static void xprt_switch_free(struct kref *kref)
net/sunrpc/xprtmultipath.c
190
struct rpc_xprt_switch *xps = container_of(kref,
net/sunrpc/xprtmultipath.c
258
return (kref_read(&xprt->kref) != 0 &&
net/sunrpc/xprtrdma/ib_client.c
21
struct kref rd_kref;
net/sunrpc/xprtrdma/ib_client.c
73
static void rpcrdma_rn_release(struct kref *kref)
net/sunrpc/xprtrdma/ib_client.c
75
struct rpcrdma_device *rd = container_of(kref, struct rpcrdma_device,
net/sunrpc/xprtrdma/rpc_rdma.c
1412
static void rpcrdma_reply_done(struct kref *kref)
net/sunrpc/xprtrdma/rpc_rdma.c
1415
container_of(kref, struct rpcrdma_req, rl_kref);
net/sunrpc/xprtrdma/rpc_rdma.c
519
static void rpcrdma_sendctx_done(struct kref *kref)
net/sunrpc/xprtrdma/rpc_rdma.c
522
container_of(kref, struct rpcrdma_req, rl_kref);
net/sunrpc/xprtrdma/verbs.c
338
static void rpcrdma_ep_destroy(struct kref *kref)
net/sunrpc/xprtrdma/verbs.c
340
struct rpcrdma_ep *ep = container_of(kref, struct rpcrdma_ep, re_kref);
net/sunrpc/xprtrdma/xprt_rdma.h
329
struct kref rl_kref;
net/sunrpc/xprtrdma/xprt_rdma.h
74
struct kref re_kref;
net/tipc/node.c
117
struct kref kref;
net/tipc/node.c
309
static void tipc_node_kref_release(struct kref *kref)
net/tipc/node.c
311
struct tipc_node *n = container_of(kref, struct tipc_node, kref);
net/tipc/node.c
319
kref_put(&node->kref, tipc_node_kref_release);
net/tipc/node.c
324
kref_get(&node->kref);
net/tipc/node.c
340
if (!kref_get_unless_zero(&node->kref))
net/tipc/node.c
362
kref_get_unless_zero(&n->kref))
net/tipc/node.c
561
kref_init(&n->kref);
net/tipc/subscr.c
116
static void tipc_sub_kref_release(struct kref *kref)
net/tipc/subscr.c
118
kfree(container_of(kref, struct tipc_subscription, kref));
net/tipc/subscr.c
123
kref_put(&subscription->kref, tipc_sub_kref_release);
net/tipc/subscr.c
128
kref_get(&subscription->kref);
net/tipc/subscr.c
164
kref_init(&sub->kref);
net/tipc/subscr.h
66
struct kref kref;
net/tipc/topsrv.c
124
static void tipc_conn_kref_release(struct kref *kref)
net/tipc/topsrv.c
126
struct tipc_conn *con = container_of(kref, struct tipc_conn, kref);
net/tipc/topsrv.c
148
kref_put(&con->kref, tipc_conn_kref_release);
net/tipc/topsrv.c
153
kref_get(&con->kref);
net/tipc/topsrv.c
189
kref_init(&con->kref);
net/tipc/topsrv.c
222
if (!connected(con) || !kref_get_unless_zero(&con->kref))
net/tipc/topsrv.c
94
struct kref kref;
net/tls/tls_toe.c
113
kref_get(&dev->kref);
net/tls/tls_toe.c
116
kref_put(&dev->kref, dev->release);
net/tls/tls_toe.c
92
kref_get(&dev->kref);
net/tls/tls_toe.c
95
kref_put(&dev->kref, dev->release);
security/apparmor/apparmorfs.c
906
struct kref count;
security/apparmor/apparmorfs.c
913
static void multi_transaction_kref(struct kref *kref)
security/apparmor/apparmorfs.c
917
t = container_of(kref, struct multi_transaction, count);
security/apparmor/include/label.h
267
void aa_label_kref(struct kref *kref);
security/apparmor/include/label.h
441
void aa_proxy_kref(struct kref *kref);
security/apparmor/include/lib.h
113
struct kref count;
security/apparmor/include/lib.h
166
struct kref count;
security/apparmor/include/lib.h
175
void aa_str_kref(struct kref *kref);
security/apparmor/include/match.h
101
struct kref count;
security/apparmor/include/match.h
140
void aa_dfa_free_kref(struct kref *kref);
security/apparmor/include/policy.h
112
struct kref count;
security/apparmor/include/policy.h
127
void aa_pdb_free_kref(struct kref *kref);
security/apparmor/include/policy_unpack.h
112
struct kref pcount;
security/apparmor/include/policy_unpack.h
168
void aa_loaddata_kref(struct kref *kref);
security/apparmor/include/policy_unpack.h
169
void aa_ploaddata_kref(struct kref *kref);
security/apparmor/label.c
378
void aa_label_kref(struct kref *kref)
security/apparmor/label.c
380
struct aa_label *label = container_of(kref, struct aa_label,
security/apparmor/label.c
53
void aa_proxy_kref(struct kref *kref)
security/apparmor/label.c
55
struct aa_proxy *proxy = container_of(kref, struct aa_proxy,
security/apparmor/lib.c
246
void aa_str_kref(struct kref *kref)
security/apparmor/lib.c
248
kfree(container_of(kref, struct counted_str, count));
security/apparmor/match.c
260
void aa_dfa_free_kref(struct kref *kref)
security/apparmor/match.c
262
struct aa_dfa *dfa = container_of(kref, struct aa_dfa, count);
security/apparmor/policy.c
124
void aa_pdb_free_kref(struct kref *kref)
security/apparmor/policy.c
126
struct aa_policydb *pdb = container_of(kref, struct aa_policydb, count);
security/apparmor/policy_unpack.c
120
void aa_loaddata_kref(struct kref *kref)
security/apparmor/policy_unpack.c
122
struct aa_loaddata *d = container_of(kref, struct aa_loaddata,
security/apparmor/policy_unpack.c
148
void aa_ploaddata_kref(struct kref *kref)
security/apparmor/policy_unpack.c
150
struct aa_loaddata *d = container_of(kref, struct aa_loaddata, pcount);
security/integrity/digsig_asymmetric.c
33
key_ref_t kref;
security/integrity/digsig_asymmetric.c
35
kref = keyring_search(make_key_ref(key, 1),
security/integrity/digsig_asymmetric.c
37
if (!IS_ERR(kref)) {
security/integrity/digsig_asymmetric.c
45
key_ref_t kref;
security/integrity/digsig_asymmetric.c
47
kref = keyring_search(make_key_ref(keyring, 1),
security/integrity/digsig_asymmetric.c
49
if (IS_ERR(kref))
security/integrity/digsig_asymmetric.c
50
key = ERR_CAST(kref);
security/integrity/digsig_asymmetric.c
52
key = key_ref_to_ptr(kref);
sound/soc/qcom/qdsp6/q6adm.c
171
static void q6adm_free_copp(struct kref *ref)
sound/soc/qcom/qdsp6/q6adm.c
50
struct kref refcount;
sound/soc/qcom/qdsp6/q6afe.c
642
struct kref refcount;
sound/soc/qcom/qdsp6/q6afe.c
930
static void q6afe_port_free(struct kref *ref)
sound/soc/qcom/qdsp6/q6apm.c
123
static void q6apm_put_audioreach_graph(struct kref *ref)
sound/soc/qcom/qdsp6/q6apm.h
91
struct kref refcount;
sound/soc/qcom/qdsp6/q6asm.c
272
struct kref refcount;
sound/soc/qcom/qdsp6/q6asm.c
541
static void q6asm_audio_client_release(struct kref *ref)
sound/usb/qcom/qc_audio_offload.c
124
struct kref kref;
sound/usb/qcom/qc_audio_offload.c
1438
kref_init(&uadev[card_num].kref);
sound/usb/qcom/qc_audio_offload.c
1451
kref_get(&uadev[card_num].kref);
sound/usb/qcom/qc_audio_offload.c
1662
kref_put(&uadev[pcm_card_num].kref,
sound/usb/qcom/qc_audio_offload.c
912
static void uaudio_dev_release(struct kref *kref)
sound/usb/qcom/qc_audio_offload.c
914
struct uaudio_dev *dev = container_of(kref, struct uaudio_dev, kref);
tools/testing/vma/include/dup.h
71
struct kref kref;