Lines Matching refs:head
112 list_for_each_entry(group, list, head.list) { in tomoyo_get_group()
114 atomic_read(&group->head.users) == TOMOYO_GC_IN_PROGRESS) in tomoyo_get_group()
116 atomic_inc(&group->head.users); in tomoyo_get_group()
125 atomic_set(&entry->head.users, 1); in tomoyo_get_group()
126 list_add_tail_rcu(&entry->head.list, list); in tomoyo_get_group()
157 struct list_head *head; in tomoyo_get_name() local
163 head = &tomoyo_name_list[hash_long(hash, TOMOYO_HASH_BITS)]; in tomoyo_get_name()
166 list_for_each_entry(ptr, head, head.list) { in tomoyo_get_name()
168 atomic_read(&ptr->head.users) == TOMOYO_GC_IN_PROGRESS) in tomoyo_get_name()
170 atomic_inc(&ptr->head.users); in tomoyo_get_name()
177 atomic_set(&ptr->head.users, 1); in tomoyo_get_name()
179 list_add_tail(&ptr->head.list, head); in tomoyo_get_name()