Lines Matching refs:auth
173 struct plpks_auth *auth; in construct_auth() local
180 auth = kzalloc(roundup_pow_of_two(struct_size(auth, password, maxpwsize)), GFP_KERNEL); in construct_auth()
181 if (!auth) in construct_auth()
184 auth->version = 1; in construct_auth()
185 auth->consumer = consumer; in construct_auth()
188 return auth; in construct_auth()
190 memcpy(auth->password, ospassword, ospasswordlength); in construct_auth()
192 auth->passwordlength = cpu_to_be16(ospasswordlength); in construct_auth()
194 return auth; in construct_auth()
392 struct plpks_auth *auth) in plpks_confirm_object_flushed() argument
402 virt_to_phys(auth), virt_to_phys(label), in plpks_confirm_object_flushed()
434 struct plpks_auth *auth; in plpks_signed_update_var() local
448 auth = construct_auth(PLPKS_OS_OWNER); in plpks_signed_update_var()
449 if (IS_ERR(auth)) in plpks_signed_update_var()
450 return PTR_ERR(auth); in plpks_signed_update_var()
460 virt_to_phys(auth), virt_to_phys(label), in plpks_signed_update_var()
475 rc = plpks_confirm_object_flushed(label, auth); in plpks_signed_update_var()
479 kfree(auth); in plpks_signed_update_var()
487 struct plpks_auth *auth; in plpks_write_var() local
498 auth = construct_auth(PLPKS_OS_OWNER); in plpks_write_var()
499 if (IS_ERR(auth)) in plpks_write_var()
500 return PTR_ERR(auth); in plpks_write_var()
508 rc = plpar_hcall(H_PKS_WRITE_OBJECT, retbuf, virt_to_phys(auth), in plpks_write_var()
513 rc = plpks_confirm_object_flushed(label, auth); in plpks_write_var()
518 kfree(auth); in plpks_write_var()
526 struct plpks_auth *auth; in plpks_remove_var() local
533 auth = construct_auth(PLPKS_OS_OWNER); in plpks_remove_var()
534 if (IS_ERR(auth)) in plpks_remove_var()
535 return PTR_ERR(auth); in plpks_remove_var()
543 rc = plpar_hcall(H_PKS_REMOVE_OBJECT, retbuf, virt_to_phys(auth), in plpks_remove_var()
547 rc = plpks_confirm_object_flushed(label, auth); in plpks_remove_var()
552 kfree(auth); in plpks_remove_var()
560 struct plpks_auth *auth; in plpks_read_var() local
568 auth = construct_auth(consumer); in plpks_read_var()
569 if (IS_ERR(auth)) in plpks_read_var()
570 return PTR_ERR(auth); in plpks_read_var()
588 rc = plpar_hcall(H_PKS_READ_OBJECT, retbuf, virt_to_phys(auth), in plpks_read_var()
592 rc = plpar_hcall(H_PKS_READ_OBJECT, retbuf, virt_to_phys(auth), in plpks_read_var()
617 kfree(auth); in plpks_read_var()