/kernel/linux/linux-6.6/drivers/gpu/drm/ |
H A D | drm_mode_object.c | 59 kref_init(&obj->refcount); in __drm_mode_object_add() 156 if (!kref_get_unless_zero(&obj->refcount)) in __drm_mode_object_find() 190 * This function decrements the object's refcount if it is a refcounted modeset 197 DRM_DEBUG("OBJ ID: %d (%d)\n", obj->id, kref_read(&obj->refcount)); in drm_mode_object_put() 198 kref_put(&obj->refcount, obj->free_cb); in drm_mode_object_put() 207 * This function increments the object's refcount if it is a refcounted modeset 214 DRM_DEBUG("OBJ ID: %d (%d)\n", obj->id, kref_read(&obj->refcount)); in drm_mode_object_get() 215 kref_get(&obj->refcount); in drm_mode_object_get()
|
H A D | drm_auth.c | 141 kref_init(&master->refcount); in drm_master_create() 394 kref_get(&master->refcount); in drm_master_get() 426 struct drm_master *master = container_of(kref, struct drm_master, refcount); in drm_master_destroy() 450 kref_put(&(*master)->refcount, drm_master_destroy); in drm_master_put()
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
H A D | gfx10_query.c | 53 qbuf->refcount--; in gfx10_release_query_buffers() 54 if (qbuf->refcount) in gfx10_release_query_buffers() 81 if (!qbuf->refcount && in gfx10_alloc_query_buffer() 124 qbuf->refcount = sctx->num_active_shader_queries; in gfx10_alloc_query_buffer() 159 query->first->refcount++; in gfx10_sh_query_begin() 459 assert(!qbuf->refcount); in gfx10_destroy_query()
|
/kernel/linux/linux-5.10/mm/ |
H A D | z3fold.c | 104 * @refcount: reference count for the z3fold page 118 struct kref refcount; member 417 kref_init(&zhdr->refcount); in init_z3fold_page() 548 refcount); in release_z3fold_page() 555 refcount); in release_z3fold_page_locked() 563 refcount); in release_z3fold_page_locked_list() 759 if (kref_put(&new_zhdr->refcount, release_z3fold_page_locked)) in compact_single_buddy() 837 if (kref_put(&zhdr->refcount, release_z3fold_page_locked)) { in do_compact_page() 850 if (kref_put(&zhdr->refcount, release_z3fold_page_locked)) in do_compact_page() 928 kref_get(&zhdr->refcount); in __z3fold_alloc() [all...] |
/kernel/linux/linux-6.6/drivers/platform/surface/aggregator/ |
H A D | controller.c | 287 * @refcount: The reference-count of the event. 293 int refcount; member 306 * newly allocated entry will have a refcount of one. 310 * Return: Returns the refcount entry on success. Returns an error pointer 320 struct rb_node **link = &nf->refcount.rb_node; in ssam_nf_refcount_inc() 338 } else if (entry->refcount < INT_MAX) { in ssam_nf_refcount_inc() 339 entry->refcount++; in ssam_nf_refcount_inc() 352 entry->refcount = 1; in ssam_nf_refcount_inc() 355 rb_insert_color(&entry->node, &nf->refcount); in ssam_nf_refcount_inc() 368 * returning its entry. If the returned entry has a refcount o [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/ |
H A D | cord_rep_btree.cc | 59 std::string sharing = const_cast<CordRep*>(rep)->refcount.IsOne() in DumpAll() 61 : absl::StrCat("Shared(", rep->refcount.Get(), ")"); in DumpAll() 162 // refcount.Decrement() checking the zero refcount condition. 165 if (r->refcount.IsOne()) { in FastUnref() 167 } else if (!r->refcount.DecrementExpectHighRefcount()) { in FastUnref() 189 if (rep->refcount.Decrement()) return; in DeleteLeafEdge() 198 // Returns true if the node at 'depth' is not shared, i.e. has a refcount 199 // of one and all of its parent nodes have a refcount of one. 210 while (current_depth < depth && tree->refcount in BuildStack() [all...] |
/kernel/linux/linux-5.10/drivers/net/wireguard/ |
H A D | peer.h | 60 struct kref refcount; member 76 kref_get(&peer->refcount); in wg_peer_get()
|
/kernel/linux/linux-5.10/drivers/net/ipa/ |
H A D | gsi_trans.h | 10 #include <linux/refcount.h> 39 * @refcount: Reference count used for destruction 64 refcount_t refcount; member
|
/kernel/linux/linux-6.6/drivers/net/wireguard/ |
H A D | peer.h | 61 struct kref refcount; member 76 kref_get(&peer->refcount); in wg_peer_get()
|
/kernel/linux/linux-6.6/drivers/net/ipa/ |
H A D | gsi_trans.h | 10 #include <linux/refcount.h> 42 * @refcount: Reference count used for destruction 68 refcount_t refcount; member
|
/third_party/eudev/src/libudev/ |
H A D | libudev.c | 48 int refcount; member 89 * The initial refcount is 1, and needs to be decremented to 101 udev->refcount = 1; in udev_new() 193 udev->refcount++; in udev_ref() 201 * Drop a reference of the udev library context. If the refcount 209 udev->refcount--; in udev_unref() 210 if (udev->refcount > 0) in udev_unref()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
H A D | dr_action.c | 957 refcount_set(&action->refcount, 1); in dr_action_create_generic() 980 refcount_inc(&dmn->refcount); in mlx5dr_action_create_dest_table_num() 990 refcount_inc(&tbl->refcount); in mlx5dr_action_create_dest_table() 1001 refcount_dec(&tbl->refcount); in mlx5dr_action_create_dest_table() 1079 refcount_inc(&dmn->refcount); in mlx5dr_action_create_mult_dest_tbl() 1082 refcount_inc(&ref_actions[i]->refcount); in mlx5dr_action_create_mult_dest_tbl() 1118 refcount_inc(&dmn->refcount); in mlx5dr_action_create_dest_flow_fw_table() 1282 refcount_inc(&dmn->refcount); in mlx5dr_action_create_packet_reformat() 1315 refcount_dec(&dmn->refcount); in mlx5dr_action_create_packet_reformat() 1832 refcount_inc(&dmn->refcount); in mlx5dr_action_create_modify_header() [all...] |
/kernel/linux/linux-5.10/net/batman-adv/ |
H A D | routing.c | 75 /* increase refcount of new best neighbor */ in _batadv_update_route() 77 kref_get(&neigh_node->refcount); in _batadv_update_route() 104 /* decrease refcount of previous best neighbor */ in _batadv_update_route() 501 kref_get(&last_bonding_candidate->refcount); in batadv_last_bonding_get() 522 kref_get(&new_candidate->refcount); in batadv_last_bonding_replace() 583 if (!kref_get_unless_zero(&cand->refcount)) in batadv_find_router() 590 if (!kref_get_unless_zero(&cand_router->refcount)) { in batadv_find_router() 609 kref_get(&cand_router->refcount); in batadv_find_router() 610 kref_get(&cand->refcount); in batadv_find_router() 645 kref_get(&next_candidate_router->refcount); in batadv_find_router() [all...] |
/kernel/linux/linux-6.6/net/batman-adv/ |
H A D | routing.c | 74 /* increase refcount of new best neighbor */ in _batadv_update_route() 76 kref_get(&neigh_node->refcount); in _batadv_update_route() 103 /* decrease refcount of previous best neighbor */ in _batadv_update_route() 484 kref_get(&last_bonding_candidate->refcount); in batadv_last_bonding_get() 505 kref_get(&new_candidate->refcount); in batadv_last_bonding_replace() 565 if (!kref_get_unless_zero(&cand->refcount)) in batadv_find_router() 572 if (!kref_get_unless_zero(&cand_router->refcount)) { in batadv_find_router() 591 kref_get(&cand_router->refcount); in batadv_find_router() 592 kref_get(&cand->refcount); in batadv_find_router() 627 kref_get(&next_candidate_router->refcount); in batadv_find_router() [all...] |
/kernel/linux/linux-5.10/drivers/md/ |
H A D | dm-zoned.h | 107 atomic_t refcount; member 243 atomic_inc(&zone->refcount); in dmz_activate_zone() 293 atomic_dec(&zone->refcount); in dmz_deactivate_zone() 297 * Test if a zone is active, that is, has a refcount > 0. 301 return atomic_read(&zone->refcount); in dmz_is_active()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/panfrost/ |
H A D | panfrost_gem.c | 64 kref_get(&iter->refcount); in panfrost_gem_mapping_get() 90 mapping = container_of(kref, struct panfrost_gem_mapping, refcount); in panfrost_gem_mapping_release() 103 kref_put(&mapping->refcount, panfrost_gem_mapping_release); in panfrost_gem_mapping_put() 129 kref_init(&mapping->refcount); in panfrost_gem_open()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/ |
H A D | srq.c | 52 refcount_inc(&srq->refcount); in mlx4_srq_event() 60 if (refcount_dec_and_test(&srq->refcount)) in mlx4_srq_event() 206 refcount_set(&srq->refcount, 1); in mlx4_srq_alloc() 235 if (refcount_dec_and_test(&srq->refcount)) in mlx4_srq_free()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
H A D | drm_auth.c | 111 kref_init(&master->refcount); in drm_master_create() 374 kref_get(&master->refcount); in drm_master_get() 406 struct drm_master *master = container_of(kref, struct drm_master, refcount); in drm_master_destroy() 430 kref_put(&(*master)->refcount, drm_master_destroy); in drm_master_put()
|
/kernel/linux/linux-5.10/drivers/staging/gasket/ |
H A D | gasket_sysfs.c | 35 struct kref refcount; member 50 /* Callback when a mapping's refcount goes to zero. */ 64 kref_get(&dev_mappings[i].refcount); in get_mapping() 90 if (kref_put(&mapping->refcount, release_entry)) { in put_mapping() 131 * will need to release a mapping 2x - once for the refcount taken in the 206 kref_init(&mapping->refcount); in gasket_sysfs_create_mapping() 213 /* Don't decrement the refcount here! One open count keeps it alive! */ in gasket_sysfs_create_mapping()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx4/ |
H A D | srq.c | 52 refcount_inc(&srq->refcount); in mlx4_srq_event() 60 if (refcount_dec_and_test(&srq->refcount)) in mlx4_srq_event() 206 refcount_set(&srq->refcount, 1); in mlx4_srq_alloc() 235 if (refcount_dec_and_test(&srq->refcount)) in mlx4_srq_free()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/panfrost/ |
H A D | panfrost_gem.c | 64 kref_get(&iter->refcount); in panfrost_gem_mapping_get() 90 mapping = container_of(kref, struct panfrost_gem_mapping, refcount); in panfrost_gem_mapping_release() 103 kref_put(&mapping->refcount, panfrost_gem_mapping_release); in panfrost_gem_mapping_put() 129 kref_init(&mapping->refcount); in panfrost_gem_open()
|
/kernel/linux/linux-6.6/drivers/md/ |
H A D | dm-zoned.h | 106 atomic_t refcount; member 242 atomic_inc(&zone->refcount); in dmz_activate_zone() 292 atomic_dec(&zone->refcount); in dmz_deactivate_zone() 296 * Test if a zone is active, that is, has a refcount > 0. 300 return atomic_read(&zone->refcount); in dmz_is_active()
|
/third_party/ltp/testcases/kernel/device-drivers/base/tbase/ |
H A D | tbase.c | 491 a = atomic_read(&drv->kobj.refcount); in test_get_drv() 503 if ((a == (atomic_read(&drv->kobj.refcount) - 1))) { in test_get_drv() 551 a = atomic_read(&drv->kobj.refcount); in test_put_drv() 557 if ((a == (atomic_read(&drv->kobj.refcount) + 1))) { in test_put_drv()
|
/third_party/mesa3d/src/gallium/winsys/svga/drm/ |
H A D | vmw_fence.c | 58 int32_t refcount; member 196 p_atomic_set(&fence->refcount, 1); in vmw_fence_create() 260 if (p_atomic_dec_zero(&vfence->refcount)) { in vmw_fence_reference() 278 p_atomic_inc(&vfence->refcount); in vmw_fence_reference()
|
/third_party/libinput/src/ |
H A D | libinput.c | 1739 tool->refcount++; in libinput_tablet_tool_ref() 1746 assert(tool->refcount > 0); in libinput_tablet_tool_unref() 1748 tool->refcount--; in libinput_tablet_tool_unref() 1749 if (tool->refcount > 0) in libinput_tablet_tool_unref() 1867 libinput->refcount = 1; in libinput_init() 1941 libinput->refcount++; in libinput_ref() 1957 assert(libinput->refcount > 0); in libinput_unref() 1958 libinput->refcount--; in libinput_unref() 1959 if (libinput->refcount > 0) in libinput_unref() 2075 seat->refcount in libinput_seat_init() [all...] |