Lines Matching refs:element

40 static bool tomoyo_struct_used_by_io_buffer(const struct list_head *element)  in tomoyo_struct_used_by_io_buffer()  argument
50 if (head->r.domain == element || head->r.group == element || in tomoyo_struct_used_by_io_buffer()
51 head->r.acl == element || &head->w.domain->list == element) in tomoyo_struct_used_by_io_buffer()
109 static inline void tomoyo_del_transition_control(struct list_head *element) in tomoyo_del_transition_control() argument
112 container_of(element, typeof(*ptr), head.list); in tomoyo_del_transition_control()
125 static inline void tomoyo_del_aggregator(struct list_head *element) in tomoyo_del_aggregator() argument
128 container_of(element, typeof(*ptr), head.list); in tomoyo_del_aggregator()
141 static inline void tomoyo_del_manager(struct list_head *element) in tomoyo_del_manager() argument
144 container_of(element, typeof(*ptr), head.list); in tomoyo_del_manager()
156 static void tomoyo_del_acl(struct list_head *element) in tomoyo_del_acl() argument
159 container_of(element, typeof(*acl), list); in tomoyo_del_acl()
251 static inline void tomoyo_del_domain(struct list_head *element) in tomoyo_del_domain() argument
254 container_of(element, typeof(*domain), list); in tomoyo_del_domain()
277 void tomoyo_del_condition(struct list_head *element) in tomoyo_del_condition() argument
279 struct tomoyo_condition *cond = container_of(element, typeof(*cond), in tomoyo_del_condition()
317 static inline void tomoyo_del_name(struct list_head *element) in tomoyo_del_name() argument
329 static inline void tomoyo_del_path_group(struct list_head *element) in tomoyo_del_path_group() argument
332 container_of(element, typeof(*member), head.list); in tomoyo_del_path_group()
344 static inline void tomoyo_del_group(struct list_head *element) in tomoyo_del_group() argument
347 container_of(element, typeof(*group), head.list); in tomoyo_del_group()
359 static inline void tomoyo_del_address_group(struct list_head *element) in tomoyo_del_address_group() argument
371 static inline void tomoyo_del_number_group(struct list_head *element) in tomoyo_del_number_group() argument
387 struct list_head *element) in tomoyo_try_to_gc() argument
395 __list_del_entry(element); in tomoyo_try_to_gc()
405 if (tomoyo_struct_used_by_io_buffer(element)) in tomoyo_try_to_gc()
409 tomoyo_del_transition_control(element); in tomoyo_try_to_gc()
412 tomoyo_del_manager(element); in tomoyo_try_to_gc()
415 tomoyo_del_aggregator(element); in tomoyo_try_to_gc()
418 tomoyo_del_group(element); in tomoyo_try_to_gc()
421 tomoyo_del_path_group(element); in tomoyo_try_to_gc()
424 tomoyo_del_address_group(element); in tomoyo_try_to_gc()
427 tomoyo_del_number_group(element); in tomoyo_try_to_gc()
430 tomoyo_del_condition(element); in tomoyo_try_to_gc()
438 (container_of(element, typeof(struct tomoyo_name), in tomoyo_try_to_gc()
441 tomoyo_del_name(element); in tomoyo_try_to_gc()
444 tomoyo_del_acl(element); in tomoyo_try_to_gc()
452 (element, typeof(struct tomoyo_domain_info), in tomoyo_try_to_gc()
461 tomoyo_del_domain(element); in tomoyo_try_to_gc()
462 tomoyo_memory_free(element); in tomoyo_try_to_gc()
474 list_add_rcu(element, element->prev); in tomoyo_try_to_gc()