/kernel/linux/linux-6.6/net/batman-adv/ |
H A D | tvlv.c | 42 tvlv_handler = container_of(ref, struct batadv_tvlv_handler, refcount); in batadv_tvlv_handler_release() 56 kref_put(&tvlv_handler->refcount, batadv_tvlv_handler_release); in batadv_tvlv_handler_put() 82 if (!kref_get_unless_zero(&tvlv_handler_tmp->refcount)) in batadv_tvlv_handler_get() 101 tvlv = container_of(ref, struct batadv_tvlv_container, refcount); in batadv_tvlv_container_release() 115 kref_put(&tvlv->refcount, batadv_tvlv_container_release); in batadv_tvlv_container_put() 144 kref_get(&tvlv_tmp->refcount); in batadv_tvlv_container_get() 250 kref_init(&tvlv_new->refcount); in batadv_tvlv_container_register() 256 kref_get(&tvlv_new->refcount); in batadv_tvlv_container_register() 572 kref_init(&tvlv_handler->refcount); in batadv_tvlv_handler_register() 575 kref_get(&tvlv_handler->refcount); in batadv_tvlv_handler_register() [all...] |
/third_party/ffmpeg/libavutil/ |
H A D | buffer.c | 40 atomic_init(&buf->refcount, 1); in buffer_create() 112 atomic_fetch_add_explicit(&buf->buffer->refcount, 1, memory_order_relaxed); in av_buffer_ref() 129 if (atomic_fetch_sub_explicit(&b->refcount, 1, memory_order_acq_rel) == 1) { in buffer_replace() 152 return atomic_load(&buf->buffer->refcount) == 1; in av_buffer_is_writable() 162 return atomic_load(&buf->buffer->refcount); in av_buffer_get_ref_count() 275 atomic_init(&pool->refcount, 1); in av_buffer_pool_init2() 291 atomic_init(&pool->refcount, 1); in av_buffer_pool_init() 335 if (atomic_fetch_sub_explicit(&pool->refcount, 1, memory_order_acq_rel) == 1) in av_buffer_pool_uninit() 352 if (atomic_fetch_sub_explicit(&pool->refcount, 1, memory_order_acq_rel) == 1) in pool_release_buffer() 409 atomic_fetch_add_explicit(&pool->refcount, in av_buffer_pool_get() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/lima/ |
H A D | lima_vm.h | 31 struct kref refcount; member 51 kref_get(&vm->refcount); in lima_vm_get() 58 kref_put(&vm->refcount, lima_vm_release); in lima_vm_put()
|
/kernel/linux/linux-5.10/include/drm/ |
H A D | drm_syncobj.h | 41 * @refcount: Reference count of this object. 43 struct kref refcount; member 78 kref_get(&obj->refcount); in drm_syncobj_get() 88 kref_put(&obj->refcount, drm_syncobj_free); in drm_syncobj_put()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | iocontext.h | 100 atomic_long_t refcount; member 126 WARN_ON_ONCE(atomic_long_read(&ioc->refcount) <= 0); in get_io_context_active() 128 atomic_long_inc(&ioc->refcount); in get_io_context_active()
|
/kernel/linux/linux-6.6/include/drm/ |
H A D | drm_syncobj.h | 41 * @refcount: Reference count of this object. 43 struct kref refcount; member 82 kref_get(&obj->refcount); in drm_syncobj_get() 92 kref_put(&obj->refcount, drm_syncobj_free); in drm_syncobj_put()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/lima/ |
H A D | lima_vm.h | 31 struct kref refcount; member 51 kref_get(&vm->refcount); in lima_vm_get() 58 kref_put(&vm->refcount, lima_vm_release); in lima_vm_put()
|
/kernel/linux/linux-5.10/fs/squashfs/ |
H A D | cache.c | 90 if (cache->entry[i].refcount == 0) in squashfs_cache_get() 104 entry->refcount = 1; in squashfs_cache_get() 135 * Block already in cache. Increment refcount so it doesn't in squashfs_cache_get() 141 if (entry->refcount == 0) in squashfs_cache_get() 143 entry->refcount++; in squashfs_cache_get() 160 TRACE("Got %s %d, start block %lld, refcount %d, error %d\n", in squashfs_cache_get() 161 cache->name, i, entry->block, entry->refcount, entry->error); in squashfs_cache_get() 178 entry->refcount--; in squashfs_cache_put() 179 if (entry->refcount == 0) { in squashfs_cache_put()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
H A D | drm_dp_aux_dev.c | 49 struct kref refcount; member 66 if (aux_dev && !kref_get_unless_zero(&aux_dev->refcount)) in drm_dp_aux_dev_get_by_minor() 83 kref_init(&aux_dev->refcount); in alloc_drm_dp_aux_dev() 100 container_of(ref, struct drm_dp_aux_dev, refcount); in release_drm_dp_aux_dev() 116 kref_put(&aux_dev->refcount, release_drm_dp_aux_dev); in name_show() 236 kref_put(&aux_dev->refcount, release_drm_dp_aux_dev); in auxdev_release() 294 kref_put(&aux_dev->refcount, release_drm_dp_aux_dev); in drm_dp_aux_unregister_devnode()
|
/kernel/linux/linux-5.10/drivers/gpu/host1x/ |
H A D | intr.c | 29 kfree(container_of(kref, struct host1x_waitlist, refcount)); in waiter_release() 82 kref_put(&waiter->refcount, waiter_release); in remove_completed_waiters() 146 kref_put(&waiter->refcount, waiter_release); in run_handlers() 216 kref_init(&waiter->refcount); in host1x_intr_add_action() 218 kref_get(&waiter->refcount); in host1x_intr_add_action() 258 kref_put(&waiter->refcount, waiter_release); in host1x_intr_put_ref() 322 kref_put(&waiter->refcount, waiter_release); in host1x_intr_stop()
|
/kernel/linux/linux-6.6/fs/squashfs/ |
H A D | cache.c | 90 if (cache->entry[i].refcount == 0) in squashfs_cache_get() 104 entry->refcount = 1; in squashfs_cache_get() 135 * Block already in cache. Increment refcount so it doesn't in squashfs_cache_get() 141 if (entry->refcount == 0) in squashfs_cache_get() 143 entry->refcount++; in squashfs_cache_get() 160 TRACE("Got %s %d, start block %lld, refcount %d, error %d\n", in squashfs_cache_get() 161 cache->name, i, entry->block, entry->refcount, entry->error); in squashfs_cache_get() 178 entry->refcount--; in squashfs_cache_put() 179 if (entry->refcount == 0) { in squashfs_cache_put()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/display/ |
H A D | drm_dp_aux_dev.c | 49 struct kref refcount; member 66 if (aux_dev && !kref_get_unless_zero(&aux_dev->refcount)) in drm_dp_aux_dev_get_by_minor() 83 kref_init(&aux_dev->refcount); in alloc_drm_dp_aux_dev() 100 container_of(ref, struct drm_dp_aux_dev, refcount); in release_drm_dp_aux_dev() 116 kref_put(&aux_dev->refcount, release_drm_dp_aux_dev); in name_show() 236 kref_put(&aux_dev->refcount, release_drm_dp_aux_dev); in auxdev_release() 300 kref_put(&aux_dev->refcount, release_drm_dp_aux_dev); in drm_dp_aux_unregister_devnode()
|
/kernel/linux/linux-6.6/rust/kernel/sync/ |
H A D | arc.rs | 62 /// // Get a new pointer to `obj` and increment the refcount. 68 /// // Destroy `obj` and decrement its refcount. 75 /// // The refcount drops to zero when `cloned` goes out of scope, and the memory is freed. 136 refcount: Opaque<bindings::refcount_t>, 166 // INVARIANT: The refcount is initialised to a non-zero value. in try_new() 169 refcount: Opaque::new(unsafe { bindings::REFCOUNT_INIT(1) }), in try_new() 279 // INVARIANT: C `refcount_inc` saturates the refcount, so it cannot overflow to zero. in clone() 281 // safe to increment the refcount. in clone() 282 unsafe { bindings::refcount_inc(self.ptr.as_ref().refcount.get()) }; in clone() 284 // SAFETY: We just incremented the refcount in clone() [all...] |
/third_party/mesa3d/src/gallium/frontends/nine/ |
H A D | nine_buffer_upload.c | 46 unsigned refcount; /* How many sub-buffers live inside the buffer */ member 92 group->refcount = 0; in nine_upload_create_buffer_group() 122 assert(group->refcount == 0); in nine_upload_destroy_buffer_group() 257 group->refcount += 1; in nine_upload_create_buffer() 270 buf->parent->refcount--; in nine_upload_release_buffer() 271 if (buf->parent->refcount == 0) { in nine_upload_release_buffer() 290 DBG("%d\n", buf->parent->refcount); in nine_upload_buffer_get_map()
|
/kernel/linux/linux-5.10/drivers/block/rnbd/ |
H A D | rnbd-clt.h | 17 #include <linux/refcount.h> 63 atomic_t refcount; member 87 refcount_t refcount; member 130 refcount_t refcount; member
|
/kernel/linux/linux-5.10/include/rdma/ |
H A D | rdmavt_mr.h | 13 #include <linux/percpu-refcount.h> 44 struct percpu_ref refcount; member 45 struct completion comp; /* complete when refcount goes to zero */ 85 percpu_ref_put(&mr->refcount); in rvt_put_mr() 90 percpu_ref_get(&mr->refcount); in rvt_get_mr()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
H A D | dr_definer.c | 13 refcount_t refcount; member 89 refcount_set(&definer_obj->refcount, 1); in dr_definer_create_obj() 131 refcount_inc(&definer_obj->refcount); in mlx5dr_definer_get() 149 if (refcount_dec_and_test(&definer_obj->refcount)) in mlx5dr_definer_put()
|
/kernel/linux/linux-6.6/include/rdma/ |
H A D | rdmavt_mr.h | 13 #include <linux/percpu-refcount.h> 44 struct percpu_ref refcount; member 45 struct completion comp; /* complete when refcount goes to zero */ 85 percpu_ref_put(&mr->refcount); in rvt_put_mr() 90 percpu_ref_get(&mr->refcount); in rvt_get_mr()
|
/kernel/linux/linux-6.6/drivers/block/rnbd/ |
H A D | rnbd-clt.h | 17 #include <linux/refcount.h> 66 atomic_t refcount; member 93 refcount_t refcount; member 118 refcount_t refcount; member
|
/third_party/mesa3d/src/gallium/winsys/nouveau/drm/ |
H A D | nouveau_drm_winsys.c | 29 if (screen->refcount == -1) in nouveau_drm_screen_unref() 33 ret = --screen->refcount; in nouveau_drm_screen_unref() 61 screen->refcount++; in nouveau_drm_screen_create() 127 screen->refcount = 1; in nouveau_drm_screen_create()
|
/kernel/linux/linux-5.10/drivers/infiniband/core/ |
H A D | multicast.c | 64 atomic_t refcount; member 106 atomic_t refcount; member 120 atomic_t refcount; member 181 if (atomic_dec_and_test(&port->refcount)) in deref_port() 191 if (atomic_dec_and_test(&group->refcount)) { in release_group() 202 if (atomic_dec_and_test(&member->refcount)) in deref_member() 215 atomic_inc(&group->refcount); in queue_join() 404 atomic_inc(&member->refcount); in process_group_error() 448 atomic_inc(&member->refcount); in mcast_work_handler() 500 atomic_inc(&member->refcount); in process_join_error() [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/core/ |
H A D | multicast.c | 64 refcount_t refcount; member 106 atomic_t refcount; member 120 refcount_t refcount; member 181 if (refcount_dec_and_test(&port->refcount)) in deref_port() 191 if (atomic_dec_and_test(&group->refcount)) { in release_group() 202 if (refcount_dec_and_test(&member->refcount)) in deref_member() 215 atomic_inc(&group->refcount); in queue_join() 404 refcount_inc(&member->refcount); in process_group_error() 448 refcount_inc(&member->refcount); in mcast_work_handler() 500 refcount_inc(&member->refcount); in process_join_error() [all...] |
/third_party/mesa3d/src/vulkan/runtime/ |
H A D | vk_sync_timeline.c | 199 assert(point->refcount == 0 && !point->pending); in vk_sync_timeline_point_free_locked() 217 point->refcount++; in vk_sync_timeline_point_ref() 224 assert(point->refcount > 0); in vk_sync_timeline_point_unref() 225 point->refcount--; in vk_sync_timeline_point_unref() 226 if (point->refcount == 0 && !point->pending) in vk_sync_timeline_point_unref() 243 if (point->refcount == 0) in vk_sync_timeline_point_complete() 269 assert(point->refcount >= 0); in vk_sync_timeline_gc_locked() 270 if (point->refcount > 0 && !drain) in vk_sync_timeline_gc_locked() 303 assert(point->refcount == 0); in vk_sync_timeline_point_install()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/l2_packet/ |
H A D | l2_packet_ndis.c | 54 int refcount; member 309 l2 = l2_ndisuio_global->l2[l2_ndisuio_global->refcount - 1]; in l2_packet_rx_event() 362 if (l2_ndisuio_global->refcount >= 2) { in l2_packet_init() 367 l2_ndisuio_global->refcount++; in l2_packet_init() 372 l2_ndisuio_global->l2[l2_ndisuio_global->refcount - 1] = l2; in l2_packet_init() 387 if (l2_ndisuio_global->refcount > 1) { in l2_packet_init() 471 l2_ndisuio_global->refcount--; in l2_packet_deinit() 472 l2_ndisuio_global->l2[l2_ndisuio_global->refcount] = NULL; in l2_packet_deinit() 473 if (l2_ndisuio_global->refcount) { in l2_packet_deinit()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/l2_packet/ |
H A D | l2_packet_ndis.c | 54 int refcount; member 310 l2 = l2_ndisuio_global->l2[l2_ndisuio_global->refcount - 1]; in l2_packet_rx_event() 363 if (l2_ndisuio_global->refcount >= 2) { in l2_packet_init() 368 l2_ndisuio_global->refcount++; in l2_packet_init() 373 l2_ndisuio_global->l2[l2_ndisuio_global->refcount - 1] = l2; in l2_packet_init() 388 if (l2_ndisuio_global->refcount > 1) { in l2_packet_init() 472 l2_ndisuio_global->refcount--; in l2_packet_deinit() 473 l2_ndisuio_global->l2[l2_ndisuio_global->refcount] = NULL; in l2_packet_deinit() 474 if (l2_ndisuio_global->refcount) { in l2_packet_deinit()
|