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

1234567891011>>

/linux-master/drivers/gpu/drm/
H A Ddrm_auth.c140 kref_init(&master->refcount);
390 kref_get(&master->refcount);
422 struct drm_master *master = container_of(kref, struct drm_master, refcount);
444 kref_put(&(*master)->refcount, drm_master_destroy);
/linux-master/drivers/gpu/drm/imagination/
H A Dpvr_gem.h22 #include <linux/refcount.h>
/linux-master/fs/btrfs/
H A Draid56.h14 #include <linux/refcount.h>
/linux-master/tools/perf/util/
H A Dcpumap.h8 #include <linux/refcount.h>
/linux-master/drivers/infiniband/hw/hns/
H A Dhns_roce_hem.h75 refcount_t refcount; member in struct:hns_roce_hem
/linux-master/drivers/gpu/drm/xe/
H A Dxe_exec_queue_types.h49 /** @refcount: ref count of this exec queue */
50 struct kref refcount; member in struct:xe_exec_queue
/linux-master/kernel/cgroup/
H A Ddebug.c54 refcnt = refcount_read(&cset->refcount);
82 count = refcount_read(&task_css_set(current)->refcount);
126 int refcnt = refcount_read(&cset->refcount);
130 * and highlight difference between refcount and task_count.
H A Dcgroup-internal.h9 #include <linux/refcount.h>
201 * Ensure that the refcount doesn't hit zero while any readers
205 if (refcount_dec_not_one(&cset->refcount))
218 refcount_inc(&cset->refcount);
/linux-master/drivers/infiniband/hw/mthca/
H A Dmthca_memfree.c60 int refcount; member in struct:mthca_user_db_table::__anon211
152 icm->refcount = 0;
230 ++table->icm[i]->refcount;
250 ++table->icm[i]->refcount;
268 if (--table->icm[i]->refcount == 0) {
406 ++table->icm[i]->refcount;
463 if ((db_tab->page[i].refcount >= MTHCA_DB_REC_PER_PAGE) ||
470 if (db_tab->page[i].refcount) {
471 ++db_tab->page[i].refcount;
500 db_tab->page[i].refcount
[all...]
/linux-master/include/net/9p/
H A Dclient.h80 refcount_t refcount; member in struct:p9_req_t
231 refcount_inc(&r->refcount);
236 return refcount_inc_not_zero(&r->refcount);
/linux-master/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)
/linux-master/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++;
39 psd->refcount = 1;
71 if (--psd->refcount == 0)
/linux-master/include/drm/
H A Ddrm_gem.h275 * @refcount:
283 struct kref refcount; member in struct:drm_gem_object
493 kref_get(&obj->refcount);
500 kref_put(&obj->refcount, drm_gem_object_free);
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Ddr_types.h8 #include <linux/refcount.h>
162 /* refcount: indicates the num of rules that using this ste */
163 u32 refcount; member in struct:mlx5dr_ste
193 u32 refcount; member in struct:mlx5dr_ste_htbl
237 htbl->refcount--;
238 if (!htbl->refcount)
244 htbl->refcount++;
359 ste->refcount--;
360 if (!ste->refcount)
367 ste->refcount
938 refcount_t refcount; member in struct:mlx5dr_domain
976 refcount_t refcount; member in struct:mlx5dr_table
1004 refcount_t refcount; member in struct:mlx5dr_matcher
1021 refcount_t refcount; member in struct:mlx5dr_ptrn_obj
1121 refcount_t refcount; member in struct:mlx5dr_action
[all...]
/linux-master/drivers/comedi/
H A Dcomedi_buf.c24 container_of(kref, struct comedi_buf_map, refcount);
85 kref_init(&bm->refcount);
192 kref_get(&bm->refcount);
198 return kref_put(&bm->refcount, comedi_buf_map_kref_release);
226 /* returns s->async->buf_map and increments its kref refcount */
253 return bm && (kref_read(&bm->refcount) > 1);
/linux-master/net/rds/
H A Dib.c123 BUG_ON(refcount_read(&rds_ibdev->refcount) == 0);
124 if (refcount_dec_and_test(&rds_ibdev->refcount))
147 refcount_set(&rds_ibdev->refcount, 1);
218 refcount_inc(&rds_ibdev->refcount);
253 refcount_inc(&rds_ibdev->refcount);
/linux-master/drivers/net/ethernet/mellanox/mlx4/
H A Dicm.c154 icm->refcount = 0;
267 ++table->icm[i]->refcount;
287 ++table->icm[i]->refcount;
303 if (--table->icm[i]->refcount == 0) {
463 ++table->icm[i]->refcount;
/linux-master/drivers/platform/surface/aggregator/
H A Dcontroller.c287 * @refcount: The reference-count of the event.
293 int refcount; member in struct:ssam_nf_refcount_entry
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;
338 } else if (entry->refcount < INT_MAX) {
339 entry->refcount++;
352 entry->refcount = 1;
355 rb_insert_color(&entry->node, &nf->refcount);
368 * returning its entry. If the returned entry has a refcount o
[all...]
/linux-master/net/dsa/
H A Dtag_8021q.c70 refcount_t refcount; member in struct:dsa_tag_8021q_vlan
157 refcount_inc(&v->refcount);
173 refcount_set(&v->refcount, 1);
195 if (!refcount_dec_and_test(&v->refcount))
200 refcount_inc(&v->refcount);
/linux-master/fs/xfs/scrub/
H A Drefcount.c50 * We want to count the reverse mappings overlapping a refcount record
51 * (bno, len, refcount), allowing for the possibility that some of the
56 * 1. For all reverse mappings overlapping the refcount extent,
62 * refcount record we want to find $refcount owners and we've already
64 * need to find ($refcount - $seen) owners for every block in the
78 * and that they all end at or beyond the end of the refcount extent.
80 * If the refcount is correct, all the check conditions in the algorithm
81 * should always hold true. If not, the refcount is incorrect.
92 /* refcount exten
95 xfs_nlink_t refcount; member in struct:xchk_refcnt_check
[all...]
/linux-master/drivers/tee/
H A Dtee_shm.c90 refcount_set(&shm->refcount, 1);
299 refcount_set(&shm->refcount, 1);
473 refcount_inc(&shm->refcount);
544 * If the tee_shm was found in the IDR it must have a refcount
551 refcount_inc(&shm->refcount);
567 if (refcount_dec_and_test(&shm->refcount)) {
569 * refcount has reached 0, we must now remove it from the
/linux-master/lib/
H A Dobjagg.c21 unsigned int refcount; member in struct:objagg_hints
65 unsigned int refcount; /* counts number of users of this object member in struct:objagg_obj
74 return ++objagg_obj->refcount;
79 return --objagg_obj->refcount;
184 parent->refcount);
216 objagg_obj->parent->refcount);
445 trace_objagg_obj_get(objagg, objagg_obj, objagg_obj->refcount);
480 trace_objagg_obj_put(objagg, objagg_obj, objagg_obj->refcount);
531 objagg_hints->refcount++;
949 objagg_hints->refcount
[all...]
/linux-master/net/batman-adv/
H A Dtp_meter.c276 if (unlikely(!kref_get_unless_zero(&pos->refcount)))
318 if (unlikely(!kref_get_unless_zero(&pos->refcount)))
339 tp_vars = container_of(ref, struct batadv_tp_vars, refcount);
364 kref_put(&tp_vars->refcount, batadv_tp_vars_release);
907 kref_get(&tp_vars->refcount);
983 kref_init(&tp_vars->refcount);
1013 kref_get(&tp_vars->refcount);
1029 kref_get(&tp_vars->refcount);
1355 kref_init(&tp_vars->refcount);
1360 kref_get(&tp_vars->refcount);
[all...]
/linux-master/tools/testing/selftests/bpf/
H A Dxsk.c62 int refcount; member in struct:xsk_umem
73 int refcount; member in struct:xsk_ctx
468 ctx->refcount++;
482 if (--ctx->refcount)
528 ctx->refcount = 1;
568 if (umem->refcount++ > 0) {
672 if (umem->refcount > 1) {
701 if (--umem->refcount)
729 if (umem->refcount)
774 umem->refcount
[all...]
/linux-master/drivers/net/ethernet/freescale/enetc/
H A Denetc_qos.c8 #include <linux/refcount.h>
433 refcount_t refcount; member in struct:enetc_psfp_filter
444 refcount_t refcount; member in struct:enetc_psfp_gate
457 refcount_t refcount; member in struct:enetc_psfp_meter
979 z = refcount_dec_and_test(&sfi->refcount);
996 z = refcount_dec_and_test(&sgi->refcount);
1011 z = refcount_dec_and_test(&fmi->refcount);
1252 refcount_set(&sgi->refcount, 1);
1275 refcount_set(&sfi->refcount, 1);
1291 refcount_set(&fmi->refcount,
[all...]

Completed in 366 milliseconds

1234567891011>>