Lines Matching refs:request
534 static u32 create_request_auth(const void *request, size_t request_len0, in create_request_auth() argument
550 sha1_update(&hash_ctx, request + command_code_offset, 4); in create_request_auth()
553 request + TPM_REQUEST_HEADER_LENGTH + handles_len, in create_request_auth()
661 u8 request[COMMAND_BUFFER_SIZE]; in tpm1_terminate_auth_session() local
663 if (pack_byte_string(request, sizeof(request), "sd", in tpm1_terminate_auth_session()
670 return tpm_sendrecv_command(dev, request, NULL, NULL); in tpm1_terminate_auth_session()
726 u8 request[sizeof(command) + TPM_KEY12_MAX_LENGTH + in tpm1_load_key2_oiap() local
737 if (pack_byte_string(request, sizeof(request), "sdds", in tpm1_load_key2_oiap()
747 err = create_request_auth(request, sizeof(command) + key_length, 4, in tpm1_load_key2_oiap()
749 request + sizeof(command) + key_length, in tpm1_load_key2_oiap()
753 err = tpm_sendrecv_command(dev, request, response, &response_length); in tpm1_load_key2_oiap()
791 u8 request[sizeof(command) + TPM_REQUEST_AUTH_LENGTH]; in tpm1_get_pub_key_oiap() local
802 if (pack_byte_string(request, sizeof(request), "sdd", in tpm1_get_pub_key_oiap()
810 err = create_request_auth(request, sizeof(command), 4, &oiap_session, in tpm1_get_pub_key_oiap()
811 request + sizeof(command), usage_auth); in tpm1_get_pub_key_oiap()
814 err = tpm_sendrecv_command(dev, request, response, &response_length); in tpm1_get_pub_key_oiap()