Searched refs:refcount (Results 1 - 25 of 757) sorted by last modified time

1234567891011>>

/linux-master/include/linux/
H A Dtee_drv.h27 * @refcount: reference counter for this structure
42 struct kref refcount; member in struct:tee_context
57 * @refcount: reference counter
73 refcount_t refcount; member in struct:tee_shm
H A Dskbuff.h21 #include <linux/refcount.h>
1115 * _skb_refdst low order bit is set if refcount was _not_ taken
H A Dslab.h20 #include <linux/percpu-refcount.h>
H A Ddma-fence.h32 * @refcount: refcount for this fence
95 struct kref refcount; member in struct:dma_fence
291 * dma_fence_put - decreases refcount of the fence
292 * @fence: fence to reduce refcount of
297 kref_put(&fence->refcount, dma_fence_release);
301 * dma_fence_get - increases refcount of the fence
302 * @fence: fence to increase refcount of
304 * Returns the same fence, with refcount increased by 1.
309 kref_get(&fence->refcount);
[all...]
H A Dfilter.h10 #include <linux/refcount.h>
/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
H A Dtee_core.c63 kref_init(&ctx->refcount);
83 kref_get(&ctx->refcount);
89 refcount);
100 kref_put(&ctx->refcount, teedev_ctx_release);
/linux-master/drivers/tee/amdtee/
H A Dcore.c117 kref_get(&sess->refcount);
125 kref_init(&sess->refcount);
223 refcount);
274 kref_put_mutex(&sess->refcount, destroy_session,
293 kref_put_mutex(&sess->refcount, destroy_session,
335 kref_put_mutex(&sess->refcount, destroy_session, &session_list_mutex);
H A Dcall.c135 return ++ta_data->refcount;
140 ta_data->refcount = 1;
141 count = ta_data->refcount;
156 count = --ta_data->refcount;
H A Damdtee_private.h48 * @refcount: counter to keep track of sessions opened for the TA instance
59 struct kref refcount; member in struct:amdtee_session
101 * @refcount: Reference count for the loaded TA
106 u32 refcount; member in struct:amdtee_ta_data
/linux-master/drivers/firmware/arm_scmi/
H A Dprotocols.h20 #include <linux/refcount.h>
105 * @users: A refcount to track the active users for this xfer.
H A Dnotify.c88 #include <linux/refcount.h>
321 * @sources: A reference to a dynamically allocated array used to refcount the
1032 * * if found adjust users refcount
1242 * update the refcount and if @hndl is no more in use by anyone:
1436 * path could still hold the refcount to 1 even after this routine
H A Ddriver.c34 #include <linux/refcount.h>
86 * @users: A refcount to track effective users of this protocol.
761 * After refcount check, possibly release an xfer, clearing the token slot,
1019 /* On error the refcount incremented above has to be dropped */
H A Dcommon.h20 #include <linux/refcount.h>
/linux-master/arch/s390/include/asm/
H A Dgmap.h13 #include <linux/refcount.h>
/linux-master/fs/
H A Duserfaultfd.c168 refcount_inc(&ctx->refcount);
181 if (refcount_dec_and_test(&ctx->refcount)) {
684 refcount_set(&ctx->refcount, 1);
1136 * drop the temporary refcount.
1166 * refcount from the fork thread on fork_nctx
2215 refcount_set(&ctx->refcount, 1);
H A Deventpoll.c154 * eventpoll->refcount orchestrates "struct eventpoll" disposal
226 refcount_t refcount; member in struct:eventpoll
772 refcount_inc(&ep->refcount);
780 if (!refcount_dec_and_test(&ep->refcount))
996 * operation - 'ffd.file' cannot go away even if the refcount has
1133 refcount_set(&ep->refcount, 1);
2372 * The eventpoll itself is still alive: the refcount
/linux-master/drivers/gpu/drm/
H A Ddrm_connector.c195 container_of(kref, struct drm_connector, base.refcount);
813 if (!refcount_dec_and_test(&conn->base.refcount.refcount))
848 } while (!kref_get_unless_zero(&iter->conn->base.refcount));
3110 struct drm_tile_group *tg = container_of(kref, struct drm_tile_group, refcount);
3129 kref_put(&tg->refcount, drm_tile_group_free);
3152 if (!kref_get_unless_zero(&tg->refcount))
3184 kref_init(&tg->refcount);
/linux-master/include/net/
H A Dxfrm.h17 #include <linux/refcount.h>
/linux-master/fs/smb/server/
H A Dvfs_cache.c341 if (!atomic_inc_not_zero(&fp->refcount))
399 if (!atomic_dec_and_test(&fp->refcount))
417 if (!atomic_dec_and_test(&fp->refcount))
489 if (!atomic_dec_and_test(&fp->refcount))
600 atomic_set(&fp->refcount, 1);
656 if (!atomic_dec_and_test(&fp->refcount))
H A Dvfs_cache.h83 atomic_t refcount; member in struct:ksmbd_file
H A Dsmb2pdu.c2141 WARN_ON_ONCE(atomic_dec_and_test(&tcon->refcount));
H A Doplock.c52 atomic_set(&opinfo->refcount, 1);
144 if (opinfo && !atomic_inc_not_zero(&opinfo->refcount))
163 !atomic_inc_not_zero(&opinfo->refcount))
169 atomic_dec(&opinfo->refcount);
200 if (!atomic_dec_and_test(&opinfo->refcount))
420 atomic_dec(&opinfo->refcount);
1013 if (!atomic_inc_not_zero(&opinfo->refcount))
1122 if (!atomic_inc_not_zero(&opinfo->refcount))
1162 if (!atomic_inc_not_zero(&opinfo->refcount))
1371 if (!atomic_inc_not_zero(&brk_op->refcount))
[all...]
/linux-master/mm/
H A Dslub.c5689 s->refcount++;
6214 return sysfs_emit(buf, "%d\n", s->refcount < 0 ? 0 : s->refcount - 1);
6393 if (s->refcount > 1)
/linux-master/net/8021q/
H A Dvlan_core.c166 int refcount; member in struct:vlan_vid_info
340 vid_info->refcount++;
385 vid_info->refcount--;
386 if (vid_info->refcount == 0) {

Completed in 614 milliseconds

1234567891011>>