Lines Matching refs:template
313 struct pkcs11_object_head *template = NULL; in entry_create_object() local
331 rc = serialargs_alloc_get_attributes(&ctrlargs, &template); in entry_create_object()
340 template_size = sizeof(*template) + template->attrs_size; in entry_create_object()
346 rc = create_attributes_from_template(&head, template, template_size, in entry_create_object()
350 TEE_Free(template); in entry_create_object()
351 template = NULL; in entry_create_object()
402 TEE_Free(template); in entry_create_object()
507 struct pkcs11_object_head *template = NULL; in entry_find_objects_init() local
522 rc = serialargs_alloc_get_attributes(&ctrlargs, &template); in entry_find_objects_init()
543 rc = sanitize_client_object(&req_attrs, template, in entry_find_objects_init()
544 sizeof(*template) + template->attrs_size, in entry_find_objects_init()
556 TEE_Free(template); in entry_find_objects_init()
557 template = NULL; in entry_find_objects_init()
653 TEE_Free(template); in entry_find_objects_init()
759 struct pkcs11_object_head *template = NULL; in entry_get_attribute_value() local
782 rc = serialargs_alloc_get_attributes(&ctrlargs, &template); in entry_get_attribute_value()
828 cur = (char *)template + sizeof(struct pkcs11_object_head); in entry_get_attribute_value()
829 end = cur + template->attrs_size; in entry_get_attribute_value()
915 TEE_MemMove(out->memref.buffer, template, out->memref.size); in entry_get_attribute_value()
921 TEE_Free(template); in entry_get_attribute_value()
987 struct pkcs11_object_head *template = NULL; in entry_set_attribute_value() local
1009 rc = serialargs_alloc_get_attributes(&ctrlargs, &template); in entry_set_attribute_value()
1047 template_size = sizeof(*template) + template->attrs_size; in entry_set_attribute_value()
1054 rc = create_attributes_from_template(&head, template, template_size, in entry_set_attribute_value()
1111 TEE_Free(template); in entry_set_attribute_value()
1127 struct pkcs11_object_head *template = NULL; in entry_copy_object() local
1151 rc = serialargs_alloc_get_attributes(&ctrlargs, &template); in entry_copy_object()
1189 template_size = sizeof(*template) + template->attrs_size; in entry_copy_object()
1196 rc = create_attributes_from_template(&head, template, template_size, in entry_copy_object()
1284 TEE_Free(template); in entry_copy_object()