Lines Matching refs:cmd

184   struct s_tpm_nv_definespace_cmd cmd;  in TlclDefineSpace()  local
186 Memcpy(&cmd, &tpm_nv_definespace_cmd, sizeof(cmd)); in TlclDefineSpace()
187 ToTpmUint32(cmd.buffer + tpm_nv_definespace_cmd.index, index); in TlclDefineSpace()
188 ToTpmUint32(cmd.buffer + tpm_nv_definespace_cmd.perm, perm); in TlclDefineSpace()
189 ToTpmUint32(cmd.buffer + tpm_nv_definespace_cmd.size, size); in TlclDefineSpace()
190 return Send(cmd.buffer); in TlclDefineSpace()
194 struct s_tpm_nv_write_cmd cmd; in TlclWrite() local
200 Memcpy(&cmd, &tpm_nv_write_cmd, sizeof(cmd)); in TlclWrite()
202 SetTpmCommandSize(cmd.buffer, total_length); in TlclWrite()
204 ToTpmUint32(cmd.buffer + tpm_nv_write_cmd.index, index); in TlclWrite()
205 ToTpmUint32(cmd.buffer + tpm_nv_write_cmd.length, length); in TlclWrite()
206 Memcpy(cmd.buffer + tpm_nv_write_cmd.data, data, length); in TlclWrite()
208 return TlclSendReceive(cmd.buffer, response, sizeof(response)); in TlclWrite()
212 struct s_tpm_nv_read_cmd cmd; in TlclRead() local
218 Memcpy(&cmd, &tpm_nv_read_cmd, sizeof(cmd)); in TlclRead()
219 ToTpmUint32(cmd.buffer + tpm_nv_read_cmd.index, index); in TlclRead()
220 ToTpmUint32(cmd.buffer + tpm_nv_read_cmd.length, length); in TlclRead()
222 result = TlclSendReceive(cmd.buffer, response, sizeof(response)); in TlclRead()
234 struct s_tpm_pcr_read_cmd cmd; in TlclPCRRead() local
242 Memcpy(&cmd, &tpm_pcr_read_cmd, sizeof(cmd)); in TlclPCRRead()
243 ToTpmUint32(cmd.buffer + tpm_pcr_read_cmd.pcrNum, index); in TlclPCRRead()
245 result = TlclSendReceive(cmd.buffer, response, sizeof(response)); in TlclPCRRead()
318 struct s_tpm_physicalsetdeactivated_cmd cmd; in TlclSetDeactivated() local
320 Memcpy(&cmd, &tpm_physicalsetdeactivated_cmd, sizeof(cmd)); in TlclSetDeactivated()
321 *(cmd.buffer + cmd.deactivated) = flag; in TlclSetDeactivated()
322 return Send(cmd.buffer); in TlclSetDeactivated()
386 struct s_tpm_extend_cmd cmd; in TlclExtend() local
390 Memcpy(&cmd, &tpm_extend_cmd, sizeof(cmd)); in TlclExtend()
391 ToTpmUint32(cmd.buffer + tpm_extend_cmd.pcrNum, pcr_num); in TlclExtend()
392 Memcpy(cmd.buffer + cmd.inDigest, in_digest, kPcrDigestLength); in TlclExtend()
394 result = TlclSendReceive(cmd.buffer, response, sizeof(response)); in TlclExtend()
403 struct s_tpm_getpermissions_cmd cmd; in TlclGetPermissions() local
409 Memcpy(&cmd, &tpm_getpermissions_cmd, sizeof(cmd)); in TlclGetPermissions()
410 ToTpmUint32(cmd.buffer + tpm_getpermissions_cmd.index, index); in TlclGetPermissions()
411 result = TlclSendReceive(cmd.buffer, response, sizeof(response)); in TlclGetPermissions()
438 struct s_tpm_get_random_cmd cmd; in TlclGetRandom() local
443 Memcpy(&cmd, &tpm_get_random_cmd, sizeof(cmd)); in TlclGetRandom()
444 ToTpmUint32(cmd.buffer + tpm_get_random_cmd.bytesRequested, length); in TlclGetRandom()
451 result = TlclSendReceive(cmd.buffer, response, sizeof(response)); in TlclGetRandom()