/drivers/target/iscsi/cxgbit/ |
D | cxgbit.h | 140 struct kref kref; member 185 struct kref kref; member 211 struct kref kref; member 244 void _cxgbit_free_cdev(struct kref *kref); 245 void _cxgbit_free_csk(struct kref *kref); 246 void _cxgbit_free_cnp(struct kref *kref); 250 kref_get(&cdev->kref); in cxgbit_get_cdev() 255 kref_put(&cdev->kref, _cxgbit_free_cdev); in cxgbit_put_cdev() 260 kref_get(&csk->kref); in cxgbit_get_csk() 265 kref_put(&csk->kref, _cxgbit_free_csk); in cxgbit_put_csk() [all …]
|
/drivers/gpu/drm/amd/display/dc/core/ |
D | dc_surface.c | 180 static void dc_plane_state_free(struct kref *kref) in dc_plane_state_free() argument 182 struct dc_plane_state *plane_state = container_of(kref, struct dc_plane_state, refcount); in dc_plane_state_free() 197 static void dc_gamma_free(struct kref *kref) in dc_gamma_free() argument 199 struct dc_gamma *gamma = container_of(kref, struct dc_gamma, refcount); in dc_gamma_free() 228 static void dc_transfer_func_free(struct kref *kref) in dc_transfer_func_free() argument 230 struct dc_transfer_func *tf = container_of(kref, struct dc_transfer_func, refcount); in dc_transfer_func_free() 254 static void dc_3dlut_func_free(struct kref *kref) in dc_3dlut_func_free() argument 256 struct dc_3dlut *lut = container_of(kref, struct dc_3dlut, refcount); in dc_3dlut_func_free()
|
/drivers/acpi/ |
D | acpi_ipmi.c | 40 struct kref kref; member 83 struct kref kref; member 121 kref_init(&ipmi_device->kref); in ipmi_dev_alloc() 148 static void ipmi_dev_release_kref(struct kref *kref) in ipmi_dev_release_kref() argument 151 container_of(kref, struct acpi_ipmi_device, kref); in ipmi_dev_release_kref() 176 kref_get(&ipmi_device->kref); in acpi_ipmi_dev_get() 185 kref_put(&ipmi_device->kref, ipmi_dev_release_kref); in acpi_ipmi_dev_put() 203 kref_init(&ipmi_msg->kref); in ipmi_msg_alloc() 218 static void ipmi_msg_release_kref(struct kref *kref) in ipmi_msg_release_kref() argument 221 container_of(kref, struct acpi_ipmi_msg, kref); in ipmi_msg_release_kref() [all …]
|
/drivers/gpu/drm/msm/ |
D | msm_gem_vma.c | 12 msm_gem_address_space_destroy(struct kref *kref) in msm_gem_address_space_destroy() argument 14 struct msm_gem_address_space *aspace = container_of(kref, in msm_gem_address_space_destroy() 15 struct msm_gem_address_space, kref); in msm_gem_address_space_destroy() 28 kref_put(&aspace->kref, msm_gem_address_space_destroy); in msm_gem_address_space_put() 35 kref_get(&aspace->kref); in msm_gem_address_space_get() 137 kref_get(&aspace->kref); in msm_gem_init_vma() 161 kref_init(&aspace->kref); in msm_gem_address_space_create()
|
/drivers/media/cec/core/ |
D | cec-notifier.c | 24 struct kref kref; member 60 kref_get(&n->kref); in cec_notifier_get_conn() 80 kref_init(&n->kref); in cec_notifier_get_conn() 87 static void cec_notifier_release(struct kref *kref) in cec_notifier_release() argument 90 container_of(kref, struct cec_notifier, kref); in cec_notifier_release() 100 kref_put(&n->kref, cec_notifier_release); in cec_notifier_put()
|
/drivers/gpu/drm/nouveau/nvkm/core/ |
D | memory.c | 104 kref_init(&memory->kref); in nvkm_memory_ctor() 108 nvkm_memory_del(struct kref *kref) in nvkm_memory_del() argument 110 struct nvkm_memory *memory = container_of(kref, typeof(*memory), kref); in nvkm_memory_del() 123 kref_put(&memory->kref, nvkm_memory_del); in nvkm_memory_unref() 132 kref_get(&memory->kref); in nvkm_memory_ref()
|
/drivers/usb/misc/ |
D | usblcd.c | 51 struct kref kref; member 60 #define to_lcd_dev(d) container_of(d, struct usb_lcd, kref) 67 static void lcd_delete(struct kref *kref) in lcd_delete() argument 69 struct usb_lcd *dev = to_lcd_dev(kref); in lcd_delete() 95 kref_get(&dev->kref); in lcd_open() 100 kref_put(&dev->kref, lcd_delete); in lcd_open() 120 kref_put(&dev->kref, lcd_delete); in lcd_release() 330 kref_init(&dev->kref); in lcd_probe() 388 kref_put(&dev->kref, lcd_delete); in lcd_probe() 431 kref_put(&dev->kref, lcd_delete); in lcd_disconnect()
|
D | yurex.c | 61 struct kref kref; member 70 #define to_yurex_dev(d) container_of(d, struct usb_yurex, kref) 90 static void yurex_delete(struct kref *kref) in yurex_delete() argument 92 struct usb_yurex *dev = to_yurex_dev(kref); in yurex_delete() 203 kref_init(&dev->kref); in yurex_probe() 303 kref_put(&dev->kref, yurex_delete); in yurex_probe() 330 kref_put(&dev->kref, yurex_delete); in yurex_disconnect() 375 kref_get(&dev->kref); in yurex_open() 395 kref_put(&dev->kref, yurex_delete); in yurex_release()
|
/drivers/gpu/drm/vmwgfx/ |
D | ttm_object.c | 74 struct kref refcount; 125 struct kref kref; member 140 static void ttm_object_file_destroy(struct kref *kref) in ttm_object_file_destroy() argument 143 container_of(kref, struct ttm_object_file, refcount); in ttm_object_file_destroy() 198 static void ttm_release_base(struct kref *kref) in ttm_release_base() argument 201 container_of(kref, struct ttm_base_object, refcount); in ttm_release_base() 333 if (unlikely(kref_read(&ref->kref) == 0)) in ttm_ref_object_exists() 371 if (kref_get_unless_zero(&ref->kref)) { in ttm_ref_object_add() 395 kref_init(&ref->kref); in ttm_ref_object_add() 420 ttm_ref_object_release(struct kref *kref) in ttm_ref_object_release() argument [all …]
|
/drivers/scsi/libfc/ |
D | fc_rport.c | 112 kref_get_unless_zero(&tmp_rdata->kref)) { in fc_rport_lookup() 137 kref_put(&rdata->kref, fc_rport_destroy); in fc_rport_create() 152 kref_init(&rdata->kref); in fc_rport_create() 175 void fc_rport_destroy(struct kref *kref) in fc_rport_destroy() argument 179 rdata = container_of(kref, struct fc_rport_priv, kref); in fc_rport_destroy() 284 kref_get(&rdata->kref); in fc_rport_work() 294 kref_put(&rdata->kref, fc_rport_destroy); in fc_rport_work() 320 kref_put(&rdata->kref, fc_rport_destroy); in fc_rport_work() 347 kref_put(&rdata->kref, fc_rport_destroy); in fc_rport_work() 369 kref_put(&rdata->kref, fc_rport_destroy); in fc_rport_work() [all …]
|
/drivers/hid/ |
D | hid-cougar.c | 70 struct kref kref; member 126 kref_get(&shared->kref); in cougar_get_shared_data() 133 static void cougar_release_shared_data(struct kref *kref) in cougar_release_shared_data() argument 135 struct cougar_shared *shared = container_of(kref, in cougar_release_shared_data() 136 struct cougar_shared, kref); in cougar_release_shared_data() 150 kref_put(&cougar->shared->kref, cougar_release_shared_data); in cougar_remove_shared_data() 175 kref_init(&shared->kref); in cougar_bind_shared_data()
|
/drivers/usb/core/ |
D | file.c | 61 struct kref kref; member 80 kref_get(&usb_class->kref); in init_usb_class() 90 kref_init(&usb_class->kref); in init_usb_class() 105 static void release_usb_class(struct kref *kref) in release_usb_class() argument 116 kref_put(&usb_class->kref, release_usb_class); in destroy_usb_class()
|
/drivers/misc/vmw_vmci/ |
D | vmci_resource.c | 124 kref_init(&resource->kref); in vmci_resource_add() 185 kref_get(&resource->kref); in vmci_resource_get() 190 static void vmci_release_resource(struct kref *kref) in vmci_release_resource() argument 193 container_of(kref, struct vmci_resource, kref); in vmci_release_resource() 214 return kref_put(&resource->kref, vmci_release_resource) ? in vmci_resource_put()
|
/drivers/infiniband/hw/cxgb4/ |
D | iw_cxgb4.h | 112 struct kref kref; member 194 struct kref rqt_kref; 195 struct kref pbl_kref; 213 struct kref kref; member 216 void _c4iw_free_wr_wait(struct kref *kref); 221 kref_read(&wr_waitp->kref)); in c4iw_put_wr_wait() 222 WARN_ON(kref_read(&wr_waitp->kref) == 0); in c4iw_put_wr_wait() 223 kref_put(&wr_waitp->kref, _c4iw_free_wr_wait); in c4iw_put_wr_wait() 229 kref_read(&wr_waitp->kref)); in c4iw_get_wr_wait() 230 WARN_ON(kref_read(&wr_waitp->kref) == 0); in c4iw_get_wr_wait() [all …]
|
/drivers/input/serio/ |
D | serio_raw.c | 33 struct kref kref; member 104 kref_get(&serio_raw->kref); in serio_raw_open() 115 static void serio_raw_free(struct kref *kref) in serio_raw_free() argument 118 container_of(kref, struct serio_raw, kref); in serio_raw_free() 135 kref_put(&serio_raw->kref, serio_raw_free); in serio_raw_release() 304 kref_init(&serio_raw->kref); in serio_raw_connect() 352 kref_put(&serio_raw->kref, serio_raw_free); in serio_raw_connect() 405 kref_put(&serio_raw->kref, serio_raw_free); in serio_raw_disconnect()
|
/drivers/scsi/isci/ |
D | remote_device.h | 92 struct kref kref; member 116 kref_get(&idev->kref); in isci_get_device() 125 kref_get(&idev->kref); in isci_lookup_device() 132 void isci_remote_device_release(struct kref *kref); 136 kref_put(&idev->kref, isci_remote_device_release); in isci_put_device()
|
/drivers/misc/ibmasm/ |
D | ibmasm.h | 85 struct kref kref; member 88 #define to_command(c) container_of(c, struct command, kref) 90 void ibmasm_free_command(struct kref *kref); 97 kref_put(&cmd->kref, ibmasm_free_command); in command_put() 103 kref_get(&cmd->kref); in command_get()
|
/drivers/iio/buffer/ |
D | industrialio-buffer-dma.c | 93 static void iio_buffer_block_release(struct kref *kref) in iio_buffer_block_release() argument 95 struct iio_dma_buffer_block *block = container_of(kref, in iio_buffer_block_release() 96 struct iio_dma_buffer_block, kref); in iio_buffer_block_release() 109 kref_get(&block->kref); in iio_buffer_block_get() 114 kref_put(&block->kref, iio_buffer_block_release); in iio_buffer_block_put() 134 iio_buffer_block_release(&block->kref); in iio_dma_buffer_cleanup_worker() 138 static void iio_buffer_block_release_atomic(struct kref *kref) in iio_buffer_block_release_atomic() argument 143 block = container_of(kref, struct iio_dma_buffer_block, kref); in iio_buffer_block_release_atomic() 157 kref_put(&block->kref, iio_buffer_block_release_atomic); in iio_buffer_block_put_atomic() 185 kref_init(&block->kref); in iio_dma_buffer_alloc_block()
|
/drivers/media/mc/ |
D | mc-request.c | 60 static void media_request_release(struct kref *kref) in media_request_release() argument 63 container_of(kref, struct media_request, kref); in media_request_release() 81 kref_put(&req->kref, media_request_release); in media_request_put() 322 kref_init(&req->kref); in media_request_alloc() 351 static void media_request_object_release(struct kref *kref) in media_request_object_release() argument 354 container_of(kref, struct media_request_object, kref); in media_request_object_release() 389 kref_put(&obj->kref, media_request_object_release); in media_request_object_put() 400 kref_init(&obj->kref); in media_request_object_init()
|
/drivers/gpu/drm/i915/ |
D | intel_memory_region.c | 117 kref_init(&mem->kref); in intel_memory_region_create() 135 static void __intel_memory_region_destroy(struct kref *kref) in __intel_memory_region_destroy() argument 138 container_of(kref, typeof(*mem), kref); in __intel_memory_region_destroy() 150 kref_get(&mem->kref); in intel_memory_region_get() 156 kref_put(&mem->kref, __intel_memory_region_destroy); in intel_memory_region_put()
|
/drivers/gpu/drm/i915/gt/ |
D | selftest_engine_heartbeat.c | 44 struct kref kref; member 49 kref_get(&container_of(active, struct pulse, active)->kref); in pulse_active() 53 static void pulse_free(struct kref *kref) in pulse_free() argument 55 struct pulse *p = container_of(kref, typeof(*p), kref); in pulse_free() 63 kref_put(&p->kref, pulse_free); in pulse_put() 79 kref_init(&p->kref); in pulse_create()
|
/drivers/block/rnbd/ |
D | rnbd-srv.h | 40 struct kref kref; member 61 struct kref kref; member
|
/drivers/staging/greybus/ |
D | fw-download.c | 32 struct kref kref; member 44 static void fw_req_release(struct kref *kref) in fw_req_release() argument 46 struct fw_request *fw_req = container_of(kref, struct fw_request, kref); in fw_req_release() 88 kref_put(&fw_req->kref, fw_req_release); in put_fw_req() 101 kref_get(&fw_req->kref); in get_fw_req() 199 kref_init(&fw_req->kref); in find_firmware() 454 kref_get(&fw_req->kref); in gb_fw_download_connection_exit()
|
D | authentication.c | 29 struct kref kref; member 45 static void cap_kref_release(struct kref *kref) in cap_kref_release() argument 47 struct gb_cap *cap = container_of(kref, struct gb_cap, kref); in cap_kref_release() 59 kref_put(&cap->kref, cap_kref_release); in put_cap() 71 kref_get(&cap->kref); in get_cap() 314 kref_init(&cap->kref); in gb_cap_connection_init()
|
/drivers/usb/ |
D | usb-skeleton.c | 62 struct kref kref; member 67 #define to_skel_dev(d) container_of(d, struct usb_skel, kref) 72 static void skel_delete(struct kref *kref) in skel_delete() argument 74 struct usb_skel *dev = to_skel_dev(kref); in skel_delete() 111 kref_get(&dev->kref); in skel_open() 132 kref_put(&dev->kref, skel_delete); in skel_release() 500 kref_init(&dev->kref); in skel_probe() 556 kref_put(&dev->kref, skel_delete); in skel_probe() 581 kref_put(&dev->kref, skel_delete); in skel_disconnect()
|