Lines Matching refs:auth
173 struct plpks_auth *auth;
178 // The auth structure must not cross a page boundary and must be
180 auth = kzalloc(roundup_pow_of_two(struct_size(auth, password, maxpwsize)), GFP_KERNEL);
181 if (!auth)
184 auth->version = 1;
185 auth->consumer = consumer;
188 return auth;
190 memcpy(auth->password, ospassword, ospasswordlength);
192 auth->passwordlength = cpu_to_be16(ospasswordlength);
194 return auth;
392 struct plpks_auth *auth)
402 virt_to_phys(auth), virt_to_phys(label),
433 struct plpks_auth *auth;
447 auth = construct_auth(PLPKS_OS_OWNER);
448 if (IS_ERR(auth))
449 return PTR_ERR(auth);
459 virt_to_phys(auth), virt_to_phys(label),
475 rc = plpks_confirm_object_flushed(label, auth);
479 kfree(auth);
487 struct plpks_auth *auth;
498 auth = construct_auth(PLPKS_OS_OWNER);
499 if (IS_ERR(auth))
500 return PTR_ERR(auth);
508 rc = plpar_hcall(H_PKS_WRITE_OBJECT, retbuf, virt_to_phys(auth),
513 rc = plpks_confirm_object_flushed(label, auth);
518 kfree(auth);
526 struct plpks_auth *auth;
533 auth = construct_auth(PLPKS_OS_OWNER);
534 if (IS_ERR(auth))
535 return PTR_ERR(auth);
543 rc = plpar_hcall(H_PKS_REMOVE_OBJECT, retbuf, virt_to_phys(auth),
547 rc = plpks_confirm_object_flushed(label, auth);
552 kfree(auth);
560 struct plpks_auth *auth;
568 auth = construct_auth(consumer);
569 if (IS_ERR(auth))
570 return PTR_ERR(auth);
588 rc = plpar_hcall(H_PKS_READ_OBJECT, retbuf, virt_to_phys(auth),
592 rc = plpar_hcall(H_PKS_READ_OBJECT, retbuf, virt_to_phys(auth),
617 kfree(auth);