Lines Matching refs:ptr

21 static inline void tomoyo_memory_free(void *ptr)  in tomoyo_memory_free()  argument
23 tomoyo_memory_used[TOMOYO_MEMORY_POLICY] -= ksize(ptr); in tomoyo_memory_free()
24 kfree(ptr); in tomoyo_memory_free()
111 struct tomoyo_transition_control *ptr = in tomoyo_del_transition_control() local
112 container_of(element, typeof(*ptr), head.list); in tomoyo_del_transition_control()
114 tomoyo_put_name(ptr->domainname); in tomoyo_del_transition_control()
115 tomoyo_put_name(ptr->program); in tomoyo_del_transition_control()
127 struct tomoyo_aggregator *ptr = in tomoyo_del_aggregator() local
128 container_of(element, typeof(*ptr), head.list); in tomoyo_del_aggregator()
130 tomoyo_put_name(ptr->original_name); in tomoyo_del_aggregator()
131 tomoyo_put_name(ptr->aggregated_name); in tomoyo_del_aggregator()
143 struct tomoyo_manager *ptr = in tomoyo_del_manager() local
144 container_of(element, typeof(*ptr), head.list); in tomoyo_del_manager()
146 tomoyo_put_name(ptr->manager); in tomoyo_del_manager()
550 struct tomoyo_shared_acl_head *ptr; in tomoyo_collect_entry() local
553 list_for_each_entry_safe(ptr, tmp, &tomoyo_condition_list, in tomoyo_collect_entry()
555 if (atomic_read(&ptr->users) > 0) in tomoyo_collect_entry()
557 atomic_set(&ptr->users, TOMOYO_GC_IN_PROGRESS); in tomoyo_collect_entry()
558 tomoyo_try_to_gc(TOMOYO_ID_CONDITION, &ptr->list); in tomoyo_collect_entry()
592 struct tomoyo_shared_acl_head *ptr; in tomoyo_collect_entry() local
595 list_for_each_entry_safe(ptr, tmp, list, list) { in tomoyo_collect_entry()
596 if (atomic_read(&ptr->users) > 0) in tomoyo_collect_entry()
598 atomic_set(&ptr->users, TOMOYO_GC_IN_PROGRESS); in tomoyo_collect_entry()
599 tomoyo_try_to_gc(TOMOYO_ID_NAME, &ptr->list); in tomoyo_collect_entry()