Home
last modified time | relevance | path

Searched refs:refcount (Results 101 - 125 of 1390) sorted by relevance

12345678910>>...56

/kernel/linux/linux-6.6/drivers/media/common/siano/
H A Dsmsdvb-debugfs.c24 struct kref refcount; member
232 kref_get(&debug_data->refcount); in smsdvb_stats_open()
248 debug_data = container_of(ref, struct smsdvb_debugfs, refcount); in smsdvb_debugfs_data_release()
273 kref_get(&debug_data->refcount); in smsdvb_stats_poll()
278 kref_put(&debug_data->refcount, smsdvb_debugfs_data_release); in smsdvb_stats_poll()
289 kref_get(&debug_data->refcount); in smsdvb_stats_read()
322 kref_put(&debug_data->refcount, smsdvb_debugfs_data_release); in smsdvb_stats_read()
335 kref_put(&debug_data->refcount, smsdvb_debugfs_data_release); in smsdvb_stats_release()
388 kref_init(&debug_data->refcount); in smsdvb_debugfs_create()
403 kref_put(&client->debug_data->refcount, smsdvb_debugfs_data_releas in smsdvb_debugfs_release()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/prestera/
H A Dprestera_acl.c62 refcount_t refcount; member
74 refcount_t refcount; member
155 refcount_set(&ruleset->refcount, 1); in prestera_acl_ruleset_create()
293 refcount_inc(&ruleset->refcount); in prestera_acl_ruleset_lookup()
306 refcount_inc(&ruleset->refcount); in prestera_acl_ruleset_get()
315 if (!refcount_dec_and_test(&ruleset->refcount)) in prestera_acl_ruleset_put()
449 refcount_inc(&ruleset->refcount); in prestera_acl_rule_create()
785 refcount_inc(&vtcam->refcount); in __prestera_acl_vtcam_id_try_fit()
807 refcount_inc(&vtcam->refcount); in prestera_acl_vtcam_id_get()
813 refcount_inc(&vtcam->refcount); in prestera_acl_vtcam_id_get()
[all...]
/kernel/linux/linux-5.10/drivers/media/common/videobuf2/
H A Dvideobuf2-vmalloc.c16 #include <linux/refcount.h>
30 refcount_t refcount; member
56 buf->handler.refcount = &buf->refcount; in vb2_vmalloc_alloc()
60 refcount_set(&buf->refcount, 1); in vb2_vmalloc_alloc()
68 if (refcount_dec_and_test(&buf->refcount)) { in vb2_vmalloc_put()
165 return refcount_read(&buf->refcount); in vb2_vmalloc_num_users()
190 * Use common vm_area operations to track buffer refcount. in vb2_vmalloc_mmap()
359 refcount_inc(&buf->refcount); in vb2_vmalloc_get_dmabuf()
/kernel/linux/linux-6.6/drivers/infiniband/hw/hfi1/
H A Dpin_system.c108 kref_get(&rb_node->refcount); in find_system_node()
161 * kref refcount on *node_p will be 2 on successful addition: one kref from
181 kref_init(&node->rb.refcount); in add_system_pinning()
184 kref_get(&node->rb.refcount); in add_system_pinning()
248 SDMA_DBG(req, "prepend: node->rb.addr %lx, node->rb.refcount %d", in get_system_cache_entry()
249 node->rb.addr, kref_read(&node->rb.refcount)); in get_system_cache_entry()
256 kref_put(&node->rb.refcount, hfi1_mmu_rb_release); in get_system_cache_entry()
272 kref_get(&node->refcount); in sdma_mmu_rb_node_get()
279 kref_put(&node->rb.refcount, hfi1_mmu_rb_release); in sdma_mmu_rb_node_put()
378 kref_put(&cache_entry->rb.refcount, hfi1_mmu_rb_releas in add_system_iovec_to_sdma_packet()
[all...]
H A Dmmu_rb.h19 struct kref refcount; member
60 void hfi1_mmu_rb_release(struct kref *refcount);
/kernel/linux/linux-6.6/drivers/media/common/videobuf2/
H A Dvideobuf2-vmalloc.c16 #include <linux/refcount.h>
30 refcount_t refcount; member
55 buf->handler.refcount = &buf->refcount; in vb2_vmalloc_alloc()
59 refcount_set(&buf->refcount, 1); in vb2_vmalloc_alloc()
67 if (refcount_dec_and_test(&buf->refcount)) { in vb2_vmalloc_put()
165 return refcount_read(&buf->refcount); in vb2_vmalloc_num_users()
190 * Use common vm_area operations to track buffer refcount. in vb2_vmalloc_mmap()
355 refcount_inc(&buf->refcount); in vb2_vmalloc_get_dmabuf()
/kernel/linux/linux-6.6/net/batman-adv/
H A Dgateway_client.c67 gw_node = container_of(ref, struct batadv_gw_node, refcount); in batadv_gw_node_release()
89 if (!kref_get_unless_zero(&gw_node->refcount)) in batadv_gw_get_selected_gw_node()
118 if (!kref_get_unless_zero(&orig_node->refcount)) in batadv_gw_get_selected_orig()
136 kref_get(&new_gw_node->refcount); in batadv_gw_select()
340 kref_init(&gw_node->refcount); in batadv_gw_node_add()
342 kref_get(&orig_node->refcount); in batadv_gw_node_add()
347 kref_get(&gw_node->refcount); in batadv_gw_node_add()
381 if (!kref_get_unless_zero(&gw_node_tmp->refcount)) in batadv_gw_node_get()
/kernel/linux/linux-5.10/include/net/
H A Dcalipso.h27 #include <linux/refcount.h>
46 refcount_t refcount; member
/kernel/linux/linux-5.10/include/linux/
H A Dipc.h9 #include <linux/refcount.h>
28 refcount_t refcount; member
/kernel/linux/linux-6.6/include/linux/
H A Dipc.h9 #include <linux/refcount.h>
28 refcount_t refcount; member
/kernel/linux/linux-6.6/include/net/
H A Dcalipso.h27 #include <linux/refcount.h>
46 refcount_t refcount; member
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/
H A Dmcg.c119 /* refcount is the reference count for the following:
124 atomic_t refcount; member
444 if (atomic_dec_and_test(&group->refcount)) { in release_group()
448 atomic_inc(&group->refcount); in release_group()
577 atomic_inc(&group->refcount); in mlx4_ib_mcg_timeout_handler()
579 safe_atomic_dec(&group->refcount); in mlx4_ib_mcg_timeout_handler()
778 atomic_inc(&group->refcount); in search_relocate_mgid0_group()
865 atomic_inc(&group->refcount); in acquire_group()
873 atomic_inc(&group->refcount); /* for the request */ in queue_req()
874 atomic_inc(&group->refcount); /* fo in queue_req()
[all...]
/kernel/linux/linux-6.6/drivers/infiniband/hw/mlx4/
H A Dmcg.c119 /* refcount is the reference count for the following:
124 atomic_t refcount; member
444 if (atomic_dec_and_test(&group->refcount)) { in release_group()
448 atomic_inc(&group->refcount); in release_group()
577 atomic_inc(&group->refcount); in mlx4_ib_mcg_timeout_handler()
579 safe_atomic_dec(&group->refcount); in mlx4_ib_mcg_timeout_handler()
778 atomic_inc(&group->refcount); in search_relocate_mgid0_group()
865 atomic_inc(&group->refcount); in acquire_group()
873 atomic_inc(&group->refcount); /* for the request */ in queue_req()
874 atomic_inc(&group->refcount); /* fo in queue_req()
[all...]
/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/
H A Dmthca_memfree.c60 int refcount; member
152 icm->refcount = 0; in mthca_alloc_icm()
230 ++table->icm[i]->refcount; in mthca_table_get()
250 ++table->icm[i]->refcount; in mthca_table_get()
268 if (--table->icm[i]->refcount == 0) { in mthca_table_put()
406 ++table->icm[i]->refcount; in mthca_alloc_icm_table()
463 if ((db_tab->page[i].refcount >= MTHCA_DB_REC_PER_PAGE) || in mthca_map_user_db()
470 if (db_tab->page[i].refcount) { in mthca_map_user_db()
471 ++db_tab->page[i].refcount; in mthca_map_user_db()
498 db_tab->page[i].refcount in mthca_map_user_db()
[all...]
/kernel/linux/linux-6.6/drivers/infiniband/hw/mthca/
H A Dmthca_memfree.c60 int refcount; member
152 icm->refcount = 0; in mthca_alloc_icm()
230 ++table->icm[i]->refcount; in mthca_table_get()
250 ++table->icm[i]->refcount; in mthca_table_get()
268 if (--table->icm[i]->refcount == 0) { in mthca_table_put()
406 ++table->icm[i]->refcount; in mthca_alloc_icm_table()
463 if ((db_tab->page[i].refcount >= MTHCA_DB_REC_PER_PAGE) || in mthca_map_user_db()
470 if (db_tab->page[i].refcount) { in mthca_map_user_db()
471 ++db_tab->page[i].refcount; in mthca_map_user_db()
500 db_tab->page[i].refcount in mthca_map_user_db()
[all...]
/kernel/linux/linux-5.10/drivers/base/power/
H A Dcommon.c18 * dev_pm_get_subsys_data - Create or refcount power.subsys_data for device.
22 * its reference counter. Return 0 if new object has been created or refcount
36 dev->power.subsys_data->refcount++; in dev_pm_get_subsys_data()
39 psd->refcount = 1; in dev_pm_get_subsys_data()
71 if (--psd->refcount == 0) in dev_pm_put_subsys_data()
/kernel/linux/linux-5.10/drivers/infiniband/core/
H A Dmad_priv.h106 refcount_t refcount; member
118 atomic_t refcount; member
136 int refcount; member
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/core/
H A Dmemory.c37 if (refcount_dec_and_test(&tags->refcount)) { in nvkm_memory_tags_put()
66 refcount_inc(&tags->refcount); in nvkm_memory_tags_get()
93 refcount_set(&tags->refcount, 1); in nvkm_memory_tags_get()
/kernel/linux/linux-6.6/drivers/base/power/
H A Dcommon.c18 * dev_pm_get_subsys_data - Create or refcount power.subsys_data for device.
22 * its reference counter. Return 0 if new object has been created or refcount
36 dev->power.subsys_data->refcount++; in dev_pm_get_subsys_data()
39 psd->refcount = 1; in dev_pm_get_subsys_data()
71 if (--psd->refcount == 0) in dev_pm_put_subsys_data()
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/core/
H A Dmemory.c37 if (refcount_dec_and_test(&tags->refcount)) { in nvkm_memory_tags_put()
66 refcount_inc(&tags->refcount); in nvkm_memory_tags_get()
93 refcount_set(&tags->refcount, 1); in nvkm_memory_tags_get()
/kernel/linux/linux-6.6/drivers/infiniband/hw/irdma/
H A Dtrace_cm.h207 __field(u32, refcount)
223 __entry->refcount = refcount_read(&cm_node->refcnt);
243 __entry->refcount,
284 __field(u32, refcount)
298 __entry->refcount = refcount_read(&cm_node->refcnt);
316 __entry->refcount,
406 __field(u32, refcount)
419 __entry->refcount = refcount_read(&cm_node->refcnt);
435 __entry->refcount,
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/
H A Dhns_roce_db.c32 refcount_set(&page->refcount, 1); in hns_roce_db_map_user()
49 refcount_inc(&page->refcount); in hns_roce_db_map_user()
62 refcount_dec(&db->u.user_page->refcount); in hns_roce_db_unmap_user()
63 if (refcount_dec_if_one(&db->u.user_page->refcount)) { in hns_roce_db_unmap_user()
/kernel/linux/linux-5.10/drivers/s390/crypto/
H A Dzcrypt_queue.c120 kref_init(&zq->refcount); in zcrypt_queue_alloc()
139 container_of(kref, struct zcrypt_queue, refcount); in zcrypt_queue_release()
145 kref_get(&zq->refcount); in zcrypt_queue_get()
151 return kref_put(&zq->refcount, zcrypt_queue_release); in zcrypt_queue_put()
/kernel/linux/linux-5.10/fs/erofs/
H A Dutils.c49 if (atomic_cmpxchg(&grp->refcount, o, o + 1) != o) in erofs_workgroup_get()
52 /* decrease refcount paired by erofs_workgroup_put */ in erofs_workgroup_get()
91 atomic_inc(&grp->refcount); in erofs_insert_workgroup()
106 atomic_dec(&grp->refcount); in erofs_insert_workgroup()
121 int count = atomic_dec_return(&grp->refcount); in erofs_workgroup_put()
134 * If managed cache is on, refcount of workgroups in erofs_try_to_release_workgroup()
159 /* last refcount should be connected with its managed pslot. */ in erofs_try_to_release_workgroup()
/kernel/linux/linux-5.10/lib/
H A Dcpu_rmap.c43 kref_init(&rmap->refcount); in alloc_cpu_rmap()
68 struct cpu_rmap *rmap = container_of(ref, struct cpu_rmap, refcount); in cpu_rmap_release()
78 kref_get(&rmap->refcount); in cpu_rmap_get()
87 return kref_put(&rmap->refcount, cpu_rmap_release); in cpu_rmap_put()

Completed in 20 milliseconds

12345678910>>...56