Lines Matching refs:prep
63 int user_preparse(struct key_preparsed_payload *prep) in user_preparse() argument
66 size_t datalen = prep->datalen; in user_preparse()
68 if (datalen <= 0 || datalen > 32767 || !prep->data) in user_preparse()
76 prep->quotalen = datalen; in user_preparse()
77 prep->payload.data[0] = upayload; in user_preparse()
79 memcpy(upayload->data, prep->data, datalen); in user_preparse()
87 void user_free_preparse(struct key_preparsed_payload *prep) in user_free_preparse() argument
89 kzfree(prep->payload.data[0]); in user_free_preparse()
105 int user_update(struct key *key, struct key_preparsed_payload *prep) in user_update() argument
111 ret = key_payload_reserve(key, prep->datalen); in user_update()
116 key->expiry = prep->expiry; in user_update()
119 rcu_assign_keypointer(key, prep->payload.data[0]); in user_update()
120 prep->payload.data[0] = NULL; in user_update()