kref 24 arch/arm/include/asm/dma-iommu.h struct kref kref; kref 2117 arch/arm/mm/dma-mapping.c kref_init(&mapping->kref); kref 2130 arch/arm/mm/dma-mapping.c static void release_iommu_mapping(struct kref *kref) kref 2134 arch/arm/mm/dma-mapping.c container_of(kref, struct dma_iommu_mapping, kref); kref 2164 arch/arm/mm/dma-mapping.c kref_put(&mapping->kref, release_iommu_mapping); kref 2177 arch/arm/mm/dma-mapping.c kref_get(&mapping->kref); kref 2229 arch/arm/mm/dma-mapping.c kref_put(&mapping->kref, release_iommu_mapping); kref 30 arch/mips/include/asm/clock.h struct kref kref; kref 113 arch/powerpc/include/asm/iommu.h struct kref it_kref; kref 190 arch/powerpc/include/asm/kvm_host.h struct kref kref; kref 156 arch/powerpc/include/asm/pmac_pfunc.h struct kref ref; kref 52 arch/powerpc/include/asm/pnv-pci.h struct kref kref; kref 213 arch/powerpc/include/asm/spu.h struct kref *prof_info_kref, kref 214 arch/powerpc/include/asm/spu.h void ( * prof_info_release) (struct kref *kref)); kref 738 arch/powerpc/kernel/iommu.c static void iommu_table_free(struct kref *kref) kref 744 arch/powerpc/kernel/iommu.c tbl = container_of(kref, struct iommu_table, it_kref); kref 59 arch/powerpc/kvm/book3s_64_vio.c static void kvm_spapr_tce_liobn_put(struct kref *kref) kref 61 arch/powerpc/kvm/book3s_64_vio.c struct kvmppc_spapr_tce_iommu_table *stit = container_of(kref, kref 62 arch/powerpc/kvm/book3s_64_vio.c struct kvmppc_spapr_tce_iommu_table, kref); kref 88 arch/powerpc/kvm/book3s_64_vio.c kref_put(&stit->kref, kvm_spapr_tce_liobn_put); kref 151 arch/powerpc/kvm/book3s_64_vio.c if (!kref_get_unless_zero(&stit->kref)) { kref 170 arch/powerpc/kvm/book3s_64_vio.c kref_init(&stit->kref); kref 249 arch/powerpc/kvm/book3s_64_vio.c WARN_ON(!kref_read(&stit->kref)); kref 251 arch/powerpc/kvm/book3s_64_vio.c if (kref_put(&stit->kref, kvm_spapr_tce_liobn_put)) kref 137 arch/powerpc/oprofile/cell/spu_task_sync.c struct kref cache_ref; kref 142 arch/powerpc/oprofile/cell/spu_task_sync.c static void destroy_cached_info(struct kref *kref) kref 146 arch/powerpc/oprofile/cell/spu_task_sync.c info = container_of(kref, struct cached_info, cache_ref); kref 158 arch/powerpc/oprofile/cell/spu_task_sync.c struct kref *ref; kref 42 arch/powerpc/platforms/cell/spu_notify.c struct kref *prof_info_kref, kref 43 arch/powerpc/platforms/cell/spu_notify.c void (* prof_info_release) (struct kref *kref)) kref 39 arch/powerpc/platforms/cell/spufs/context.c kref_init(&ctx->kref); kref 69 arch/powerpc/platforms/cell/spufs/context.c void destroy_spu_context(struct kref *kref) kref 72 arch/powerpc/platforms/cell/spufs/context.c ctx = container_of(kref, struct spu_context, kref); kref 90 arch/powerpc/platforms/cell/spufs/context.c kref_get(&ctx->kref); kref 96 arch/powerpc/platforms/cell/spufs/context.c return kref_put(&ctx->kref, &destroy_spu_context); kref 23 arch/powerpc/platforms/cell/spufs/gang.c kref_init(&gang->kref); kref 33 arch/powerpc/platforms/cell/spufs/gang.c static void destroy_spu_gang(struct kref *kref) kref 36 arch/powerpc/platforms/cell/spufs/gang.c gang = container_of(kref, struct spu_gang, kref); kref 43 arch/powerpc/platforms/cell/spufs/gang.c kref_get(&gang->kref); kref 49 arch/powerpc/platforms/cell/spufs/gang.c return kref_put(&gang->kref, &destroy_spu_gang); kref 87 arch/powerpc/platforms/cell/spufs/spufs.h struct kref kref; kref 101 arch/powerpc/platforms/cell/spufs/spufs.h struct kref *prof_priv_kref; kref 102 arch/powerpc/platforms/cell/spufs/spufs.h void ( * prof_priv_release) (struct kref *kref); kref 145 arch/powerpc/platforms/cell/spufs/spufs.h struct kref kref; kref 270 arch/powerpc/platforms/cell/spufs/spufs.h void destroy_spu_context(struct kref *kref); kref 544 arch/powerpc/platforms/powermac/pfunc_core.c struct kref ref; kref 551 arch/powerpc/platforms/powermac/pfunc_core.c static void pmf_release_device(struct kref *kref) kref 553 arch/powerpc/platforms/powermac/pfunc_core.c struct pmf_device *dev = container_of(kref, struct pmf_device, ref); kref 758 arch/powerpc/platforms/powermac/pfunc_core.c static void pmf_release_function(struct kref *kref) kref 761 arch/powerpc/platforms/powermac/pfunc_core.c container_of(kref, struct pmf_function, ref); kref 148 block/bsg-lib.c static void bsg_teardown_job(struct kref *kref) kref 150 block/bsg-lib.c struct bsg_job *job = container_of(kref, struct bsg_job, kref); kref 163 block/bsg-lib.c kref_put(&job->kref, bsg_teardown_job); kref 169 block/bsg-lib.c return kref_get_unless_zero(&job->kref); kref 241 block/bsg-lib.c kref_init(&job->kref); kref 111 certs/blacklist.c key_ref_t kref; kref 126 certs/blacklist.c kref = keyring_search(make_key_ref(blacklist_keyring, true), kref 128 certs/blacklist.c if (!IS_ERR(kref)) { kref 129 certs/blacklist.c key_ref_put(kref); kref 40 drivers/acpi/acpi_ipmi.c struct kref kref; kref 83 drivers/acpi/acpi_ipmi.c struct kref kref; kref 121 drivers/acpi/acpi_ipmi.c kref_init(&ipmi_device->kref); kref 148 drivers/acpi/acpi_ipmi.c static void ipmi_dev_release_kref(struct kref *kref) kref 151 drivers/acpi/acpi_ipmi.c container_of(kref, struct acpi_ipmi_device, kref); kref 176 drivers/acpi/acpi_ipmi.c kref_get(&ipmi_device->kref); kref 185 drivers/acpi/acpi_ipmi.c kref_put(&ipmi_device->kref, ipmi_dev_release_kref); kref 203 drivers/acpi/acpi_ipmi.c kref_init(&ipmi_msg->kref); kref 218 drivers/acpi/acpi_ipmi.c static void ipmi_msg_release_kref(struct kref *kref) kref 221 drivers/acpi/acpi_ipmi.c container_of(kref, struct acpi_ipmi_msg, kref); kref 228 drivers/acpi/acpi_ipmi.c kref_get(&tx_msg->kref); kref 235 drivers/acpi/acpi_ipmi.c kref_put(&tx_msg->kref, ipmi_msg_release_kref); kref 151 drivers/acpi/ec.c struct kref kref; kref 1050 drivers/acpi/ec.c kref_get(&handler->kref); kref 1071 drivers/acpi/ec.c static void acpi_ec_query_handler_release(struct kref *kref) kref 1074 drivers/acpi/ec.c container_of(kref, struct acpi_ec_query_handler, kref); kref 1081 drivers/acpi/ec.c kref_put(&handler->kref, acpi_ec_query_handler_release); kref 1099 drivers/acpi/ec.c kref_init(&handler->kref); kref 6078 drivers/ata/libata-core.c static void ata_host_release(struct kref *kref) kref 6080 drivers/ata/libata-core.c struct ata_host *host = container_of(kref, struct ata_host, kref); kref 6096 drivers/ata/libata-core.c kref_get(&host->kref); kref 6101 drivers/ata/libata-core.c kref_put(&host->kref, ata_host_release); kref 6153 drivers/ata/libata-core.c kref_init(&host->kref); kref 6450 drivers/ata/libata-core.c kref_init(&host->kref); kref 347 drivers/base/core.c kref_get(&link->kref); kref 366 drivers/base/core.c kref_get(&link->kref); kref 393 drivers/base/core.c kref_init(&link->kref); kref 450 drivers/base/core.c static void __device_link_del(struct kref *kref) kref 452 drivers/base/core.c struct device_link *link = container_of(kref, struct device_link, kref); kref 465 drivers/base/core.c static void __device_link_del(struct kref *kref) kref 467 drivers/base/core.c struct device_link *link = container_of(kref, struct device_link, kref); kref 484 drivers/base/core.c kref_put(&link->kref, __device_link_del); kref 642 drivers/base/core.c kref_put(&link->kref, __device_link_del); kref 860 drivers/base/core.c __device_link_del(&link->kref); kref 866 drivers/base/core.c __device_link_del(&link->kref); kref 1918 drivers/base/core.c ref = kref_read(&glue_dir->kref); kref 60 drivers/base/firmware_loader/firmware.h struct kref ref; kref 80 drivers/base/firmware_loader/main.c static inline struct fw_priv *to_fw_priv(struct kref *ref) kref 242 drivers/base/firmware_loader/main.c static void __free_fw_priv(struct kref *ref) kref 926 drivers/block/drbd/drbd_bitmap.c static void drbd_bm_aio_ctx_destroy(struct kref *kref) kref 928 drivers/block/drbd/drbd_bitmap.c struct drbd_bm_aio_ctx *ctx = container_of(kref, struct drbd_bm_aio_ctx, kref); kref 975 drivers/block/drbd/drbd_bitmap.c kref_put(&ctx->kref, &drbd_bm_aio_ctx_destroy); kref 1062 drivers/block/drbd/drbd_bitmap.c .kref = KREF_INIT(2), kref 1146 drivers/block/drbd/drbd_bitmap.c kref_put(&ctx->kref, &drbd_bm_aio_ctx_destroy); kref 1179 drivers/block/drbd/drbd_bitmap.c kref_put(&ctx->kref, &drbd_bm_aio_ctx_destroy); kref 319 drivers/block/drbd/drbd_debugfs.c kref_get(&req->kref); kref 324 drivers/block/drbd/drbd_debugfs.c if (kref_put(&req->kref, drbd_req_destroy)) kref 369 drivers/block/drbd/drbd_debugfs.c if (!connection || !kref_get_unless_zero(&connection->kref)) kref 413 drivers/block/drbd/drbd_debugfs.c kref_put(&connection->kref, drbd_destroy_connection); kref 419 drivers/block/drbd/drbd_debugfs.c void *data, struct kref *kref, kref 420 drivers/block/drbd/drbd_debugfs.c void (*release)(struct kref *)) kref 432 drivers/block/drbd/drbd_debugfs.c && kref_get_unless_zero(kref)) kref 438 drivers/block/drbd/drbd_debugfs.c kref_put(kref, release); kref 447 drivers/block/drbd/drbd_debugfs.c &resource->kref, drbd_destroy_resource); kref 453 drivers/block/drbd/drbd_debugfs.c kref_put(&resource->kref, drbd_destroy_resource); kref 555 drivers/block/drbd/drbd_debugfs.c &connection->kref, drbd_destroy_connection); kref 561 drivers/block/drbd/drbd_debugfs.c kref_put(&connection->kref, drbd_destroy_connection); kref 602 drivers/block/drbd/drbd_debugfs.c &connection->kref, drbd_destroy_connection); kref 608 drivers/block/drbd/drbd_debugfs.c kref_put(&connection->kref, drbd_destroy_connection); kref 749 drivers/block/drbd/drbd_debugfs.c &device->kref, drbd_destroy_device); \ kref 754 drivers/block/drbd/drbd_debugfs.c kref_put(&device->kref, drbd_destroy_device); \ kref 359 drivers/block/drbd/drbd_int.h struct kref kref; kref 660 drivers/block/drbd/drbd_int.h struct kref kref; kref 695 drivers/block/drbd/drbd_int.h struct kref kref; kref 834 drivers/block/drbd/drbd_int.h struct kref kref; kref 986 drivers/block/drbd/drbd_int.h struct kref kref; kref 1436 drivers/block/drbd/drbd_int.h extern void drbd_destroy_device(struct kref *kref); kref 1444 drivers/block/drbd/drbd_int.h extern void drbd_destroy_connection(struct kref *kref); kref 1448 drivers/block/drbd/drbd_int.h extern void drbd_destroy_resource(struct kref *kref); kref 360 drivers/block/drbd/drbd_main.c kref_put(&thi->connection->kref, drbd_destroy_connection); kref 361 drivers/block/drbd/drbd_main.c kref_put(&resource->kref, drbd_destroy_resource); kref 400 drivers/block/drbd/drbd_main.c kref_get(&resource->kref); kref 402 drivers/block/drbd/drbd_main.c kref_get(&thi->connection->kref); kref 417 drivers/block/drbd/drbd_main.c kref_put(&thi->connection->kref, drbd_destroy_connection); kref 418 drivers/block/drbd/drbd_main.c kref_put(&resource->kref, drbd_destroy_resource); kref 2223 drivers/block/drbd/drbd_main.c void drbd_destroy_device(struct kref *kref) kref 2225 drivers/block/drbd/drbd_main.c struct drbd_device *device = container_of(kref, struct drbd_device, kref); kref 2263 drivers/block/drbd/drbd_main.c kref_put(&peer_device->connection->kref, drbd_destroy_connection); kref 2268 drivers/block/drbd/drbd_main.c kref_put(&resource->kref, drbd_destroy_resource); kref 2314 drivers/block/drbd/drbd_main.c kref_put(&req->kref, drbd_req_destroy); kref 2351 drivers/block/drbd/drbd_main.c void drbd_destroy_resource(struct kref *kref) kref 2354 drivers/block/drbd/drbd_main.c container_of(kref, struct drbd_resource, kref); kref 2370 drivers/block/drbd/drbd_main.c kref_put(&connection->kref, drbd_destroy_connection); kref 2373 drivers/block/drbd/drbd_main.c kref_put(&resource->kref, drbd_destroy_resource); kref 2514 drivers/block/drbd/drbd_main.c kref_get(&resource->kref); kref 2537 drivers/block/drbd/drbd_main.c kref_get(&connection->kref); kref 2650 drivers/block/drbd/drbd_main.c kref_init(&resource->kref); kref 2718 drivers/block/drbd/drbd_main.c kref_init(&connection->kref); kref 2725 drivers/block/drbd/drbd_main.c kref_get(&resource->kref); kref 2741 drivers/block/drbd/drbd_main.c void drbd_destroy_connection(struct kref *kref) kref 2743 drivers/block/drbd/drbd_main.c struct drbd_connection *connection = container_of(kref, struct drbd_connection, kref); kref 2758 drivers/block/drbd/drbd_main.c kref_put(&resource->kref, drbd_destroy_resource); kref 2795 drivers/block/drbd/drbd_main.c kref_init(&device->kref); kref 2797 drivers/block/drbd/drbd_main.c kref_get(&resource->kref); kref 2852 drivers/block/drbd/drbd_main.c kref_get(&device->kref); kref 2860 drivers/block/drbd/drbd_main.c kref_get(&device->kref); kref 2872 drivers/block/drbd/drbd_main.c kref_get(&device->kref); kref 2880 drivers/block/drbd/drbd_main.c kref_get(&connection->kref); kref 2909 drivers/block/drbd/drbd_main.c kref_put(&connection->kref, drbd_destroy_connection); kref 2928 drivers/block/drbd/drbd_main.c kref_put(&resource->kref, drbd_destroy_resource); kref 2945 drivers/block/drbd/drbd_main.c kref_put(&device->kref, drbd_destroy_device); kref 2948 drivers/block/drbd/drbd_main.c kref_put(&device->kref, drbd_destroy_device); kref 2950 drivers/block/drbd/drbd_main.c kref_put(&device->kref, drbd_destroy_device); kref 2953 drivers/block/drbd/drbd_main.c kref_put(&device->kref, drbd_destroy_device); kref 3065 drivers/block/drbd/drbd_main.c kref_get(&device->kref); kref 3068 drivers/block/drbd/drbd_main.c kref_put(&device->kref, drbd_destroy_device); kref 231 drivers/block/drbd/drbd_nl.c kref_get(&adm_ctx->device->kref); kref 293 drivers/block/drbd/drbd_nl.c kref_get(&adm_ctx->resource->kref); kref 308 drivers/block/drbd/drbd_nl.c kref_put(&adm_ctx->device->kref, drbd_destroy_device); kref 312 drivers/block/drbd/drbd_nl.c kref_put(&adm_ctx->connection->kref, &drbd_destroy_connection); kref 316 drivers/block/drbd/drbd_nl.c kref_put(&adm_ctx->resource->kref, drbd_destroy_resource); kref 593 drivers/block/drbd/drbd_nl.c kref_put(&connection->kref, drbd_destroy_connection); kref 601 drivers/block/drbd/drbd_nl.c kref_get(&connection->kref); kref 611 drivers/block/drbd/drbd_nl.c kref_put(&connection->kref, drbd_destroy_connection); kref 3410 drivers/block/drbd/drbd_nl.c kref_put(&resource->kref, drbd_destroy_resource); kref 3538 drivers/block/drbd/drbd_nl.c kref_get(&resource->kref); kref 3577 drivers/block/drbd/drbd_nl.c kref_put(&resource->kref, drbd_destroy_resource); kref 3579 drivers/block/drbd/drbd_nl.c kref_get(&resource->kref); kref 4094 drivers/block/drbd/drbd_nl.c kref_put(&resource->kref, drbd_destroy_resource); /* get_one_status() revalidates the resource */ kref 231 drivers/block/drbd/drbd_receiver.c kref_get(&device->kref); kref 234 drivers/block/drbd/drbd_receiver.c kref_put(&device->kref, drbd_destroy_device); kref 1103 drivers/block/drbd/drbd_receiver.c kref_get(&device->kref); kref 1112 drivers/block/drbd/drbd_receiver.c kref_put(&device->kref, drbd_destroy_device); kref 1271 drivers/block/drbd/drbd_receiver.c kref_put(&device->kref, drbd_destroy_device); kref 1292 drivers/block/drbd/drbd_receiver.c kref_put(&device->kref, drbd_destroy_device); kref 1326 drivers/block/drbd/drbd_receiver.c kref_get(&device->kref); kref 1760 drivers/block/drbd/drbd_receiver.c kref_get(&device->kref); kref 1763 drivers/block/drbd/drbd_receiver.c kref_put(&device->kref, drbd_destroy_device); kref 5180 drivers/block/drbd/drbd_receiver.c kref_get(&device->kref); kref 5183 drivers/block/drbd/drbd_receiver.c kref_put(&device->kref, drbd_destroy_device); kref 6167 drivers/block/drbd/drbd_receiver.c kref_put(&device->kref, drbd_destroy_device); kref 74 drivers/block/drbd/drbd_req.c kref_init(&req->kref); kref 91 drivers/block/drbd/drbd_req.c void drbd_req_destroy(struct kref *kref) kref 93 drivers/block/drbd/drbd_req.c struct drbd_request *req = container_of(kref, struct drbd_request, kref); kref 335 drivers/block/drbd/drbd_req.c kref_put(&req->kref, drbd_req_destroy); kref 440 drivers/block/drbd/drbd_req.c kref_get(&req->kref); kref 456 drivers/block/drbd/drbd_req.c kref_get(&req->kref); /* wait for the DONE */ kref 483 drivers/block/drbd/drbd_req.c kref_put(&req->kref, drbd_req_destroy); kref 505 drivers/block/drbd/drbd_req.c kref_put(&req->kref, drbd_req_destroy); kref 523 drivers/block/drbd/drbd_req.c kref_put(&req->kref, drbd_req_destroy); kref 1293 drivers/block/drbd/drbd_req.c kref_put(&req->kref, drbd_req_destroy); kref 1316 drivers/block/drbd/drbd_req.c kref_get(&req->kref); kref 1319 drivers/block/drbd/drbd_req.c kref_put(&tmp->kref, drbd_req_destroy); kref 280 drivers/block/drbd/drbd_req.h extern void drbd_req_destroy(struct kref *kref); kref 103 drivers/block/drbd/drbd_state.c kref_get(&resource->kref); kref 113 drivers/block/drbd/drbd_state.c kref_get(&connection->kref); kref 125 drivers/block/drbd/drbd_state.c kref_get(&device->kref); kref 262 drivers/block/drbd/drbd_state.c kref_put(&state_change->resource->resource->kref, drbd_destroy_resource); kref 267 drivers/block/drbd/drbd_state.c kref_put(&device->kref, drbd_destroy_device); kref 274 drivers/block/drbd/drbd_state.c kref_put(&connection->kref, drbd_destroy_connection); kref 2099 drivers/block/drbd/drbd_state.c kref_put(&connection->kref, drbd_destroy_connection); kref 2352 drivers/block/drbd/drbd_state.c kref_get(&connection->kref); kref 149 drivers/block/drbd/drbd_worker.c kref_get(&device->kref); /* put is in drbd_send_acks_wf() */ kref 151 drivers/block/drbd/drbd_worker.c kref_put(&device->kref, drbd_destroy_device); kref 2060 drivers/block/drbd/drbd_worker.c kref_get(&device->kref); kref 2063 drivers/block/drbd/drbd_worker.c kref_put(&device->kref, drbd_destroy_device); kref 2224 drivers/block/drbd/drbd_worker.c kref_get(&device->kref); kref 2227 drivers/block/drbd/drbd_worker.c kref_put(&device->kref, drbd_destroy_device); kref 198 drivers/block/rbd.c struct kref kref; kref 206 drivers/block/rbd.c struct kref kref; kref 315 drivers/block/rbd.c struct kref kref; kref 352 drivers/block/rbd.c struct kref kref; kref 755 drivers/block/rbd.c kref_init(&rbdc->kref); kref 788 drivers/block/rbd.c kref_get(&rbdc->kref); kref 976 drivers/block/rbd.c static void rbd_client_release(struct kref *kref) kref 978 drivers/block/rbd.c struct rbd_client *rbdc = container_of(kref, struct rbd_client, kref); kref 996 drivers/block/rbd.c kref_put(&rbdc->kref, rbd_client_release); kref 1407 drivers/block/rbd.c static void rbd_obj_request_destroy(struct kref *kref); kref 1412 drivers/block/rbd.c kref_read(&obj_request->kref)); kref 1413 drivers/block/rbd.c kref_put(&obj_request->kref, rbd_obj_request_destroy); kref 1416 drivers/block/rbd.c static void rbd_img_request_destroy(struct kref *kref); kref 1421 drivers/block/rbd.c kref_read(&img_request->kref)); kref 1422 drivers/block/rbd.c kref_put(&img_request->kref, rbd_img_request_destroy); kref 1617 drivers/block/rbd.c kref_init(&obj_request->kref); kref 1623 drivers/block/rbd.c static void rbd_obj_request_destroy(struct kref *kref) kref 1629 drivers/block/rbd.c obj_request = container_of(kref, struct rbd_obj_request, kref); kref 1755 drivers/block/rbd.c kref_init(&img_request->kref); kref 1760 drivers/block/rbd.c static void rbd_img_request_destroy(struct kref *kref) kref 1766 drivers/block/rbd.c img_request = container_of(kref, struct rbd_img_request, kref); kref 5459 drivers/block/rbd.c kref_get(&spec->kref); kref 5464 drivers/block/rbd.c static void rbd_spec_free(struct kref *kref); kref 5468 drivers/block/rbd.c kref_put(&spec->kref, rbd_spec_free); kref 5481 drivers/block/rbd.c kref_init(&spec->kref); kref 5486 drivers/block/rbd.c static void rbd_spec_free(struct kref *kref) kref 5488 drivers/block/rbd.c struct rbd_spec *spec = container_of(kref, struct rbd_spec, kref); kref 76 drivers/char/hw_random/core.c static inline void cleanup_rng(struct kref *kref) kref 78 drivers/char/hw_random/core.c struct hwrng *rng = container_of(kref, struct hwrng, ref); kref 206 drivers/char/ipmi/ipmi_msghandler.c struct kref refcount; kref 336 drivers/char/ipmi/ipmi_msghandler.c struct kref usecount; kref 456 drivers/char/ipmi/ipmi_msghandler.c struct kref refcount; kref 731 drivers/char/ipmi/ipmi_msghandler.c static void intf_free(struct kref *ref) kref 1283 drivers/char/ipmi/ipmi_msghandler.c static void free_user(struct kref *ref) kref 2929 drivers/char/ipmi/ipmi_msghandler.c cleanup_bmc_device(struct kref *ref) kref 40 drivers/char/pcmcia/scr24x_cs.c struct kref refcnt; kref 50 drivers/char/pcmcia/scr24x_cs.c static void scr24x_delete(struct kref *kref) kref 52 drivers/char/pcmcia/scr24x_cs.c struct scr24x_dev *dev = container_of(kref, struct scr24x_dev, kref 216 drivers/char/virtio_console.c struct kref kref; kref 270 drivers/char/virtio_console.c kref_get(&port->kref); kref 994 drivers/char/virtio_console.c static void remove_port(struct kref *kref); kref 1025 drivers/char/virtio_console.c kref_put(&port->kref, remove_port); kref 1080 drivers/char/virtio_console.c kref_put(&port->kref, remove_port); kref 1372 drivers/char/virtio_console.c kref_init(&port->kref); kref 1489 drivers/char/virtio_console.c static void remove_port(struct kref *kref) kref 1493 drivers/char/virtio_console.c port = container_of(kref, struct port, kref); kref 1562 drivers/char/virtio_console.c kref_put(&port->kref, remove_port); kref 91 drivers/clk/clk.c struct kref ref; kref 3820 drivers/clk/clk.c static void __clk_release(struct kref *ref) kref 883 drivers/crypto/ccp/psp-dev.c static void sev_exit(struct kref *ref) kref 39 drivers/crypto/ccp/psp-dev.h struct kref refcount; kref 195 drivers/crypto/chelsio/chtls/chtls.h struct kref kref; kref 432 drivers/crypto/chelsio/chtls/chtls.h static inline void chtls_sock_free(struct kref *ref) kref 435 drivers/crypto/chelsio/chtls/chtls.h kref); kref 441 drivers/crypto/chelsio/chtls/chtls.h kref_put(&csk->kref, chtls_sock_free); kref 447 drivers/crypto/chelsio/chtls/chtls.h kref_get(&csk->kref); kref 63 drivers/crypto/chelsio/chtls/chtls_cm.c kref_init(&csk->kref); kref 77 drivers/crypto/chelsio/chtls/chtls_cm.c static void chtls_sock_release(struct kref *ref) kref 80 drivers/crypto/chelsio/chtls/chtls_cm.c container_of(ref, struct chtls_sock, kref); kref 447 drivers/crypto/chelsio/chtls/chtls_cm.c kref_put(&csk->kref, chtls_sock_release); kref 1108 drivers/crypto/chelsio/chtls/chtls_cm.c chtls_sock_release(&csk->kref); kref 174 drivers/crypto/chelsio/chtls/chtls_main.c static inline void chtls_dev_release(struct kref *kref) kref 179 drivers/crypto/chelsio/chtls/chtls_main.c dev = container_of(kref, struct tls_device, kref); kref 195 drivers/crypto/chelsio/chtls/chtls_main.c kref_init(&tlsdev->kref); kref 302 drivers/crypto/chelsio/chtls/chtls_main.c kref_put(&cdev->tlsdev.kref, cdev->tlsdev.release); kref 324 drivers/crypto/chelsio/chtls/chtls_main.c kref_put(&cdev->tlsdev.kref, cdev->tlsdev.release); kref 205 drivers/dax/bus.c static void dax_region_free(struct kref *kref) kref 209 drivers/dax/bus.c dax_region = container_of(kref, struct dax_region, kref); kref 215 drivers/dax/bus.c kref_put(&dax_region->kref, dax_region_free); kref 255 drivers/dax/bus.c kref_init(&dax_region->kref); kref 265 drivers/dax/bus.c kref_get(&dax_region->kref); kref 424 drivers/dax/bus.c kref_get(&dax_region->kref); kref 31 drivers/dax/dax-private.h struct kref kref; kref 228 drivers/dma-buf/dma-fence.c void dma_fence_release(struct kref *kref) kref 231 drivers/dma-buf/dma-fence.c container_of(kref, struct dma_fence, refcount); kref 86 drivers/dma-buf/sw_sync.c kref_init(&obj->kref); kref 99 drivers/dma-buf/sw_sync.c static void sync_timeline_free(struct kref *kref) kref 102 drivers/dma-buf/sw_sync.c container_of(kref, struct sync_timeline, kref); kref 111 drivers/dma-buf/sw_sync.c kref_get(&obj->kref); kref 116 drivers/dma-buf/sw_sync.c kref_put(&obj->kref, sync_timeline_free); kref 34 drivers/dma-buf/sync_debug.h struct kref kref; kref 1206 drivers/dma/dmaengine.c static void dmaengine_unmap(struct kref *kref) kref 1208 drivers/dma/dmaengine.c struct dmaengine_unmap_data *unmap = container_of(kref, typeof(*unmap), kref); kref 1234 drivers/dma/dmaengine.c kref_put(&unmap->kref, dmaengine_unmap); kref 1289 drivers/dma/dmaengine.c kref_init(&unmap->kref); kref 533 drivers/firewire/core-card.c kref_init(&card->kref); kref 660 drivers/firewire/core-card.c void fw_card_release(struct kref *kref) kref 662 drivers/firewire/core-card.c struct fw_card *card = container_of(kref, struct fw_card, kref); kref 68 drivers/firewire/core-cdev.c struct kref kref; kref 73 drivers/firewire/core-cdev.c kref_get(&client->kref); kref 76 drivers/firewire/core-cdev.c static void client_release(struct kref *kref) kref 78 drivers/firewire/core-cdev.c struct client *client = container_of(kref, struct client, kref); kref 86 drivers/firewire/core-cdev.c kref_put(&client->kref, client_release); kref 264 drivers/firewire/core-cdev.c kref_init(&client->kref); kref 81 drivers/firewire/nosy.c struct kref kref; kref 87 drivers/firewire/nosy.c kref_get(&lynx->kref); kref 93 drivers/firewire/nosy.c lynx_release(struct kref *kref) kref 95 drivers/firewire/nosy.c kfree(container_of(kref, struct pcilynx, kref)); kref 101 drivers/firewire/nosy.c kref_put(&lynx->kref, lynx_release); kref 552 drivers/firewire/nosy.c kref_init(&lynx->kref); kref 257 drivers/firewire/sbp2.c struct kref kref; kref 398 drivers/firewire/sbp2.c static void free_orb(struct kref *kref) kref 400 drivers/firewire/sbp2.c struct sbp2_orb *orb = container_of(kref, struct sbp2_orb, kref); kref 448 drivers/firewire/sbp2.c kref_put(&orb->kref, free_orb); /* orb callback reference */ kref 480 drivers/firewire/sbp2.c kref_put(&orb->kref, free_orb); /* orb callback reference */ kref 485 drivers/firewire/sbp2.c kref_put(&orb->kref, free_orb); /* transaction callback reference */ kref 503 drivers/firewire/sbp2.c kref_get(&orb->kref); /* transaction callback reference */ kref 504 drivers/firewire/sbp2.c kref_get(&orb->kref); /* orb callback reference */ kref 530 drivers/firewire/sbp2.c kref_put(&orb->kref, free_orb); /* orb callback reference */ kref 563 drivers/firewire/sbp2.c kref_init(&orb->base.kref); kref 640 drivers/firewire/sbp2.c kref_put(&orb->base.kref, free_orb); kref 1455 drivers/firewire/sbp2.c kref_init(&orb->base.kref); kref 1487 drivers/firewire/sbp2.c kref_put(&orb->base.kref, free_orb); kref 47 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c static void amdgpu_bo_list_free(struct kref *ref) kref 44 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.h struct kref refcount; kref 207 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c static void amdgpu_ctx_fini(struct kref *ref) kref 284 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c static void amdgpu_ctx_do_release(struct kref *ref) kref 39 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h struct kref refcount; kref 673 drivers/gpu/drm/amd/amdkfd/kfd_priv.h struct kref ref; kref 64 drivers/gpu/drm/amd/amdkfd/kfd_process.c static void kfd_process_ref_release(struct kref *ref); kref 481 drivers/gpu/drm/amd/amdkfd/kfd_process.c static void kfd_process_ref_release(struct kref *ref) kref 1294 drivers/gpu/drm/amd/display/dc/core/dc.c static void dc_state_free(struct kref *kref) kref 1296 drivers/gpu/drm/amd/display/dc/core/dc.c struct dc_state *context = container_of(kref, struct dc_state, refcount); kref 2305 drivers/gpu/drm/amd/display/dc/core/dc.c struct kref refcount; kref 2449 drivers/gpu/drm/amd/display/dc/core/dc_resource.c struct kref refcount = dst_ctx->refcount; kref 75 drivers/gpu/drm/amd/display/dc/core/dc_sink.c static void dc_sink_free(struct kref *kref) kref 77 drivers/gpu/drm/amd/display/dc/core/dc_sink.c struct dc_sink *sink = container_of(kref, struct dc_sink, refcount); kref 146 drivers/gpu/drm/amd/display/dc/core/dc_stream.c static void dc_stream_free(struct kref *kref) kref 148 drivers/gpu/drm/amd/display/dc/core/dc_stream.c struct dc_stream_state *stream = container_of(kref, struct dc_stream_state, refcount); kref 191 drivers/gpu/drm/amd/display/dc/core/dc_surface.c static void dc_plane_state_free(struct kref *kref) kref 193 drivers/gpu/drm/amd/display/dc/core/dc_surface.c struct dc_plane_state *plane_state = container_of(kref, struct dc_plane_state, refcount); kref 208 drivers/gpu/drm/amd/display/dc/core/dc_surface.c static void dc_gamma_free(struct kref *kref) kref 210 drivers/gpu/drm/amd/display/dc/core/dc_surface.c struct dc_gamma *gamma = container_of(kref, struct dc_gamma, refcount); kref 239 drivers/gpu/drm/amd/display/dc/core/dc_surface.c static void dc_transfer_func_free(struct kref *kref) kref 241 drivers/gpu/drm/amd/display/dc/core/dc_surface.c struct dc_transfer_func *tf = container_of(kref, struct dc_transfer_func, refcount); kref 266 drivers/gpu/drm/amd/display/dc/core/dc_surface.c static void dc_3dlut_func_free(struct kref *kref) kref 268 drivers/gpu/drm/amd/display/dc/core/dc_surface.c struct dc_3dlut *lut = container_of(kref, struct dc_3dlut, refcount); kref 628 drivers/gpu/drm/amd/display/dc/dc.h struct kref refcount; kref 657 drivers/gpu/drm/amd/display/dc/dc.h struct kref refcount; kref 769 drivers/gpu/drm/amd/display/dc/dc.h struct kref refcount; kref 1019 drivers/gpu/drm/amd/display/dc/dc.h struct kref refcount; kref 466 drivers/gpu/drm/amd/display/dc/dc_hw_types.h struct kref refcount; kref 187 drivers/gpu/drm/amd/display/dc/dc_stream.h struct kref refcount; kref 402 drivers/gpu/drm/amd/display/dc/inc/core_types.h struct kref refcount; kref 45 drivers/gpu/drm/drm_atomic.c void __drm_crtc_commit_free(struct kref *kref) kref 48 drivers/gpu/drm/drm_atomic.c container_of(kref, struct drm_crtc_commit, ref); kref 256 drivers/gpu/drm/drm_atomic.c void __drm_atomic_state_free(struct kref *ref) kref 327 drivers/gpu/drm/drm_auth.c static void drm_master_destroy(struct kref *kref) kref 329 drivers/gpu/drm/drm_auth.c struct drm_master *master = container_of(kref, struct drm_master, refcount); kref 152 drivers/gpu/drm/drm_connector.c static void drm_connector_free(struct kref *kref) kref 155 drivers/gpu/drm/drm_connector.c container_of(kref, struct drm_connector, base.refcount); kref 2246 drivers/gpu/drm/drm_connector.c static void drm_tile_group_free(struct kref *kref) kref 2248 drivers/gpu/drm/drm_connector.c struct drm_tile_group *tg = container_of(kref, struct drm_tile_group, refcount); kref 58 drivers/gpu/drm/drm_crtc_internal.h struct kref; kref 141 drivers/gpu/drm/drm_crtc_internal.h void (*obj_free_cb)(struct kref *kref)); kref 196 drivers/gpu/drm/drm_crtc_internal.h void drm_framebuffer_free(struct kref *kref); kref 49 drivers/gpu/drm/drm_dp_aux_dev.c struct kref refcount; kref 97 drivers/gpu/drm/drm_dp_aux_dev.c static void release_drm_dp_aux_dev(struct kref *ref) kref 924 drivers/gpu/drm/drm_dp_mst_topology.c static void drm_dp_free_mst_branch_device(struct kref *kref) kref 927 drivers/gpu/drm/drm_dp_mst_topology.c container_of(kref, struct drm_dp_mst_branch, malloc_kref); kref 1059 drivers/gpu/drm/drm_dp_mst_topology.c static void drm_dp_free_mst_port(struct kref *kref) kref 1062 drivers/gpu/drm/drm_dp_mst_topology.c container_of(kref, struct drm_dp_mst_port, malloc_kref); kref 1111 drivers/gpu/drm/drm_dp_mst_topology.c static void drm_dp_destroy_mst_branch_device(struct kref *kref) kref 1114 drivers/gpu/drm/drm_dp_mst_topology.c container_of(kref, struct drm_dp_mst_branch, topology_kref); kref 1239 drivers/gpu/drm/drm_dp_mst_topology.c static void drm_dp_destroy_port(struct kref *kref) kref 1242 drivers/gpu/drm/drm_dp_mst_topology.c container_of(kref, struct drm_dp_mst_port, topology_kref); kref 839 drivers/gpu/drm/drm_drv.c static void drm_dev_release(struct kref *ref) kref 690 drivers/gpu/drm/drm_framebuffer.c void drm_framebuffer_free(struct kref *kref) kref 693 drivers/gpu/drm/drm_framebuffer.c container_of(kref, struct drm_framebuffer, base.refcount); kref 974 drivers/gpu/drm/drm_gem.c drm_gem_object_free(struct kref *kref) kref 977 drivers/gpu/drm/drm_gem.c container_of(kref, struct drm_gem_object, refcount); kref 41 drivers/gpu/drm/drm_mode_object.c void (*obj_free_cb)(struct kref *kref)) kref 529 drivers/gpu/drm/drm_property.c static void drm_property_free_blob(struct kref *kref) kref 532 drivers/gpu/drm/drm_property.c container_of(kref, struct drm_property_blob, base.refcount); kref 383 drivers/gpu/drm/drm_syncobj.c void drm_syncobj_free(struct kref *kref) kref 385 drivers/gpu/drm/drm_syncobj.c struct drm_syncobj *syncobj = container_of(kref, kref 94 drivers/gpu/drm/etnaviv/etnaviv_gem.h struct kref refcount; kref 372 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c static void submit_cleanup(struct kref *kref) kref 375 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c container_of(kref, struct etnaviv_gem_submit, refcount); kref 300 drivers/gpu/drm/etnaviv/etnaviv_mmu.c static void etnaviv_iommu_context_free(struct kref *kref) kref 303 drivers/gpu/drm/etnaviv/etnaviv_mmu.c container_of(kref, struct etnaviv_iommu_context, refcount); kref 71 drivers/gpu/drm/etnaviv/etnaviv_mmu.h struct kref refcount; kref 218 drivers/gpu/drm/i915/display/intel_frontbuffer.c static void frontbuffer_release(struct kref *ref) kref 44 drivers/gpu/drm/i915/display/intel_frontbuffer.h struct kref ref; kref 372 drivers/gpu/drm/i915/gem/i915_gem_context.c void i915_gem_context_release(struct kref *ref) kref 143 drivers/gpu/drm/i915/gem/i915_gem_context.h void i915_gem_context_release(struct kref *ctx_ref); kref 125 drivers/gpu/drm/i915/gem/i915_gem_context_types.h struct kref ref; kref 25 drivers/gpu/drm/i915/gem/i915_gem_userptr.c struct kref kref; kref 368 drivers/gpu/drm/i915/gem/i915_gem_userptr.c kref_init(&mm->kref); kref 380 drivers/gpu/drm/i915/gem/i915_gem_userptr.c kref_get(&mm->kref); kref 398 drivers/gpu/drm/i915/gem/i915_gem_userptr.c __i915_mm_struct_free(struct kref *kref) kref 400 drivers/gpu/drm/i915/gem/i915_gem_userptr.c struct i915_mm_struct *mm = container_of(kref, typeof(*mm), kref); kref 416 drivers/gpu/drm/i915/gem/i915_gem_userptr.c kref_put_mutex(&obj->userptr.mm->kref, kref 35 drivers/gpu/drm/i915/gt/intel_context_types.h void (*destroy)(struct kref *kref); kref 39 drivers/gpu/drm/i915/gt/intel_context_types.h struct kref ref; kref 215 drivers/gpu/drm/i915/gt/intel_engine.h void intel_ring_free(struct kref *ref); kref 88 drivers/gpu/drm/i915/gt/intel_engine_types.h struct kref ref; kref 1711 drivers/gpu/drm/i915/gt/intel_lrc.c static void execlists_context_destroy(struct kref *kref) kref 1713 drivers/gpu/drm/i915/gt/intel_lrc.c struct intel_context *ce = container_of(kref, typeof(*ce), ref); kref 3418 drivers/gpu/drm/i915/gt/intel_lrc.c static void virtual_context_destroy(struct kref *kref) kref 3421 drivers/gpu/drm/i915/gt/intel_lrc.c container_of(kref, typeof(*ve), context.ref); kref 1337 drivers/gpu/drm/i915/gt/intel_ringbuffer.c void intel_ring_free(struct kref *ref) kref 1352 drivers/gpu/drm/i915/gt/intel_ringbuffer.c static void ring_context_destroy(struct kref *ref) kref 213 drivers/gpu/drm/i915/gt/intel_timeline.c kref_init(&timeline->kref); kref 538 drivers/gpu/drm/i915/gt/intel_timeline.c void __intel_timeline_free(struct kref *kref) kref 541 drivers/gpu/drm/i915/gt/intel_timeline.c container_of(kref, typeof(*timeline), kref); kref 45 drivers/gpu/drm/i915/gt/intel_timeline.h kref_get(&timeline->kref); kref 49 drivers/gpu/drm/i915/gt/intel_timeline.h void __intel_timeline_free(struct kref *kref); kref 52 drivers/gpu/drm/i915/gt/intel_timeline.h kref_put(&timeline->kref, __intel_timeline_free); kref 82 drivers/gpu/drm/i915/gt/intel_timeline_types.h struct kref kref; kref 116 drivers/gpu/drm/i915/gt/mock_engine.c static void mock_context_destroy(struct kref *ref) kref 86 drivers/gpu/drm/i915/gvt/dmabuf.c static void dmabuf_gem_object_free(struct kref *kref) kref 89 drivers/gpu/drm/i915/gvt/dmabuf.c container_of(kref, struct intel_vgpu_dmabuf_obj, kref); kref 118 drivers/gpu/drm/i915/gvt/dmabuf.c kref_get(&obj->kref); kref 123 drivers/gpu/drm/i915/gvt/dmabuf.c kref_put(&obj->kref, dmabuf_gem_object_free); kref 398 drivers/gpu/drm/i915/gvt/dmabuf.c vgpu->id, kref_read(&dmabuf_obj->kref), kref 435 drivers/gpu/drm/i915/gvt/dmabuf.c kref_init(&dmabuf_obj->kref); kref 453 drivers/gpu/drm/i915/gvt/dmabuf.c __func__, kref_read(&dmabuf_obj->kref), ret); kref 520 drivers/gpu/drm/i915/gvt/dmabuf.c kref_read(&dmabuf_obj->kref), kref 58 drivers/gpu/drm/i915/gvt/dmabuf.h struct kref kref; kref 1950 drivers/gpu/drm/i915/gvt/gtt.c void _intel_vgpu_mm_release(struct kref *mm_ref) kref 146 drivers/gpu/drm/i915/gvt/gtt.h struct kref ref; kref 179 drivers/gpu/drm/i915/gvt/gtt.h void _intel_vgpu_mm_release(struct kref *mm_ref); kref 108 drivers/gpu/drm/i915/gvt/kvmgt.c struct kref ref; kref 1936 drivers/gpu/drm/i915/gvt/kvmgt.c static void __gvt_dma_release(struct kref *ref) kref 533 drivers/gpu/drm/i915/i915_gem_gtt.c void i915_vm_release(struct kref *kref) kref 536 drivers/gpu/drm/i915/i915_gem_gtt.c container_of(kref, struct i915_address_space, ref); kref 289 drivers/gpu/drm/i915/i915_gem_gtt.h struct kref ref; kref 573 drivers/gpu/drm/i915/i915_gem_gtt.h void i915_vm_release(struct kref *kref); kref 920 drivers/gpu/drm/i915/i915_gpu_error.c void __i915_gpu_state_free(struct kref *error_ref) kref 32 drivers/gpu/drm/i915/i915_gpu_error.h struct kref ref; kref 216 drivers/gpu/drm/i915/i915_gpu_error.h void __i915_gpu_state_free(struct kref *kref); kref 1546 drivers/gpu/drm/i915/i915_request.c if (refcount_dec_and_test(&tl->kref.refcount)) { kref 1554 drivers/gpu/drm/i915/i915_request.c __intel_timeline_free(&tl->kref); kref 19 drivers/gpu/drm/i915/selftests/i915_active.c struct kref ref; kref 34 drivers/gpu/drm/i915/selftests/i915_active.c static void __live_release(struct kref *ref) kref 87 drivers/gpu/drm/i915/selftests/lib_sw_fence.c struct kref ref; kref 122 drivers/gpu/drm/i915/selftests/lib_sw_fence.c static void heap_fence_release(struct kref *ref) kref 39 drivers/gpu/drm/lima/lima_ctx.c static void lima_ctx_do_release(struct kref *ref) kref 12 drivers/gpu/drm/lima/lima_ctx.h struct kref refcnt; kref 236 drivers/gpu/drm/lima/lima_vm.c void lima_vm_release(struct kref *kref) kref 238 drivers/gpu/drm/lima/lima_vm.c struct lima_vm *vm = container_of(kref, struct lima_vm, refcount); kref 31 drivers/gpu/drm/lima/lima_vm.h struct kref refcount; kref 47 drivers/gpu/drm/lima/lima_vm.h void lima_vm_release(struct kref *kref); kref 1286 drivers/gpu/drm/msm/adreno/a5xx_gpu.c static void a5xx_gpu_state_destroy(struct kref *kref) kref 1288 drivers/gpu/drm/msm/adreno/a5xx_gpu.c struct msm_gpu_state *state = container_of(kref, kref 905 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c void a6xx_gpu_state_destroy(struct kref *kref) kref 908 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c struct msm_gpu_state *state = container_of(kref, kref 604 drivers/gpu/drm/msm/adreno/adreno_gpu.c static void adreno_gpu_state_kref_destroy(struct kref *kref) kref 606 drivers/gpu/drm/msm/adreno/adreno_gpu.c struct msm_gpu_state *state = container_of(kref, kref 424 drivers/gpu/drm/msm/msm_drv.h void msm_submitqueue_destroy(struct kref *kref); kref 25 drivers/gpu/drm/msm/msm_gem.h struct kref kref; kref 12 drivers/gpu/drm/msm/msm_gem_vma.c msm_gem_address_space_destroy(struct kref *kref) kref 14 drivers/gpu/drm/msm/msm_gem_vma.c struct msm_gem_address_space *aspace = container_of(kref, kref 15 drivers/gpu/drm/msm/msm_gem_vma.c struct msm_gem_address_space, kref); kref 27 drivers/gpu/drm/msm/msm_gem_vma.c kref_put(&aspace->kref, msm_gem_address_space_destroy); kref 123 drivers/gpu/drm/msm/msm_gem_vma.c kref_get(&aspace->kref); kref 148 drivers/gpu/drm/msm/msm_gem_vma.c kref_init(&aspace->kref); kref 171 drivers/gpu/drm/msm/msm_gem_vma.c kref_init(&aspace->kref); kref 177 drivers/gpu/drm/msm/msm_gpu.h struct kref ref; kref 188 drivers/gpu/drm/msm/msm_gpu.h struct kref ref; kref 10 drivers/gpu/drm/msm/msm_submitqueue.c void msm_submitqueue_destroy(struct kref *kref) kref 12 drivers/gpu/drm/msm/msm_submitqueue.c struct msm_gpu_submitqueue *queue = container_of(kref, kref 24 drivers/gpu/drm/nouveau/include/nvkm/core/memory.h struct kref kref; kref 30 drivers/gpu/drm/nouveau/include/nvkm/subdev/mmu.h struct kref kref; kref 114 drivers/gpu/drm/nouveau/nouveau_fence.c nouveau_fence_context_put(struct kref *fence_ref) kref 31 drivers/gpu/drm/nouveau/nouveau_fence.h struct kref fence_ref; kref 104 drivers/gpu/drm/nouveau/nvkm/core/memory.c kref_init(&memory->kref); kref 108 drivers/gpu/drm/nouveau/nvkm/core/memory.c nvkm_memory_del(struct kref *kref) kref 110 drivers/gpu/drm/nouveau/nvkm/core/memory.c struct nvkm_memory *memory = container_of(kref, typeof(*memory), kref); kref 123 drivers/gpu/drm/nouveau/nvkm/core/memory.c kref_put(&memory->kref, nvkm_memory_del); kref 132 drivers/gpu/drm/nouveau/nvkm/core/memory.c kref_get(&memory->kref); kref 1049 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c kref_init(&vmm->kref); kref 1835 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c nvkm_vmm_del(struct kref *kref) kref 1837 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c struct nvkm_vmm *vmm = container_of(kref, typeof(*vmm), kref); kref 1847 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c kref_put(&vmm->kref, nvkm_vmm_del); kref 1856 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c kref_get(&vmm->kref); kref 89 drivers/gpu/drm/panfrost/panfrost_gem.c static void panfrost_gem_mapping_release(struct kref *kref) kref 93 drivers/gpu/drm/panfrost/panfrost_gem.c mapping = container_of(kref, struct panfrost_gem_mapping, refcount); kref 45 drivers/gpu/drm/panfrost/panfrost_gem.h struct kref refcount; kref 253 drivers/gpu/drm/panfrost/panfrost_job.c static void panfrost_job_cleanup(struct kref *ref) kref 17 drivers/gpu/drm/panfrost/panfrost_job.h struct kref refcount; kref 147 drivers/gpu/drm/ttm/ttm_bo.c static void ttm_bo_release_list(struct kref *list_kref) kref 155 drivers/gpu/drm/ttm/ttm_bo.c BUG_ON(kref_read(&bo->kref)); kref 202 drivers/gpu/drm/ttm/ttm_bo.c static void ttm_bo_ref_bug(struct kref *list_kref) kref 671 drivers/gpu/drm/ttm/ttm_bo.c static void ttm_bo_release(struct kref *kref) kref 674 drivers/gpu/drm/ttm/ttm_bo.c container_of(kref, struct ttm_buffer_object, kref); kref 691 drivers/gpu/drm/ttm/ttm_bo.c kref_put(&bo->kref, ttm_bo_release); kref 1326 drivers/gpu/drm/ttm/ttm_bo.c kref_init(&bo->kref); kref 517 drivers/gpu/drm/ttm/ttm_bo_util.c kref_init(&fbo->base.kref); kref 186 drivers/gpu/drm/v3d/v3d_drv.h struct kref refcount; kref 210 drivers/gpu/drm/v3d/v3d_drv.h void (*free)(struct kref *ref); kref 352 drivers/gpu/drm/v3d/v3d_gem.c v3d_job_free(struct kref *ref) kref 380 drivers/gpu/drm/v3d/v3d_gem.c v3d_render_job_free(struct kref *ref) kref 433 drivers/gpu/drm/v3d/v3d_gem.c struct v3d_job *job, void (*free)(struct kref *ref), kref 227 drivers/gpu/drm/vc4/vc4_drv.h struct kref bin_bo_kref; kref 340 drivers/gpu/drm/vc4/vc4_v3d.c static void bin_bo_release(struct kref *ref) kref 74 drivers/gpu/drm/vmwgfx/ttm_object.c struct kref refcount; kref 125 drivers/gpu/drm/vmwgfx/ttm_object.c struct kref kref; kref 140 drivers/gpu/drm/vmwgfx/ttm_object.c static void ttm_object_file_destroy(struct kref *kref) kref 143 drivers/gpu/drm/vmwgfx/ttm_object.c container_of(kref, struct ttm_object_file, refcount); kref 198 drivers/gpu/drm/vmwgfx/ttm_object.c static void ttm_release_base(struct kref *kref) kref 201 drivers/gpu/drm/vmwgfx/ttm_object.c container_of(kref, struct ttm_base_object, refcount); kref 333 drivers/gpu/drm/vmwgfx/ttm_object.c if (unlikely(kref_read(&ref->kref) == 0)) kref 371 drivers/gpu/drm/vmwgfx/ttm_object.c if (kref_get_unless_zero(&ref->kref)) { kref 395 drivers/gpu/drm/vmwgfx/ttm_object.c kref_init(&ref->kref); kref 420 drivers/gpu/drm/vmwgfx/ttm_object.c ttm_ref_object_release(struct kref *kref) kref 423 drivers/gpu/drm/vmwgfx/ttm_object.c container_of(kref, struct ttm_ref_object, kref); kref 458 drivers/gpu/drm/vmwgfx/ttm_object.c kref_put(&ref->kref, ttm_ref_object_release); kref 481 drivers/gpu/drm/vmwgfx/ttm_object.c ttm_ref_object_release(&ref->kref); kref 129 drivers/gpu/drm/vmwgfx/ttm_object.h struct kref refcount; kref 166 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h struct kref kref; kref 68 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c kref_get(&res->kref); kref 75 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c return kref_get_unless_zero(&res->kref) ? res : NULL; kref 97 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c static void vmw_resource_release(struct kref *kref) kref 100 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c container_of(kref, struct vmw_resource, kref); kref 150 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c kref_put(&res->kref, vmw_resource_release); kref 198 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c kref_init(&res->kref); kref 252 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c kref_get(&res->kref); kref 78 drivers/gpu/host1x/channel.c static void release_channel(struct kref *kref) kref 81 drivers/gpu/host1x/channel.c container_of(kref, struct host1x_channel, refcount); kref 25 drivers/gpu/host1x/channel.h struct kref refcount; kref 27 drivers/gpu/host1x/intr.c static void waiter_release(struct kref *kref) kref 29 drivers/gpu/host1x/intr.c kfree(container_of(kref, struct host1x_waitlist, refcount)); kref 48 drivers/gpu/host1x/intr.h struct kref refcount; kref 74 drivers/gpu/host1x/job.c static void job_free(struct kref *ref) kref 16 drivers/greybus/connection.c static void gb_connection_kref_release(struct kref *kref); kref 38 drivers/greybus/connection.c kref_get(&connection->kref); kref 47 drivers/greybus/connection.c kref_put(&connection->kref, gb_connection_kref_release); kref 94 drivers/greybus/connection.c static void gb_connection_kref_release(struct kref *kref) kref 98 drivers/greybus/connection.c connection = container_of(kref, struct gb_connection, kref); kref 197 drivers/greybus/connection.c kref_init(&connection->kref); kref 553 drivers/greybus/operation.c kref_init(&operation->kref); kref 662 drivers/greybus/operation.c kref_get(&operation->kref); kref 669 drivers/greybus/operation.c static void _gb_operation_destroy(struct kref *kref) kref 673 drivers/greybus/operation.c operation = container_of(kref, struct gb_operation, kref); kref 693 drivers/greybus/operation.c kref_put(&operation->kref, _gb_operation_destroy); kref 70 drivers/hid/hid-cougar.c struct kref kref; kref 126 drivers/hid/hid-cougar.c kref_get(&shared->kref); kref 133 drivers/hid/hid-cougar.c static void cougar_release_shared_data(struct kref *kref) kref 135 drivers/hid/hid-cougar.c struct cougar_shared *shared = container_of(kref, kref 136 drivers/hid/hid-cougar.c struct cougar_shared, kref); kref 150 drivers/hid/hid-cougar.c kref_put(&cougar->shared->kref, cougar_release_shared_data); kref 175 drivers/hid/hid-cougar.c kref_init(&shared->kref); kref 143 drivers/hid/hid-logitech-dj.c struct kref kref; kref 543 drivers/hid/hid-logitech-dj.c kref_get(&djrcv_dev->kref); kref 548 drivers/hid/hid-logitech-dj.c kref_get(&djrcv_dev->kref); kref 553 drivers/hid/hid-logitech-dj.c kref_get(&djrcv_dev->kref); kref 561 drivers/hid/hid-logitech-dj.c static void dj_release_receiver_dev(struct kref *kref) kref 563 drivers/hid/hid-logitech-dj.c struct dj_receiver_dev *djrcv_dev = container_of(kref, struct dj_receiver_dev, kref); kref 583 drivers/hid/hid-logitech-dj.c kref_put(&djrcv_dev->kref, dj_release_receiver_dev); kref 612 drivers/hid/hid-logitech-dj.c kref_init(&djrcv_dev->kref); kref 742 drivers/hid/wacom_sys.c struct kref kref; kref 823 drivers/hid/wacom_sys.c kref_get(&data->kref); kref 831 drivers/hid/wacom_sys.c kref_get(&data->kref); kref 839 drivers/hid/wacom_sys.c static void wacom_release_shared_data(struct kref *kref) kref 842 drivers/hid/wacom_sys.c container_of(kref, struct wacom_hdev_data, kref); kref 866 drivers/hid/wacom_sys.c kref_put(&data->kref, wacom_release_shared_data); kref 888 drivers/hid/wacom_sys.c kref_init(&data->kref); kref 262 drivers/hwmon/fschmd.c struct kref kref; kref 311 drivers/hwmon/fschmd.c static void fschmd_release_resources(struct kref *ref) kref 313 drivers/hwmon/fschmd.c struct fschmd_data *data = container_of(ref, struct fschmd_data, kref); kref 817 drivers/hwmon/fschmd.c kref_get(&data->kref); kref 846 drivers/hwmon/fschmd.c kref_put(&data->kref, fschmd_release_resources); kref 1101 drivers/hwmon/fschmd.c kref_init(&data->kref); kref 1293 drivers/hwmon/fschmd.c kref_put(&data->kref, fschmd_release_resources); kref 254 drivers/hwmon/w83793.c struct kref kref; kref 278 drivers/hwmon/w83793.c static void w83793_release_resources(struct kref *ref) kref 280 drivers/hwmon/w83793.c struct w83793_data *data = container_of(ref, struct w83793_data, kref); kref 1317 drivers/hwmon/w83793.c kref_get(&data->kref); kref 1351 drivers/hwmon/w83793.c kref_put(&data->kref, w83793_release_resources); kref 1556 drivers/hwmon/w83793.c kref_put(&data->kref, w83793_release_resources); kref 1672 drivers/hwmon/w83793.c kref_init(&data->kref); kref 94 drivers/iio/buffer/industrialio-buffer-dma.c static void iio_buffer_block_release(struct kref *kref) kref 96 drivers/iio/buffer/industrialio-buffer-dma.c struct iio_dma_buffer_block *block = container_of(kref, kref 97 drivers/iio/buffer/industrialio-buffer-dma.c struct iio_dma_buffer_block, kref); kref 110 drivers/iio/buffer/industrialio-buffer-dma.c kref_get(&block->kref); kref 115 drivers/iio/buffer/industrialio-buffer-dma.c kref_put(&block->kref, iio_buffer_block_release); kref 135 drivers/iio/buffer/industrialio-buffer-dma.c iio_buffer_block_release(&block->kref); kref 139 drivers/iio/buffer/industrialio-buffer-dma.c static void iio_buffer_block_release_atomic(struct kref *kref) kref 144 drivers/iio/buffer/industrialio-buffer-dma.c block = container_of(kref, struct iio_dma_buffer_block, kref); kref 158 drivers/iio/buffer/industrialio-buffer-dma.c kref_put(&block->kref, iio_buffer_block_release_atomic); kref 186 drivers/iio/buffer/industrialio-buffer-dma.c kref_init(&block->kref); kref 1429 drivers/iio/industrialio-buffer.c static void iio_buffer_release(struct kref *ref) kref 86 drivers/infiniband/core/cache.c struct kref kref; kref 211 drivers/infiniband/core/cache.c static void schedule_free_gid(struct kref *kref) kref 214 drivers/infiniband/core/cache.c container_of(kref, struct ib_gid_table_entry, kref); kref 260 drivers/infiniband/core/cache.c static void free_gid_entry(struct kref *kref) kref 263 drivers/infiniband/core/cache.c container_of(kref, struct ib_gid_table_entry, kref); kref 310 drivers/infiniband/core/cache.c kref_init(&entry->kref); kref 334 drivers/infiniband/core/cache.c kref_get(&entry->kref); kref 339 drivers/infiniband/core/cache.c kref_put(&entry->kref, schedule_free_gid); kref 344 drivers/infiniband/core/cache.c kref_put(&entry->kref, free_gid_entry); kref 802 drivers/infiniband/core/cache.c if (kref_read(&table->data_vec[i]->kref) > 1) { kref 805 drivers/infiniband/core/cache.c kref_read(&table->data_vec[i]->kref)); kref 369 drivers/infiniband/core/cma.c struct kref mcref; kref 519 drivers/infiniband/core/cma.c static inline void release_mc(struct kref *kref) kref 521 drivers/infiniband/core/cma.c struct cma_multicast *mc = container_of(kref, struct cma_multicast, mcref); kref 101 drivers/infiniband/core/counters.c kref_init(&counter->kref); kref 245 drivers/infiniband/core/counters.c if (counter && !kref_get_unless_zero(&counter->kref)) kref 264 drivers/infiniband/core/counters.c static void counter_release(struct kref *kref) kref 268 drivers/infiniband/core/counters.c counter = container_of(kref, struct rdma_counter, kref); kref 299 drivers/infiniband/core/counters.c kref_put(&counter->kref, counter_release); kref 338 drivers/infiniband/core/counters.c kref_put(&counter->kref, counter_release); kref 457 drivers/infiniband/core/counters.c kref_get(&counter->kref); kref 501 drivers/infiniband/core/counters.c kref_put(&counter->kref, counter_release); kref 1453 drivers/infiniband/core/device.c WARN_ON(kref_read(&ib_dev->dev.kobj.kref) <= 1); kref 129 drivers/infiniband/core/iwpm_msg.c iwpm_free_nlmsg_request(&nlmsg_request->kref); kref 218 drivers/infiniband/core/iwpm_msg.c iwpm_free_nlmsg_request(&nlmsg_request->kref); kref 311 drivers/infiniband/core/iwpm_msg.c iwpm_free_nlmsg_request(&nlmsg_request->kref); kref 452 drivers/infiniband/core/iwpm_msg.c kref_put(&nlmsg_request->kref, iwpm_free_nlmsg_request); kref 524 drivers/infiniband/core/iwpm_msg.c kref_put(&nlmsg_request->kref, iwpm_free_nlmsg_request); kref 621 drivers/infiniband/core/iwpm_msg.c kref_put(&nlmsg_request->kref, iwpm_free_nlmsg_request); kref 830 drivers/infiniband/core/iwpm_msg.c kref_put(&nlmsg_request->kref, iwpm_free_nlmsg_request); kref 355 drivers/infiniband/core/iwpm_util.c kref_init(&nlmsg_request->kref); kref 356 drivers/infiniband/core/iwpm_util.c kref_get(&nlmsg_request->kref); kref 366 drivers/infiniband/core/iwpm_util.c void iwpm_free_nlmsg_request(struct kref *kref) kref 371 drivers/infiniband/core/iwpm_util.c nlmsg_request = container_of(kref, struct iwpm_nlmsg_request, kref); kref 394 drivers/infiniband/core/iwpm_util.c kref_get(&nlmsg_request->kref); kref 414 drivers/infiniband/core/iwpm_util.c kref_put(&nlmsg_request->kref, iwpm_free_nlmsg_request); kref 73 drivers/infiniband/core/iwpm_util.h struct kref kref; kref 115 drivers/infiniband/core/iwpm_util.h void iwpm_free_nlmsg_request(struct kref *kref); kref 50 drivers/infiniband/core/rdma_core.c static void uverbs_uobject_free(struct kref *ref) kref 219 drivers/infiniband/core/restrack.c kref_init(&res->kref); kref 277 drivers/infiniband/core/restrack.c return kref_get_unless_zero(&res->kref); kref 306 drivers/infiniband/core/restrack.c static void restrack_release(struct kref *kref) kref 310 drivers/infiniband/core/restrack.c res = container_of(kref, struct rdma_restrack_entry, kref); kref 316 drivers/infiniband/core/restrack.c return kref_put(&res->kref, restrack_release); kref 66 drivers/infiniband/core/sa_query.c struct kref ref; kref 1145 drivers/infiniband/core/sa_query.c static void free_sm_ah(struct kref *kref) kref 1147 drivers/infiniband/core/sa_query.c struct ib_sa_sm_ah *sm_ah = container_of(kref, struct ib_sa_sm_ah, ref); kref 108 drivers/infiniband/core/user_mad.c struct kref kref; kref 148 drivers/infiniband/core/user_mad.c static void ib_umad_dev_free(struct kref *kref) kref 151 drivers/infiniband/core/user_mad.c container_of(kref, struct ib_umad_device, kref); kref 158 drivers/infiniband/core/user_mad.c kref_get(&dev->kref); kref 163 drivers/infiniband/core/user_mad.c kref_put(&dev->kref, ib_umad_dev_free); kref 1368 drivers/infiniband/core/user_mad.c kref_init(&umad_dev->kref); kref 129 drivers/infiniband/core/uverbs.h struct kref ref; kref 139 drivers/infiniband/core/uverbs.h struct kref ref; kref 232 drivers/infiniband/core/uverbs.h void ib_uverbs_release_file(struct kref *ref); kref 128 drivers/infiniband/core/uverbs_main.c static void ib_uverbs_release_async_event_file(struct kref *ref) kref 191 drivers/infiniband/core/uverbs_main.c void ib_uverbs_release_file(struct kref *ref) kref 270 drivers/infiniband/hw/cxgb3/iwch_cm.c kref_init(&epc->kref); kref 278 drivers/infiniband/hw/cxgb3/iwch_cm.c void __free_ep(struct kref *kref) kref 281 drivers/infiniband/hw/cxgb3/iwch_cm.c ep = container_of(container_of(kref, struct iwch_ep_common, kref), kref 58 drivers/infiniband/hw/cxgb3/iwch_cm.h __func__, __LINE__, ep, kref_read(&((ep)->kref))); \ kref 59 drivers/infiniband/hw/cxgb3/iwch_cm.h WARN_ON(kref_read(&((ep)->kref)) < 1); \ kref 60 drivers/infiniband/hw/cxgb3/iwch_cm.h kref_put(&((ep)->kref), __free_ep); \ kref 65 drivers/infiniband/hw/cxgb3/iwch_cm.h __func__, __LINE__, ep, kref_read(&((ep)->kref))); \ kref 66 drivers/infiniband/hw/cxgb3/iwch_cm.h kref_get(&((ep)->kref)); \ kref 159 drivers/infiniband/hw/cxgb3/iwch_cm.h struct kref kref; kref 225 drivers/infiniband/hw/cxgb3/iwch_cm.h void __free_ep(struct kref *kref); kref 965 drivers/infiniband/hw/cxgb3/iwch_qp.c BUG_ON(kref_read(&qhp->ep->com.kref) < 2); kref 321 drivers/infiniband/hw/cxgb4/cm.c kref_init(&epc->kref); kref 386 drivers/infiniband/hw/cxgb4/cm.c void _c4iw_free_ep(struct kref *kref) kref 390 drivers/infiniband/hw/cxgb4/cm.c ep = container_of(kref, struct c4iw_ep, com.kref); kref 1511 drivers/infiniband/hw/cxgb4/device.c void _c4iw_free_wr_wait(struct kref *kref) kref 1515 drivers/infiniband/hw/cxgb4/device.c wr_waitp = container_of(kref, struct c4iw_wr_wait, kref); kref 1526 drivers/infiniband/hw/cxgb4/device.c kref_init(&wr_waitp->kref); kref 112 drivers/infiniband/hw/cxgb4/iw_cxgb4.h struct kref kref; kref 194 drivers/infiniband/hw/cxgb4/iw_cxgb4.h struct kref rqt_kref; kref 195 drivers/infiniband/hw/cxgb4/iw_cxgb4.h struct kref pbl_kref; kref 213 drivers/infiniband/hw/cxgb4/iw_cxgb4.h struct kref kref; kref 216 drivers/infiniband/hw/cxgb4/iw_cxgb4.h void _c4iw_free_wr_wait(struct kref *kref); kref 221 drivers/infiniband/hw/cxgb4/iw_cxgb4.h kref_read(&wr_waitp->kref)); kref 222 drivers/infiniband/hw/cxgb4/iw_cxgb4.h WARN_ON(kref_read(&wr_waitp->kref) == 0); kref 223 drivers/infiniband/hw/cxgb4/iw_cxgb4.h kref_put(&wr_waitp->kref, _c4iw_free_wr_wait); kref 229 drivers/infiniband/hw/cxgb4/iw_cxgb4.h kref_read(&wr_waitp->kref)); kref 230 drivers/infiniband/hw/cxgb4/iw_cxgb4.h WARN_ON(kref_read(&wr_waitp->kref) == 0); kref 231 drivers/infiniband/hw/cxgb4/iw_cxgb4.h kref_get(&wr_waitp->kref); kref 693 drivers/infiniband/hw/cxgb4/iw_cxgb4.h ep, kref_read(&((ep)->kref))); \ kref 694 drivers/infiniband/hw/cxgb4/iw_cxgb4.h WARN_ON(kref_read(&((ep)->kref)) < 1); \ kref 695 drivers/infiniband/hw/cxgb4/iw_cxgb4.h kref_put(&((ep)->kref), _c4iw_free_ep); \ kref 700 drivers/infiniband/hw/cxgb4/iw_cxgb4.h ep, kref_read(&((ep)->kref))); \ kref 701 drivers/infiniband/hw/cxgb4/iw_cxgb4.h kref_get(&((ep)->kref)); \ kref 703 drivers/infiniband/hw/cxgb4/iw_cxgb4.h void _c4iw_free_ep(struct kref *kref); kref 859 drivers/infiniband/hw/cxgb4/iw_cxgb4.h struct kref kref; kref 281 drivers/infiniband/hw/cxgb4/resource.c static void destroy_pblpool(struct kref *kref) kref 285 drivers/infiniband/hw/cxgb4/resource.c rdev = container_of(kref, struct c4iw_rdev, pbl_kref); kref 363 drivers/infiniband/hw/cxgb4/resource.c static void destroy_rqtpool(struct kref *kref) kref 367 drivers/infiniband/hw/cxgb4/resource.c rdev = container_of(kref, struct c4iw_rdev, rqt_kref); kref 851 drivers/infiniband/hw/hfi1/affinity.c static void hfi1_irq_notifier_release(struct kref *ref) kref 281 drivers/infiniband/hw/hfi1/hfi.h struct kref kref; kref 204 drivers/infiniband/hw/hfi1/init.c kref_init(&rcd->kref); kref 212 drivers/infiniband/hw/hfi1/init.c static void hfi1_rcd_free(struct kref *kref) kref 216 drivers/infiniband/hw/hfi1/init.c container_of(kref, struct hfi1_ctxtdata, kref); kref 236 drivers/infiniband/hw/hfi1/init.c return kref_put(&rcd->kref, hfi1_rcd_free); kref 252 drivers/infiniband/hw/hfi1/init.c return kref_get_unless_zero(&rcd->kref); kref 232 drivers/infiniband/hw/hfi1/sdma.c static void sdma_complete(struct kref *); kref 264 drivers/infiniband/hw/hfi1/sdma.c kref_get(&ss->kref); kref 267 drivers/infiniband/hw/hfi1/sdma.c static void sdma_complete(struct kref *kref) kref 270 drivers/infiniband/hw/hfi1/sdma.c container_of(kref, struct sdma_state, kref); kref 277 drivers/infiniband/hw/hfi1/sdma.c kref_put(&ss->kref, sdma_complete); kref 1448 drivers/infiniband/hw/hfi1/sdma.c kref_init(&sde->state.kref); kref 186 drivers/infiniband/hw/hfi1/sdma.h struct kref kref; kref 454 drivers/infiniband/hw/qedr/qedr.h struct kref refcnt; kref 549 drivers/infiniband/hw/qedr/qedr.h struct kref refcnt; kref 82 drivers/infiniband/hw/qedr/qedr_iw_cm.c static void qedr_iw_free_qp(struct kref *ref) kref 90 drivers/infiniband/hw/qedr/qedr_iw_cm.c qedr_iw_free_ep(struct kref *ref) kref 486 drivers/infiniband/hw/qib/qib.h struct kref kref; kref 2805 drivers/infiniband/hw/qib/qib_iba7322.c static void qib_irq_notifier_release(struct kref *ref) kref 2808 drivers/infiniband/hw/qib/qib_iba7322.c container_of(ref, struct qib_irq_notify, notify.kref); kref 59 drivers/infiniband/hw/qib/qib_sdma.c static void sdma_complete(struct kref *); kref 70 drivers/infiniband/hw/qib/qib_sdma.c kref_get(&ss->kref); kref 73 drivers/infiniband/hw/qib/qib_sdma.c static void sdma_complete(struct kref *kref) kref 76 drivers/infiniband/hw/qib/qib_sdma.c container_of(kref, struct qib_sdma_state, kref); kref 83 drivers/infiniband/hw/qib/qib_sdma.c kref_put(&ss->kref, sdma_complete); kref 426 drivers/infiniband/hw/qib/qib_sdma.c kref_init(&ppd->sdma_state.kref); kref 84 drivers/infiniband/hw/usnic/usnic_ib.h struct kref vf_cnt; kref 478 drivers/infiniband/hw/usnic/usnic_ib_main.c static void usnic_ib_undiscover_pf(struct kref *kref) kref 484 drivers/infiniband/hw/usnic/usnic_ib_main.c dev = container_of(kref, struct usnic_ib_dev, vf_cnt)->pdev; kref 71 drivers/infiniband/sw/rdmavt/mmap.c void rvt_release_mmap_info(struct kref *ref) kref 54 drivers/infiniband/sw/rdmavt/mmap.h void rvt_release_mmap_info(struct kref *ref); kref 87 drivers/infiniband/sw/rxe/rxe_loc.h struct kref ref; kref 93 drivers/infiniband/sw/rxe/rxe_loc.h void rxe_mmap_release(struct kref *ref); kref 45 drivers/infiniband/sw/rxe/rxe_mmap.c void rxe_mmap_release(struct kref *ref) kref 241 drivers/infiniband/sw/rxe/rxe_pool.c static void rxe_pool_release(struct kref *kref) kref 243 drivers/infiniband/sw/rxe/rxe_pool.c struct rxe_pool *pool = container_of(kref, struct rxe_pool, ref_cnt); kref 461 drivers/infiniband/sw/rxe/rxe_pool.c void rxe_elem_release(struct kref *kref) kref 464 drivers/infiniband/sw/rxe/rxe_pool.c container_of(kref, struct rxe_pool_entry, ref_cnt); kref 84 drivers/infiniband/sw/rxe/rxe_pool.h struct kref ref_cnt; kref 96 drivers/infiniband/sw/rxe/rxe_pool.h struct kref ref_cnt; kref 161 drivers/infiniband/sw/rxe/rxe_pool.h void rxe_elem_release(struct kref *kref); kref 160 drivers/infiniband/sw/siw/siw.h struct kref ref; kref 433 drivers/infiniband/sw/siw/siw.h struct kref ref; kref 531 drivers/infiniband/sw/siw/siw.h void siw_free_qp(struct kref *ref); kref 249 drivers/infiniband/sw/siw/siw_cm.c static void __siw_cep_dealloc(struct kref *ref) kref 42 drivers/infiniband/sw/siw/siw_cm.h struct kref ref; kref 140 drivers/infiniband/sw/siw/siw_mem.c void siw_free_mem(struct kref *ref) kref 25 drivers/infiniband/sw/siw/siw_mem.h void siw_free_mem(struct kref *ref); kref 1312 drivers/infiniband/sw/siw/siw_qp.c void siw_free_qp(struct kref *ref) kref 424 drivers/infiniband/ulp/ipoib/ipoib.h struct kref ref; kref 488 drivers/infiniband/ulp/ipoib/ipoib.h void ipoib_free_ah(struct kref *kref); kref 81 drivers/infiniband/ulp/ipoib/ipoib_ib.c void ipoib_free_ah(struct kref *kref) kref 83 drivers/infiniband/ulp/ipoib/ipoib_ib.c struct ipoib_ah *ah = container_of(kref, struct ipoib_ah, ref); kref 397 drivers/infiniband/ulp/isert/ib_isert.c kref_init(&isert_conn->kref); kref 602 drivers/infiniband/ulp/isert/ib_isert.c kref_get(&isert_conn->kref); kref 614 drivers/infiniband/ulp/isert/ib_isert.c isert_release_kref(struct kref *kref) kref 616 drivers/infiniband/ulp/isert/ib_isert.c struct isert_conn *isert_conn = container_of(kref, kref 617 drivers/infiniband/ulp/isert/ib_isert.c struct isert_conn, kref); kref 628 drivers/infiniband/ulp/isert/ib_isert.c kref_put(&isert_conn->kref, isert_release_kref); kref 160 drivers/infiniband/ulp/isert/ib_isert.h struct kref kref; kref 98 drivers/infiniband/ulp/srpt/ib_srpt.c static void srpt_free_ch(struct kref *kref); kref 1906 drivers/infiniband/ulp/srpt/ib_srpt.c kref_get(&ch->kref); kref 1923 drivers/infiniband/ulp/srpt/ib_srpt.c kref_put(&ch->kref, srpt_free_ch); kref 2072 drivers/infiniband/ulp/srpt/ib_srpt.c static void srpt_free_ch(struct kref *kref) kref 2074 drivers/infiniband/ulp/srpt/ib_srpt.c struct srpt_rdma_ch *ch = container_of(kref, struct srpt_rdma_ch, kref); kref 2135 drivers/infiniband/ulp/srpt/ib_srpt.c kref_put(&ch->kref, srpt_free_ch); kref 2230 drivers/infiniband/ulp/srpt/ib_srpt.c kref_init(&ch->kref); kref 308 drivers/infiniband/ulp/srpt/ib_srpt.h struct kref kref; kref 33 drivers/input/serio/serio_raw.c struct kref kref; kref 104 drivers/input/serio/serio_raw.c kref_get(&serio_raw->kref); kref 115 drivers/input/serio/serio_raw.c static void serio_raw_free(struct kref *kref) kref 118 drivers/input/serio/serio_raw.c container_of(kref, struct serio_raw, kref); kref 135 drivers/input/serio/serio_raw.c kref_put(&serio_raw->kref, serio_raw_free); kref 304 drivers/input/serio/serio_raw.c kref_init(&serio_raw->kref); kref 352 drivers/input/serio/serio_raw.c kref_put(&serio_raw->kref, serio_raw_free); kref 405 drivers/input/serio/serio_raw.c kref_put(&serio_raw->kref, serio_raw_free); kref 1995 drivers/iommu/amd_iommu_init.c static void _irq_notifier_release(struct kref *ref) kref 36 drivers/lightnvm/core.c static void nvm_free(struct kref *ref); kref 1124 drivers/lightnvm/core.c static void nvm_free(struct kref *ref) kref 1663 drivers/lightnvm/pblk-core.c void pblk_line_put(struct kref *ref) kref 1671 drivers/lightnvm/pblk-core.c void pblk_line_put_wq(struct kref *ref) kref 36 drivers/lightnvm/pblk-init.c struct kref kref; kref 45 drivers/lightnvm/pblk-init.c .kref = KREF_INIT(0), kref 340 drivers/lightnvm/pblk-init.c if (kref_get_unless_zero(&pblk_caches.kref)) kref 345 drivers/lightnvm/pblk-init.c kref_init(&pblk_caches.kref); kref 352 drivers/lightnvm/pblk-init.c static void pblk_destroy_global_caches(struct kref *ref) kref 356 drivers/lightnvm/pblk-init.c c = container_of(ref, struct pblk_global_caches, kref); kref 367 drivers/lightnvm/pblk-init.c kref_put(&pblk_caches.kref, pblk_destroy_global_caches); kref 151 drivers/lightnvm/pblk-recovery.c static void pblk_recov_complete(struct kref *ref) kref 128 drivers/lightnvm/pblk.h struct kref ref; kref 474 drivers/lightnvm/pblk.h struct kref ref; /* Write buffer L2P references */ kref 808 drivers/lightnvm/pblk.h void pblk_line_put(struct kref *ref); kref 809 drivers/lightnvm/pblk.h void pblk_line_put_wq(struct kref *ref); kref 41 drivers/macintosh/windfarm.h struct kref ref; kref 109 drivers/macintosh/windfarm.h struct kref ref; kref 27 drivers/macintosh/windfarm_ad7417_sensor.c struct kref ref; kref 152 drivers/macintosh/windfarm_ad7417_sensor.c static void wf_ad7417_release(struct kref *ref) kref 149 drivers/macintosh/windfarm_core.c static void wf_control_release(struct kref *kref) kref 151 drivers/macintosh/windfarm_core.c struct wf_control *ct = container_of(kref, struct wf_control, ref); kref 279 drivers/macintosh/windfarm_core.c static void wf_sensor_release(struct kref *kref) kref 281 drivers/macintosh/windfarm_core.c struct wf_sensor *sr = container_of(kref, struct wf_sensor, ref); kref 56 drivers/macintosh/windfarm_fcu_controls.c struct kref ref; kref 71 drivers/macintosh/windfarm_fcu_controls.c static void wf_fcu_release(struct kref *ref) kref 28 drivers/macintosh/windfarm_smu_sat.c struct kref ref; kref 168 drivers/macintosh/windfarm_smu_sat.c static void wf_sat_release(struct kref *ref) kref 23 drivers/media/cec/cec-notifier.c struct kref kref; kref 46 drivers/media/cec/cec-notifier.c kref_get(&n->kref); kref 66 drivers/media/cec/cec-notifier.c kref_init(&n->kref); kref 74 drivers/media/cec/cec-notifier.c static void cec_notifier_release(struct kref *kref) kref 77 drivers/media/cec/cec-notifier.c container_of(kref, struct cec_notifier, kref); kref 87 drivers/media/cec/cec-notifier.c kref_put(&n->kref, cec_notifier_release); kref 204 drivers/media/cec/cec-notifier.c kref_get(&n->kref); kref 24 drivers/media/common/siano/smsdvb-debugfs.c struct kref refcount; kref 338 drivers/media/common/siano/smsdvb-debugfs.c static void smsdvb_debugfs_data_release(struct kref *ref) kref 114 drivers/media/dvb-core/dvb_ca_en50221.c struct kref refcount; kref 168 drivers/media/dvb-core/dvb_ca_en50221.c static void dvb_ca_private_release(struct kref *ref) kref 145 drivers/media/dvb-core/dvb_frontend.c static void dvb_frontend_free(struct kref *ref) kref 33 drivers/media/mc/mc-dev-allocator.c struct kref refcount; kref 42 drivers/media/mc/mc-dev-allocator.c static void media_device_instance_release(struct kref *kref) kref 45 drivers/media/mc/mc-dev-allocator.c container_of(kref, struct media_device_instance, refcount); kref 60 drivers/media/mc/mc-request.c static void media_request_release(struct kref *kref) kref 63 drivers/media/mc/mc-request.c container_of(kref, struct media_request, kref); kref 81 drivers/media/mc/mc-request.c kref_put(&req->kref, media_request_release); kref 322 drivers/media/mc/mc-request.c kref_init(&req->kref); kref 348 drivers/media/mc/mc-request.c static void media_request_object_release(struct kref *kref) kref 351 drivers/media/mc/mc-request.c container_of(kref, struct media_request_object, kref); kref 386 drivers/media/mc/mc-request.c kref_put(&obj->kref, media_request_object_release); kref 397 drivers/media/mc/mc-request.c kref_init(&obj->kref); kref 288 drivers/media/platform/rcar-vin/rcar-core.c static void rvin_group_release(struct kref *kref) kref 291 drivers/media/platform/rcar-vin/rcar-core.c container_of(kref, struct rvin_group, refcount); kref 246 drivers/media/platform/rcar-vin/rcar-vin.h struct kref refcount; kref 280 drivers/media/platform/vsp1/vsp1_pipe.c kref_init(&pipe->kref); kref 122 drivers/media/platform/vsp1/vsp1_pipe.h struct kref kref; kref 679 drivers/media/platform/vsp1/vsp1_video.c kref_get(&pipe->kref); kref 685 drivers/media/platform/vsp1/vsp1_video.c static void vsp1_video_pipeline_release(struct kref *kref) kref 687 drivers/media/platform/vsp1/vsp1_video.c struct vsp1_pipeline *pipe = container_of(kref, typeof(*pipe), kref); kref 698 drivers/media/platform/vsp1/vsp1_video.c kref_put(&pipe->kref, vsp1_video_pipeline_release); kref 53 drivers/media/usb/as102/as102_drv.h struct kref kref; kref 301 drivers/media/usb/as102/as102_usb_drv.c static void as102_usb_release(struct kref *kref) kref 305 drivers/media/usb/as102/as102_usb_drv.c as102_dev = container_of(kref, struct as102_dev_t, kref); kref 331 drivers/media/usb/as102/as102_usb_drv.c kref_put(&as102_dev->kref, as102_usb_release); kref 373 drivers/media/usb/as102/as102_usb_drv.c kref_init(&as102_dev->kref); kref 445 drivers/media/usb/as102/as102_usb_drv.c kref_get(&dev->kref); kref 458 drivers/media/usb/as102/as102_usb_drv.c kref_put(&dev->kref, as102_usb_release); kref 3397 drivers/media/usb/em28xx/em28xx-cards.c void em28xx_free_device(struct kref *ref) kref 2123 drivers/media/usb/em28xx/em28xx-video.c static void em28xx_free_v4l2(struct kref *ref) kref 548 drivers/media/usb/em28xx/em28xx.h struct kref ref; kref 644 drivers/media/usb/em28xx/em28xx.h struct kref ref; kref 847 drivers/media/usb/em28xx/em28xx.h void em28xx_free_device(struct kref *ref); kref 1888 drivers/media/usb/uvc/uvc_driver.c static void uvc_delete(struct kref *kref) kref 1890 drivers/media/usb/uvc/uvc_driver.c struct uvc_device *dev = container_of(kref, struct uvc_device, ref); kref 476 drivers/media/usb/uvc/uvc_queue.c static void uvc_queue_buffer_complete(struct kref *ref) kref 419 drivers/media/usb/uvc/uvcvideo.h struct kref ref; kref 661 drivers/media/usb/uvc/uvcvideo.h struct kref ref; kref 45 drivers/media/v4l2-core/v4l2-device.c static void v4l2_device_release(struct kref *ref) kref 145 drivers/misc/fastrpc.c struct kref refcount; kref 158 drivers/misc/fastrpc.c struct kref refcount; kref 188 drivers/misc/fastrpc.c struct kref refcount; kref 208 drivers/misc/fastrpc.c static void fastrpc_free_map(struct kref *ref) kref 296 drivers/misc/fastrpc.c static void fastrpc_channel_ctx_free(struct kref *ref) kref 315 drivers/misc/fastrpc.c static void fastrpc_context_free(struct kref *ref) kref 1386 drivers/misc/genwqe/card_dev.c rc = kref_read(&cd->cdev_genwqe.kobj.kref); kref 33 drivers/misc/habanalabs/command_buffer.c static void cb_release(struct kref *ref) kref 17 drivers/misc/habanalabs/command_submission.c static void cs_do_release(struct kref *ref); kref 159 drivers/misc/habanalabs/command_submission.c static void cs_do_release(struct kref *ref) kref 45 drivers/misc/habanalabs/context.c void hl_ctx_do_release(struct kref *ref) kref 41 drivers/misc/habanalabs/device.c static void hpriv_release(struct kref *ref) kref 269 drivers/misc/habanalabs/habanalabs.h struct kref refcount; kref 650 drivers/misc/habanalabs/habanalabs.h struct kref refcount; kref 731 drivers/misc/habanalabs/habanalabs.h struct kref refcount; kref 878 drivers/misc/habanalabs/habanalabs.h struct kref dram_pg_pool_refcount; kref 934 drivers/misc/habanalabs/habanalabs.h struct kref refcount; kref 1463 drivers/misc/habanalabs/habanalabs.h void hl_ctx_do_release(struct kref *ref); kref 242 drivers/misc/habanalabs/memory.c static void dram_pg_pool_do_release(struct kref *ref) kref 39 drivers/misc/ibmasm/command.c kref_init(&cmd->kref); kref 52 drivers/misc/ibmasm/command.c void ibmasm_free_command(struct kref *kref) kref 54 drivers/misc/ibmasm/command.c struct command *cmd = to_command(kref); kref 85 drivers/misc/ibmasm/ibmasm.h struct kref kref; kref 88 drivers/misc/ibmasm/ibmasm.h #define to_command(c) container_of(c, struct command, kref) kref 90 drivers/misc/ibmasm/ibmasm.h void ibmasm_free_command(struct kref *kref); kref 97 drivers/misc/ibmasm/ibmasm.h kref_put(&cmd->kref, ibmasm_free_command); kref 103 drivers/misc/ibmasm/ibmasm.h kref_get(&cmd->kref); kref 54 drivers/misc/mei/client.c static void mei_me_cl_release(struct kref *ref) kref 158 drivers/misc/mei/mei_dev.h struct kref refcnt; kref 502 drivers/misc/mic/scif/scif_mmap.c struct kref ref; kref 505 drivers/misc/mic/scif/scif_mmap.c static void vma_pvt_release(struct kref *ref) kref 24 drivers/misc/ocxl/core.c kref_init(&afu->kref); kref 33 drivers/misc/ocxl/core.c static void free_afu(struct kref *kref) kref 35 drivers/misc/ocxl/core.c struct ocxl_afu *afu = container_of(kref, struct ocxl_afu, kref); kref 44 drivers/misc/ocxl/core.c kref_get(&afu->kref); kref 50 drivers/misc/ocxl/core.c kref_put(&afu->kref, free_afu); kref 81 drivers/misc/ocxl/link.c struct kref ref; kref 452 drivers/misc/ocxl/link.c static void release_xsl(struct kref *ref) kref 38 drivers/misc/ocxl/ocxl_internal.h struct kref kref; kref 114 drivers/misc/vmw_vmci/vmci_context.c kref_init(&context->kref); kref 410 drivers/misc/vmw_vmci/vmci_context.c kref_get(&context->kref); kref 424 drivers/misc/vmw_vmci/vmci_context.c static void ctx_free_ctx(struct kref *kref) kref 426 drivers/misc/vmw_vmci/vmci_context.c struct vmci_ctx *context = container_of(kref, struct vmci_ctx, kref); kref 497 drivers/misc/vmw_vmci/vmci_context.c kref_put(&context->kref, ctx_free_ctx); kref 43 drivers/misc/vmw_vmci/vmci_context.h struct kref kref; kref 124 drivers/misc/vmw_vmci/vmci_resource.c kref_init(&resource->kref); kref 185 drivers/misc/vmw_vmci/vmci_resource.c kref_get(&resource->kref); kref 190 drivers/misc/vmw_vmci/vmci_resource.c static void vmci_release_resource(struct kref *kref) kref 193 drivers/misc/vmw_vmci/vmci_resource.c container_of(kref, struct vmci_resource, kref); kref 214 drivers/misc/vmw_vmci/vmci_resource.c return kref_put(&resource->kref, vmci_release_resource) ? kref 31 drivers/misc/vmw_vmci/vmci_resource.h struct kref kref; kref 299 drivers/mmc/host/vub300.c struct kref kref; kref 355 drivers/mmc/host/vub300.c #define kref_to_vub300_mmc_host(d) container_of(d, struct vub300_mmc_host, kref) kref 369 drivers/mmc/host/vub300.c static void vub300_delete(struct kref *kref) kref 371 drivers/mmc/host/vub300.c struct vub300_mmc_host *vub300 = kref_to_vub300_mmc_host(kref); kref 387 drivers/mmc/host/vub300.c kref_get(&vub300->kref); kref 401 drivers/mmc/host/vub300.c kref_put(&vub300->kref, vub300_delete); kref 407 drivers/mmc/host/vub300.c kref_get(&vub300->kref); kref 421 drivers/mmc/host/vub300.c kref_put(&vub300->kref, vub300_delete); kref 427 drivers/mmc/host/vub300.c kref_get(&vub300->kref); kref 441 drivers/mmc/host/vub300.c kref_put(&vub300->kref, vub300_delete); kref 682 drivers/mmc/host/vub300.c kref_put(&vub300->kref, vub300_delete); kref 705 drivers/mmc/host/vub300.c kref_put(&vub300->kref, vub300_delete); kref 713 drivers/mmc/host/vub300.c kref_put(&vub300->kref, vub300_delete); kref 738 drivers/mmc/host/vub300.c kref_put(&vub300->kref, vub300_delete); kref 746 drivers/mmc/host/vub300.c kref_put(&vub300->kref, vub300_delete); kref 1744 drivers/mmc/host/vub300.c kref_put(&vub300->kref, vub300_delete); kref 1781 drivers/mmc/host/vub300.c kref_put(&vub300->kref, vub300_delete); kref 1787 drivers/mmc/host/vub300.c kref_put(&vub300->kref, vub300_delete); kref 1928 drivers/mmc/host/vub300.c kref_get(&vub300->kref); kref 1939 drivers/mmc/host/vub300.c kref_put(&vub300->kref, vub300_delete); kref 1952 drivers/mmc/host/vub300.c kref_put(&vub300->kref, vub300_delete); kref 2009 drivers/mmc/host/vub300.c kref_get(&vub300->kref); kref 2036 drivers/mmc/host/vub300.c kref_put(&vub300->kref, vub300_delete); kref 2050 drivers/mmc/host/vub300.c kref_get(&vub300->kref); kref 2070 drivers/mmc/host/vub300.c kref_put(&vub300->kref, vub300_delete); kref 2322 drivers/mmc/host/vub300.c kref_init(&vub300->kref); kref 2324 drivers/mmc/host/vub300.c kref_get(&vub300->kref); kref 2370 drivers/mmc/host/vub300.c kref_put(&vub300->kref, vub300_delete); kref 28 drivers/mtd/mtd_blkdevs.c static void blktrans_dev_release(struct kref *kref) kref 31 drivers/mtd/mtd_blkdevs.c container_of(kref, struct mtd_blktrans_dev, ref); kref 320 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c static void ppm_destroy(struct kref *kref) kref 322 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c struct cxgbi_ppm *ppm = container_of(kref, kref 129 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.h struct kref refcnt; kref 3060 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c static void hclge_irq_affinity_release(struct kref *ref) kref 3758 drivers/net/ethernet/intel/i40e/i40e_main.c static void i40e_irq_affinity_release(struct kref *ref) {} kref 404 drivers/net/ethernet/intel/iavf/iavf_main.c static void iavf_irq_affinity_release(struct kref *ref) {} kref 1579 drivers/net/ethernet/intel/ice/ice_main.c static void ice_irq_affinity_release(struct kref __always_unused *ref) {} kref 85 drivers/net/ethernet/mellanox/mlx5/core/uar.c static void up_rel_func(struct kref *kref) kref 87 drivers/net/ethernet/mellanox/mlx5/core/uar.c struct mlx5_uars_page *up = container_of(kref, struct mlx5_uars_page, ref_count); kref 91 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c struct kref kref; kref 130 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c static void __release_cpp_area(struct kref *kref) kref 133 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c container_of(kref, struct nfp_cpp_area, kref); kref 147 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c kref_put(&area->kref, __release_cpp_area); kref 152 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c kref_get(&area->kref); kref 195 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c __release_cpp_area(&area->kref); kref 319 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c kref_init(&area->kref); kref 166 drivers/net/ethernet/qlogic/qede/qede.h struct kref refcnt; kref 89 drivers/net/ethernet/qlogic/qede/qede_rdma.c static void qede_rdma_complete_event(struct kref *ref) kref 17 drivers/net/phy/sfp-bus.c struct kref kref; kref 301 drivers/net/phy/sfp-bus.c kref_get(&sfp->kref); kref 308 drivers/net/phy/sfp-bus.c kref_init(&new->kref); kref 322 drivers/net/phy/sfp-bus.c static void sfp_bus_release(struct kref *kref) kref 324 drivers/net/phy/sfp-bus.c struct sfp_bus *bus = container_of(kref, struct sfp_bus, kref); kref 333 drivers/net/phy/sfp-bus.c kref_put_mutex(&bus->kref, sfp_bus_release, &sfp_mutex); kref 258 drivers/net/usb/hso.c struct kref ref; kref 310 drivers/net/usb/hso.c static void hso_serial_ref_free(struct kref *ref); kref 3089 drivers/net/usb/hso.c static void hso_serial_ref_free(struct kref *ref) kref 1501 drivers/net/wimax/i2400m/fw.c struct kref kref; kref 1507 drivers/net/wimax/i2400m/fw.c void i2400m_fw_destroy(struct kref *kref) kref 1510 drivers/net/wimax/i2400m/fw.c container_of(kref, struct i2400m_fw, kref); kref 1520 drivers/net/wimax/i2400m/fw.c kref_get(&i2400m_fw->kref); kref 1528 drivers/net/wimax/i2400m/fw.c kref_put(&i2400m_fw->kref, i2400m_fw_destroy); kref 1625 drivers/net/wimax/i2400m/fw.c kref_init(&i2400m_fw->kref); kref 614 drivers/net/wimax/i2400m/i2400m.h struct kref rx_roq_refcount; /* refcount access to rx_roq */ kref 927 drivers/net/wimax/i2400m/rx.c static void i2400m_rx_roq_destroy(struct kref *ref) kref 496 drivers/net/wireless/ath/carl9170/carl9170.h struct kref ref; kref 262 drivers/net/wireless/ath/carl9170/tx.c static void carl9170_tx_release(struct kref *ref) kref 62 drivers/nvdimm/core.c struct kref kref; kref 92 drivers/nvdimm/core.c kref_init(&nvdimm_map->kref); kref 121 drivers/nvdimm/core.c static void nvdimm_map_release(struct kref *kref) kref 126 drivers/nvdimm/core.c nvdimm_map = container_of(kref, struct nvdimm_map, kref); kref 145 drivers/nvdimm/core.c kref_put(&nvdimm_map->kref, nvdimm_map_release); kref 166 drivers/nvdimm/core.c kref_get(&nvdimm_map->kref); kref 54 drivers/nvdimm/dimm.c kref_init(&ndd->kref); kref 250 drivers/nvdimm/dimm_devs.c void nvdimm_drvdata_release(struct kref *kref) kref 252 drivers/nvdimm/dimm_devs.c struct nvdimm_drvdata *ndd = container_of(kref, typeof(*ndd), kref); kref 269 drivers/nvdimm/dimm_devs.c kref_get(&ndd->kref); kref 275 drivers/nvdimm/dimm_devs.c kref_put(&ndd->kref, nvdimm_drvdata_release); kref 35 drivers/nvdimm/nd.h struct kref kref; kref 356 drivers/nvdimm/nd.h void nvdimm_drvdata_release(struct kref *kref); kref 434 drivers/nvme/host/core.c static void nvme_free_ns_head(struct kref *ref) kref 452 drivers/nvme/host/core.c static void nvme_free_ns(struct kref *kref) kref 454 drivers/nvme/host/core.c struct nvme_ns *ns = container_of(kref, struct nvme_ns, kref); kref 467 drivers/nvme/host/core.c kref_put(&ns->kref, nvme_free_ns); kref 1614 drivers/nvme/host/core.c if (!kref_get_unless_zero(&ns->kref)) kref 2496 drivers/nvme/host/core.c static void nvme_destroy_subsystem(struct kref *ref) kref 2954 drivers/nvme/host/core.c kref_get(&ns->kref); kref 3442 drivers/nvme/host/core.c if (!kref_get_unless_zero(&ns->kref)) kref 3509 drivers/nvme/host/core.c kref_init(&ns->kref); kref 80 drivers/nvme/host/fabrics.c static void nvmf_host_destroy(struct kref *ref) kref 28 drivers/nvme/host/fabrics.h struct kref ref; kref 110 drivers/nvme/host/fc.c struct kref ref; kref 124 drivers/nvme/host/fc.c struct kref ref; kref 154 drivers/nvme/host/fc.c struct kref ref; kref 223 drivers/nvme/host/fc.c nvme_fc_free_lport(struct kref *ref) kref 495 drivers/nvme/host/fc.c nvme_fc_free_rport(struct kref *ref) kref 2014 drivers/nvme/host/fc.c nvme_fc_ctrl_free(struct kref *ref) kref 299 drivers/nvme/host/nvme.h struct kref ref; kref 340 drivers/nvme/host/nvme.h struct kref ref; kref 364 drivers/nvme/host/nvme.h struct kref kref; kref 40 drivers/nvme/host/rdma.c struct kref ref; kref 330 drivers/nvme/host/rdma.c static void nvme_rdma_free_dev(struct kref *ref) kref 1322 drivers/nvme/target/core.c static void nvmet_ctrl_free(struct kref *ref) kref 1434 drivers/nvme/target/core.c static void nvmet_subsys_free(struct kref *ref) kref 100 drivers/nvme/target/fc.c struct kref ref; kref 135 drivers/nvme/target/fc.c struct kref ref; kref 145 drivers/nvme/target/fc.c struct kref ref; kref 642 drivers/nvme/target/fc.c nvmet_fc_tgt_queue_free(struct kref *ref) kref 844 drivers/nvme/target/fc.c nvmet_fc_target_assoc_free(struct kref *ref) kref 1094 drivers/nvme/target/fc.c nvmet_fc_free_tgtport(struct kref *ref) kref 219 drivers/nvme/target/fcloop.c struct kref ref; kref 254 drivers/nvme/target/fcloop.c struct kref ref; kref 388 drivers/nvme/target/fcloop.c fcloop_tfcp_req_free(struct kref *ref) kref 797 drivers/nvme/target/fcloop.c fcloop_nport_free(struct kref *ref) kref 185 drivers/nvme/target/nvmet.h struct kref ref; kref 209 drivers/nvme/target/nvmet.h struct kref ref; kref 111 drivers/nvme/target/rdma.c struct kref ref; kref 899 drivers/nvme/target/rdma.c static void nvmet_rdma_free_dev(struct kref *ref) kref 450 drivers/nvmem/core.c static void nvmem_device_release(struct kref *kref) kref 454 drivers/nvmem/core.c nvmem = container_of(kref, struct nvmem_device, refcnt); kref 19 drivers/nvmem/nvmem.h struct kref refcnt; kref 464 drivers/of/dynamic.c if (kref_read(&ce->np->kobj.kref) > 1) { kref 466 drivers/of/dynamic.c kref_read(&ce->np->kobj.kref), ce->np); kref 990 drivers/opp/core.c kref_init(&opp_table->kref); kref 1000 drivers/opp/core.c kref_get(&opp_table->kref); kref 1043 drivers/opp/core.c static void _opp_table_kref_release(struct kref *kref) kref 1045 drivers/opp/core.c struct opp_table *opp_table = container_of(kref, struct opp_table, kref); kref 1087 drivers/opp/core.c static void _opp_table_list_kref_release(struct kref *kref) kref 1089 drivers/opp/core.c struct opp_table *opp_table = container_of(kref, struct opp_table, kref 1104 drivers/opp/core.c kref_put_mutex(&opp_table->kref, _opp_table_kref_release, kref 1128 drivers/opp/core.c static void _opp_kref_release_unlocked(struct kref *kref) kref 1130 drivers/opp/core.c struct dev_pm_opp *opp = container_of(kref, struct dev_pm_opp, kref); kref 1136 drivers/opp/core.c static void _opp_kref_release_locked(struct kref *kref) kref 1138 drivers/opp/core.c struct dev_pm_opp *opp = container_of(kref, struct dev_pm_opp, kref); kref 1147 drivers/opp/core.c kref_get(&opp->kref); kref 1152 drivers/opp/core.c kref_put_mutex(&opp->kref, _opp_kref_release_locked, kref 1159 drivers/opp/core.c kref_put(&opp->kref, _opp_kref_release_unlocked); kref 1353 drivers/opp/core.c kref_init(&new_opp->kref); kref 73 drivers/opp/opp.h struct kref kref; kref 169 drivers/opp/opp.h struct kref kref; kref 170 drivers/opp/opp.h struct kref list_kref; kref 59 drivers/pci/hotplug/acpiphp.h struct kref ref; kref 51 drivers/pci/hotplug/acpiphp_glue.c static void free_bridge(struct kref *kref); kref 141 drivers/pci/hotplug/acpiphp_glue.c static void free_bridge(struct kref *kref) kref 150 drivers/pci/hotplug/acpiphp_glue.c bridge = container_of(kref, struct acpiphp_bridge, ref); kref 67 drivers/pci/hotplug/pnv_php.c static void pnv_php_free_slot(struct kref *kref) kref 69 drivers/pci/hotplug/pnv_php.c struct pnv_php_slot *php_slot = container_of(kref, kref 70 drivers/pci/hotplug/pnv_php.c struct pnv_php_slot, kref); kref 84 drivers/pci/hotplug/pnv_php.c kref_put(&php_slot->kref, pnv_php_free_slot); kref 93 drivers/pci/hotplug/pnv_php.c kref_get(&php_slot->kref); kref 160 drivers/pci/hotplug/pnv_php.c refcount = kref_read(&dn->kobj.kref); kref 645 drivers/pci/hotplug/pnv_php.c kref_init(&php_slot->kref); kref 349 drivers/pci/slot.c slot->number, kref_read(&slot->kobj.kref) - 1); kref 56 drivers/pci/switch/switchtec.c struct kref kref; kref 78 drivers/pci/switch/switchtec.c kref_init(&stuser->kref); kref 88 drivers/pci/switch/switchtec.c static void stuser_free(struct kref *kref) kref 92 drivers/pci/switch/switchtec.c stuser = container_of(kref, struct switchtec_user, kref); kref 102 drivers/pci/switch/switchtec.c kref_put(&stuser->kref, stuser_free); kref 175 drivers/pci/switch/switchtec.c kref_get(&stuser->kref); kref 30 drivers/pcmcia/cs_internal.h struct kref ref; kref 230 drivers/pcmcia/ds.c static void pcmcia_release_function(struct kref *ref) kref 1181 drivers/pinctrl/core.c static void pinctrl_release(struct kref *kref) kref 1183 drivers/pinctrl/core.c struct pinctrl *p = container_of(kref, struct pinctrl, users); kref 83 drivers/pinctrl/core.h struct kref users; kref 130 drivers/rapidio/devices/rio_mport_cdev.c struct kref ref; /* refcount of vmas sharing the mapping */ kref 179 drivers/rapidio/devices/rio_mport_cdev.c struct kref dma_ref; kref 213 drivers/rapidio/devices/rio_mport_cdev.c struct kref dma_ref; kref 256 drivers/rapidio/devices/rio_mport_cdev.c static void mport_release_mapping(struct kref *ref); kref 535 drivers/rapidio/devices/rio_mport_cdev.c struct kref refcount; kref 551 drivers/rapidio/devices/rio_mport_cdev.c static void mport_release_def_dma(struct kref *dma_ref) kref 561 drivers/rapidio/devices/rio_mport_cdev.c static void mport_release_dma(struct kref *dma_ref) kref 570 drivers/rapidio/devices/rio_mport_cdev.c static void dma_req_free(struct kref *ref) kref 2142 drivers/rapidio/devices/rio_mport_cdev.c static void mport_release_mapping(struct kref *ref) kref 178 drivers/rapidio/rio_cm.c struct kref ref; /* channel refcount */ kref 225 drivers/rapidio/rio_cm.c static void riocm_ch_free(struct kref *ref); kref 1363 drivers/rapidio/rio_cm.c static void riocm_ch_free(struct kref *ref) kref 570 drivers/remoteproc/remoteproc_core.c void rproc_vdev_release(struct kref *ref) kref 28 drivers/remoteproc/remoteproc_internal.h void rproc_release(struct kref *kref); kref 30 drivers/remoteproc/remoteproc_internal.h void rproc_vdev_release(struct kref *ref); kref 44 drivers/reset/core.c struct kref refcnt; kref 580 drivers/reset/core.c static void __reset_control_release(struct kref *kref) kref 582 drivers/reset/core.c struct reset_control *rstc = container_of(kref, struct reset_control, kref 160 drivers/rpmsg/qcom_glink_native.c struct kref refcount; kref 240 drivers/rpmsg/qcom_glink_native.c static void qcom_glink_channel_release(struct kref *ref) kref 894 drivers/rpmsg/qcom_smd.c static void __ept_release(struct kref *kref) kref 896 drivers/rpmsg/qcom_smd.c struct rpmsg_endpoint *ept = container_of(kref, struct rpmsg_endpoint, kref 220 drivers/rpmsg/virtio_rpmsg_bus.c static void __ept_release(struct kref *kref) kref 222 drivers/rpmsg/virtio_rpmsg_bus.c struct rpmsg_endpoint *ept = container_of(kref, struct rpmsg_endpoint, kref 76 drivers/s390/crypto/zcrypt_api.h struct kref refcount; /* device refcounting */ kref 93 drivers/s390/crypto/zcrypt_api.h struct kref refcount; /* device refcounting */ kref 125 drivers/s390/crypto/zcrypt_card.c static void zcrypt_card_release(struct kref *kref) kref 128 drivers/s390/crypto/zcrypt_card.c container_of(kref, struct zcrypt_card, refcount); kref 131 drivers/s390/crypto/zcrypt_queue.c static void zcrypt_queue_release(struct kref *kref) kref 134 drivers/s390/crypto/zcrypt_queue.c container_of(kref, struct zcrypt_queue, refcount); kref 443 drivers/s390/scsi/zfcp_aux.c void zfcp_adapter_release(struct kref *ref) kref 149 drivers/s390/scsi/zfcp_def.h struct kref ref; kref 25 drivers/s390/scsi/zfcp_ext.h extern void zfcp_adapter_release(struct kref *); kref 263 drivers/scsi/bnx2fc/bnx2fc.h struct kref kref; kref 428 drivers/scsi/bnx2fc/bnx2fc.h struct kref refcount; kref 498 drivers/scsi/bnx2fc/bnx2fc.h void bnx2fc_cmd_release(struct kref *ref); kref 1307 drivers/scsi/bnx2fc/bnx2fc_fcoe.c static void bnx2fc_interface_release(struct kref *kref) kref 1314 drivers/scsi/bnx2fc/bnx2fc_fcoe.c interface = container_of(kref, struct bnx2fc_interface, kref); kref 1333 drivers/scsi/bnx2fc/bnx2fc_fcoe.c kref_get(&interface->kref); kref 1338 drivers/scsi/bnx2fc/bnx2fc_fcoe.c kref_put(&interface->kref, bnx2fc_interface_release); kref 1458 drivers/scsi/bnx2fc/bnx2fc_fcoe.c kref_init(&interface->kref); kref 519 drivers/scsi/bnx2fc/bnx2fc_io.c void bnx2fc_cmd_release(struct kref *ref) kref 109 drivers/scsi/ch.c struct kref ref; kref 568 drivers/scsi/ch.c static void ch_destroy(struct kref *ref) kref 1353 drivers/scsi/csiostor/csio_lnode.c csio_free_fcfinfo(struct kref *kref) kref 1355 drivers/scsi/csiostor/csio_lnode.c struct csio_fcf_info *fcfinfo = container_of(kref, kref 1356 drivers/scsi/csiostor/csio_lnode.c struct csio_fcf_info, kref); kref 2014 drivers/scsi/csiostor/csio_lnode.c kref_init(&ln->fcfinfo->kref); kref 2030 drivers/scsi/csiostor/csio_lnode.c kref_get(&pln->fcfinfo->kref); kref 2042 drivers/scsi/csiostor/csio_lnode.c kref_init(&ln->fcfinfo->kref); kref 2063 drivers/scsi/csiostor/csio_lnode.c kref_put(&pln->fcfinfo->kref, csio_free_fcfinfo); kref 2065 drivers/scsi/csiostor/csio_lnode.c kref_put(&ln->fcfinfo->kref, csio_free_fcfinfo); kref 88 drivers/scsi/csiostor/csio_lnode.h struct kref kref; kref 137 drivers/scsi/cxgbi/libcxgbi.h struct kref refcnt; kref 293 drivers/scsi/cxgbi/libcxgbi.h static inline void cxgbi_sock_free(struct kref *kref) kref 295 drivers/scsi/cxgbi/libcxgbi.h struct cxgbi_sock *csk = container_of(kref, kref 842 drivers/scsi/cxlflash/superpipe.c kref_init(&ctxi->kref); kref 855 drivers/scsi/cxlflash/superpipe.c static void remove_context(struct kref *kref) kref 857 drivers/scsi/cxlflash/superpipe.c struct ctx_info *ctxi = container_of(kref, struct ctx_info, kref); kref 948 drivers/scsi/cxlflash/superpipe.c if (kref_put(&ctxi->kref, remove_context)) kref 1399 drivers/scsi/cxlflash/superpipe.c kref_get(&ctxi->kref); kref 102 drivers/scsi/cxlflash/superpipe.h struct kref kref; kref 62 drivers/scsi/device_handler/scsi_dh_alua.c struct kref kref; kref 108 drivers/scsi/device_handler/scsi_dh_alua.c static void release_port_group(struct kref *kref) kref 112 drivers/scsi/device_handler/scsi_dh_alua.c pg = container_of(kref, struct alua_port_group, kref); kref 193 drivers/scsi/device_handler/scsi_dh_alua.c if (!kref_get_unless_zero(&pg->kref)) kref 238 drivers/scsi/device_handler/scsi_dh_alua.c kref_init(&pg->kref); kref 381 drivers/scsi/device_handler/scsi_dh_alua.c kref_put(&old_pg->kref, release_port_group); kref 671 drivers/scsi/device_handler/scsi_dh_alua.c kref_put(&tmp_pg->kref, release_port_group); kref 808 drivers/scsi/device_handler/scsi_dh_alua.c kref_put(&pg->kref, release_port_group); kref 876 drivers/scsi/device_handler/scsi_dh_alua.c kref_put(&pg->kref, release_port_group); kref 908 drivers/scsi/device_handler/scsi_dh_alua.c kref_get(&pg->kref); kref 915 drivers/scsi/device_handler/scsi_dh_alua.c kref_get(&pg->kref); kref 927 drivers/scsi/device_handler/scsi_dh_alua.c kref_put(&pg->kref, release_port_group); kref 1026 drivers/scsi/device_handler/scsi_dh_alua.c if (!pg || !kref_get_unless_zero(&pg->kref)) { kref 1040 drivers/scsi/device_handler/scsi_dh_alua.c kref_put(&pg->kref, release_port_group); kref 1060 drivers/scsi/device_handler/scsi_dh_alua.c if (!pg || !kref_get_unless_zero(&pg->kref)) { kref 1067 drivers/scsi/device_handler/scsi_dh_alua.c kref_put(&pg->kref, release_port_group); kref 1156 drivers/scsi/device_handler/scsi_dh_alua.c kref_put(&pg->kref, release_port_group); kref 154 drivers/scsi/device_handler/scsi_dh_rdac.c struct kref kref; kref 317 drivers/scsi/device_handler/scsi_dh_rdac.c static void release_controller(struct kref *kref) kref 320 drivers/scsi/device_handler/scsi_dh_rdac.c ctlr = container_of(kref, struct rdac_controller, kref); kref 335 drivers/scsi/device_handler/scsi_dh_rdac.c kref_get(&tmp->kref); kref 349 drivers/scsi/device_handler/scsi_dh_rdac.c kref_init(&ctlr->kref); kref 763 drivers/scsi/device_handler/scsi_dh_rdac.c kref_put(&h->ctlr->kref, release_controller); kref 782 drivers/scsi/device_handler/scsi_dh_rdac.c kref_put(&h->ctlr->kref, release_controller); kref 2171 drivers/scsi/fcoe/fcoe_ctlr.c if (kref_get_unless_zero(&rdata->kref)) { kref 2173 drivers/scsi/fcoe/fcoe_ctlr.c kref_put(&rdata->kref, fc_rport_destroy); kref 2559 drivers/scsi/fcoe/fcoe_ctlr.c kref_put(&rdata->kref, fc_rport_destroy); kref 2670 drivers/scsi/fcoe/fcoe_ctlr.c kref_put(&rdata->kref, fc_rport_destroy); kref 2707 drivers/scsi/fcoe/fcoe_ctlr.c if (!kref_get_unless_zero(&rdata->kref)) kref 2711 drivers/scsi/fcoe/fcoe_ctlr.c kref_put(&rdata->kref, fc_rport_destroy); kref 2724 drivers/scsi/fcoe/fcoe_ctlr.c kref_put(&rdata->kref, fc_rport_destroy); kref 3065 drivers/scsi/fcoe/fcoe_ctlr.c if (!kref_get_unless_zero(&rdata->kref)) kref 3070 drivers/scsi/fcoe/fcoe_ctlr.c kref_put(&rdata->kref, fc_rport_destroy); kref 910 drivers/scsi/ibmvscsi/ibmvfc.c kref_get(&tgt->kref); kref 1039 drivers/scsi/ibmvscsi/ibmvfc.c static void ibmvfc_release_tgt(struct kref *kref) kref 1041 drivers/scsi/ibmvscsi/ibmvfc.c struct ibmvfc_target *tgt = container_of(kref, struct ibmvfc_target, kref); kref 1057 drivers/scsi/ibmvscsi/ibmvfc.c kref_put(&tgt->kref, ibmvfc_release_tgt); kref 1072 drivers/scsi/ibmvscsi/ibmvfc.c kref_put(&tgt->kref, ibmvfc_release_tgt); kref 1087 drivers/scsi/ibmvscsi/ibmvfc.c kref_put(&tgt->kref, ibmvfc_release_tgt); kref 3346 drivers/scsi/ibmvscsi/ibmvfc.c kref_put(&tgt->kref, ibmvfc_release_tgt); kref 3365 drivers/scsi/ibmvscsi/ibmvfc.c kref_get(&tgt->kref); kref 3389 drivers/scsi/ibmvscsi/ibmvfc.c kref_put(&tgt->kref, ibmvfc_release_tgt); kref 3447 drivers/scsi/ibmvscsi/ibmvfc.c kref_put(&tgt->kref, ibmvfc_release_tgt); kref 3466 drivers/scsi/ibmvscsi/ibmvfc.c kref_get(&tgt->kref); kref 3483 drivers/scsi/ibmvscsi/ibmvfc.c kref_put(&tgt->kref, ibmvfc_release_tgt); kref 3509 drivers/scsi/ibmvscsi/ibmvfc.c kref_put(&tgt->kref, ibmvfc_release_tgt); kref 3523 drivers/scsi/ibmvscsi/ibmvfc.c kref_put(&tgt->kref, ibmvfc_release_tgt); kref 3541 drivers/scsi/ibmvscsi/ibmvfc.c kref_get(&tgt->kref); kref 3557 drivers/scsi/ibmvscsi/ibmvfc.c kref_put(&tgt->kref, ibmvfc_release_tgt); kref 3620 drivers/scsi/ibmvscsi/ibmvfc.c kref_put(&tgt->kref, ibmvfc_release_tgt); kref 3671 drivers/scsi/ibmvscsi/ibmvfc.c kref_put(&tgt->kref, ibmvfc_release_tgt); kref 3703 drivers/scsi/ibmvscsi/ibmvfc.c kref_get(&tgt->kref); kref 3721 drivers/scsi/ibmvscsi/ibmvfc.c kref_put(&tgt->kref, ibmvfc_release_tgt); kref 3748 drivers/scsi/ibmvscsi/ibmvfc.c kref_get(&tgt->kref); kref 3779 drivers/scsi/ibmvscsi/ibmvfc.c kref_put(&tgt->kref, ibmvfc_release_tgt); kref 3833 drivers/scsi/ibmvscsi/ibmvfc.c kref_put(&tgt->kref, ibmvfc_release_tgt); kref 3852 drivers/scsi/ibmvscsi/ibmvfc.c kref_get(&tgt->kref); kref 3868 drivers/scsi/ibmvscsi/ibmvfc.c kref_put(&tgt->kref, ibmvfc_release_tgt); kref 3904 drivers/scsi/ibmvscsi/ibmvfc.c kref_init(&tgt->kref); kref 4293 drivers/scsi/ibmvscsi/ibmvfc.c kref_put(&tgt->kref, ibmvfc_release_tgt); kref 4404 drivers/scsi/ibmvscsi/ibmvfc.c kref_put(&tgt->kref, ibmvfc_release_tgt); kref 4709 drivers/scsi/ibmvscsi/ibmvfc.c kref_get(&tgt->kref); kref 4723 drivers/scsi/ibmvscsi/ibmvfc.c kref_put(&tgt->kref, ibmvfc_release_tgt); kref 621 drivers/scsi/ibmvscsi/ibmvfc.h struct kref kref; kref 3303 drivers/scsi/ipr.c static void ipr_release_dump(struct kref *kref) kref 3305 drivers/scsi/ipr.c struct ipr_dump *dump = container_of(kref, struct ipr_dump, kref); kref 3410 drivers/scsi/ipr.c kref_get(&dump->kref); kref 3413 drivers/scsi/ipr.c kref_put(&dump->kref, ipr_release_dump); kref 4275 drivers/scsi/ipr.c kref_get(&dump->kref); kref 4279 drivers/scsi/ipr.c kref_put(&dump->kref, ipr_release_dump); kref 4337 drivers/scsi/ipr.c kref_put(&dump->kref, ipr_release_dump); kref 4376 drivers/scsi/ipr.c kref_init(&dump->kref); kref 4423 drivers/scsi/ipr.c kref_put(&dump->kref, ipr_release_dump); kref 1724 drivers/scsi/ipr.h struct kref kref; kref 648 drivers/scsi/isci/remote_device.c kref_get(&idev->kref); kref 1533 drivers/scsi/isci/remote_device.c void isci_remote_device_release(struct kref *kref) kref 1535 drivers/scsi/isci/remote_device.c struct isci_remote_device *idev = container_of(kref, typeof(*idev), kref); kref 1630 drivers/scsi/isci/remote_device.c kref_init(&isci_device->kref); kref 92 drivers/scsi/isci/remote_device.h struct kref kref; kref 116 drivers/scsi/isci/remote_device.h kref_get(&idev->kref); kref 125 drivers/scsi/isci/remote_device.h kref_get(&idev->kref); kref 132 drivers/scsi/isci/remote_device.h void isci_remote_device_release(struct kref *kref); kref 136 drivers/scsi/isci/remote_device.h kref_put(&idev->kref, isci_remote_device_release); kref 58 drivers/scsi/libfc/fc_disc.c if (kref_get_unless_zero(&rdata->kref)) { kref 60 drivers/scsi/libfc/fc_disc.c kref_put(&rdata->kref, fc_rport_destroy); kref 279 drivers/scsi/libfc/fc_disc.c if (!kref_get_unless_zero(&rdata->kref)) kref 287 drivers/scsi/libfc/fc_disc.c kref_put(&rdata->kref, fc_rport_destroy); kref 630 drivers/scsi/libfc/fc_disc.c kref_put(&rdata->kref, fc_rport_destroy); kref 656 drivers/scsi/libfc/fc_disc.c kref_get(&rdata->kref); kref 87 drivers/scsi/libfc/fc_exch.c struct kref kref; kref 2386 drivers/scsi/libfc/fc_exch.c kref_get(&mp->kref); kref 2395 drivers/scsi/libfc/fc_exch.c static void fc_exch_mgr_destroy(struct kref *kref) kref 2397 drivers/scsi/libfc/fc_exch.c struct fc_exch_mgr *mp = container_of(kref, struct fc_exch_mgr, kref); kref 2412 drivers/scsi/libfc/fc_exch.c kref_put(&ema->mp->kref, fc_exch_mgr_destroy); kref 2515 drivers/scsi/libfc/fc_exch.c kref_init(&mp->kref); kref 2526 drivers/scsi/libfc/fc_exch.c kref_put(&mp->kref, fc_exch_mgr_destroy); kref 237 drivers/scsi/libfc/fc_lport.c kref_put(&lport->ptp_rdata->kref, fc_rport_destroy); kref 241 drivers/scsi/libfc/fc_lport.c kref_get(&lport->ptp_rdata->kref); kref 1001 drivers/scsi/libfc/fc_lport.c kref_put(&lport->ptp_rdata->kref, fc_rport_destroy); kref 2102 drivers/scsi/libfc/fc_lport.c kref_put(&rdata->kref, fc_rport_destroy); kref 112 drivers/scsi/libfc/fc_rport.c kref_get_unless_zero(&tmp_rdata->kref)) { kref 150 drivers/scsi/libfc/fc_rport.c kref_init(&rdata->kref); kref 173 drivers/scsi/libfc/fc_rport.c void fc_rport_destroy(struct kref *kref) kref 177 drivers/scsi/libfc/fc_rport.c rdata = container_of(kref, struct fc_rport_priv, kref); kref 282 drivers/scsi/libfc/fc_rport.c kref_get(&rdata->kref); kref 292 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); kref 318 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); kref 345 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); kref 367 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); kref 382 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); kref 401 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); kref 484 drivers/scsi/libfc/fc_rport.c kref_get(&rdata->kref); kref 487 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); kref 550 drivers/scsi/libfc/fc_rport.c kref_get(&rdata->kref); kref 553 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); kref 600 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); kref 673 drivers/scsi/libfc/fc_rport.c kref_get(&rdata->kref); kref 675 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); kref 801 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); kref 834 drivers/scsi/libfc/fc_rport.c kref_get(&rdata->kref); kref 839 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); kref 956 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); kref 961 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); kref 1041 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); kref 1091 drivers/scsi/libfc/fc_rport.c kref_get(&rdata->kref); kref 1096 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); kref 1228 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); kref 1290 drivers/scsi/libfc/fc_rport.c kref_get(&rdata->kref); kref 1294 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); kref 1367 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); kref 1394 drivers/scsi/libfc/fc_rport.c kref_get(&rdata->kref); kref 1399 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); kref 1455 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); kref 1477 drivers/scsi/libfc/fc_rport.c kref_get(&rdata->kref); kref 1480 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); kref 1542 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); kref 1568 drivers/scsi/libfc/fc_rport.c kref_get(&rdata->kref); kref 1573 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); kref 1718 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); kref 1727 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); kref 1761 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); kref 2164 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); kref 768 drivers/scsi/libsas/sas_ata.c kref_get(&dev->kref); kref 187 drivers/scsi/libsas/sas_discover.c kref_get(&dev->kref); kref 291 drivers/scsi/libsas/sas_discover.c void sas_free_device(struct kref *kref) kref 293 drivers/scsi/libsas/sas_discover.c struct domain_device *dev = container_of(kref, typeof(*dev), kref); kref 794 drivers/scsi/libsas/sas_expander.c kref_get(&parent->kref); kref 982 drivers/scsi/libsas/sas_expander.c kref_get(&parent->kref); kref 90 drivers/scsi/libsas/sas_internal.h void sas_free_device(struct kref *kref); kref 181 drivers/scsi/libsas/sas_internal.h kref_init(&dev->kref); kref 189 drivers/scsi/libsas/sas_internal.h kref_put(&dev->kref, sas_free_device); kref 703 drivers/scsi/libsas/sas_scsi_host.c kref_get(&dev->kref); kref 831 drivers/scsi/libsas/sas_scsi_host.c kref_get(&found_dev->kref); kref 55 drivers/scsi/lpfc/lpfc_bsg.c struct kref kref; kref 801 drivers/scsi/lpfc/lpfc_bsg.c lpfc_bsg_event_free(struct kref *kref) kref 803 drivers/scsi/lpfc/lpfc_bsg.c struct lpfc_bsg_event *evt = container_of(kref, struct lpfc_bsg_event, kref 804 drivers/scsi/lpfc/lpfc_bsg.c kref); kref 834 drivers/scsi/lpfc/lpfc_bsg.c kref_get(&evt->kref); kref 844 drivers/scsi/lpfc/lpfc_bsg.c kref_put(&evt->kref, lpfc_bsg_event_free); kref 869 drivers/scsi/lpfc/lpfc_bsg.c kref_init(&evt->kref); kref 903 drivers/scsi/lpfc/lpfc_debugfs.c kref_read(&ndlp->kref)); kref 131 drivers/scsi/lpfc/lpfc_disc.h struct kref kref; kref 4256 drivers/scsi/lpfc/lpfc_els.c kref_read(&ndlp->kref), kref 3560 drivers/scsi/lpfc/lpfc_hbadisc.c kref_read(&ndlp->kref), kref 4072 drivers/scsi/lpfc/lpfc_hbadisc.c kref_read(&ndlp->kref), kref 4488 drivers/scsi/lpfc/lpfc_hbadisc.c kref_init(&ndlp->kref); kref 4522 drivers/scsi/lpfc/lpfc_hbadisc.c kref_read(&ndlp->kref)); kref 4535 drivers/scsi/lpfc/lpfc_hbadisc.c kref_read(&ndlp->kref)); kref 4545 drivers/scsi/lpfc/lpfc_hbadisc.c kref_read(&ndlp->kref)); kref 4576 drivers/scsi/lpfc/lpfc_hbadisc.c kref_read(&ndlp->kref), kref 4589 drivers/scsi/lpfc/lpfc_hbadisc.c kref_read(&ndlp->kref), kref 4882 drivers/scsi/lpfc/lpfc_hbadisc.c (kref_read(&ndlp->kref) > 0)) { kref 5110 drivers/scsi/lpfc/lpfc_hbadisc.c kref_read(&ndlp->kref)); kref 5117 drivers/scsi/lpfc/lpfc_hbadisc.c kref_read(&ndlp->kref)); kref 5221 drivers/scsi/lpfc/lpfc_hbadisc.c kref_read(&ndlp->kref), kref 6057 drivers/scsi/lpfc/lpfc_hbadisc.c kref_read(&ndlp->kref), kref 6247 drivers/scsi/lpfc/lpfc_hbadisc.c kref_read(&ndlp->kref), kref 6271 drivers/scsi/lpfc/lpfc_hbadisc.c lpfc_nlp_release(struct kref *kref) kref 6275 drivers/scsi/lpfc/lpfc_hbadisc.c struct lpfc_nodelist *ndlp = container_of(kref, struct lpfc_nodelist, kref 6276 drivers/scsi/lpfc/lpfc_hbadisc.c kref); kref 6287 drivers/scsi/lpfc/lpfc_hbadisc.c kref_read(&ndlp->kref), ndlp->nlp_rpi); kref 6322 drivers/scsi/lpfc/lpfc_hbadisc.c kref_read(&ndlp->kref)); kref 6335 drivers/scsi/lpfc/lpfc_hbadisc.c kref_read(&ndlp->kref)); kref 6338 drivers/scsi/lpfc/lpfc_hbadisc.c kref_get(&ndlp->kref); kref 6362 drivers/scsi/lpfc/lpfc_hbadisc.c kref_read(&ndlp->kref)); kref 6375 drivers/scsi/lpfc/lpfc_hbadisc.c kref_read(&ndlp->kref)); kref 6388 drivers/scsi/lpfc/lpfc_hbadisc.c kref_read(&ndlp->kref)); kref 6396 drivers/scsi/lpfc/lpfc_hbadisc.c if (kref_read(&ndlp->kref) == 1) { kref 6410 drivers/scsi/lpfc/lpfc_hbadisc.c return kref_put(&ndlp->kref, lpfc_nlp_release); kref 6424 drivers/scsi/lpfc/lpfc_hbadisc.c kref_read(&ndlp->kref)); kref 6425 drivers/scsi/lpfc/lpfc_hbadisc.c if (kref_read(&ndlp->kref) == 1) kref 2863 drivers/scsi/lpfc/lpfc_init.c kref_read(&ndlp->kref)); kref 548 drivers/scsi/mpt3sas/mpt3sas_base.h struct kref refcount; kref 556 drivers/scsi/mpt3sas/mpt3sas_base.h static inline void sas_device_free(struct kref *r) kref 609 drivers/scsi/mpt3sas/mpt3sas_base.h struct kref refcount; kref 632 drivers/scsi/mpt3sas/mpt3sas_base.h static inline void pcie_device_free(struct kref *r) kref 209 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct kref refcount; kref 213 drivers/scsi/mpt3sas/mpt3sas_scsih.c static void fw_event_work_free(struct kref *r) kref 140 drivers/scsi/qedf/qedf.h struct kref refcount; kref 490 drivers/scsi/qedf/qedf.h extern void qedf_release_cmd(struct kref *ref); kref 376 drivers/scsi/qedf/qedf_els.c if (rdata && !kref_get_unless_zero(&rdata->kref)) { kref 387 drivers/scsi/qedf/qedf_els.c kref_put(&rdata->kref, fc_rport_destroy); kref 439 drivers/scsi/qedf/qedf_io.c void qedf_release_cmd(struct kref *ref) kref 1855 drivers/scsi/qedf/qedf_io.c if (!rdata || !kref_get_unless_zero(&rdata->kref)) { kref 1930 drivers/scsi/qedf/qedf_io.c kref_put(&rdata->kref, fc_rport_destroy); kref 2409 drivers/scsi/qedf/qedf_io.c if (!rdata || !kref_get_unless_zero(&rdata->kref)) { kref 2484 drivers/scsi/qedf/qedf_io.c kref_put(&rdata->kref, fc_rport_destroy); kref 424 drivers/scsi/qedf/qedf_main.c if (kref_get_unless_zero(&rdata->kref)) { kref 426 drivers/scsi/qedf/qedf_main.c kref_put(&rdata->kref, fc_rport_destroy); kref 669 drivers/scsi/qedf/qedf_main.c if (!rdata || !kref_get_unless_zero(&rdata->kref)) { kref 784 drivers/scsi/qedf/qedf_main.c kref_put(&rdata->kref, fc_rport_destroy); kref 1043 drivers/scsi/qedf/qedf_main.c kref_put(&rdata->kref, fc_rport_destroy); kref 1378 drivers/scsi/qedf/qedf_main.c kref_put(&rdata->kref, fc_rport_destroy); kref 1455 drivers/scsi/qedf/qedf_main.c kref_get(&rdata->kref); kref 594 drivers/scsi/qla2xxx/qla_def.h struct kref cmd_kref; /* need to migrate ref_count over to this */ kref 634 drivers/scsi/qla2xxx/qla_def.h void (*put_fn)(struct kref *kref); kref 2425 drivers/scsi/qla2xxx/qla_def.h struct kref sess_kref; kref 3349 drivers/scsi/qla2xxx/qla_def.h struct kref kref; kref 8195 drivers/scsi/qla2xxx/qla_init.c kref_get(&cs84xx->kref); kref 8204 drivers/scsi/qla2xxx/qla_init.c kref_init(&cs84xx->kref); kref 8216 drivers/scsi/qla2xxx/qla_init.c __qla84xx_chip_release(struct kref *kref) kref 8219 drivers/scsi/qla2xxx/qla_init.c container_of(kref, struct qla_chip_state_84xx, kref); kref 8233 drivers/scsi/qla2xxx/qla_init.c kref_put(&ha->cs84xx->kref, __qla84xx_chip_release); kref 123 drivers/scsi/qla2xxx/qla_nvme.c static void qla_nvme_release_fcp_cmd_kref(struct kref *kref) kref 125 drivers/scsi/qla2xxx/qla_nvme.c struct srb *sp = container_of(kref, struct srb, cmd_kref); kref 154 drivers/scsi/qla2xxx/qla_nvme.c static void qla_nvme_release_ls_cmd_kref(struct kref *kref) kref 156 drivers/scsi/qla2xxx/qla_nvme.c struct srb *sp = container_of(kref, struct srb, cmd_kref); kref 324 drivers/scsi/qla2xxx/tcm_qla2xxx.c static void tcm_qla2xxx_release_session(struct kref *kref) kref 326 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct fc_port *sess = container_of(kref, kref 244 drivers/scsi/qla4xxx/ql4_def.h struct kref srb_ref; /* reference count for this srb */ kref 72 drivers/scsi/qla4xxx/ql4_glbl.h void qla4xxx_srb_compl(struct kref *ref); kref 4047 drivers/scsi/qla4xxx/ql4_os.c void qla4xxx_srb_compl(struct kref *ref) kref 375 drivers/scsi/scsi_scan.c static void scsi_target_reap_ref_release(struct kref *kref) kref 378 drivers/scsi/scsi_scan.c = container_of(kref, struct scsi_target, reap_ref); kref 153 drivers/scsi/sg.c struct kref f_ref; kref 171 drivers/scsi/sg.c struct kref d_ref; kref 192 drivers/scsi/sg.c static void sg_remove_sfp(struct kref *); kref 197 drivers/scsi/sg.c static void sg_device_destroy(struct kref *kref); kref 1578 drivers/scsi/sg.c sg_device_destroy(struct kref *kref) kref 1580 drivers/scsi/sg.c struct sg_device *sdp = container_of(kref, struct sg_device, d_ref); kref 2230 drivers/scsi/sg.c sg_remove_sfp(struct kref *kref) kref 2232 drivers/scsi/sg.c struct sg_fd *sfp = container_of(kref, struct sg_fd, f_ref); kref 138 drivers/scsi/sr.c static void sr_kref_release(struct kref *kref); kref 170 drivers/scsi/sr.c kref_get(&cd->kref); kref 172 drivers/scsi/sr.c kref_put(&cd->kref, sr_kref_release); kref 185 drivers/scsi/sr.c kref_put(&cd->kref, sr_kref_release); kref 698 drivers/scsi/sr.c kref_init(&cd->kref); kref 998 drivers/scsi/sr.c static void sr_kref_release(struct kref *kref) kref 1000 drivers/scsi/sr.c struct scsi_cd *cd = container_of(kref, struct scsi_cd, kref); kref 1026 drivers/scsi/sr.c kref_put(&cd->kref, sr_kref_release); kref 56 drivers/scsi/sr.h struct kref kref; kref 220 drivers/scsi/st.c static void scsi_tape_release(struct kref *); kref 222 drivers/scsi/st.c #define to_scsi_tape(obj) container_of(obj, struct scsi_tape, kref) kref 250 drivers/scsi/st.c kref_get(&STp->kref); kref 261 drivers/scsi/st.c kref_put(&STp->kref, scsi_tape_release); kref 274 drivers/scsi/st.c kref_put(&STp->kref, scsi_tape_release); kref 4301 drivers/scsi/st.c kref_init(&tpnt->kref); kref 4438 drivers/scsi/st.c kref_put(&tpnt->kref, scsi_tape_release); kref 4455 drivers/scsi/st.c static void scsi_tape_release(struct kref *kref) kref 4457 drivers/scsi/st.c struct scsi_tape *tpnt = to_scsi_tape(kref); kref 193 drivers/scsi/st.h struct kref kref; kref 388 drivers/sh/clk/core.c static void clk_destroy_mapping(struct kref *kref) kref 392 drivers/sh/clk/core.c mapping = container_of(kref, struct clk_mapping, ref); kref 26 drivers/soc/qcom/smem_state.c struct kref refcount; kref 134 drivers/soc/qcom/smem_state.c static void qcom_smem_state_release(struct kref *ref) kref 22 drivers/staging/comedi/comedi_buf.c static void comedi_buf_map_kref_release(struct kref *kref) kref 25 drivers/staging/comedi/comedi_buf.c container_of(kref, struct comedi_buf_map, refcount); kref 110 drivers/staging/comedi/comedi_fops.c static void comedi_dev_kref_release(struct kref *kref) kref 113 drivers/staging/comedi/comedi_fops.c container_of(kref, struct comedi_device, refcount); kref 254 drivers/staging/comedi/comedidev.h struct kref refcount; kref 559 drivers/staging/comedi/comedidev.h struct kref refcount; kref 268 drivers/staging/fieldbus/anybuss/host.c struct kref refcount; kref 297 drivers/staging/fieldbus/anybuss/host.c static void __ab_task_destroy(struct kref *refcount) kref 829 drivers/staging/fwserial/fwserial.c kref_get(&port->serial->kref); kref 857 drivers/staging/fwserial/fwserial.c static void fwserial_destroy(struct kref *kref) kref 859 drivers/staging/fwserial/fwserial.c struct fw_serial *serial = to_serial(kref, kref); kref 885 drivers/staging/fwserial/fwserial.c kref_put(&port->serial->kref, fwserial_destroy); kref 2154 drivers/staging/fwserial/fwserial.c kref_init(&serial->kref); kref 2269 drivers/staging/fwserial/fwserial.c kref_put(&serial->kref, fwserial_destroy); kref 2360 drivers/staging/fwserial/fwserial.c kref_put(&serial->kref, fwserial_destroy); kref 326 drivers/staging/fwserial/fwserial.h struct kref kref; kref 35 drivers/staging/gasket/gasket_sysfs.c struct kref refcount; kref 51 drivers/staging/gasket/gasket_sysfs.c static void release_entry(struct kref *ref) kref 29 drivers/staging/greybus/authentication.c struct kref kref; kref 45 drivers/staging/greybus/authentication.c static void cap_kref_release(struct kref *kref) kref 47 drivers/staging/greybus/authentication.c struct gb_cap *cap = container_of(kref, struct gb_cap, kref); kref 59 drivers/staging/greybus/authentication.c kref_put(&cap->kref, cap_kref_release); kref 71 drivers/staging/greybus/authentication.c kref_get(&cap->kref); kref 314 drivers/staging/greybus/authentication.c kref_init(&cap->kref); kref 1228 drivers/staging/greybus/camera.c static void gb_camera_release_module(struct kref *ref) kref 32 drivers/staging/greybus/fw-download.c struct kref kref; kref 44 drivers/staging/greybus/fw-download.c static void fw_req_release(struct kref *kref) kref 46 drivers/staging/greybus/fw-download.c struct fw_request *fw_req = container_of(kref, struct fw_request, kref); kref 88 drivers/staging/greybus/fw-download.c kref_put(&fw_req->kref, fw_req_release); kref 101 drivers/staging/greybus/fw-download.c kref_get(&fw_req->kref); kref 199 drivers/staging/greybus/fw-download.c kref_init(&fw_req->kref); kref 454 drivers/staging/greybus/fw-download.c kref_get(&fw_req->kref); kref 26 drivers/staging/greybus/fw-management.c struct kref kref; kref 64 drivers/staging/greybus/fw-management.c static void fw_mgmt_kref_release(struct kref *kref) kref 66 drivers/staging/greybus/fw-management.c struct fw_mgmt *fw_mgmt = container_of(kref, struct fw_mgmt, kref); kref 79 drivers/staging/greybus/fw-management.c kref_put(&fw_mgmt->kref, fw_mgmt_kref_release); kref 91 drivers/staging/greybus/fw-management.c kref_get(&fw_mgmt->kref); kref 607 drivers/staging/greybus/fw-management.c kref_init(&fw_mgmt->kref); kref 114 drivers/staging/greybus/gb-camera.h struct kref refcount; kref 115 drivers/staging/greybus/gb-camera.h void (*release)(struct kref *kref); kref 150 drivers/staging/uwb/beacon.c void uwb_bce_kfree(struct kref *_bce) kref 90 drivers/staging/uwb/neh.c struct kref kref; kref 106 drivers/staging/uwb/neh.c static void uwb_rc_neh_release(struct kref *kref) kref 108 drivers/staging/uwb/neh.c struct uwb_rc_neh *neh = container_of(kref, struct uwb_rc_neh, kref); kref 115 drivers/staging/uwb/neh.c kref_get(&neh->kref); kref 124 drivers/staging/uwb/neh.c kref_put(&neh->kref, uwb_rc_neh_release); kref 210 drivers/staging/uwb/neh.c kref_init(&neh->kref); kref 112 drivers/staging/uwb/rsv.c static void uwb_rsv_release(struct kref *kref) kref 114 drivers/staging/uwb/rsv.c struct uwb_rsv *rsv = container_of(kref, struct uwb_rsv, kref); kref 121 drivers/staging/uwb/rsv.c kref_get(&rsv->kref); kref 126 drivers/staging/uwb/rsv.c kref_put(&rsv->kref, uwb_rsv_release); kref 461 drivers/staging/uwb/rsv.c kref_init(&rsv->kref); kref 266 drivers/staging/uwb/uwb-internal.h struct kref refcnt; kref 280 drivers/staging/uwb/uwb-internal.h extern void uwb_bce_kfree(struct kref *_bce); kref 229 drivers/staging/uwb/uwb.h struct kref kref; kref 963 drivers/staging/wusbcore/devconnect.c void wusb_dev_destroy(struct kref *_wusb_dev) kref 100 drivers/staging/wusbcore/wa-hc.h struct kref refcnt; kref 307 drivers/staging/wusbcore/wa-hc.h extern void rpipe_destroy(struct kref *_rpipe); kref 156 drivers/staging/wusbcore/wa-rpipe.c void rpipe_destroy(struct kref *_rpipe) kref 134 drivers/staging/wusbcore/wa-xfer.c struct kref refcnt; kref 172 drivers/staging/wusbcore/wa-xfer.c static void wa_xfer_destroy(struct kref *_xfer) kref 83 drivers/staging/wusbcore/wusbhc.h struct kref refcnt; kref 108 drivers/staging/wusbcore/wusbhc.h extern void wusb_dev_destroy(struct kref *_wusb_dev); kref 140 drivers/target/iscsi/cxgbit/cxgbit.h struct kref kref; kref 185 drivers/target/iscsi/cxgbit/cxgbit.h struct kref kref; kref 212 drivers/target/iscsi/cxgbit/cxgbit.h struct kref kref; kref 245 drivers/target/iscsi/cxgbit/cxgbit.h void _cxgbit_free_cdev(struct kref *kref); kref 246 drivers/target/iscsi/cxgbit/cxgbit.h void _cxgbit_free_csk(struct kref *kref); kref 247 drivers/target/iscsi/cxgbit/cxgbit.h void _cxgbit_free_cnp(struct kref *kref); kref 251 drivers/target/iscsi/cxgbit/cxgbit.h kref_get(&cdev->kref); kref 256 drivers/target/iscsi/cxgbit/cxgbit.h kref_put(&cdev->kref, _cxgbit_free_cdev); kref 261 drivers/target/iscsi/cxgbit/cxgbit.h kref_get(&csk->kref); kref 266 drivers/target/iscsi/cxgbit/cxgbit.h kref_put(&csk->kref, _cxgbit_free_csk); kref 271 drivers/target/iscsi/cxgbit/cxgbit.h kref_get(&cnp->kref); kref 276 drivers/target/iscsi/cxgbit/cxgbit.h kref_put(&cnp->kref, _cxgbit_free_cnp); kref 135 drivers/target/iscsi/cxgbit/cxgbit_cm.c void _cxgbit_free_cnp(struct kref *kref) kref 139 drivers/target/iscsi/cxgbit/cxgbit_cm.c cnp = container_of(kref, struct cxgbit_np, kref); kref 443 drivers/target/iscsi/cxgbit/cxgbit_cm.c kref_init(&cnp->kref); kref 793 drivers/target/iscsi/cxgbit/cxgbit_cm.c void _cxgbit_free_csk(struct kref *kref) kref 798 drivers/target/iscsi/cxgbit/cxgbit_cm.c csk = container_of(kref, struct cxgbit_sock, kref); kref 1306 drivers/target/iscsi/cxgbit/cxgbit_cm.c kref_init(&csk->kref); kref 21 drivers/target/iscsi/cxgbit/cxgbit_main.c void _cxgbit_free_cdev(struct kref *kref) kref 25 drivers/target/iscsi/cxgbit/cxgbit_main.c cdev = container_of(kref, struct cxgbit_device, kref); kref 57 drivers/target/iscsi/cxgbit/cxgbit_main.c kref_init(&cdev->kref); kref 240 drivers/target/iscsi/iscsi_target.c void iscsit_login_kref_put(struct kref *kref) kref 242 drivers/target/iscsi/iscsi_target.c struct iscsi_tpg_np *tpg_np = container_of(kref, kref 14 drivers/target/iscsi/iscsi_target.h struct kref; kref 23 drivers/target/iscsi/iscsi_target.h extern void iscsit_login_kref_put(struct kref *); kref 287 drivers/target/target_core_device.c void target_pr_kref_release(struct kref *kref) kref 289 drivers/target/target_core_device.c struct se_dev_entry *deve = container_of(kref, struct se_dev_entry, kref 63 drivers/target/target_core_internal.h void target_pr_kref_release(struct kref *); kref 485 drivers/target/target_core_transport.c static void target_complete_nacl(struct kref *kref) kref 487 drivers/target/target_core_transport.c struct se_node_acl *nacl = container_of(kref, kref 2791 drivers/target/target_core_transport.c static void target_release_cmd_kref(struct kref *kref) kref 2793 drivers/target/target_core_transport.c struct se_cmd *se_cmd = container_of(kref, struct se_cmd, cmd_kref); kref 111 drivers/target/target_core_user.c struct kref kref; kref 1381 drivers/target/target_core_user.c kref_init(&udev->kref); kref 1592 drivers/target/target_core_user.c kref_get(&udev->kref); kref 1633 drivers/target/target_core_user.c static void tcmu_dev_kref_release(struct kref *kref) kref 1635 drivers/target/target_core_user.c struct tcmu_dev *udev = container_of(kref, struct tcmu_dev, kref); kref 1673 drivers/target/target_core_user.c kref_put(&udev->kref, tcmu_dev_kref_release); kref 1953 drivers/target/target_core_user.c kref_get(&udev->kref); kref 1966 drivers/target/target_core_user.c kref_put(&udev->kref, tcmu_dev_kref_release); kref 1986 drivers/target/target_core_user.c kref_put(&udev->kref, tcmu_dev_kref_release); kref 2005 drivers/target/target_core_user.c kref_put(&udev->kref, tcmu_dev_kref_release); kref 37 drivers/target/tcm_fc/tcm_fc.h struct kref kref; /* ref for hash and outstanding I/Os */ kref 175 drivers/target/tcm_fc/tfc_sess.c kref_get(&sess->kref); kref 226 drivers/target/tcm_fc/tfc_sess.c kref_init(&sess->kref); /* ref for table entry */ kref 434 drivers/target/tcm_fc/tfc_sess.c static void ft_sess_free(struct kref *kref) kref 436 drivers/target/tcm_fc/tfc_sess.c struct ft_sess *sess = container_of(kref, struct ft_sess, kref); kref 444 drivers/target/tcm_fc/tfc_sess.c int sess_held = kref_read(&sess->kref); kref 447 drivers/target/tcm_fc/tfc_sess.c kref_put(&sess->kref, ft_sess_free); kref 68 drivers/tee/tee_core.c static void teedev_ctx_release(struct kref *ref) kref 74 drivers/thunderbolt/ctl.c kref_init(&req->kref); kref 86 drivers/thunderbolt/ctl.c kref_get(&req->kref); kref 90 drivers/thunderbolt/ctl.c static void tb_cfg_request_destroy(struct kref *kref) kref 92 drivers/thunderbolt/ctl.c struct tb_cfg_request *req = container_of(kref, typeof(*req), kref); kref 107 drivers/thunderbolt/ctl.c kref_put(&req->kref, tb_cfg_request_destroy); kref 78 drivers/thunderbolt/ctl.h struct kref kref; kref 84 drivers/tty/n_gsm.c struct kref ref; kref 186 drivers/tty/n_gsm.c struct kref ref; kref 2158 drivers/tty/n_gsm.c static void gsm_free_muxr(struct kref *ref) kref 2665 drivers/tty/n_gsm.c static void net_free(struct kref *ref) kref 52 drivers/tty/serial/icom.c #define to_icom_adapter(d) container_of(d, struct icom_adapter, kref) kref 133 drivers/tty/serial/icom.c static void icom_kref_release(struct kref *kref); kref 1058 drivers/tty/serial/icom.c kref_get(&ICOM_PORT->adapter->kref); kref 1062 drivers/tty/serial/icom.c kref_put(&ICOM_PORT->adapter->kref, icom_kref_release); kref 1082 drivers/tty/serial/icom.c kref_put(&ICOM_PORT->adapter->kref, icom_kref_release); kref 1467 drivers/tty/serial/icom.c static void icom_kref_release(struct kref *kref) kref 1471 drivers/tty/serial/icom.c icom_adapter = to_icom_adapter(kref); kref 1572 drivers/tty/serial/icom.c kref_init(&icom_adapter->kref); kref 1596 drivers/tty/serial/icom.c kref_put(&icom_adapter->kref, icom_kref_release); kref 260 drivers/tty/serial/icom.h struct kref kref; kref 1467 drivers/tty/tty_io.c static void queue_release_one_tty(struct kref *kref) kref 1469 drivers/tty/tty_io.c struct tty_struct *tty = container_of(kref, struct tty_struct, kref); kref 1488 drivers/tty/tty_io.c kref_put(&tty->kref, queue_release_one_tty); kref 2981 drivers/tty/tty_io.c kref_init(&tty->kref); kref 3219 drivers/tty/tty_io.c kref_init(&driver->kref); kref 3263 drivers/tty/tty_io.c static void destruct_tty_driver(struct kref *kref) kref 3265 drivers/tty/tty_io.c struct tty_driver *driver = container_of(kref, struct tty_driver, kref); kref 3292 drivers/tty/tty_io.c kref_put(&driver->kref, destruct_tty_driver); kref 73 drivers/tty/tty_port.c kref_init(&port->kref); kref 253 drivers/tty/tty_port.c static void tty_port_destructor(struct kref *kref) kref 255 drivers/tty/tty_port.c struct tty_port *port = container_of(kref, struct tty_port, kref); kref 272 drivers/tty/tty_port.c kref_put(&port->kref, tty_port_destructor); kref 54 drivers/tty/vt/vt_ioctl.c return vc && kref_read(&vc->port.kref) > 1; kref 692 drivers/usb/atm/usbatm.c static void usbatm_destroy_instance(struct kref *kref) kref 694 drivers/usb/atm/usbatm.c struct usbatm_data *instance = container_of(kref, struct usbatm_data, refcount); kref 142 drivers/usb/atm/usbatm.h struct kref refcount; kref 108 drivers/usb/class/usbtmc.c struct kref kref; kref 114 drivers/usb/class/usbtmc.c #define to_usbtmc_data(d) container_of(d, struct usbtmc_device_data, kref) kref 155 drivers/usb/class/usbtmc.c static void usbtmc_delete(struct kref *kref) kref 157 drivers/usb/class/usbtmc.c struct usbtmc_device_data *data = to_usbtmc_data(kref); kref 187 drivers/usb/class/usbtmc.c kref_get(&data->kref); kref 259 drivers/usb/class/usbtmc.c kref_put(&file_data->data->kref, usbtmc_delete); kref 2315 drivers/usb/class/usbtmc.c kref_put(&data->kref, usbtmc_delete); kref 2336 drivers/usb/class/usbtmc.c kref_init(&data->kref); kref 2396 drivers/usb/class/usbtmc.c kref_get(&data->kref); kref 2434 drivers/usb/class/usbtmc.c kref_put(&data->kref, usbtmc_delete); kref 2458 drivers/usb/class/usbtmc.c kref_put(&data->kref, usbtmc_delete); kref 488 drivers/usb/core/config.c void usb_release_interface_cache(struct kref *ref) kref 61 drivers/usb/core/file.c struct kref kref; kref 80 drivers/usb/core/file.c kref_get(&usb_class->kref); kref 90 drivers/usb/core/file.c kref_init(&usb_class->kref); kref 105 drivers/usb/core/file.c static void release_usb_class(struct kref *kref) kref 116 drivers/usb/core/file.c kref_put(&usb_class->kref, release_usb_class); kref 2451 drivers/usb/core/hcd.c kref_init(&hcd->kref); kref 2527 drivers/usb/core/hcd.c static void hcd_release(struct kref *kref) kref 2529 drivers/usb/core/hcd.c struct usb_hcd *hcd = container_of (kref, struct usb_hcd, kref); kref 2548 drivers/usb/core/hcd.c kref_get (&hcd->kref); kref 2556 drivers/usb/core/hcd.c kref_put (&hcd->kref, hcd_release); kref 111 drivers/usb/core/hub.c static void hub_release(struct kref *kref); kref 662 drivers/usb/core/hub.c kref_get(&hub->kref); kref 669 drivers/usb/core/hub.c kref_put(&hub->kref, hub_release); kref 1037 drivers/usb/core/hub.c kref_get(&hub->kref); kref 1282 drivers/usb/core/hub.c kref_put(&hub->kref, hub_release); kref 1689 drivers/usb/core/hub.c static void hub_release(struct kref *kref) kref 1691 drivers/usb/core/hub.c struct usb_hub *hub = container_of(kref, struct usb_hub, kref); kref 1744 drivers/usb/core/hub.c kref_put(&hub->kref, hub_release); kref 1855 drivers/usb/core/hub.c kref_init(&hub->kref); kref 5506 drivers/usb/core/hub.c kref_put(&hub->kref, hub_release); kref 22 drivers/usb/core/hub.h struct kref kref; kref 16 drivers/usb/core/urb.c #define to_urb(d) container_of(d, struct urb, kref) kref 19 drivers/usb/core/urb.c static void urb_destroy(struct kref *kref) kref 21 drivers/usb/core/urb.c struct urb *urb = to_urb(kref); kref 47 drivers/usb/core/urb.c kref_init(&urb->kref); kref 96 drivers/usb/core/urb.c kref_put(&urb->kref, urb_destroy); kref 113 drivers/usb/core/urb.c kref_get(&urb->kref); kref 31 drivers/usb/core/usb.h extern void usb_release_interface_cache(struct kref *ref); kref 76 drivers/usb/gadget/function/tcm.h struct kref ref; kref 334 drivers/usb/host/oxu210hp-hcd.c struct kref kref; kref 1043 drivers/usb/host/oxu210hp-hcd.c static void qh_destroy(struct kref *kref) kref 1045 drivers/usb/host/oxu210hp-hcd.c struct ehci_qh *qh = container_of(kref, struct ehci_qh, kref); kref 1073 drivers/usb/host/oxu210hp-hcd.c kref_init(&qh->kref); kref 1098 drivers/usb/host/oxu210hp-hcd.c kref_get(&qh->kref); kref 1104 drivers/usb/host/oxu210hp-hcd.c kref_put(&qh->kref, qh_destroy); kref 123 drivers/usb/host/u132-hcd.c struct kref kref; kref 143 drivers/usb/host/u132-hcd.c struct kref kref; kref 179 drivers/usb/host/u132-hcd.c struct kref kref; kref 242 drivers/usb/host/u132-hcd.c #define kref_to_u132(d) container_of(d, struct u132, kref) kref 243 drivers/usb/host/u132-hcd.c #define kref_to_u132_endp(d) container_of(d, struct u132_endp, kref) kref 244 drivers/usb/host/u132-hcd.c #define kref_to_u132_udev(d) container_of(d, struct u132_udev, kref) kref 250 drivers/usb/host/u132-hcd.c static void u132_hcd_delete(struct kref *kref) kref 252 drivers/usb/host/u132-hcd.c struct u132 *u132 = kref_to_u132(kref); kref 267 drivers/usb/host/u132-hcd.c kref_put(&u132->kref, u132_hcd_delete); kref 272 drivers/usb/host/u132-hcd.c kref_init(&u132->kref); kref 275 drivers/usb/host/u132-hcd.c static void u132_udev_delete(struct kref *kref) kref 277 drivers/usb/host/u132-hcd.c struct u132_udev *udev = kref_to_u132_udev(kref); kref 286 drivers/usb/host/u132-hcd.c kref_put(&udev->kref, u132_udev_delete); kref 291 drivers/usb/host/u132-hcd.c kref_get(&udev->kref); kref 297 drivers/usb/host/u132-hcd.c kref_init(&udev->kref); kref 302 drivers/usb/host/u132-hcd.c kref_put(&u132->kref, u132_hcd_delete); kref 313 drivers/usb/host/u132-hcd.c kref_put(&u132->kref, u132_hcd_delete); kref 319 drivers/usb/host/u132-hcd.c kref_get(&u132->kref); kref 326 drivers/usb/host/u132-hcd.c kref_put(&u132->kref, u132_hcd_delete); kref 329 drivers/usb/host/u132-hcd.c static void u132_endp_delete(struct kref *kref) kref 331 drivers/usb/host/u132-hcd.c struct u132_endp *endp = kref_to_u132_endp(kref); kref 370 drivers/usb/host/u132-hcd.c kref_put(&endp->kref, u132_endp_delete); kref 375 drivers/usb/host/u132-hcd.c kref_get(&endp->kref); kref 381 drivers/usb/host/u132-hcd.c kref_init(&endp->kref); kref 382 drivers/usb/host/u132-hcd.c kref_get(&u132->kref); kref 389 drivers/usb/host/u132-hcd.c kref_get(&endp->kref); kref 395 drivers/usb/host/u132-hcd.c kref_put(&endp->kref, u132_endp_delete); kref 400 drivers/usb/host/u132-hcd.c kref_put(&u132->kref, u132_hcd_delete); kref 406 drivers/usb/host/u132-hcd.c kref_get(&u132->kref); kref 412 drivers/usb/host/u132-hcd.c kref_put(&u132->kref, u132_hcd_delete); kref 418 drivers/usb/host/u132-hcd.c kref_put(&u132->kref, u132_hcd_delete); kref 182 drivers/usb/misc/ftdi-elan.c struct kref kref; kref 189 drivers/usb/misc/ftdi-elan.c #define kref_to_usb_ftdi(d) container_of(d, struct usb_ftdi, kref) kref 193 drivers/usb/misc/ftdi-elan.c static void ftdi_elan_delete(struct kref *kref) kref 195 drivers/usb/misc/ftdi-elan.c struct usb_ftdi *ftdi = kref_to_usb_ftdi(kref); kref 209 drivers/usb/misc/ftdi-elan.c kref_put(&ftdi->kref, ftdi_elan_delete); kref 214 drivers/usb/misc/ftdi-elan.c kref_get(&ftdi->kref); kref 219 drivers/usb/misc/ftdi-elan.c kref_init(&ftdi->kref); kref 225 drivers/usb/misc/ftdi-elan.c kref_put(&ftdi->kref, ftdi_elan_delete); kref 231 drivers/usb/misc/ftdi-elan.c kref_get(&ftdi->kref); kref 237 drivers/usb/misc/ftdi-elan.c kref_put(&ftdi->kref, ftdi_elan_delete); kref 243 drivers/usb/misc/ftdi-elan.c kref_put(&ftdi->kref, ftdi_elan_delete); kref 249 drivers/usb/misc/ftdi-elan.c kref_get(&ftdi->kref); kref 255 drivers/usb/misc/ftdi-elan.c kref_put(&ftdi->kref, ftdi_elan_delete); kref 262 drivers/usb/misc/ftdi-elan.c kref_put(&ftdi->kref, ftdi_elan_delete); kref 268 drivers/usb/misc/ftdi-elan.c kref_get(&ftdi->kref); kref 274 drivers/usb/misc/ftdi-elan.c kref_put(&ftdi->kref, ftdi_elan_delete); kref 2426 drivers/usb/misc/sisusbvga/sisusb.c kref_get(&sisusb->kref); kref 2437 drivers/usb/misc/sisusbvga/sisusb.c void sisusb_delete(struct kref *kref) kref 2439 drivers/usb/misc/sisusbvga/sisusb.c struct sisusb_usb_data *sisusb = to_sisusb_dev(kref); kref 2477 drivers/usb/misc/sisusbvga/sisusb.c kref_put(&sisusb->kref, sisusb_delete); kref 3026 drivers/usb/misc/sisusbvga/sisusb.c kref_init(&sisusb->kref); kref 3182 drivers/usb/misc/sisusbvga/sisusb.c kref_put(&sisusb->kref, sisusb_delete); kref 103 drivers/usb/misc/sisusbvga/sisusb.h struct kref kref; kref 151 drivers/usb/misc/sisusbvga/sisusb.h #define to_sisusb_dev(d) container_of(d, struct sisusb_usb_data, kref) kref 249 drivers/usb/misc/sisusbvga/sisusb_con.c kref_get(&sisusb->kref); kref 300 drivers/usb/misc/sisusbvga/sisusb_con.c kref_put(&sisusb->kref, sisusb_delete); kref 828 drivers/usb/misc/sisusbvga/sisusb_init.h void sisusb_delete(struct kref *kref); kref 51 drivers/usb/misc/usblcd.c struct kref kref; kref 60 drivers/usb/misc/usblcd.c #define to_lcd_dev(d) container_of(d, struct usb_lcd, kref) kref 67 drivers/usb/misc/usblcd.c static void lcd_delete(struct kref *kref) kref 69 drivers/usb/misc/usblcd.c struct usb_lcd *dev = to_lcd_dev(kref); kref 95 drivers/usb/misc/usblcd.c kref_get(&dev->kref); kref 100 drivers/usb/misc/usblcd.c kref_put(&dev->kref, lcd_delete); kref 120 drivers/usb/misc/usblcd.c kref_put(&dev->kref, lcd_delete); kref 331 drivers/usb/misc/usblcd.c kref_init(&dev->kref); kref 389 drivers/usb/misc/usblcd.c kref_put(&dev->kref, lcd_delete); kref 432 drivers/usb/misc/usblcd.c kref_put(&dev->kref, lcd_delete); kref 50 drivers/usb/misc/uss720.c struct kref ref_count; kref 58 drivers/usb/misc/uss720.c struct kref ref_count; kref 68 drivers/usb/misc/uss720.c static void destroy_priv(struct kref *kref) kref 70 drivers/usb/misc/uss720.c struct parport_uss720_private *priv = container_of(kref, struct parport_uss720_private, ref_count); kref 77 drivers/usb/misc/uss720.c static void destroy_async(struct kref *kref) kref 79 drivers/usb/misc/uss720.c struct uss720_async_request *rq = container_of(kref, struct uss720_async_request, ref_count); kref 61 drivers/usb/misc/yurex.c struct kref kref; kref 70 drivers/usb/misc/yurex.c #define to_yurex_dev(d) container_of(d, struct usb_yurex, kref) kref 90 drivers/usb/misc/yurex.c static void yurex_delete(struct kref *kref) kref 92 drivers/usb/misc/yurex.c struct usb_yurex *dev = to_yurex_dev(kref); kref 204 drivers/usb/misc/yurex.c kref_init(&dev->kref); kref 304 drivers/usb/misc/yurex.c kref_put(&dev->kref, yurex_delete); kref 331 drivers/usb/misc/yurex.c kref_put(&dev->kref, yurex_delete); kref 376 drivers/usb/misc/yurex.c kref_get(&dev->kref); kref 396 drivers/usb/misc/yurex.c kref_put(&dev->kref, yurex_delete); kref 23 drivers/usb/mon/mon_main.c static void mon_bus_drop(struct kref *r); kref 271 drivers/usb/mon/mon_main.c static void mon_bus_drop(struct kref *r) kref 33 drivers/usb/mon/usb_mon.h struct kref ref; /* Under mon_lock */ kref 138 drivers/usb/serial/console.c kref_init(&tty->kref); kref 144 drivers/usb/serial/console.c kref_get(&tty->driver->kref); kref 85 drivers/usb/serial/mos7720.c struct kref ref_count; kref 98 drivers/usb/serial/mos7720.c struct kref ref_count; /* to instance of this struct */ kref 260 drivers/usb/serial/mos7720.c static void destroy_mos_parport(struct kref *kref) kref 263 drivers/usb/serial/mos7720.c container_of(kref, struct mos7715_parport, ref_count); kref 268 drivers/usb/serial/mos7720.c static void destroy_urbtracker(struct kref *kref) kref 271 drivers/usb/serial/mos7720.c container_of(kref, struct urbtracker, ref_count); kref 77 drivers/usb/serial/usb-serial.c kref_get(&serial->kref); kref 124 drivers/usb/serial/usb-serial.c static void destroy_serial(struct kref *kref) kref 130 drivers/usb/serial/usb-serial.c serial = to_usb_serial(kref); kref 155 drivers/usb/serial/usb-serial.c kref_put(&serial->kref, destroy_serial); kref 613 drivers/usb/serial/usb-serial.c kref_init(&serial->kref); kref 62 drivers/usb/usb-skeleton.c struct kref kref; kref 67 drivers/usb/usb-skeleton.c #define to_skel_dev(d) container_of(d, struct usb_skel, kref) kref 72 drivers/usb/usb-skeleton.c static void skel_delete(struct kref *kref) kref 74 drivers/usb/usb-skeleton.c struct usb_skel *dev = to_skel_dev(kref); kref 111 drivers/usb/usb-skeleton.c kref_get(&dev->kref); kref 132 drivers/usb/usb-skeleton.c kref_put(&dev->kref, skel_delete); kref 500 drivers/usb/usb-skeleton.c kref_init(&dev->kref); kref 556 drivers/usb/usb-skeleton.c kref_put(&dev->kref, skel_delete); kref 581 drivers/usb/usb-skeleton.c kref_put(&dev->kref, skel_delete); kref 78 drivers/vfio/mdev/mdev_core.c static void mdev_release_parent(struct kref *kref) kref 80 drivers/vfio/mdev/mdev_core.c struct mdev_parent *parent = container_of(kref, struct mdev_parent, kref 19 drivers/vfio/mdev/mdev_private.h struct kref ref; kref 1449 drivers/vfio/pci/vfio_pci.c kref_init(&reflck->kref); kref 1457 drivers/vfio/pci/vfio_pci.c kref_get(&reflck->kref); kref 1504 drivers/vfio/pci/vfio_pci.c static void vfio_pci_reflck_release(struct kref *kref) kref 1506 drivers/vfio/pci/vfio_pci.c struct vfio_pci_reflck *reflck = container_of(kref, kref 1508 drivers/vfio/pci/vfio_pci.c kref); kref 1516 drivers/vfio/pci/vfio_pci.c kref_put_mutex(&reflck->kref, vfio_pci_reflck_release, &reflck_lock); kref 83 drivers/vfio/pci/vfio_pci_private.h struct kref kref; kref 58 drivers/vfio/vfio.c struct kref kref; kref 72 drivers/vfio/vfio.c struct kref kref; kref 93 drivers/vfio/vfio.c struct kref kref; kref 293 drivers/vfio/vfio.c kref_get(&container->kref); kref 296 drivers/vfio/vfio.c static void vfio_container_release(struct kref *kref) kref 299 drivers/vfio/vfio.c container = container_of(kref, struct vfio_container, kref); kref 306 drivers/vfio/vfio.c kref_put(&container->kref, vfio_container_release); kref 333 drivers/vfio/vfio.c kref_init(&group->kref); kref 400 drivers/vfio/vfio.c static void vfio_group_release(struct kref *kref) kref 402 drivers/vfio/vfio.c struct vfio_group *group = container_of(kref, struct vfio_group, kref); kref 424 drivers/vfio/vfio.c kref_put_mutex(&group->kref, vfio_group_release, &vfio.group_lock); kref 458 drivers/vfio/vfio.c kref_get(&group->kref); kref 546 drivers/vfio/vfio.c kref_init(&device->kref); kref 563 drivers/vfio/vfio.c static void vfio_device_release(struct kref *kref) kref 565 drivers/vfio/vfio.c struct vfio_device *device = container_of(kref, kref 566 drivers/vfio/vfio.c struct vfio_device, kref); kref 584 drivers/vfio/vfio.c kref_put_mutex(&device->kref, vfio_device_release, &group->device_lock); kref 592 drivers/vfio/vfio.c kref_get(&device->kref); kref 1206 drivers/vfio/vfio.c kref_init(&container->kref); kref 70 drivers/vhost/scsi.c struct kref kref; kref 231 drivers/vhost/scsi.c static void vhost_scsi_done_inflight(struct kref *kref) kref 235 drivers/vhost/scsi.c inflight = container_of(kref, struct vhost_scsi_inflight, kref); kref 259 drivers/vhost/scsi.c kref_init(&new_inflight->kref); kref 274 drivers/vhost/scsi.c kref_get(&inflight->kref); kref 281 drivers/vhost/scsi.c kref_put(&inflight->kref, vhost_scsi_done_inflight); kref 1363 drivers/vhost/scsi.c kref_put(&old_inflight[i]->kref, vhost_scsi_done_inflight); kref 97 drivers/video/fbdev/smscufx.c struct kref kref; kref 1079 drivers/video/fbdev/smscufx.c kref_get(&dev->kref); kref 1107 drivers/video/fbdev/smscufx.c static void ufx_free(struct kref *kref) kref 1109 drivers/video/fbdev/smscufx.c struct ufx_data *dev = container_of(kref, struct ufx_data, kref); kref 1153 drivers/video/fbdev/smscufx.c kref_put(&dev->kref, ufx_free); kref 1179 drivers/video/fbdev/smscufx.c kref_put(&dev->kref, ufx_free); kref 1628 drivers/video/fbdev/smscufx.c kref_init(&dev->kref); /* matching kref_put in usb .disconnect fn */ kref 1629 drivers/video/fbdev/smscufx.c kref_get(&dev->kref); /* matching kref_put in free_framebuffer_work */ kref 1732 drivers/video/fbdev/smscufx.c kref_put(&dev->kref, ufx_free); /* ref for framebuffer */ kref 1733 drivers/video/fbdev/smscufx.c kref_put(&dev->kref, ufx_free); /* last ref from kref_init */ kref 1762 drivers/video/fbdev/smscufx.c kref_put(&dev->kref, ufx_free); kref 42 drivers/xen/gntdev-dmabuf.c struct kref refcount; kref 95 drivers/xen/gntdev-dmabuf.c static void dmabuf_exp_release(struct kref *kref); kref 313 drivers/xen/gntdev-dmabuf.c static void dmabuf_exp_release(struct kref *kref) kref 316 drivers/xen/gntdev-dmabuf.c container_of(kref, struct gntdev_dmabuf, u.exp.refcount); kref 48 drivers/xen/xen-pciback/pci_stub.c struct kref kref; kref 84 drivers/xen/xen-pciback/pci_stub.c kref_init(&psdev->kref); kref 91 drivers/xen/xen-pciback/pci_stub.c static void pcistub_device_release(struct kref *kref) kref 97 drivers/xen/xen-pciback/pci_stub.c psdev = container_of(kref, struct pcistub_device, kref); kref 147 drivers/xen/xen-pciback/pci_stub.c kref_get(&psdev->kref); kref 152 drivers/xen/xen-pciback/pci_stub.c kref_put(&psdev->kref, pcistub_device_release); kref 83 drivers/xen/xen-scsiback.c struct kref kref; kref 310 drivers/xen/xen-scsiback.c static void scsiback_free_translation_entry(struct kref *kref) kref 312 drivers/xen/xen-scsiback.c struct v2p_entry *entry = container_of(kref, struct v2p_entry, kref); kref 367 drivers/xen/xen-scsiback.c kref_put(&pending_req->v2p->kref, kref 639 drivers/xen/xen-scsiback.c kref_get(&entry->kref); kref 712 drivers/xen/xen-scsiback.c kref_put(&v2p->kref, scsiback_free_translation_entry); kref 963 drivers/xen/xen-scsiback.c kref_init(&new->kref); kref 986 drivers/xen/xen-scsiback.c kref_put(&entry->kref, scsiback_free_translation_entry); kref 119 drivers/xen/xenbus/xenbus_dev_frontend.c struct kref kref; kref 339 drivers/xen/xenbus/xenbus_dev_frontend.c static void xenbus_file_free(struct kref *kref) kref 347 drivers/xen/xenbus/xenbus_dev_frontend.c u = container_of(kref, struct xenbus_file_priv, kref); kref 411 drivers/xen/xenbus/xenbus_dev_frontend.c kref_put(&u->kref, xenbus_file_free); kref 441 drivers/xen/xenbus/xenbus_dev_frontend.c kref_put(&u->kref, xenbus_file_free); kref 620 drivers/xen/xenbus/xenbus_dev_frontend.c kref_get(&u->kref); kref 638 drivers/xen/xenbus/xenbus_dev_frontend.c kref_put(&u->kref, xenbus_file_free); kref 662 drivers/xen/xenbus/xenbus_dev_frontend.c kref_init(&u->kref); kref 682 drivers/xen/xenbus/xenbus_dev_frontend.c kref_put(&u->kref, xenbus_file_free); kref 3390 fs/btrfs/ctree.h struct kref refcnt; kref 75 fs/btrfs/reada.c struct kref refcnt; kref 84 fs/btrfs/reada.c static void reada_control_release(struct kref *kref); kref 85 fs/btrfs/reada.c static void reada_zone_release(struct kref *kref); kref 525 fs/btrfs/reada.c static void reada_zone_release(struct kref *kref) kref 527 fs/btrfs/reada.c struct reada_zone *zone = container_of(kref, struct reada_zone, refcnt); kref 535 fs/btrfs/reada.c static void reada_control_release(struct kref *kref) kref 537 fs/btrfs/reada.c struct reada_control *rc = container_of(kref, struct reada_control, kref 696 fs/ceph/mds_client.c void ceph_mdsc_release_request(struct kref *kref) kref 698 fs/ceph/mds_client.c struct ceph_mds_request *req = container_of(kref, kref 297 fs/ceph/mds_client.h struct kref r_kref; kref 481 fs/ceph/mds_client.h extern void ceph_mdsc_release_request(struct kref *kref); kref 375 fs/cifs/cifsglob.h void (*release)(struct kref *)); kref 1017 fs/cifs/cifsglob.h struct kref refcount; kref 1283 fs/cifs/cifsglob.h struct kref refcount; kref 1308 fs/cifs/cifsglob.h struct kref refcount; kref 1342 fs/cifs/cifsglob.h struct kref refcount; kref 1526 fs/cifs/cifsglob.h struct kref refcount; kref 552 fs/cifs/cifsproto.h void cifs_readdata_release(struct kref *refcount); kref 557 fs/cifs/cifsproto.h void (*release)(struct kref *kref)); kref 563 fs/cifs/cifsproto.h void cifs_writedata_release(struct kref *refcount); kref 578 fs/cifs/cifsproto.h void cifs_aio_ctx_release(struct kref *refcount); kref 2045 fs/cifs/cifssmb.c cifs_writedata_release(struct kref *refcount) kref 2273 fs/cifs/cifssmb.c void (*release)(struct kref *kref)) kref 2679 fs/cifs/file.c cifs_uncached_writedata_release(struct kref *refcount) kref 3301 fs/cifs/file.c cifs_readdata_release(struct kref *refcount) kref 3346 fs/cifs/file.c cifs_uncached_readdata_release(struct kref *refcount) kref 810 fs/cifs/misc.c cifs_aio_ctx_release(struct kref *refcount) kref 597 fs/cifs/smb2ops.c smb2_close_cached_fid(struct kref *ref) kref 3940 fs/cifs/smb2pdu.c void (*release)(struct kref *kref)) kref 189 fs/cifs/smb2proto.h void (*release)(struct kref *kref)); kref 89 fs/cifs/transport.c static void _cifs_mid_q_entry_release(struct kref *refcount) kref 30 fs/configfs/item.c static void config_item_release(struct kref *kref); kref 137 fs/configfs/item.c static void config_item_release(struct kref *kref) kref 139 fs/configfs/item.c config_item_cleanup(container_of(kref, struct config_item, ci_kref)); kref 233 fs/dlm/dlm_internal.h struct kref lkb_ref; kref 294 fs/dlm/dlm_internal.h struct kref res_ref; kref 91 fs/dlm/lock.c static void toss_rsb(struct kref *kref); kref 1123 fs/dlm/lock.c static void toss_rsb(struct kref *kref) kref 1125 fs/dlm/lock.c struct dlm_rsb *r = container_of(kref, struct dlm_rsb, res_ref); kref 1149 fs/dlm/lock.c static void kill_rsb(struct kref *kref) kref 1151 fs/dlm/lock.c struct dlm_rsb *r = container_of(kref, struct dlm_rsb, res_ref); kref 1232 fs/dlm/lock.c static void kill_lkb(struct kref *kref) kref 1234 fs/dlm/lock.c struct dlm_lkb *lkb = container_of(kref, struct dlm_lkb, lkb_ref); kref 32 fs/eventfd.c struct kref kref; kref 97 fs/eventfd.c static void eventfd_free(struct kref *kref) kref 99 fs/eventfd.c struct eventfd_ctx *ctx = container_of(kref, struct eventfd_ctx, kref); kref 113 fs/eventfd.c kref_put(&ctx->kref, eventfd_free); kref 401 fs/eventfd.c kref_get(&ctx->kref); kref 422 fs/eventfd.c kref_init(&ctx->kref); kref 583 fs/fuse/file.c static void fuse_io_release(struct kref *kref) kref 585 fs/fuse/file.c kfree(container_of(kref, struct fuse_io_priv, refcnt)); kref 268 fs/fuse/fuse_i.h struct kref refcnt; kref 43 fs/fuse/virtio_fs.c struct kref refcount; kref 86 fs/fuse/virtio_fs.c static void release_virtio_fs_obj(struct kref *ref) kref 284 fs/lockd/svclock.c static void nlmsvc_free_block(struct kref *kref) kref 286 fs/lockd/svclock.c struct nlm_block *block = container_of(kref, struct nlm_block, b_count); kref 68 fs/nfs/blocklayout/blocklayout.c struct kref refcnt; kref 90 fs/nfs/blocklayout/blocklayout.c static void destroy_parallel(struct kref *kref) kref 92 fs/nfs/blocklayout/blocklayout.c struct parallel_io *p = container_of(kref, struct parallel_io, refcnt); kref 68 fs/nfs/direct.c struct kref kref; /* release manager */ kref 304 fs/nfs/direct.c kref_init(&dreq->kref); kref 305 fs/nfs/direct.c kref_get(&dreq->kref); kref 315 fs/nfs/direct.c static void nfs_direct_req_free(struct kref *kref) kref 317 fs/nfs/direct.c struct nfs_direct_req *dreq = container_of(kref, struct nfs_direct_req, kref); kref 329 fs/nfs/direct.c kref_put(&dreq->kref, nfs_direct_req_free); kref 115 fs/nfs/dns_resolve.c static void nfs_dns_ent_put(struct kref *ref) kref 224 fs/nfs/nfs4_fs.h struct kref kref; kref 1356 fs/nfs/nfs4proc.c kref_init(&p->kref); kref 1370 fs/nfs/nfs4proc.c static void nfs4_opendata_free(struct kref *kref) kref 1372 fs/nfs/nfs4proc.c struct nfs4_opendata *p = container_of(kref, kref 1373 fs/nfs/nfs4proc.c struct nfs4_opendata, kref); kref 1397 fs/nfs/nfs4proc.c kref_put(&p->kref, nfs4_opendata_free); kref 2343 fs/nfs/nfs4proc.c kref_get(&data->kref); kref 2506 fs/nfs/nfs4proc.c kref_get(&data->kref); kref 275 fs/nfs/pagelist.c nfs_page_group_destroy(struct kref *kref) kref 277 fs/nfs/pagelist.c struct nfs_page *req = container_of(kref, struct nfs_page, wb_kref); kref 49 fs/nfs/write.c struct kref refcount; kref 132 fs/nfs/write.c static void nfs_io_completion_release(struct kref *kref) kref 134 fs/nfs/write.c struct nfs_io_completion *ioc = container_of(kref, kref 42 fs/nfsd/export.c static void expkey_put(struct kref *ref) kref 323 fs/nfsd/export.c static void svc_export_put(struct kref *ref) kref 90 fs/nfsd/nfs4idmap.c ent_put(struct kref *ref) kref 1919 fs/nfsd/nfs4state.c static void __free_client(struct kref *k) kref 91 fs/nfsd/nfsd.h struct kref cl_ref; kref 92 fs/nfsd/nfsd.h void (*cl_release)(struct kref *kref); kref 378 fs/ocfs2/cluster/tcp.c static void sc_kref_release(struct kref *kref) kref 380 fs/ocfs2/cluster/tcp.c struct o2net_sock_container *sc = container_of(kref, kref 783 fs/ocfs2/cluster/tcp.c static void o2net_handler_kref_release(struct kref *kref) kref 786 fs/ocfs2/cluster/tcp.c nmh = container_of(kref, struct o2net_msg_handler, nh_kref); kref 117 fs/ocfs2/cluster/tcp_internal.h struct kref sc_kref; kref 188 fs/ocfs2/cluster/tcp_internal.h struct kref nh_kref; kref 51 fs/ocfs2/dlm/dlmcommon.h struct kref mle_refs; kref 148 fs/ocfs2/dlm/dlmcommon.h struct kref dlm_refs; kref 283 fs/ocfs2/dlm/dlmcommon.h struct kref refs; kref 349 fs/ocfs2/dlm/dlmcommon.h struct kref lock_refs; kref 309 fs/ocfs2/dlm/dlmdomain.c static void dlm_ctxt_release(struct kref *kref) kref 313 fs/ocfs2/dlm/dlmdomain.c dlm = container_of(kref, struct dlm_ctxt, dlm_refs); kref 50 fs/ocfs2/dlm/dlmlock.c static void dlm_lock_release(struct kref *kref); kref 336 fs/ocfs2/dlm/dlmlock.c static void dlm_lock_release(struct kref *kref) kref 340 fs/ocfs2/dlm/dlmlock.c lock = container_of(kref, struct dlm_lock, lock_refs); kref 74 fs/ocfs2/dlm/dlmmaster.c static void dlm_mle_release(struct kref *kref); kref 405 fs/ocfs2/dlm/dlmmaster.c static void dlm_mle_release(struct kref *kref) kref 410 fs/ocfs2/dlm/dlmmaster.c mle = container_of(kref, struct dlm_master_list_entry, mle_refs); kref 466 fs/ocfs2/dlm/dlmmaster.c static void dlm_lockres_release(struct kref *kref) kref 471 fs/ocfs2/dlm/dlmmaster.c res = container_of(kref, struct dlm_lock_resource, refs); kref 2980 fs/ocfs2/dlmglue.c static void ocfs2_dlm_debug_free(struct kref *kref) kref 2984 fs/ocfs2/dlmglue.c dlm_debug = container_of(kref, struct ocfs2_dlm_debug, d_refcnt); kref 225 fs/ocfs2/ocfs2.h struct kref d_refcnt; kref 269 fs/ocfs2/refcounttree.c static void ocfs2_kref_remove_refcount_tree(struct kref *kref) kref 272 fs/ocfs2/refcounttree.c container_of(kref, struct ocfs2_refcount_tree, rf_getcnt); kref 16 fs/ocfs2/refcounttree.h struct kref rf_getcnt; kref 85 include/drm/drm_atomic.h struct kref ref; kref 317 include/drm/drm_atomic.h struct kref ref; kref 371 include/drm/drm_atomic.h void __drm_crtc_commit_free(struct kref *kref); kref 417 include/drm/drm_atomic.h void __drm_atomic_state_free(struct kref *ref); kref 72 include/drm/drm_auth.h struct kref refcount; kref 1558 include/drm/drm_connector.h struct kref refcount; kref 65 include/drm/drm_device.h struct kref ref; kref 73 include/drm/drm_dp_mst_helper.h struct kref topology_kref; kref 80 include/drm/drm_dp_mst_helper.h struct kref malloc_kref; kref 137 include/drm/drm_dp_mst_helper.h struct kref topology_kref; kref 144 include/drm/drm_dp_mst_helper.h struct kref malloc_kref; kref 181 include/drm/drm_gem.h struct kref refcount; kref 329 include/drm/drm_gem.h void drm_gem_object_free(struct kref *kref); kref 59 include/drm/drm_mode_object.h struct kref refcount; kref 60 include/drm/drm_mode_object.h void (*free_cb)(struct kref *kref); kref 43 include/drm/drm_syncobj.h struct kref refcount; kref 66 include/drm/drm_syncobj.h void drm_syncobj_free(struct kref *kref); kref 125 include/drm/drm_syncobj.h void drm_syncobj_free(struct kref *kref); kref 189 include/drm/ttm/ttm_bo_api.h struct kref kref; kref 190 include/drm/ttm/ttm_bo_api.h struct kref list_kref; kref 293 include/drm/ttm/ttm_bo_api.h kref_get(&bo->kref); kref 309 include/drm/ttm/ttm_bo_api.h if (!kref_get_unless_zero(&bo->kref)) kref 730 include/drm/ttm/ttm_bo_driver.h WARN_ON(!kref_read(&bo->kref)); kref 755 include/drm/ttm/ttm_bo_driver.h WARN_ON(!kref_read(&bo->kref)); kref 115 include/kvm/arm_vgic.h struct kref refcount; /* Used for LPIs */ kref 199 include/linux/backing-dev-defs.h struct kref refcnt; /* Reference counter for the structure */ kref 32 include/linux/bsg-lib.h struct kref kref; kref 17 include/linux/ceph/buffer.h struct kref kref; kref 23 include/linux/ceph/buffer.h extern void ceph_buffer_release(struct kref *kref); kref 27 include/linux/ceph/buffer.h kref_get(&b->kref); kref 34 include/linux/ceph/buffer.h kref_put(&b->kref, ceph_buffer_release); kref 234 include/linux/ceph/messenger.h struct kref kref; kref 52 include/linux/ceph/mon_client.h struct kref kref; kref 197 include/linux/ceph/osd_client.h struct kref r_kref; kref 265 include/linux/ceph/osd_client.h struct kref kref; kref 11 include/linux/ceph/string_table.h struct kref kref; kref 20 include/linux/ceph/string_table.h extern void ceph_release_string(struct kref *ref); kref 27 include/linux/ceph/string_table.h kref_get(&str->kref); kref 35 include/linux/ceph/string_table.h kref_put(&str->kref, ceph_release_string); kref 56 include/linux/ceph/string_table.h kref_get_unless_zero(&___str->kref)) \ kref 43 include/linux/configfs.h struct kref ci_kref; kref 25 include/linux/cpu_rmap.h struct kref refcount; kref 1113 include/linux/device.h struct kref kref; kref 94 include/linux/dma-fence.h struct kref refcount; kref 269 include/linux/dma-fence.h void dma_fence_release(struct kref *kref); kref 431 include/linux/dmaengine.h void dma_chan_cleanup(struct kref *kref); kref 473 include/linux/dmaengine.h struct kref kref; kref 518 include/linux/dmaengine.h kref_get(&unmap->kref); kref 86 include/linux/firewire.h struct kref kref; kref 141 include/linux/firewire.h kref_get(&card->kref); kref 146 include/linux/firewire.h void fw_card_release(struct kref *kref); kref 150 include/linux/firewire.h kref_put(&card->kref, fw_card_release); kref 42 include/linux/greybus/connection.h struct kref kref; kref 107 include/linux/greybus/operation.h struct kref kref; kref 184 include/linux/host1x.h struct kref ref; kref 43 include/linux/hugetlb.h struct kref refs; kref 51 include/linux/hugetlb.h void resv_map_release(struct kref *ref); kref 51 include/linux/hw_random.h struct kref ref; kref 67 include/linux/iio/buffer-dma.h struct kref kref; kref 133 include/linux/iio/buffer_impl.h struct kref ref; kref 257 include/linux/interrupt.h struct kref kref; kref 260 include/linux/interrupt.h void (*release)(struct kref *ref); kref 40 include/linux/klist.h struct kref n_ref; kref 72 include/linux/kobject.h struct kref kref; kref 134 include/linux/kobject.h WARN_ON_ONCE(kref_read(&kobj->kref) == 0); kref 29 include/linux/kref.h static inline void kref_init(struct kref *kref) kref 31 include/linux/kref.h refcount_set(&kref->refcount, 1); kref 34 include/linux/kref.h static inline unsigned int kref_read(const struct kref *kref) kref 36 include/linux/kref.h return refcount_read(&kref->refcount); kref 43 include/linux/kref.h static inline void kref_get(struct kref *kref) kref 45 include/linux/kref.h refcount_inc(&kref->refcount); kref 62 include/linux/kref.h static inline int kref_put(struct kref *kref, void (*release)(struct kref *kref)) kref 64 include/linux/kref.h if (refcount_dec_and_test(&kref->refcount)) { kref 65 include/linux/kref.h release(kref); kref 71 include/linux/kref.h static inline int kref_put_mutex(struct kref *kref, kref 72 include/linux/kref.h void (*release)(struct kref *kref), kref 75 include/linux/kref.h if (refcount_dec_and_mutex_lock(&kref->refcount, lock)) { kref 76 include/linux/kref.h release(kref); kref 82 include/linux/kref.h static inline int kref_put_lock(struct kref *kref, kref 83 include/linux/kref.h void (*release)(struct kref *kref), kref 86 include/linux/kref.h if (refcount_dec_and_lock(&kref->refcount, lock)) { kref 87 include/linux/kref.h release(kref); kref 109 include/linux/kref.h static inline int __must_check kref_get_unless_zero(struct kref *kref) kref 111 include/linux/kref.h return refcount_inc_not_zero(&kref->refcount); kref 604 include/linux/libata.h struct kref kref; kref 429 include/linux/lightnvm.h struct kref ref; kref 176 include/linux/lockd/lockd.h struct kref b_count; /* Reference count */ kref 408 include/linux/mlx5/driver.h struct kref ref_count; kref 29 include/linux/mtd/blktrans.h struct kref ref; kref 50 include/linux/nfs_page.h struct kref wb_kref; /* reference count */ kref 25 include/linux/pid_namespace.h struct kref kref; kref 58 include/linux/pid_namespace.h kref_get(&ns->kref); kref 125 include/linux/psi_types.h struct kref refcount; kref 45 include/linux/relay.h struct kref kref; /* channel buffer refcount */ kref 66 include/linux/relay.h struct kref kref; /* channel refcount */ kref 574 include/linux/remoteproc.h struct kref refcount; kref 89 include/linux/rpmsg.h struct kref refcount; kref 19 include/linux/sh_clk.h struct kref ref; kref 54 include/linux/sunrpc/cache.h struct kref ref; kref 71 include/linux/sunrpc/cache.h void (*cache_put)(struct kref *); kref 53 include/linux/sunrpc/svc_xprt.h struct kref xpt_ref; kref 81 include/linux/sunrpc/svcauth.h struct kref ref; kref 187 include/linux/sunrpc/xprt.h struct kref kref; /* Reference count */ kref 15 include/linux/sunrpc/xprtmultipath.h struct kref xps_kref; kref 54 include/linux/tee_drv.h struct kref refcount; kref 253 include/linux/tty.h struct kref kref; /* Ref counter */ kref 287 include/linux/tty.h struct kref kref; kref 467 include/linux/tty.h kref_get(&tty->kref); kref 602 include/linux/tty.h if (port && kref_get_unless_zero(&port->kref)) kref 304 include/linux/tty_driver.h struct kref kref; /* Reference management */ kref 365 include/linux/tty_driver.h kref_get(&d->kref); kref 324 include/linux/usb.h struct kref ref; /* reference counter */ kref 1552 include/linux/usb.h struct kref kref; /* reference count of the URB */ kref 87 include/linux/usb/hcd.h struct kref kref; /* reference counter */ kref 162 include/linux/usb/serial.h struct kref kref; kref 166 include/linux/usb/serial.h #define to_usb_serial(d) container_of(d, struct usb_serial, kref) kref 25 include/linux/utsname.h struct kref kref; kref 36 include/linux/utsname.h kref_get(&ns->kref); kref 41 include/linux/utsname.h extern void free_uts_ns(struct kref *kref); kref 45 include/linux/utsname.h kref_put(&ns->kref, free_uts_ns); kref 687 include/media/dvb_frontend.h struct kref refcount; kref 64 include/media/media-request.h struct kref kref; kref 179 include/media/media-request.h kref_get(&req->kref); kref 274 include/media/media-request.h struct kref kref; kref 289 include/media/media-request.h kref_get(&obj->kref); kref 57 include/media/v4l2-device.h struct kref ref; kref 82 include/net/9p/client.h struct kref refcount; kref 1021 include/net/bluetooth/hci_core.h kref_read(&d->dev.kobj.kref)); kref 1029 include/net/bluetooth/hci_core.h kref_read(&d->dev.kobj.kref)); kref 501 include/net/bluetooth/l2cap.h struct kref kref; kref 659 include/net/bluetooth/l2cap.h struct kref ref; kref 114 include/net/dsa.h struct kref refcount; kref 105 include/net/tls.h void (*release)(struct kref *kref); kref 106 include/net/tls.h struct kref kref; kref 1486 include/rdma/ib_verbs.h struct kref ref; kref 39 include/rdma/rdma_counter.h struct kref kref; kref 220 include/rdma/rdma_vt.h struct kref ref; kref 74 include/rdma/restrack.h struct kref kref; kref 193 include/scsi/libfc.h struct kref kref; kref 915 include/scsi/libfc.h void fc_rport_destroy(struct kref *kref); kref 202 include/scsi/libsas.h struct kref kref; kref 284 include/scsi/scsi_device.h struct kref reap_ref; /* last put renders target invisible */ kref 171 include/sound/hda_codec.h struct kref kref; kref 423 include/sound/hda_codec.h kref_get(&pcm->kref); kref 818 include/target/iscsi/iscsi_target_core.h struct kref tpg_np_kref; kref 506 include/target/target_core_base.h struct kref cmd_kref; kref 572 include/target/target_core_base.h struct kref acl_kref; kref 651 include/target/target_core_base.h struct kref pr_kref; kref 28 init/version.c .kref = KREF_INIT(2), kref 286 kernel/irq/manage.c kref_get(&desc->affinity_notify->kref); kref 289 kernel/irq/manage.c kref_put(&desc->affinity_notify->kref, kref 351 kernel/irq/manage.c kref_put(¬ify->kref, notify->release); kref 381 kernel/irq/manage.c kref_init(¬ify->kref); kref 393 kernel/irq/manage.c kref_put(&old_notify->kref, old_notify->release); kref 395 kernel/irq/manage.c kref_put(&old_notify->kref, old_notify->release); kref 74 kernel/pid.c .kref = KREF_INIT(2), kref 113 kernel/pid_namespace.c kref_init(&ns->kref); kref 160 kernel/pid_namespace.c static void free_pid_ns(struct kref *kref) kref 164 kernel/pid_namespace.c ns = container_of(kref, struct pid_namespace, kref); kref 174 kernel/pid_namespace.c if (!kref_put(&ns->kref, free_pid_ns)) kref 182 kernel/relay.c kref_get(&buf->chan->kref); kref 197 kernel/relay.c static void relay_destroy_channel(struct kref *kref) kref 199 kernel/relay.c struct rchan *chan = container_of(kref, struct rchan, kref); kref 221 kernel/relay.c kref_put(&chan->kref, relay_destroy_channel); kref 232 kernel/relay.c static void relay_remove_buf(struct kref *kref) kref 234 kernel/relay.c struct rchan_buf *buf = container_of(kref, struct rchan_buf, kref); kref 357 kernel/relay.c kref_init(&buf->kref); kref 498 kernel/relay.c kref_put(&buf->kref, relay_remove_buf); kref 600 kernel/relay.c kref_init(&chan->kref); kref 620 kernel/relay.c kref_put(&chan->kref, relay_destroy_channel); kref 861 kernel/relay.c kref_put(&chan->kref, relay_destroy_channel); kref 903 kernel/relay.c kref_get(&buf->kref); kref 957 kernel/relay.c kref_put(&buf->kref, relay_remove_buf); kref 15 kernel/sched/autogroup.c kref_init(&autogroup_default.kref); kref 25 kernel/sched/autogroup.c static inline void autogroup_destroy(struct kref *kref) kref 27 kernel/sched/autogroup.c struct autogroup *ag = container_of(kref, struct autogroup, kref); kref 40 kernel/sched/autogroup.c kref_put(&ag->kref, autogroup_destroy); kref 45 kernel/sched/autogroup.c kref_get(&ag->kref); kref 75 kernel/sched/autogroup.c kref_init(&ag->kref); kref 10 kernel/sched/autogroup.h struct kref kref; kref 1082 kernel/sched/psi.c static void psi_trigger_destroy(struct kref *ref) kref 36 kernel/utsname.c kref_init(&uts_ns->kref); kref 106 kernel/utsname.c void free_uts_ns(struct kref *kref) kref 110 kernel/utsname.c ns = container_of(kref, struct uts_namespace, kref); kref 66 lib/cpu_rmap.c static void cpu_rmap_release(struct kref *ref) kref 265 lib/cpu_rmap.c static void irq_cpu_rmap_release(struct kref *ref) kref 268 lib/cpu_rmap.c container_of(ref, struct irq_glue, notify.kref); kref 219 lib/digsig.c key_ref_t kref; kref 220 lib/digsig.c kref = keyring_search(make_key_ref(keyring, 1UL), kref 222 lib/digsig.c if (IS_ERR(kref)) kref 223 lib/digsig.c key = ERR_CAST(kref); kref 225 lib/digsig.c key = key_ref_to_ptr(kref); kref 183 lib/klist.c static void klist_release(struct kref *kref) kref 186 lib/klist.c struct klist_node *n = container_of(kref, struct klist_node, n_ref); kref 216 lib/kobject.c kref_init(&kobj->kref); kref 644 lib/kobject.c kref_get(&kobj->kref); kref 654 lib/kobject.c if (!kref_get_unless_zero(&kobj->kref)) kref 711 lib/kobject.c static void kobject_release(struct kref *kref) kref 713 lib/kobject.c struct kobject *kobj = container_of(kref, struct kobject, kref); kref 739 lib/kobject.c kref_put(&kobj->kref, kobject_release); kref 1028 mm/backing-dev.c static void release_bdi(struct kref *ref) kref 723 mm/hugetlb.c void resv_map_release(struct kref *ref) kref 116 mm/z3fold.c struct kref refcount; kref 462 mm/z3fold.c release_z3fold_page(struct kref *ref) kref 469 mm/z3fold.c static void release_z3fold_page_locked(struct kref *ref) kref 477 mm/z3fold.c static void release_z3fold_page_locked_list(struct kref *ref) kref 124 mm/zswap.c struct kref kref; kref 552 mm/zswap.c kref_init(&pool->kref); kref 622 mm/zswap.c return kref_get_unless_zero(&pool->kref); kref 632 mm/zswap.c WARN_ON(kref_get_unless_zero(&pool->kref)); kref 638 mm/zswap.c static void __zswap_pool_empty(struct kref *kref) kref 642 mm/zswap.c pool = container_of(kref, typeof(*pool), kref); kref 658 mm/zswap.c kref_put(&pool->kref, __zswap_pool_empty); kref 377 net/9p/client.c static void p9_req_free(struct kref *ref) kref 148 net/batman-adv/bridge_loop_avoidance.c static void batadv_backbone_gw_release(struct kref *ref) kref 173 net/batman-adv/bridge_loop_avoidance.c static void batadv_claim_release(struct kref *ref) kref 115 net/batman-adv/distributed-arp-table.c static void batadv_dat_entry_release(struct kref *ref) kref 63 net/batman-adv/gateway_client.c static void batadv_gw_node_release(struct kref *ref) kref 49 net/batman-adv/hard-interface.c void batadv_hardif_release(struct kref *ref) kref 106 net/batman-adv/hard-interface.h void batadv_hardif_release(struct kref *ref); kref 206 net/batman-adv/network-coding.c static void batadv_nc_node_release(struct kref *ref) kref 231 net/batman-adv/network-coding.c static void batadv_nc_path_release(struct kref *ref) kref 181 net/batman-adv/originator.c static void batadv_orig_node_vlan_release(struct kref *ref) kref 235 net/batman-adv/originator.c static void batadv_neigh_ifinfo_release(struct kref *ref) kref 262 net/batman-adv/originator.c static void batadv_hardif_neigh_release(struct kref *ref) kref 292 net/batman-adv/originator.c static void batadv_neigh_node_release(struct kref *ref) kref 854 net/batman-adv/originator.c static void batadv_orig_ifinfo_release(struct kref *ref) kref 905 net/batman-adv/originator.c static void batadv_orig_node_release(struct kref *ref) kref 513 net/batman-adv/soft-interface.c static void batadv_softif_vlan_release(struct kref *ref) kref 333 net/batman-adv/tp_meter.c static void batadv_tp_vars_release(struct kref *ref) kref 231 net/batman-adv/translation-table.c static void batadv_tt_local_entry_release(struct kref *ref) kref 274 net/batman-adv/translation-table.c static void batadv_tt_global_entry_release(struct kref *ref) kref 437 net/batman-adv/translation-table.c static void batadv_tt_orig_list_entry_release(struct kref *ref) kref 2803 net/batman-adv/translation-table.c static void batadv_tt_req_node_release(struct kref *ref) kref 38 net/batman-adv/tvlv.c static void batadv_tvlv_handler_release(struct kref *ref) kref 94 net/batman-adv/tvlv.c static void batadv_tvlv_container_release(struct kref *ref) kref 197 net/batman-adv/types.h struct kref refcount; kref 281 net/batman-adv/types.h struct kref refcount; kref 351 net/batman-adv/types.h struct kref refcount; kref 504 net/batman-adv/types.h struct kref refcount; kref 579 net/batman-adv/types.h struct kref refcount; kref 638 net/batman-adv/types.h struct kref refcount; kref 673 net/batman-adv/types.h struct kref refcount; kref 742 net/batman-adv/types.h struct kref refcount; kref 1496 net/batman-adv/types.h struct kref refcount; kref 1527 net/batman-adv/types.h struct kref refcount; kref 1855 net/batman-adv/types.h struct kref refcount; kref 1887 net/batman-adv/types.h struct kref refcount; kref 1914 net/batman-adv/types.h struct kref refcount; kref 1974 net/batman-adv/types.h struct kref refcount; kref 2004 net/batman-adv/types.h struct kref refcount; kref 2043 net/batman-adv/types.h struct kref refcount; kref 2066 net/batman-adv/types.h struct kref refcount; kref 2349 net/batman-adv/types.h struct kref refcount; kref 2396 net/batman-adv/types.h struct kref refcount; kref 2432 net/batman-adv/types.h struct kref refcount; kref 814 net/bluetooth/6lowpan.c kref_read(&chan->kref)); kref 806 net/bluetooth/a2mp.c BT_DBG("mgr %p orig refcnt %d", mgr, kref_read(&mgr->kref)); kref 808 net/bluetooth/a2mp.c kref_get(&mgr->kref); kref 813 net/bluetooth/a2mp.c static void amp_mgr_destroy(struct kref *kref) kref 815 net/bluetooth/a2mp.c struct amp_mgr *mgr = container_of(kref, struct amp_mgr, kref); kref 829 net/bluetooth/a2mp.c BT_DBG("mgr %p orig refcnt %d", mgr, kref_read(&mgr->kref)); kref 831 net/bluetooth/a2mp.c return kref_put(&mgr->kref, &_mgr_destroy); kref 858 net/bluetooth/a2mp.c kref_init(&mgr->kref); kref 25 net/bluetooth/a2mp.h struct kref kref; kref 20 net/bluetooth/amp.c kref_read(&ctrl->kref)); kref 22 net/bluetooth/amp.c kref_get(&ctrl->kref); kref 25 net/bluetooth/amp.c static void amp_ctrl_destroy(struct kref *kref) kref 27 net/bluetooth/amp.c struct amp_ctrl *ctrl = container_of(kref, struct amp_ctrl, kref); kref 38 net/bluetooth/amp.c kref_read(&ctrl->kref)); kref 40 net/bluetooth/amp.c return kref_put(&ctrl->kref, &_ctrl_destroy); kref 51 net/bluetooth/amp.c kref_init(&ctrl->kref); kref 12 net/bluetooth/amp.h struct kref kref; kref 980 net/bluetooth/hidp/core.c static void session_free(struct kref *ref) kref 139 net/bluetooth/hidp/hidp.h struct kref ref; kref 463 net/bluetooth/l2cap_core.c kref_init(&chan->kref); kref 474 net/bluetooth/l2cap_core.c static void l2cap_chan_destroy(struct kref *kref) kref 476 net/bluetooth/l2cap_core.c struct l2cap_chan *chan = container_of(kref, struct l2cap_chan, kref); kref 489 net/bluetooth/l2cap_core.c BT_DBG("chan %p orig refcnt %d", c, kref_read(&c->kref)); kref 491 net/bluetooth/l2cap_core.c kref_get(&c->kref); kref 496 net/bluetooth/l2cap_core.c BT_DBG("chan %p orig refcnt %d", c, kref_read(&c->kref)); kref 498 net/bluetooth/l2cap_core.c kref_put(&c->kref, l2cap_chan_destroy); kref 1755 net/bluetooth/l2cap_core.c static void l2cap_conn_free(struct kref *ref) kref 17 net/can/j1939/bus.c static void __j1939_ecu_release(struct kref *kref) kref 19 net/can/j1939/bus.c struct j1939_ecu *ecu = container_of(kref, struct j1939_ecu, kref); kref 29 net/can/j1939/bus.c kref_put(&ecu->kref, __j1939_ecu_release); kref 34 net/can/j1939/bus.c kref_get(&ecu->kref); kref 157 net/can/j1939/bus.c kref_init(&ecu->kref); kref 36 net/can/j1939/j1939-priv.h struct kref kref; kref 70 net/can/j1939/j1939-priv.h struct kref kref; kref 89 net/can/j1939/j1939-priv.h struct kref rx_kref; kref 230 net/can/j1939/j1939-priv.h struct kref kref; kref 131 net/can/j1939/main.c kref_init(&priv->kref); kref 148 net/can/j1939/main.c static void __j1939_priv_release(struct kref *kref) kref 150 net/can/j1939/main.c struct j1939_priv *priv = container_of(kref, struct j1939_priv, kref); kref 165 net/can/j1939/main.c kref_put(&priv->kref, __j1939_priv_release); kref 170 net/can/j1939/main.c kref_get(&priv->kref); kref 199 net/can/j1939/main.c static void __j1939_rx_release(struct kref *kref) kref 202 net/can/j1939/main.c struct j1939_priv *priv = container_of(kref, struct j1939_priv, kref 248 net/can/j1939/transport.c kref_get(&session->kref); kref 279 net/can/j1939/transport.c static void __j1939_session_release(struct kref *kref) kref 281 net/can/j1939/transport.c struct j1939_session *session = container_of(kref, struct j1939_session, kref 282 net/can/j1939/transport.c kref); kref 289 net/can/j1939/transport.c kref_put(&session->kref, __j1939_session_release); kref 1424 net/can/j1939/transport.c kref_init(&session->kref); kref 26 net/ceph/buffer.c kref_init(&b->kref); kref 34 net/ceph/buffer.c void ceph_buffer_release(struct kref *kref) kref 36 net/ceph/buffer.c struct ceph_buffer *b = container_of(kref, struct ceph_buffer, kref); kref 3344 net/ceph/messenger.c kref_init(&m->kref); kref 3490 net/ceph/messenger.c static void ceph_msg_release(struct kref *kref) kref 3492 net/ceph/messenger.c struct ceph_msg *m = container_of(kref, struct ceph_msg, kref); kref 3518 net/ceph/messenger.c kref_read(&msg->kref)); kref 3519 net/ceph/messenger.c kref_get(&msg->kref); kref 3527 net/ceph/messenger.c kref_read(&msg->kref)); kref 3528 net/ceph/messenger.c kref_put(&msg->kref, ceph_msg_release); kref 508 net/ceph/mon_client.c static void release_generic_request(struct kref *kref) kref 511 net/ceph/mon_client.c container_of(kref, struct ceph_mon_generic_request, kref); kref 528 net/ceph/mon_client.c kref_put(&req->kref, release_generic_request); kref 533 net/ceph/mon_client.c kref_get(&req->kref); kref 546 net/ceph/mon_client.c kref_init(&req->kref); kref 92 net/ceph/msgpool.c kref_init(&msg->kref); /* retake single ref */ kref 477 net/ceph/osd_client.c static void ceph_osdc_release_request(struct kref *kref) kref 479 net/ceph/osd_client.c struct ceph_osd_request *req = container_of(kref, kref 560 net/ceph/osd_client.c WARN_ON(kref_read(&request_msg->kref) != 1); kref 561 net/ceph/osd_client.c WARN_ON(kref_read(&reply_msg->kref) != 1); kref 2653 net/ceph/osd_client.c static void linger_release(struct kref *kref) kref 2656 net/ceph/osd_client.c container_of(kref, struct ceph_osd_linger_request, kref); kref 2678 net/ceph/osd_client.c kref_put(&lreq->kref, linger_release); kref 2684 net/ceph/osd_client.c kref_get(&lreq->kref); kref 2697 net/ceph/osd_client.c kref_init(&lreq->kref); kref 31 net/ceph/string_table.c if (exist && !kref_get_unless_zero(&exist->kref)) { kref 44 net/ceph/string_table.c kref_init(&cs->kref); kref 70 net/ceph/string_table.c } else if (!kref_get_unless_zero(&exist->kref)) { kref 88 net/ceph/string_table.c void ceph_release_string(struct kref *ref) kref 90 net/ceph/string_table.c struct ceph_string *cs = container_of(ref, struct ceph_string, kref); kref 81 net/dsa/dsa2.c static void dsa_tree_release(struct kref *ref) kref 162 net/mac802154/llsec.c static void llsec_key_release(struct kref *ref) kref 26 net/mac802154/llsec.h struct kref ref; kref 55 net/nfc/llcp.h struct kref ref; kref 167 net/nfc/llcp_core.c static void local_release(struct kref *ref) kref 123 net/qrtr/qrtr.c struct kref ref; kref 143 net/qrtr/qrtr.c static void __qrtr_node_release(struct kref *kref) kref 145 net/qrtr/qrtr.c struct qrtr_node *node = container_of(kref, struct qrtr_node, ref); kref 113 net/rxrpc/security.c key_ref_t kref = NULL; kref 143 net/rxrpc/security.c kref = keyring_search(make_key_ref(rx->securities, 1UL), kref 145 net/rxrpc/security.c if (IS_ERR(kref)) { kref 156 net/rxrpc/security.c *_key = key_ref_to_ptr(kref); kref 64 net/sunrpc/auth_gss/auth_gss.c struct kref kref; kref 68 net/sunrpc/auth_gss/auth_gss.c struct kref kref; kref 555 net/sunrpc/auth_gss/auth_gss.c kref_get(&gss_auth->kref); kref 927 net/sunrpc/auth_gss/auth_gss.c kref_init(&p->kref); kref 954 net/sunrpc/auth_gss/auth_gss.c if (!kref_get_unless_zero(&gss_pipe->kref)) kref 1004 net/sunrpc/auth_gss/auth_gss.c static void __gss_pipe_release(struct kref *kref) kref 1006 net/sunrpc/auth_gss/auth_gss.c struct gss_pipe *p = container_of(kref, struct gss_pipe, kref); kref 1014 net/sunrpc/auth_gss/auth_gss.c kref_put(&p->kref, __gss_pipe_release); kref 1063 net/sunrpc/auth_gss/auth_gss.c kref_init(&gss_auth->kref); kref 1121 net/sunrpc/auth_gss/auth_gss.c gss_free_callback(struct kref *kref) kref 1123 net/sunrpc/auth_gss/auth_gss.c struct gss_auth *gss_auth = container_of(kref, struct gss_auth, kref); kref 1131 net/sunrpc/auth_gss/auth_gss.c kref_put(&gss_auth->kref, gss_free_callback); kref 1261 net/sunrpc/auth_gss/auth_gss.c kref_get(&gss_auth->kref); kref 1391 net/sunrpc/auth_gss/auth_gss.c kref_get(&gss_auth->kref); kref 102 net/sunrpc/auth_gss/svcauth_gss.c static void rsi_put(struct kref *ref) kref 365 net/sunrpc/auth_gss/svcauth_gss.c static void rsc_put(struct kref *ref) kref 133 net/sunrpc/svc_xprt.c static void svc_xprt_free(struct kref *kref) kref 136 net/sunrpc/svc_xprt.c container_of(kref, struct svc_xprt, xpt_ref); kref 146 net/sunrpc/svcauth.c static void auth_domain_release(struct kref *kref) kref 149 net/sunrpc/svcauth.c struct auth_domain *dom = container_of(kref, struct auth_domain, ref); kref 104 net/sunrpc/svcauth_unix.c static void ip_map_put(struct kref *kref) kref 106 net/sunrpc/svcauth_unix.c struct cache_head *item = container_of(kref, struct cache_head, ref); kref 431 net/sunrpc/svcauth_unix.c static void unix_gid_put(struct kref *kref) kref 433 net/sunrpc/svcauth_unix.c struct cache_head *item = container_of(kref, struct cache_head, ref); kref 1851 net/sunrpc/xprt.c kref_init(&xprt->kref); kref 1980 net/sunrpc/xprt.c static void xprt_destroy_kref(struct kref *kref) kref 1982 net/sunrpc/xprt.c xprt_destroy(container_of(kref, struct rpc_xprt, kref)); kref 1992 net/sunrpc/xprt.c if (xprt != NULL && kref_get_unless_zero(&xprt->kref)) kref 2006 net/sunrpc/xprt.c kref_put(&xprt->kref, xprt_destroy_kref); kref 133 net/sunrpc/xprtmultipath.c static void xprt_switch_free(struct kref *kref) kref 135 net/sunrpc/xprtmultipath.c struct rpc_xprt_switch *xps = container_of(kref, kref 201 net/sunrpc/xprtmultipath.c return kref_read(&xprt->kref) != 0; kref 551 net/sunrpc/xprtrdma/rpc_rdma.c static void rpcrdma_sendctx_done(struct kref *kref) kref 554 net/sunrpc/xprtrdma/rpc_rdma.c container_of(kref, struct rpcrdma_req, rl_kref); kref 1297 net/sunrpc/xprtrdma/rpc_rdma.c static void rpcrdma_reply_done(struct kref *kref) kref 1300 net/sunrpc/xprtrdma/rpc_rdma.c container_of(kref, struct rpcrdma_req, rl_kref); kref 328 net/sunrpc/xprtrdma/xprt_rdma.h struct kref rl_kref; kref 105 net/tipc/node.c struct kref kref; kref 238 net/tipc/node.c static void tipc_node_kref_release(struct kref *kref) kref 240 net/tipc/node.c struct tipc_node *n = container_of(kref, struct tipc_node, kref); kref 248 net/tipc/node.c kref_put(&node->kref, tipc_node_kref_release); kref 253 net/tipc/node.c kref_get(&node->kref); kref 269 net/tipc/node.c if (!kref_get_unless_zero(&node->kref)) kref 291 net/tipc/node.c kref_get_unless_zero(&n->kref)) kref 403 net/tipc/node.c kref_init(&n->kref); kref 115 net/tipc/subscr.c static void tipc_sub_kref_release(struct kref *kref) kref 117 net/tipc/subscr.c kfree(container_of(kref, struct tipc_subscription, kref)); kref 122 net/tipc/subscr.c kref_put(&subscription->kref, tipc_sub_kref_release); kref 127 net/tipc/subscr.c kref_get(&subscription->kref); kref 155 net/tipc/subscr.c kref_init(&sub->kref); kref 58 net/tipc/subscr.h struct kref kref; kref 94 net/tipc/topsrv.c struct kref kref; kref 124 net/tipc/topsrv.c static void tipc_conn_kref_release(struct kref *kref) kref 126 net/tipc/topsrv.c struct tipc_conn *con = container_of(kref, struct tipc_conn, kref); kref 148 net/tipc/topsrv.c kref_put(&con->kref, tipc_conn_kref_release); kref 153 net/tipc/topsrv.c kref_get(&con->kref); kref 189 net/tipc/topsrv.c kref_init(&con->kref); kref 220 net/tipc/topsrv.c if (!connected(con) || !kref_get_unless_zero(&con->kref)) kref 688 net/tls/tls_main.c kref_get(&dev->kref); kref 691 net/tls/tls_main.c kref_put(&dev->kref, dev->release); kref 709 net/tls/tls_main.c kref_get(&dev->kref); kref 712 net/tls/tls_main.c kref_put(&dev->kref, dev->release); kref 811 security/apparmor/apparmorfs.c struct kref count; kref 820 security/apparmor/apparmorfs.c static void multi_transaction_kref(struct kref *kref) kref 824 security/apparmor/apparmorfs.c t = container_of(kref, struct multi_transaction, count); kref 106 security/apparmor/include/label.h struct kref count; kref 126 security/apparmor/include/label.h struct kref count; kref 279 security/apparmor/include/label.h void aa_label_kref(struct kref *kref); kref 448 security/apparmor/include/label.h void aa_proxy_kref(struct kref *kref); kref 94 security/apparmor/include/lib.h struct kref count; kref 103 security/apparmor/include/lib.h void aa_str_kref(struct kref *kref); kref 95 security/apparmor/include/match.h struct kref count; kref 135 security/apparmor/include/match.h void aa_dfa_free_kref(struct kref *kref); kref 177 security/apparmor/include/policy.h void aa_free_proxy_kref(struct kref *kref); kref 183 security/apparmor/include/policy.h void aa_free_profile_kref(struct kref *kref); kref 88 security/apparmor/include/policy_ns.h void aa_free_ns_kref(struct kref *kref); kref 58 security/apparmor/include/policy_unpack.h struct kref count; kref 113 security/apparmor/include/policy_unpack.h void aa_loaddata_kref(struct kref *kref); kref 53 security/apparmor/label.c void aa_proxy_kref(struct kref *kref) kref 55 security/apparmor/label.c struct aa_proxy *proxy = container_of(kref, struct aa_proxy, count); kref 372 security/apparmor/label.c void aa_label_kref(struct kref *kref) kref 374 security/apparmor/label.c struct aa_label *label = container_of(kref, struct aa_label, count); kref 147 security/apparmor/lib.c void aa_str_kref(struct kref *kref) kref 149 security/apparmor/lib.c kfree(container_of(kref, struct counted_str, count)); kref 263 security/apparmor/match.c void aa_dfa_free_kref(struct kref *kref) kref 265 security/apparmor/match.c struct aa_dfa *dfa = container_of(kref, struct aa_dfa, count); kref 169 security/apparmor/policy_unpack.c void aa_loaddata_kref(struct kref *kref) kref 171 security/apparmor/policy_unpack.c struct aa_loaddata *d = container_of(kref, struct aa_loaddata, count); kref 35 security/integrity/digsig_asymmetric.c key_ref_t kref; kref 37 security/integrity/digsig_asymmetric.c kref = keyring_search(make_key_ref(key, 1), kref 39 security/integrity/digsig_asymmetric.c if (!IS_ERR(kref)) { kref 47 security/integrity/digsig_asymmetric.c key_ref_t kref; kref 49 security/integrity/digsig_asymmetric.c kref = keyring_search(make_key_ref(keyring, 1), kref 51 security/integrity/digsig_asymmetric.c if (IS_ERR(kref)) kref 52 security/integrity/digsig_asymmetric.c key = ERR_CAST(kref); kref 54 security/integrity/digsig_asymmetric.c key = key_ref_to_ptr(kref); kref 696 sound/pci/hda/hda_codec.c static void release_pcm(struct kref *kref) kref 698 sound/pci/hda/hda_codec.c struct hda_pcm *pcm = container_of(kref, struct hda_pcm, kref); kref 709 sound/pci/hda/hda_codec.c kref_put(&pcm->kref, release_pcm); kref 724 sound/pci/hda/hda_codec.c kref_init(&pcm->kref); kref 50 sound/soc/qcom/qdsp6/q6adm.c struct kref refcount; kref 112 sound/soc/qcom/qdsp6/q6adm.c static void q6adm_free_copp(struct kref *ref) kref 485 sound/soc/qcom/qdsp6/q6afe.c struct kref refcount; kref 712 sound/soc/qcom/qdsp6/q6afe.c static void q6afe_port_free(struct kref *ref) kref 190 sound/soc/qcom/qdsp6/q6asm.c struct kref refcount; kref 470 sound/soc/qcom/qdsp6/q6asm.c static void q6asm_audio_client_release(struct kref *ref) kref 118 virt/kvm/arm/vgic/vgic.c static void vgic_irq_release(struct kref *ref)