Lines Matching refs:tcti_tbs

50 tcti_tbs_down_cast (TSS2_TCTI_TBS_CONTEXT *tcti_tbs)  in tcti_tbs_down_cast()  argument
52 if (tcti_tbs == NULL) { in tcti_tbs_down_cast()
55 return &tcti_tbs->common; in tcti_tbs_down_cast()
64 TSS2_TCTI_TBS_CONTEXT *tcti_tbs = tcti_tbs_context_cast (tctiContext); in tcti_tbs_transmit() local
65 TSS2_TCTI_COMMON_CONTEXT *tcti_common = tcti_tbs_down_cast (tcti_tbs); in tcti_tbs_transmit()
68 if (tcti_tbs == NULL) { in tcti_tbs_transmit()
81 memcpy (tcti_tbs->commandBuffer, command_buffer, command_size); in tcti_tbs_transmit()
82 tcti_tbs->commandSize = command_size; in tcti_tbs_transmit()
114 TSS2_TCTI_TBS_CONTEXT *tcti_tbs = tcti_tbs_context_cast (tctiContext); in tcti_tbs_receive() local
115 TSS2_TCTI_COMMON_CONTEXT *tcti_common = tcti_tbs_down_cast (tcti_tbs); in tcti_tbs_receive()
120 if (tcti_tbs == NULL) { in tcti_tbs_receive()
149 tbs_rc = Tbsip_Submit_Command (tcti_tbs->hContext, in tcti_tbs_receive()
152 tcti_tbs->commandBuffer, in tcti_tbs_receive()
153 tcti_tbs->commandSize, in tcti_tbs_receive()
190 TSS2_TCTI_TBS_CONTEXT *tcti_tbs = tcti_tbs_context_cast (tctiContext); in tcti_tbs_finalize() local
191 TSS2_TCTI_COMMON_CONTEXT *tcti_common = tcti_tbs_down_cast (tcti_tbs); in tcti_tbs_finalize()
194 if (tcti_tbs == NULL) { in tcti_tbs_finalize()
198 if (tcti_tbs->commandBuffer!= NULL) { in tcti_tbs_finalize()
199 free (tcti_tbs->commandBuffer); in tcti_tbs_finalize()
200 tcti_tbs->commandBuffer = NULL; in tcti_tbs_finalize()
203 tbs_rc = Tbsip_Context_Close (tcti_tbs->hContext); in tcti_tbs_finalize()
217 TSS2_TCTI_TBS_CONTEXT *tcti_tbs = tcti_tbs_context_cast (tctiContext); in tcti_tbs_cancel() local
219 tbs_rc = Tbsip_Cancel_Commands (tcti_tbs->hContext); in tcti_tbs_cancel()
260 TSS2_TCTI_TBS_CONTEXT *tcti_tbs; in Tss2_Tcti_Tbs_Init() local
284 tcti_tbs = tcti_tbs_context_cast (tctiContext); in Tss2_Tcti_Tbs_Init()
285 tcti_common = tcti_tbs_down_cast (tcti_tbs); in Tss2_Tcti_Tbs_Init()
294 tbs_rc = Tbsi_Context_Create ((PCTBS_CONTEXT_PARAMS)&params, &(tcti_tbs->hContext)); in Tss2_Tcti_Tbs_Init()
303 Tbsip_Context_Close (tcti_tbs->hContext); in Tss2_Tcti_Tbs_Init()
308 Tbsip_Context_Close (tcti_tbs->hContext); in Tss2_Tcti_Tbs_Init()
312 tcti_tbs->commandBuffer = malloc (sizeof (BYTE) * TPM2_MAX_COMMAND_SIZE); in Tss2_Tcti_Tbs_Init()
313 if (tcti_tbs->commandBuffer == NULL) { in Tss2_Tcti_Tbs_Init()
315 Tbsip_Context_Close (tcti_tbs->hContext); in Tss2_Tcti_Tbs_Init()