• Home
  • Raw
  • Download

Lines Matching refs:prep

424 				      struct key_preparsed_payload *prep,  in __key_instantiate_and_link()  argument
442 ret = key->type->instantiate(key, prep); in __key_instantiate_and_link()
464 if (prep->expiry != TIME_T_MAX) { in __key_instantiate_and_link()
465 key->expiry = prep->expiry; in __key_instantiate_and_link()
466 key_schedule_gc(prep->expiry + key_gc_delay); in __key_instantiate_and_link()
502 struct key_preparsed_payload prep; in key_instantiate_and_link() local
506 memset(&prep, 0, sizeof(prep)); in key_instantiate_and_link()
507 prep.data = data; in key_instantiate_and_link()
508 prep.datalen = datalen; in key_instantiate_and_link()
509 prep.quotalen = key->type->def_datalen; in key_instantiate_and_link()
510 prep.expiry = TIME_T_MAX; in key_instantiate_and_link()
512 ret = key->type->preparse(&prep); in key_instantiate_and_link()
525 ret = keyres->check(keyring, key->type, &prep.payload, in key_instantiate_and_link()
532 ret = __key_instantiate_and_link(key, &prep, keyring, authkey, &edit); in key_instantiate_and_link()
540 key->type->free_preparse(&prep); in key_instantiate_and_link()
747 struct key_preparsed_payload *prep) in __key_update() argument
763 ret = key->type->update(key, prep); in __key_update()
817 struct key_preparsed_payload prep; in key_create_or_update() local
850 memset(&prep, 0, sizeof(prep)); in key_create_or_update()
851 prep.data = payload; in key_create_or_update()
852 prep.datalen = plen; in key_create_or_update()
853 prep.quotalen = index_key.type->def_datalen; in key_create_or_update()
854 prep.expiry = TIME_T_MAX; in key_create_or_update()
856 ret = index_key.type->preparse(&prep); in key_create_or_update()
862 index_key.description = prep.description; in key_create_or_update()
877 &prep.payload, restrict_link->key); in key_create_or_update()
924 ret = __key_instantiate_and_link(key, &prep, keyring, NULL, &edit); in key_create_or_update()
937 index_key.type->free_preparse(&prep); in key_create_or_update()
959 key_ref = __key_update(key_ref, &prep); in key_create_or_update()
979 struct key_preparsed_payload prep; in key_update() local
994 memset(&prep, 0, sizeof(prep)); in key_update()
995 prep.data = payload; in key_update()
996 prep.datalen = plen; in key_update()
997 prep.quotalen = key->type->def_datalen; in key_update()
998 prep.expiry = TIME_T_MAX; in key_update()
1000 ret = key->type->preparse(&prep); in key_update()
1007 ret = key->type->update(key, &prep); in key_update()
1016 key->type->free_preparse(&prep); in key_update()
1091 int generic_key_instantiate(struct key *key, struct key_preparsed_payload *prep) in generic_key_instantiate() argument
1097 ret = key_payload_reserve(key, prep->quotalen); in generic_key_instantiate()
1099 rcu_assign_keypointer(key, prep->payload.data[0]); in generic_key_instantiate()
1100 key->payload.data[1] = prep->payload.data[1]; in generic_key_instantiate()
1101 key->payload.data[2] = prep->payload.data[2]; in generic_key_instantiate()
1102 key->payload.data[3] = prep->payload.data[3]; in generic_key_instantiate()
1103 prep->payload.data[0] = NULL; in generic_key_instantiate()
1104 prep->payload.data[1] = NULL; in generic_key_instantiate()
1105 prep->payload.data[2] = NULL; in generic_key_instantiate()
1106 prep->payload.data[3] = NULL; in generic_key_instantiate()