Lines Matching full:prep
427 struct key_preparsed_payload *prep, in __key_instantiate_and_link() argument
445 ret = key->type->instantiate(key, prep); in __key_instantiate_and_link()
468 if (prep->expiry != TIME64_MAX) in __key_instantiate_and_link()
469 key_set_expiry(key, prep->expiry); in __key_instantiate_and_link()
504 struct key_preparsed_payload prep; in key_instantiate_and_link() local
508 memset(&prep, 0, sizeof(prep)); in key_instantiate_and_link()
509 prep.orig_description = key->description; in key_instantiate_and_link()
510 prep.data = data; in key_instantiate_and_link()
511 prep.datalen = datalen; in key_instantiate_and_link()
512 prep.quotalen = key->type->def_datalen; in key_instantiate_and_link()
513 prep.expiry = TIME64_MAX; in key_instantiate_and_link()
515 ret = key->type->preparse(&prep); in key_instantiate_and_link()
532 ret = keyres->check(keyring, key->type, &prep.payload, in key_instantiate_and_link()
539 ret = __key_instantiate_and_link(key, &prep, keyring, authkey, &edit); in key_instantiate_and_link()
547 key->type->free_preparse(&prep); in key_instantiate_and_link()
763 struct key_preparsed_payload *prep) in __key_update() argument
779 ret = key->type->update(key, prep); in __key_update()
815 struct key_preparsed_payload prep; in __key_create_or_update() local
847 memset(&prep, 0, sizeof(prep)); in __key_create_or_update()
848 prep.orig_description = description; in __key_create_or_update()
849 prep.data = payload; in __key_create_or_update()
850 prep.datalen = plen; in __key_create_or_update()
851 prep.quotalen = index_key.type->def_datalen; in __key_create_or_update()
852 prep.expiry = TIME64_MAX; in __key_create_or_update()
854 ret = index_key.type->preparse(&prep); in __key_create_or_update()
860 index_key.description = prep.description; in __key_create_or_update()
882 &prep.payload, restrict_link->key); in __key_create_or_update()
938 ret = __key_instantiate_and_link(key, &prep, keyring, NULL, &edit); in __key_create_or_update()
954 index_key.type->free_preparse(&prep); in __key_create_or_update()
976 key_ref = __key_update(key_ref, &prep); in __key_create_or_update()
1075 struct key_preparsed_payload prep; in key_update() local
1090 memset(&prep, 0, sizeof(prep)); in key_update()
1091 prep.data = payload; in key_update()
1092 prep.datalen = plen; in key_update()
1093 prep.quotalen = key->type->def_datalen; in key_update()
1094 prep.expiry = TIME64_MAX; in key_update()
1096 ret = key->type->preparse(&prep); in key_update()
1103 ret = key->type->update(key, &prep); in key_update()
1114 key->type->free_preparse(&prep); in key_update()
1184 * @prep: The preparsed data to load.
1191 int generic_key_instantiate(struct key *key, struct key_preparsed_payload *prep) in generic_key_instantiate() argument
1197 ret = key_payload_reserve(key, prep->quotalen); in generic_key_instantiate()
1199 rcu_assign_keypointer(key, prep->payload.data[0]); in generic_key_instantiate()
1200 key->payload.data[1] = prep->payload.data[1]; in generic_key_instantiate()
1201 key->payload.data[2] = prep->payload.data[2]; in generic_key_instantiate()
1202 key->payload.data[3] = prep->payload.data[3]; in generic_key_instantiate()
1203 prep->payload.data[0] = NULL; in generic_key_instantiate()
1204 prep->payload.data[1] = NULL; in generic_key_instantiate()
1205 prep->payload.data[2] = NULL; in generic_key_instantiate()
1206 prep->payload.data[3] = NULL; in generic_key_instantiate()