Lines Matching refs:command
202 static uint32_t tpm_command_size(const void *command) in tpm_command_size() argument
205 return get_unaligned_be32(command + command_size_offset); in tpm_command_size()
232 static uint32_t tpm_sendrecv_command(const void *command, in tpm_sendrecv_command() argument
250 err = tpm_xfer(dev, command, tpm_command_size(command), in tpm_sendrecv_command()
274 const uint8_t command[12] = { in tpm_startup() local
281 0, command, sizeof(command), in tpm_startup()
290 const uint8_t command[10] = { in tpm_self_test_full() local
293 return tpm_sendrecv_command(command, NULL, NULL); in tpm_self_test_full()
298 const uint8_t command[10] = { in tpm_continue_self_test() local
301 return tpm_sendrecv_command(command, NULL, NULL); in tpm_continue_self_test()
306 const uint8_t command[101] = { in tpm_nv_define_space() local
338 0, command, sizeof(command), in tpm_nv_define_space()
349 const uint8_t command[22] = { in tpm_nv_read_value() local
362 0, command, sizeof(command), in tpm_nv_read_value()
383 const uint8_t command[256] = { in tpm_nv_write_value() local
398 0, command, sizeof(command), in tpm_nv_write_value()
413 const uint8_t command[34] = { in tpm_extend() local
425 0, command, sizeof(command), in tpm_extend()
444 const uint8_t command[14] = { in tpm_pcr_read() local
457 0, command, sizeof(command), in tpm_pcr_read()
472 const uint8_t command[12] = { in tpm_tsc_physical_presence() local
479 0, command, sizeof(command), in tpm_tsc_physical_presence()
488 const uint8_t command[30] = { in tpm_read_pubek() local
499 err = tpm_sendrecv_command(command, response, &response_length); in tpm_read_pubek()
519 const uint8_t command[10] = { in tpm_force_clear() local
523 return tpm_sendrecv_command(command, NULL, NULL); in tpm_force_clear()
528 const uint8_t command[10] = { in tpm_physical_enable() local
532 return tpm_sendrecv_command(command, NULL, NULL); in tpm_physical_enable()
537 const uint8_t command[10] = { in tpm_physical_disable() local
541 return tpm_sendrecv_command(command, NULL, NULL); in tpm_physical_disable()
546 const uint8_t command[11] = { in tpm_physical_set_deactivated() local
553 0, command, sizeof(command), in tpm_physical_set_deactivated()
563 const uint8_t command[22] = { in tpm_get_capability() local
581 0, command, sizeof(command), in tpm_get_capability()
602 const uint8_t command[22] = { in tpm_get_permanent_flags() local
617 err = tpm_sendrecv_command(command, response, &response_length); in tpm_get_permanent_flags()
634 const uint8_t command[22] = { in tpm_get_permissions() local
647 if (pack_byte_string(buf, sizeof(buf), "d", 0, command, sizeof(command), in tpm_get_permissions()
663 const uint8_t command[18] = { in tpm_flush_specific() local
677 0, command, sizeof(command), in tpm_flush_specific()
824 const uint8_t command[18] = { in tpm_terminate_auth_session() local
835 0, command, sizeof(command), in tpm_terminate_auth_session()
854 const uint8_t command[10] = { in tpm_oiap() local
868 err = tpm_sendrecv_command(command, response, &response_length); in tpm_oiap()
887 const uint8_t command[14] = { in tpm_load_key2_oiap() local
897 uint8_t request[sizeof(command) + TPM_KEY12_MAX_LENGTH in tpm_load_key2_oiap()
909 0, command, sizeof(command), in tpm_load_key2_oiap()
911 sizeof(command) + key_length in tpm_load_key2_oiap()
918 err = create_request_auth(request, sizeof(command) + key_length, 4, in tpm_load_key2_oiap()
920 request + sizeof(command) + key_length, in tpm_load_key2_oiap()
951 const uint8_t command[14] = { in tpm_get_pub_key_oiap() local
960 uint8_t request[sizeof(command) + TPM_REQUEST_AUTH_LENGTH]; in tpm_get_pub_key_oiap()
972 0, command, sizeof(command), in tpm_get_pub_key_oiap()
974 (uint32_t)(sizeof(command) in tpm_get_pub_key_oiap()
979 err = create_request_auth(request, sizeof(command), 4, &oiap_session, in tpm_get_pub_key_oiap()
980 request + sizeof(command), usage_auth); in tpm_get_pub_key_oiap()