Lines Matching refs:attrs

1382 			uint32_t attr_count, TEE_Attribute *attrs)  in copy_in_attrs()  argument
1399 attrs[n].attributeID = usr_attrs[n].attribute_id; in copy_in_attrs()
1400 if (attrs[n].attributeID & TEE_ATTR_FLAG_VALUE) { in copy_in_attrs()
1401 attrs[n].content.value.a = usr_attrs[n].a; in copy_in_attrs()
1402 attrs[n].content.value.b = usr_attrs[n].b; in copy_in_attrs()
1413 attrs[n].content.ref.buffer = (void *)buf; in copy_in_attrs()
1414 attrs[n].content.ref.length = len; in copy_in_attrs()
1429 const TEE_Attribute *attrs, in tee_svc_cryp_check_attr() argument
1473 attrs[n].attributeID, in tee_svc_cryp_check_attr()
1550 const TEE_Attribute *attrs, in tee_svc_cryp_obj_populate_type() argument
1563 attrs[n].attributeID, in tee_svc_cryp_obj_populate_type()
1573 if (attrs[n].attributeID & TEE_ATTR_FLAG_VALUE) in tee_svc_cryp_obj_populate_type()
1574 res = ops->from_user(attr, &attrs[n].content.value, in tee_svc_cryp_obj_populate_type()
1575 sizeof(attrs[n].content.value)); in tee_svc_cryp_obj_populate_type()
1577 res = ops->from_user(attr, attrs[n].content.ref.buffer, in tee_svc_cryp_obj_populate_type()
1578 attrs[n].content.ref.length); in tee_svc_cryp_obj_populate_type()
1596 if (attrs[n].attributeID == TEE_ATTR_ECC_CURVE) { in tee_svc_cryp_obj_populate_type()
1597 res = get_ec_key_size(attrs[n].content.value.a, in tee_svc_cryp_obj_populate_type()
1605 obj_size = attrs[n].content.ref.length * 8; in tee_svc_cryp_obj_populate_type()
1624 if (get_used_bits(attrs + n) > o->info.maxKeySize) in tee_svc_cryp_obj_populate_type()
1650 TEE_Attribute *attrs = NULL; in syscall_cryp_obj_populate() local
1672 attrs = malloc(alloc_size); in syscall_cryp_obj_populate()
1673 if (!attrs) in syscall_cryp_obj_populate()
1677 attrs); in syscall_cryp_obj_populate()
1682 attrs, attr_count); in syscall_cryp_obj_populate()
1686 res = tee_svc_cryp_obj_populate_type(o, type_props, attrs, attr_count); in syscall_cryp_obj_populate()
1691 free_wipe(attrs); in syscall_cryp_obj_populate()