Home | History | Annotate | Download | only in generator

Lines Matching refs:commands

19 """A code generator for TPM 2.0 structures and commands.
22 extract_structures.sh script and a commands file as emitted by the
47 Sample input for commands looks like this:
1754 # These commands have handles that are serialized into the parameter
1867 """Parses everything in a commands file.
1872 commands = []
1876 return commands
1883 commands.append(cmd)
1884 return commands
1952 def GenerateHandleCountFunctions(commands, out_file):
1953 """Generates the GetNumberOf*Handles functions given a list of commands.
1956 commands: A list of Command objects.
1960 for command in commands:
1966 for command in commands:
1973 def GenerateHeader(types, constants, structs, defines, typemap, commands):
1982 commands: A list of Command objects.
2032 for command in commands:
2040 def GenerateImplementation(types, structs, typemap, commands):
2047 commands: A list of Command objects.
2054 GenerateHandleCountFunctions(commands, out_file)
2062 for command in commands:
2079 Both a TPM structures file and commands file are parsed and C++ header and C++
2084 commands_file: The extracted TPM commands file.
2093 commands = command_parser.Parse()
2094 GenerateHeader(types, constants, structs, defines, typemap, commands)
2095 GenerateImplementation(types, structs, typemap, commands)
2098 print('Processed %d commands.' % len(commands))