Lines Matching refs:validator
1069 struct user_event_validator *validator, *next; in user_event_destroy_validators() local
1072 list_for_each_entry_safe(validator, next, head, user_event_link) { in user_event_destroy_validators()
1073 list_del(&validator->user_event_link); in user_event_destroy_validators()
1074 kfree(validator); in user_event_destroy_validators()
1093 struct user_event_validator *validator; in user_event_add_field() local
1116 validator = kmalloc(sizeof(*validator), GFP_KERNEL_ACCOUNT); in user_event_add_field()
1118 if (!validator) { in user_event_add_field()
1123 validator->flags = validator_flags; in user_event_add_field()
1124 validator->offset = offset; in user_event_add_field()
1127 list_add_tail(&validator->user_event_link, &user->validators); in user_event_add_field()
1514 struct user_event_validator *validator; in user_event_validate() local
1518 list_for_each_entry(validator, head, user_event_link) { in user_event_validate()
1519 pos = data + validator->offset; in user_event_validate()
1526 if (likely(validator->flags & VALIDATOR_REL)) in user_event_validate()
1536 if (likely(validator->flags & VALIDATOR_ENSURE_NULL)) in user_event_validate()