Lines Matching refs:validator
424 struct user_event_validator *validator, *next; in user_event_destroy_validators() local
427 list_for_each_entry_safe(validator, next, head, link) { in user_event_destroy_validators()
428 list_del(&validator->link); in user_event_destroy_validators()
429 kfree(validator); in user_event_destroy_validators()
448 struct user_event_validator *validator; in user_event_add_field() local
471 validator = kmalloc(sizeof(*validator), GFP_KERNEL); in user_event_add_field()
473 if (!validator) { in user_event_add_field()
478 validator->flags = validator_flags; in user_event_add_field()
479 validator->offset = offset; in user_event_add_field()
482 list_add_tail(&validator->link, &user->validators); in user_event_add_field()
868 struct user_event_validator *validator; in user_event_validate() local
872 list_for_each_entry(validator, head, link) { in user_event_validate()
873 pos = data + validator->offset; in user_event_validate()
880 if (likely(validator->flags & VALIDATOR_REL)) in user_event_validate()
890 if (likely(validator->flags & VALIDATOR_ENSURE_NULL)) in user_event_validate()