Lines Matching refs:attrp

357 	CK_ATTRIBUTE_INFO_PTR attrp;  in kernel_add_extra_attr()  local
360 attrp = calloc(1, sizeof (attribute_info_t)); in kernel_add_extra_attr()
361 if (attrp == NULL) { in kernel_add_extra_attr()
366 attrp->attr.type = template->type; in kernel_add_extra_attr()
367 attrp->attr.ulValueLen = template->ulValueLen; in kernel_add_extra_attr()
372 attrp->attr.pValue = malloc(template->ulValueLen); in kernel_add_extra_attr()
373 if (attrp->attr.pValue == NULL) { in kernel_add_extra_attr()
374 free(attrp); in kernel_add_extra_attr()
378 (void) memcpy(attrp->attr.pValue, template->pValue, in kernel_add_extra_attr()
381 attrp->attr.pValue = NULL; in kernel_add_extra_attr()
386 object_p->extra_attrlistp = attrp; in kernel_add_extra_attr()
387 attrp->next = NULL; in kernel_add_extra_attr()
389 attrp->next = object_p->extra_attrlistp; in kernel_add_extra_attr()
390 object_p->extra_attrlistp = attrp; in kernel_add_extra_attr()
406 CK_ATTRIBUTE_INFO_PTR attrp; in kernel_copy_extra_attr() local
409 attrp = calloc(1, sizeof (attribute_info_t)); in kernel_copy_extra_attr()
410 if (attrp == NULL) { in kernel_copy_extra_attr()
414 attrp->attr.type = old_attrp->attr.type; in kernel_copy_extra_attr()
415 attrp->attr.ulValueLen = old_attrp->attr.ulValueLen; in kernel_copy_extra_attr()
419 attrp->attr.pValue = malloc(old_attrp->attr.ulValueLen); in kernel_copy_extra_attr()
420 if (attrp->attr.pValue == NULL) { in kernel_copy_extra_attr()
421 free(attrp); in kernel_copy_extra_attr()
425 (void) memcpy(attrp->attr.pValue, old_attrp->attr.pValue, in kernel_copy_extra_attr()
428 attrp->attr.pValue = NULL; in kernel_copy_extra_attr()
433 object_p->extra_attrlistp = attrp; in kernel_copy_extra_attr()
434 attrp->next = NULL; in kernel_copy_extra_attr()
436 attrp->next = object_p->extra_attrlistp; in kernel_copy_extra_attr()
437 object_p->extra_attrlistp = attrp; in kernel_copy_extra_attr()