Home
last modified time | relevance | path

Searched refs:refcount (Results 176 - 200 of 1379) sorted by relevance

12345678910>>...56

/kernel/linux/linux-5.10/drivers/md/
H A Ddm-zoned.h107 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 Dpanfrost_gem.c64 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 Dsrq.c52 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 Ddrm_auth.c111 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 Dgasket_sysfs.c35 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 Dsrq.c52 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/
H A Ddrm_auth.c141 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()
/kernel/linux/linux-6.6/drivers/gpu/drm/panfrost/
H A Dpanfrost_gem.c64 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 Ddm-zoned.h106 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()
/kernel/linux/linux-5.10/include/net/9p/
H A Dclient.h81 struct kref refcount; member
225 kref_get(&r->refcount); in p9_req_get()
230 return kref_get_unless_zero(&r->refcount); in p9_req_try_get()
/kernel/linux/linux-5.10/kernel/cgroup/
H A Dcgroup-internal.h9 #include <linux/refcount.h>
203 * Ensure that the refcount doesn't hit zero while any readers in put_css_set()
207 if (refcount_dec_not_one(&cset->refcount)) in put_css_set()
220 refcount_inc(&cset->refcount); in get_css_set()
/kernel/linux/linux-6.6/include/drm/
H A Ddrm_gem.h266 * @refcount:
274 struct kref refcount; member
484 kref_get(&obj->refcount); in drm_gem_object_get()
491 kref_put(&obj->refcount, drm_gem_object_free); in __drm_gem_object_put()
/kernel/linux/linux-6.6/include/net/9p/
H A Dclient.h80 refcount_t refcount; member
231 refcount_inc(&r->refcount); in p9_req_get()
236 return refcount_inc_not_zero(&r->refcount); in p9_req_try_get()
/kernel/linux/linux-6.6/include/trace/events/
H A D9p.h206 __field( int, refcount )
212 __entry->refcount = refcount_read(&fid->count);
216 TP_printk("%s fid %d, refcount %d",
218 __entry->fid, __entry->refcount)
/kernel/linux/linux-6.6/kernel/cgroup/
H A Dcgroup-internal.h9 #include <linux/refcount.h>
201 * Ensure that the refcount doesn't hit zero while any readers in put_css_set()
205 if (refcount_dec_not_one(&cset->refcount)) in put_css_set()
218 refcount_inc(&cset->refcount); in get_css_set()
/kernel/linux/linux-5.10/net/batman-adv/
H A Drouting.c75 /* 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 Drouting.c74 /* 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/net/ethernet/mellanox/mlx5/core/steering/
H A Ddr_action.c957 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/drivers/tty/vt/
H A Dconsolemap.c191 unsigned long refcount; member
428 if (--p->refcount) in con_free_unimap()
464 q->refcount++; in con_unify_unimap()
509 if (!p || --p->refcount) { in con_do_clear_unimap()
513 p->refcount++; in con_do_clear_unimap()
516 q->refcount=1; in con_do_clear_unimap()
520 p->refcount++; in con_do_clear_unimap()
560 if (p->refcount > 1) { in con_set_unimap()
571 * Since refcount was > 1, con_clear_unimap() allocated a in con_set_unimap()
597 p->refcount in con_set_unimap()
[all...]
/kernel/linux/linux-6.6/fs/smb/client/
H A Dfile.c2417 cifs_writedata_release(struct kref *refcount) in cifs_writedata_release() argument
2419 struct cifs_writedata *wdata = container_of(refcount, in cifs_writedata_release()
2420 struct cifs_writedata, refcount); in cifs_writedata_release()
2498 kref_put(&wdata2->refcount, cifs_writedata_release); in cifs_writev_requeue()
2517 kref_put(&wdata->refcount, cifs_writedata_release); in cifs_writev_requeue()
2545 kref_put(&wdata->refcount, cifs_writedata_release); in cifs_writev_complete()
2554 kref_init(&wdata->refcount); in cifs_writedata_alloc()
2839 kref_put(&wdata->refcount, cifs_writedata_release); in cifs_write_back_from_locked_folio()
2849 kref_put(&wdata->refcount, cifs_writedata_release); in cifs_write_back_from_locked_folio()
3261 cifs_uncached_writedata_release(struct kref *refcount) in cifs_uncached_writedata_release() argument
3836 cifs_readdata_release(struct kref *refcount) cifs_readdata_release() argument
[all...]
/kernel/linux/linux-5.10/drivers/infiniband/ulp/rtrs/
H A Drtrs-srv.h14 #include <linux/refcount.h>
102 refcount_t refcount; member
/kernel/linux/linux-5.10/drivers/tee/amdtee/
H A Damdtee_private.h48 * @refcount: counter to keep track of sessions opened for the TA instance
59 struct kref refcount; member
101 * @refcount: Reference count for the loaded TA
106 u32 refcount; member
/kernel/linux/linux-5.10/drivers/gpu/drm/etnaviv/
H A Detnaviv_mmu.h71 struct kref refcount; member
111 kref_get(&ctx->refcount); in etnaviv_iommu_context_get()
/kernel/linux/linux-5.10/drivers/s390/crypto/
H A Dzcrypt_api.h93 struct kref refcount; /* device refcounting */ member
110 struct kref refcount; /* device refcounting */ member
/kernel/linux/linux-5.10/include/linux/
H A Dbacking-dev-defs.h10 #include <linux/percpu-refcount.h>
15 #include <linux/refcount.h>
219 * wb_tryget - try to increment a wb's refcount
230 * wb_get - increment a wb's refcount
240 * wb_put - decrement a wb's refcount

Completed in 20 milliseconds

12345678910>>...56