Lines Matching refs:ptr

20 static inline void tomoyo_memory_free(void *ptr)  in tomoyo_memory_free()  argument
22 tomoyo_memory_used[TOMOYO_MEMORY_POLICY] -= ksize(ptr); in tomoyo_memory_free()
23 kfree(ptr); in tomoyo_memory_free()
108 struct tomoyo_transition_control *ptr = in tomoyo_del_transition_control() local
109 container_of(element, typeof(*ptr), head.list); in tomoyo_del_transition_control()
110 tomoyo_put_name(ptr->domainname); in tomoyo_del_transition_control()
111 tomoyo_put_name(ptr->program); in tomoyo_del_transition_control()
123 struct tomoyo_aggregator *ptr = in tomoyo_del_aggregator() local
124 container_of(element, typeof(*ptr), head.list); in tomoyo_del_aggregator()
125 tomoyo_put_name(ptr->original_name); in tomoyo_del_aggregator()
126 tomoyo_put_name(ptr->aggregated_name); in tomoyo_del_aggregator()
138 struct tomoyo_manager *ptr = in tomoyo_del_manager() local
139 container_of(element, typeof(*ptr), head.list); in tomoyo_del_manager()
140 tomoyo_put_name(ptr->manager); in tomoyo_del_manager()
534 struct tomoyo_shared_acl_head *ptr; in tomoyo_collect_entry() local
536 list_for_each_entry_safe(ptr, tmp, &tomoyo_condition_list, in tomoyo_collect_entry()
538 if (atomic_read(&ptr->users) > 0) in tomoyo_collect_entry()
540 atomic_set(&ptr->users, TOMOYO_GC_IN_PROGRESS); in tomoyo_collect_entry()
541 tomoyo_try_to_gc(TOMOYO_ID_CONDITION, &ptr->list); in tomoyo_collect_entry()
574 struct tomoyo_shared_acl_head *ptr; in tomoyo_collect_entry() local
576 list_for_each_entry_safe(ptr, tmp, list, list) { in tomoyo_collect_entry()
577 if (atomic_read(&ptr->users) > 0) in tomoyo_collect_entry()
579 atomic_set(&ptr->users, TOMOYO_GC_IN_PROGRESS); in tomoyo_collect_entry()
580 tomoyo_try_to_gc(TOMOYO_ID_NAME, &ptr->list); in tomoyo_collect_entry()