Lines Matching refs:validator
1088 struct user_event_validator *validator, *next; in user_event_destroy_validators() local
1091 list_for_each_entry_safe(validator, next, head, user_event_link) { in user_event_destroy_validators()
1092 list_del(&validator->user_event_link); in user_event_destroy_validators()
1093 kfree(validator); in user_event_destroy_validators()
1112 struct user_event_validator *validator; in user_event_add_field() local
1135 validator = kmalloc(sizeof(*validator), GFP_KERNEL_ACCOUNT); in user_event_add_field()
1137 if (!validator) { in user_event_add_field()
1142 validator->flags = validator_flags; in user_event_add_field()
1143 validator->offset = offset; in user_event_add_field()
1146 list_add_tail(&validator->user_event_link, &user->validators); in user_event_add_field()
1557 struct user_event_validator *validator; in user_event_validate() local
1561 list_for_each_entry(validator, head, user_event_link) { in user_event_validate()
1562 pos = data + validator->offset; in user_event_validate()
1569 if (likely(validator->flags & VALIDATOR_REL)) in user_event_validate()
1579 if (likely(validator->flags & VALIDATOR_ENSURE_NULL)) in user_event_validate()