/drivers/target/iscsi/cxgbit/ |
D | cxgbit.h | 140 struct kref kref; member 185 struct kref kref; member 212 struct kref kref; member 245 void _cxgbit_free_cdev(struct kref *kref); 246 void _cxgbit_free_csk(struct kref *kref); 247 void _cxgbit_free_cnp(struct kref *kref); 251 kref_get(&cdev->kref); in cxgbit_get_cdev() 256 kref_put(&cdev->kref, _cxgbit_free_cdev); in cxgbit_put_cdev() 261 kref_get(&csk->kref); in cxgbit_get_csk() 266 kref_put(&csk->kref, _cxgbit_free_csk); in cxgbit_put_csk() [all …]
|
/drivers/gpu/drm/amd/display/dc/core/ |
D | dc_surface.c | 191 static void dc_plane_state_free(struct kref *kref) in dc_plane_state_free() argument 193 struct dc_plane_state *plane_state = container_of(kref, struct dc_plane_state, refcount); in dc_plane_state_free() 208 static void dc_gamma_free(struct kref *kref) in dc_gamma_free() argument 210 struct dc_gamma *gamma = container_of(kref, struct dc_gamma, refcount); in dc_gamma_free() 239 static void dc_transfer_func_free(struct kref *kref) in dc_transfer_func_free() argument 241 struct dc_transfer_func *tf = container_of(kref, struct dc_transfer_func, refcount); in dc_transfer_func_free() 266 static void dc_3dlut_func_free(struct kref *kref) in dc_3dlut_func_free() argument 268 struct dc_3dlut *lut = container_of(kref, struct dc_3dlut, refcount); in dc_3dlut_func_free()
|
/drivers/infiniband/hw/cxgb3/ |
D | iwch_cm.h | 58 __func__, __LINE__, ep, kref_read(&((ep)->kref))); \ 59 WARN_ON(kref_read(&((ep)->kref)) < 1); \ 60 kref_put(&((ep)->kref), __free_ep); \ 65 __func__, __LINE__, ep, kref_read(&((ep)->kref))); \ 66 kref_get(&((ep)->kref)); \ 159 struct kref kref; member 225 void __free_ep(struct kref *kref);
|
/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() 27 kref_put(&aspace->kref, msm_gem_address_space_destroy); in msm_gem_address_space_put() 123 kref_get(&aspace->kref); in msm_gem_init_vma() 148 kref_init(&aspace->kref); in msm_gem_address_space_create() 171 kref_init(&aspace->kref); in msm_gem_address_space_create_a2xx()
|
/drivers/media/cec/ |
D | cec-notifier.c | 23 struct kref kref; member 46 kref_get(&n->kref); in cec_notifier_get_conn() 66 kref_init(&n->kref); in cec_notifier_get_conn() 74 static void cec_notifier_release(struct kref *kref) in cec_notifier_release() argument 77 container_of(kref, struct cec_notifier, kref); in cec_notifier_release() 87 kref_put(&n->kref, cec_notifier_release); in cec_notifier_put() 204 kref_get(&n->kref); in cec_notifier_register()
|
/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() 331 kref_init(&dev->kref); in lcd_probe() 389 kref_put(&dev->kref, lcd_delete); in lcd_probe() 432 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() 204 kref_init(&dev->kref); in yurex_probe() 304 kref_put(&dev->kref, yurex_delete); in yurex_probe() 331 kref_put(&dev->kref, yurex_delete); in yurex_disconnect() 376 kref_get(&dev->kref); in yurex_open() 396 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() 150 kref_init(&rdata->kref); in fc_rport_create() 173 void fc_rport_destroy(struct kref *kref) in fc_rport_destroy() argument 177 rdata = container_of(kref, struct fc_rport_priv, kref); in fc_rport_destroy() 282 kref_get(&rdata->kref); in fc_rport_work() 292 kref_put(&rdata->kref, fc_rport_destroy); in fc_rport_work() 318 kref_put(&rdata->kref, fc_rport_destroy); in fc_rport_work() 345 kref_put(&rdata->kref, fc_rport_destroy); in fc_rport_work() 367 kref_put(&rdata->kref, fc_rport_destroy); in fc_rport_work() 382 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/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/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/iio/buffer/ |
D | industrialio-buffer-dma.c | 94 static void iio_buffer_block_release(struct kref *kref) in iio_buffer_block_release() argument 96 struct iio_dma_buffer_block *block = container_of(kref, in iio_buffer_block_release() 97 struct iio_dma_buffer_block, kref); in iio_buffer_block_release() 110 kref_get(&block->kref); in iio_buffer_block_get() 115 kref_put(&block->kref, iio_buffer_block_release); in iio_buffer_block_put() 135 iio_buffer_block_release(&block->kref); in iio_dma_buffer_cleanup_worker() 139 static void iio_buffer_block_release_atomic(struct kref *kref) in iio_buffer_block_release_atomic() argument 144 block = container_of(kref, struct iio_dma_buffer_block, kref); in iio_buffer_block_release_atomic() 158 kref_put(&block->kref, iio_buffer_block_release_atomic); in iio_buffer_block_put_atomic() 186 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() 348 static void media_request_object_release(struct kref *kref) in media_request_object_release() argument 351 container_of(kref, struct media_request_object, kref); in media_request_object_release() 386 kref_put(&obj->kref, media_request_object_release); in media_request_object_put() 397 kref_init(&obj->kref); in media_request_object_init()
|
/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/scsi/device_handler/ |
D | scsi_dh_alua.c | 62 struct kref kref; member 108 static void release_port_group(struct kref *kref) in release_port_group() argument 112 pg = container_of(kref, struct alua_port_group, kref); in release_port_group() 193 if (!kref_get_unless_zero(&pg->kref)) in alua_find_get_pg() 238 kref_init(&pg->kref); in alua_alloc_pg() 381 kref_put(&old_pg->kref, release_port_group); in alua_check_vpd() 671 kref_put(&tmp_pg->kref, release_port_group); in alua_rtpg() 808 kref_put(&pg->kref, release_port_group); in alua_rtpg_work() 876 kref_put(&pg->kref, release_port_group); in alua_rtpg_work() 908 kref_get(&pg->kref); in alua_rtpg_queue() [all …]
|
/drivers/gpu/drm/i915/gt/ |
D | intel_timeline.h | 45 kref_get(&timeline->kref); in intel_timeline_get() 49 void __intel_timeline_free(struct kref *kref); 52 kref_put(&timeline->kref, __intel_timeline_free); in intel_timeline_put()
|
/drivers/opp/ |
D | opp.h | 73 struct kref kref; member 169 struct kref kref; member 170 struct kref list_kref;
|