Lines Matching defs:k_attrs
2232 crypto_object_attribute_t *k_attrs = NULL;
2296 k_attrs = kmem_alloc(k_attrs_total_len, KM_SLEEP);
2297 k_attrs_buf = (char *)k_attrs + k_attrs_len;
2303 k_attrs[i].oa_type = STRUCT_FGET(oa, oa_type);
2308 kmem_free(k_attrs, k_attrs_total_len);
2309 k_attrs = NULL;
2316 k_attrs[i].oa_value = p;
2319 k_attrs[i].oa_value = NULL;
2321 k_attrs[i].oa_value_len = value_len;
2340 *k_attrs_out = k_attrs;
2359 crypto_object_attribute_t *k_attrs = NULL;
2409 (caddr_t)STRUCT_FGETP(key, ck_attrs), &k_attrs, NULL, NULL,
2412 out_key->ck_attrs = k_attrs;
2413 k_attrs = NULL;
4477 crypto_object_attribute_t *k_attrs, caddr_t u_attrs)
4498 value_len = k_attrs[i].oa_value_len;
4499 STRUCT_FSET(oa, oa_type, k_attrs[i].oa_type);
4503 if (copyout(k_attrs[i].oa_value,
4527 crypto_object_attribute_t *k_attrs = NULL;
4560 if (!copyin_attributes(mode, sp, count, oc_attributes, &k_attrs,
4574 sp->sd_provider_session->ps_session, 0, k_attrs, count,
4585 if (k_attrs != NULL)
4586 kmem_free(k_attrs, k_attrs_size);
4621 crypto_object_attribute_t *k_attrs = NULL;
4655 if (!copyin_attributes(mode, sp, count, oc_new_attributes, &k_attrs,
4670 sp->sd_provider_session->ps_session, handle, k_attrs, count,
4681 if (k_attrs != NULL)
4682 kmem_free(k_attrs, k_attrs_size);
4789 crypto_object_attribute_t *k_attrs = NULL;
4826 if (!copyin_attributes(mode, sp, count, og_attributes, &k_attrs,
4841 sp->sd_provider_session->ps_session, handle, k_attrs, count, NULL,
4853 count, k_attrs, u_attrs);
4861 if (k_attrs != NULL)
4862 kmem_free(k_attrs, k_attrs_size);
4953 crypto_object_attribute_t *k_attrs = NULL;
4988 if (!copyin_attributes(mode, sp, count, sa_attributes, &k_attrs,
5003 sp->sd_provider_session->ps_session, object_handle, k_attrs, count,
5014 if (k_attrs != NULL)
5015 kmem_free(k_attrs, k_attrs_size);
5035 crypto_object_attribute_t *k_attrs = NULL;
5068 if (!copyin_attributes(mode, sp, count, attributes, &k_attrs,
5088 sp->sd_provider_session->ps_session, 0, k_attrs, count, NULL, 0,
5112 if (k_attrs != NULL)
5113 kmem_free(k_attrs, k_attrs_size);
5310 crypto_object_attribute_t *k_attrs = NULL;
5370 if (!copyin_attributes(mode, sp, count, attributes, &k_attrs,
5377 sp->sd_provider_session->ps_session, &mech, k_attrs, count,
5389 if (k_attrs != NULL)
5390 kmem_free(k_attrs, k_attrs_size);
6084 crypto_object_attribute_t *k_attrs = NULL;
6153 if (!copyin_attributes(mode, sp, count, uk_attributes, &k_attrs,
6182 sp->sd_provider_session->ps_session, &mech, k_attrs, count, &handle,
6199 if (k_attrs != NULL)
6200 kmem_free(k_attrs, k_attrs_size);
6245 crypto_object_attribute_t *k_attrs = NULL;
6318 if (!copyin_attributes(mode, sp, count, attributes, &k_attrs,
6325 sp->sd_provider_session->ps_session, &mech, k_attrs, count,
6352 if (k_attrs != NULL)
6353 kmem_free(k_attrs, k_attrs_size);