Lines Matching refs:template

311 	struct pkcs11_object_head *template = NULL;  in entry_create_object()  local
329 rc = serialargs_alloc_get_attributes(&ctrlargs, &template); in entry_create_object()
338 template_size = sizeof(*template) + template->attrs_size; in entry_create_object()
344 rc = create_attributes_from_template(&head, template, template_size, in entry_create_object()
348 TEE_Free(template); in entry_create_object()
349 template = NULL; in entry_create_object()
395 TEE_Free(template); in entry_create_object()
500 struct pkcs11_object_head *template = NULL; in entry_find_objects_init() local
515 rc = serialargs_alloc_get_attributes(&ctrlargs, &template); in entry_find_objects_init()
536 rc = sanitize_client_object(&req_attrs, template, in entry_find_objects_init()
537 sizeof(*template) + template->attrs_size, in entry_find_objects_init()
549 TEE_Free(template); in entry_find_objects_init()
550 template = NULL; in entry_find_objects_init()
646 TEE_Free(template); in entry_find_objects_init()
752 struct pkcs11_object_head *template = NULL; in entry_get_attribute_value() local
775 rc = serialargs_alloc_get_attributes(&ctrlargs, &template); in entry_get_attribute_value()
821 cur = (char *)template + sizeof(struct pkcs11_object_head); in entry_get_attribute_value()
822 end = cur + template->attrs_size; in entry_get_attribute_value()
899 TEE_MemMove(out->memref.buffer, template, out->memref.size); in entry_get_attribute_value()
905 TEE_Free(template); in entry_get_attribute_value()
971 struct pkcs11_object_head *template = NULL; in entry_set_attribute_value() local
991 rc = serialargs_alloc_get_attributes(&ctrlargs, &template); in entry_set_attribute_value()
1029 template_size = sizeof(*template) + template->attrs_size; in entry_set_attribute_value()
1036 rc = create_attributes_from_template(&head, template, template_size, in entry_set_attribute_value()
1067 TEE_Free(template); in entry_set_attribute_value()
1083 struct pkcs11_object_head *template = NULL; in entry_copy_object() local
1107 rc = serialargs_alloc_get_attributes(&ctrlargs, &template); in entry_copy_object()
1145 template_size = sizeof(*template) + template->attrs_size; in entry_copy_object()
1152 rc = create_attributes_from_template(&head, template, template_size, in entry_copy_object()
1235 TEE_Free(template); in entry_copy_object()