Lines Matching refs:refs
134 struct user_event_refs *refs; member
1391 struct user_event_refs *refs; in user_events_write_core() local
1402 refs = rcu_dereference_sched(info->refs); in user_events_write_core()
1409 if (likely(refs && idx < refs->count)) in user_events_write_core()
1410 user = refs->events[idx]; in user_events_write_core()
1507 struct user_event_refs *refs, *new_refs; in user_events_ref_add() local
1510 refs = rcu_dereference_protected(info->refs, in user_events_ref_add()
1513 if (refs) { in user_events_ref_add()
1514 count = refs->count; in user_events_ref_add()
1517 if (refs->events[i] == user) in user_events_ref_add()
1521 size = struct_size(refs, events, count + 1); in user_events_ref_add()
1531 new_refs->events[i] = refs->events[i]; in user_events_ref_add()
1537 rcu_assign_pointer(info->refs, new_refs); in user_events_ref_add()
1539 if (refs) in user_events_ref_add()
1540 kfree_rcu(refs, rcu); in user_events_ref_add()
1677 struct user_event_refs *refs; in user_events_release() local
1692 refs = info->refs; in user_events_release()
1694 if (!refs) in user_events_release()
1702 for (i = 0; i < refs->count; ++i) { in user_events_release()
1703 user = refs->events[i]; in user_events_release()
1713 kfree(refs); in user_events_release()