Home
last modified time | relevance | path

Searched refs:kref (Results 1 – 25 of 310) sorted by relevance

12345678910>>...13

/drivers/target/iscsi/cxgbit/
Dcxgbit.h143 struct kref kref; member
187 struct kref kref; member
214 struct kref kref; member
247 void _cxgbit_free_cdev(struct kref *kref);
248 void _cxgbit_free_csk(struct kref *kref);
249 void _cxgbit_free_cnp(struct kref *kref);
253 kref_get(&cdev->kref); in cxgbit_get_cdev()
258 kref_put(&cdev->kref, _cxgbit_free_cdev); in cxgbit_put_cdev()
263 kref_get(&csk->kref); in cxgbit_get_csk()
268 kref_put(&csk->kref, _cxgbit_free_csk); in cxgbit_put_csk()
[all …]
/drivers/infiniband/hw/cxgb3/
Diwch_cm.h58 ep, atomic_read(&((ep)->kref.refcount))); \
59 WARN_ON(atomic_read(&((ep)->kref.refcount)) < 1); \
60 kref_put(&((ep)->kref), __free_ep); \
65 ep, atomic_read(&((ep)->kref.refcount))); \
66 kref_get(&((ep)->kref)); \
159 struct kref kref; member
225 void __free_ep(struct kref *kref);
/drivers/staging/goldfish/
Dgoldfish_sync_timeline_fence.c36 struct kref kref; member
80 kref_init(&obj->kref); in goldfish_sync_timeline_create_internal()
91 static void goldfish_sync_timeline_free_internal(struct kref *kref) in goldfish_sync_timeline_free_internal() argument
94 container_of(kref, struct goldfish_sync_timeline, kref); in goldfish_sync_timeline_free_internal()
102 kref_get(&obj->kref); in goldfish_sync_timeline_get_internal()
107 kref_put(&obj->kref, goldfish_sync_timeline_free_internal); in goldfish_sync_timeline_put_internal()
Dgoldfish_sync_timeline.c222 struct kref kref; member
228 static void delete_timeline_obj(struct kref* kref) { in delete_timeline_obj() argument
230 container_of(kref, struct goldfish_sync_timeline_obj, kref); in delete_timeline_obj()
267 kref_init(&res->kref); in goldfish_sync_timeline_create()
321 kref_get(&obj->kref); in goldfish_sync_fence_create()
350 kref_put(&obj->kref, delete_timeline_obj); in goldfish_sync_timeline_inc()
362 kref_put(&obj->kref, delete_timeline_obj); in goldfish_sync_timeline_destroy()
765 kref_put(&timeline->kref, delete_timeline_obj); in goldfish_sync_ioctl()
/drivers/acpi/
Dacpi_ipmi.c53 struct kref kref; member
96 struct kref kref; member
134 kref_init(&ipmi_device->kref); in ipmi_dev_alloc()
161 static void ipmi_dev_release_kref(struct kref *kref) in ipmi_dev_release_kref() argument
164 container_of(kref, struct acpi_ipmi_device, kref); in ipmi_dev_release_kref()
189 kref_get(&ipmi_device->kref); in acpi_ipmi_dev_get()
198 kref_put(&ipmi_device->kref, ipmi_dev_release_kref); in acpi_ipmi_dev_put()
216 kref_init(&ipmi_msg->kref); in ipmi_msg_alloc()
231 static void ipmi_msg_release_kref(struct kref *kref) in ipmi_msg_release_kref() argument
234 container_of(kref, struct acpi_ipmi_msg, kref); in ipmi_msg_release_kref()
[all …]
/drivers/usb/misc/
Dusblcd.c53 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()
103 kref_get(&dev->kref); in lcd_open()
109 kref_put(&dev->kref, lcd_delete); in lcd_open()
131 kref_put(&dev->kref, lcd_delete); in lcd_release()
326 kref_init(&dev->kref); in lcd_probe()
394 kref_put(&dev->kref, lcd_delete); in lcd_probe()
436 kref_put(&dev->kref, lcd_delete); in lcd_disconnect()
Dyurex.c65 struct kref kref; member
73 #define to_yurex_dev(d) container_of(d, struct usb_yurex, kref)
93 static void yurex_delete(struct kref *kref) in yurex_delete() argument
95 struct usb_yurex *dev = to_yurex_dev(kref); in yurex_delete()
205 kref_init(&dev->kref); in yurex_probe()
311 kref_put(&dev->kref, yurex_delete); in yurex_probe()
336 kref_put(&dev->kref, yurex_delete); in yurex_disconnect()
381 kref_get(&dev->kref); in yurex_open()
401 kref_put(&dev->kref, yurex_delete); in yurex_release()
/drivers/gpu/drm/ttm/
Dttm_object.c74 struct kref refcount;
124 struct kref kref; member
139 static void ttm_object_file_destroy(struct kref *kref) in ttm_object_file_destroy() argument
142 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()
307 if (unlikely(atomic_read(&ref->kref.refcount) == 0)) in ttm_ref_object_exists()
342 if (kref_get_unless_zero(&ref->kref)) { in ttm_ref_object_add()
366 kref_init(&ref->kref); in ttm_ref_object_add()
391 static void ttm_ref_object_release(struct kref *kref) in ttm_ref_object_release() argument
[all …]
/drivers/misc/vmw_vmci/
Dvmci_resource.c130 kref_init(&resource->kref); in vmci_resource_add()
191 kref_get(&resource->kref); in vmci_resource_get()
196 static void vmci_release_resource(struct kref *kref) in vmci_release_resource() argument
199 container_of(kref, struct vmci_resource, kref); in vmci_release_resource()
220 return kref_put(&resource->kref, vmci_release_resource) ? in vmci_resource_put()
/drivers/usb/core/
Dfile.c59 struct kref kref; member
78 kref_get(&usb_class->kref); in init_usb_class()
88 kref_init(&usb_class->kref); in init_usb_class()
103 static void release_usb_class(struct kref *kref) in release_usb_class() argument
114 kref_put(&usb_class->kref, release_usb_class); in destroy_usb_class()
/drivers/input/serio/
Dserio_raw.c36 struct kref kref; member
107 kref_get(&serio_raw->kref); in serio_raw_open()
118 static void serio_raw_free(struct kref *kref) in serio_raw_free() argument
121 container_of(kref, struct serio_raw, kref); in serio_raw_free()
138 kref_put(&serio_raw->kref, serio_raw_free); in serio_raw_release()
307 kref_init(&serio_raw->kref); in serio_raw_connect()
355 kref_put(&serio_raw->kref, serio_raw_free); in serio_raw_connect()
408 kref_put(&serio_raw->kref, serio_raw_free); in serio_raw_disconnect()
/drivers/misc/ibmasm/
Dibmasm.h99 struct kref kref; member
102 #define to_command(c) container_of(c, struct command, kref)
104 void ibmasm_free_command(struct kref *kref);
111 kref_put(&cmd->kref, ibmasm_free_command); in command_put()
117 kref_get(&cmd->kref); in command_get()
/drivers/scsi/isci/
Dremote_device.h92 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/
Dindustrialio-buffer-dma.c94 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/staging/greybus/
Dfw-download.c33 struct kref kref; member
45 static void fw_req_release(struct kref *kref) in fw_req_release() argument
47 struct fw_request *fw_req = container_of(kref, struct fw_request, kref); in fw_req_release()
89 kref_put(&fw_req->kref, fw_req_release); in put_fw_req()
102 kref_get(&fw_req->kref); in get_fw_req()
199 kref_init(&fw_req->kref); in find_firmware()
453 kref_get(&fw_req->kref); in gb_fw_download_connection_exit()
Dauthentication.c32 struct kref kref; member
48 static void cap_kref_release(struct kref *kref) in cap_kref_release() argument
50 struct gb_cap *cap = container_of(kref, struct gb_cap, kref); in cap_kref_release()
62 kref_put(&cap->kref, cap_kref_release); in put_cap()
74 kref_get(&cap->kref); in get_cap()
317 kref_init(&cap->kref); in gb_cap_connection_init()
/drivers/vfio/
Dvfio.c60 struct kref kref; member
74 struct kref kref; member
92 struct kref kref; member
291 kref_get(&container->kref); in vfio_container_get()
294 static void vfio_container_release(struct kref *kref) in vfio_container_release() argument
297 container = container_of(kref, struct vfio_container, kref); in vfio_container_release()
304 kref_put(&container->kref, vfio_container_release); in vfio_container_put()
331 kref_init(&group->kref); in vfio_create_group()
396 static void vfio_group_release(struct kref *kref) in vfio_group_release() argument
398 struct vfio_group *group = container_of(kref, struct vfio_group, kref); in vfio_group_release()
[all …]
/drivers/infiniband/hw/cxgb4/
Diw_cxgb4.h111 struct kref kref; member
482 struct kref kref; member
503 struct kref kref; member
511 void _c4iw_free_ucontext(struct kref *kref);
515 kref_put(&ucontext->kref, _c4iw_free_ucontext); in c4iw_put_ucontext()
520 kref_get(&ucontext->kref); in c4iw_get_ucontext()
675 ep, atomic_read(&((ep)->kref.refcount))); \
676 WARN_ON(atomic_read(&((ep)->kref.refcount)) < 1); \
677 kref_put(&((ep)->kref), _c4iw_free_ep); \
682 ep, atomic_read(&((ep)->kref.refcount))); \
[all …]
/drivers/scsi/device_handler/
Dscsi_dh_alua.c76 struct kref kref; member
121 static void release_port_group(struct kref *kref) in release_port_group() argument
125 pg = container_of(kref, struct alua_port_group, kref); in release_port_group()
208 if (!kref_get_unless_zero(&pg->kref)) in alua_find_get_pg()
252 kref_init(&pg->kref); in alua_alloc_pg()
395 kref_put(&old_pg->kref, release_port_group); in alua_check_vpd()
662 kref_put(&tmp_pg->kref, release_port_group); in alua_rtpg()
796 kref_put(&pg->kref, release_port_group); in alua_rtpg_work()
862 kref_put(&pg->kref, release_port_group); in alua_rtpg_work()
891 kref_get(&pg->kref); in alua_rtpg_queue()
[all …]
/drivers/usb/
Dusb-skeleton.c64 struct kref kref; member
68 #define to_skel_dev(d) container_of(d, struct usb_skel, kref)
73 static void skel_delete(struct kref *kref) in skel_delete() argument
75 struct usb_skel *dev = to_skel_dev(kref); in skel_delete()
111 kref_get(&dev->kref); in skel_open()
135 kref_put(&dev->kref, skel_delete); in skel_release()
504 kref_init(&dev->kref); in skel_probe()
568 kref_put(&dev->kref, skel_delete); in skel_probe()
591 kref_put(&dev->kref, skel_delete); in skel_disconnect()
/drivers/uwb/
Dneh.c104 struct kref kref; member
120 static void uwb_rc_neh_release(struct kref *kref) in uwb_rc_neh_release() argument
122 struct uwb_rc_neh *neh = container_of(kref, struct uwb_rc_neh, kref); in uwb_rc_neh_release()
129 kref_get(&neh->kref); in uwb_rc_neh_get()
138 kref_put(&neh->kref, uwb_rc_neh_release); in uwb_rc_neh_put()
224 kref_init(&neh->kref); in uwb_rc_neh_add()
/drivers/infiniband/core/
Diwpm_util.h73 struct kref kref; member
114 void iwpm_free_nlmsg_request(struct kref *kref);
/drivers/infiniband/sw/rxe/
Drxe_pool.h81 struct kref ref_cnt;
93 struct kref ref_cnt;
155 void rxe_elem_release(struct kref *kref);
/drivers/media/usb/as102/
Das102_usb_drv.c310 static void as102_usb_release(struct kref *kref) in as102_usb_release() argument
314 as102_dev = container_of(kref, struct as102_dev_t, kref); in as102_usb_release()
340 kref_put(&as102_dev->kref, as102_usb_release); in as102_usb_disconnect()
382 kref_init(&as102_dev->kref); in as102_usb_probe()
454 kref_get(&dev->kref); in as102_open()
467 kref_put(&dev->kref, as102_usb_release); in as102_release()
/drivers/s390/cio/
Dcmf.c218 struct kref kref; member
221 static void cmf_set_schib_release(struct kref *kref) in cmf_set_schib_release() argument
225 set_data = container_of(kref, struct set_schib_struct, kref); in cmf_set_schib_release()
248 kref_init(&set_data->kref); in set_schib_wait()
282 kref_put(&set_data->kref, cmf_set_schib_release); in set_schib_wait()
297 kref_get(&set_data->kref); in retry_set_schib()
301 kref_put(&set_data->kref, cmf_set_schib_release); in retry_set_schib()
345 struct kref kref; member
348 static void cmf_copy_block_release(struct kref *kref) in cmf_copy_block_release() argument
352 copy_block = container_of(kref, struct copy_block_struct, kref); in cmf_copy_block_release()
[all …]

12345678910>>...13