Searched refs:refcount (Results 1 – 14 of 14) sorted by relevance
/kernel/futex/ |
D | pi.c | 27 refcount_set(&pi_state->refcount, 1); in refill_pi_state_cache() 70 WARN_ON_ONCE(!refcount_inc_not_zero(&pi_state->refcount)); in get_pi_state() 82 if (!refcount_dec_and_test(&pi_state->refcount)) in put_pi_state() 107 refcount_set(&pi_state->refcount, 1); in put_pi_state() 228 WARN_ON(!refcount_read(&pi_state->refcount)); in attach_to_pi_state()
|
D | futex.h | 67 refcount_t refcount; member
|
D | core.c | 986 if (!refcount_inc_not_zero(&pi_state->refcount)) { in exit_pi_state_list()
|
/kernel/cgroup/ |
D | debug.c | 54 refcnt = refcount_read(&cset->refcount); in current_css_set_read() 82 count = refcount_read(&task_css_set(current)->refcount); in current_css_set_refcount_read() 126 int refcnt = refcount_read(&cset->refcount); in cgroup_css_links_read()
|
D | cgroup-internal.h | 205 if (refcount_dec_not_one(&cset->refcount)) in put_css_set() 218 refcount_inc(&cset->refcount); in get_css_set()
|
D | cgroup.c | 764 .refcount = REFCOUNT_INIT(1), 968 if (!refcount_dec_and_test(&cset->refcount)) in put_css_set_locked() 1239 refcount_set(&cset->refcount, 1); in find_css_set()
|
/kernel/ |
D | kcov.c | 54 refcount_t refcount; member 421 refcount_inc(&kcov->refcount); in kcov_get() 426 if (refcount_dec_and_test(&kcov->refcount)) { in kcov_put() 516 refcount_set(&kcov->refcount, 1); in kcov_open()
|
/kernel/sched/ |
D | topology.c | 498 if (!atomic_dec_and_test(&old_rd->refcount)) in rq_attach_root() 502 atomic_inc(&rd->refcount); in rq_attach_root() 517 atomic_inc(&rd->refcount); in sched_get_rd() 522 if (!atomic_dec_and_test(&rd->refcount)) in sched_put_rd() 578 atomic_set(&def_root_domain.refcount, 1); in init_defrootdomain() 1446 if (!atomic_read(&d->rd->refcount)) in __free_domain_allocs()
|
D | fair.c | 1113 refcount_t refcount; member 1200 period *= refcount_read(&ng->refcount); in task_scan_start() 1225 period *= refcount_read(&ng->refcount); in task_scan_max() 2679 return refcount_inc_not_zero(&grp->refcount); in get_numa_group() 2684 if (refcount_dec_and_test(&grp->refcount)) in put_numa_group() 2706 refcount_set(&grp->refcount, 1); in task_numa_group()
|
D | sched.h | 834 atomic_t refcount; member
|
/kernel/events/ |
D | internal.h | 14 refcount_t refcount; member
|
D | core.c | 1185 refcount_inc(&ctx->refcount); in get_ctx() 1213 if (refcount_dec_and_test(&ctx->refcount)) { in put_ctx() 1296 if (!refcount_inc_not_zero(&ctx->refcount)) { in perf_event_ctx_lock_nested() 1429 !refcount_inc_not_zero(&ctx->refcount)) { in perf_lock_task_context() 2126 if (!atomic_long_inc_not_zero(&group_leader->refcount)) in perf_get_aux_event() 2326 WARN_ON_ONCE(!atomic_long_inc_not_zero(&event->refcount)); in event_sched_out() 4643 refcount_set(&ctx->refcount, 1); in __perf_event_init_context() 5072 if (WARN(atomic_long_cmpxchg(&event->refcount, 1, 0) != 1, in free_event() 5074 atomic_long_read(&event->refcount), event)) { in free_event() 5135 if (!atomic_long_dec_and_test(&event->refcount)) in put_event() [all …]
|
D | ring_buffer.c | 324 refcount_set(&rb->refcount, 1); in ring_buffer_init()
|
/kernel/trace/ |
D | trace.c | 8266 refcount_t refcount; member 8271 if (!refcount_dec_and_test(&ref->refcount)) in buffer_ref_release() 8291 if (refcount_read(&ref->refcount) > INT_MAX/2) in buffer_pipe_buf_get() 8294 refcount_inc(&ref->refcount); in buffer_pipe_buf_get() 8368 refcount_set(&ref->refcount, 1); in tracing_buffers_splice_read()
|