Lines Matching refs:entry
407 (struct tomoyo_condition *entry) in tomoyo_commit_condition() argument
419 if (!tomoyo_same_condition(ptr, entry) || in tomoyo_commit_condition()
428 if (tomoyo_memory_ok(entry)) { in tomoyo_commit_condition()
429 atomic_set(&entry->head.users, 1); in tomoyo_commit_condition()
430 list_add(&entry->head.list, &tomoyo_condition_list); in tomoyo_commit_condition()
439 tomoyo_del_condition(&entry->head.list); in tomoyo_commit_condition()
440 kfree(entry); in tomoyo_commit_condition()
441 entry = ptr; in tomoyo_commit_condition()
443 return entry; in tomoyo_commit_condition()
497 struct tomoyo_condition *entry = NULL; in tomoyo_get_condition() local
551 if (entry) { in tomoyo_get_condition()
553 entry->grant_log != TOMOYO_GRANTLOG_AUTO) in tomoyo_get_condition()
556 entry->grant_log = TOMOYO_GRANTLOG_YES; in tomoyo_get_condition()
558 entry->grant_log = TOMOYO_GRANTLOG_NO; in tomoyo_get_condition()
658 if (entry) { in tomoyo_get_condition()
661 return tomoyo_commit_condition(entry); in tomoyo_get_condition()
663 e.size = sizeof(*entry) in tomoyo_get_condition()
669 entry = kzalloc(e.size, GFP_NOFS); in tomoyo_get_condition()
670 if (!entry) in tomoyo_get_condition()
672 *entry = e; in tomoyo_get_condition()
674 condp = (struct tomoyo_condition_element *) (entry + 1); in tomoyo_get_condition()
697 if (entry) { in tomoyo_get_condition()
698 tomoyo_del_condition(&entry->head.list); in tomoyo_get_condition()
699 kfree(entry); in tomoyo_get_condition()