• Home
  • Raw
  • Download

Lines Matching refs:OvrHal

65 static void  phFriNfc_OvrHal_SetComplInfo(phFriNfc_OvrHal_t *OvrHal,
69 NFCSTATUS phFriNfc_OvrHal_Transceive(phFriNfc_OvrHal_t *OvrHal, in phFriNfc_OvrHal_Transceive() argument
87 if ((NULL == OvrHal) || (NULL == CompletionInfo) || (NULL == RemoteDevInfo) in phFriNfc_OvrHal_Transceive()
99 OvrHal->TranceiveInfo.cmd = Cmd; in phFriNfc_OvrHal_Transceive()
105 OvrHal->TranceiveInfo.addr = SendBuf[i++]; in phFriNfc_OvrHal_Transceive()
115 OvrHal->TranceiveInfo.sSendData.buffer = mif_send_buf; in phFriNfc_OvrHal_Transceive()
153 OvrHal->TranceiveInfo.sSendData.buffer = &SendBuf[i++]; in phFriNfc_OvrHal_Transceive()
155 OvrHal->TranceiveInfo.sSendData.length = length; in phFriNfc_OvrHal_Transceive()
159 OvrHal->TranceiveInfo.sSendData.buffer = &SendBuf[i++]; in phFriNfc_OvrHal_Transceive()
160 OvrHal->TranceiveInfo.sSendData.length = length; in phFriNfc_OvrHal_Transceive()
166 OvrHal->TranceiveInfo.sRecvData.buffer = RecvBuf; in phFriNfc_OvrHal_Transceive()
167 OvrHal->TranceiveInfo.sRecvData.length = *RecvLength; in phFriNfc_OvrHal_Transceive()
168 OvrHal->pndef_recv_length = RecvLength; in phFriNfc_OvrHal_Transceive()
169 phFriNfc_OvrHal_SetComplInfo(OvrHal,CompletionInfo, PH_FRINFC_OVRHAL_TRX); in phFriNfc_OvrHal_Transceive()
172 status = phHal4Nfc_Transceive (OvrHal->psHwReference, in phFriNfc_OvrHal_Transceive()
173 &OvrHal->TranceiveInfo, RemoteDevInfo, in phFriNfc_OvrHal_Transceive()
174 phFriNfc_OvrHal_CB_Transceive, (void *)OvrHal); in phFriNfc_OvrHal_Transceive()
182 NFCSTATUS phFriNfc_OvrHal_Receive(phFriNfc_OvrHal_t *OvrHal, in phFriNfc_OvrHal_Receive() argument
191 if( (NULL==OvrHal) || (NULL==CompletionInfo) || (NULL==RemoteDevInfo) in phFriNfc_OvrHal_Receive()
199 OvrHal->TransactInfo.remotePCDType = RemoteDevInfo->RemDevType; in phFriNfc_OvrHal_Receive()
201 OvrHal->sReceiveData.buffer = RecvBuf; in phFriNfc_OvrHal_Receive()
202 OvrHal->sReceiveData.length = *RecvLength; in phFriNfc_OvrHal_Receive()
204 OvrHal->pndef_recv_length = RecvLength; in phFriNfc_OvrHal_Receive()
207 phFriNfc_OvrHal_SetComplInfo(OvrHal, CompletionInfo, PH_FRINFC_OVRHAL_RCV); in phFriNfc_OvrHal_Receive()
210 status = phHal4Nfc_Receive( OvrHal->psHwReference, in phFriNfc_OvrHal_Receive()
211 &OvrHal->TransactInfo, in phFriNfc_OvrHal_Receive()
213 (void *)OvrHal); in phFriNfc_OvrHal_Receive()
218 NFCSTATUS phFriNfc_OvrHal_Send(phFriNfc_OvrHal_t *OvrHal, in phFriNfc_OvrHal_Send() argument
227 if( (NULL==OvrHal) || (NULL==CompletionInfo) || (NULL==RemoteDevInfo) || (NULL==SendBuf) ) in phFriNfc_OvrHal_Send()
234 OvrHal->TransactInfo.remotePCDType = RemoteDevInfo->RemDevType; in phFriNfc_OvrHal_Send()
236 OvrHal->sSendData.buffer = SendBuf; in phFriNfc_OvrHal_Send()
237 OvrHal->sSendData.length = SendLength; in phFriNfc_OvrHal_Send()
240 phFriNfc_OvrHal_SetComplInfo(OvrHal, CompletionInfo, PH_FRINFC_OVRHAL_SND); in phFriNfc_OvrHal_Send()
243 status = phHal4Nfc_Send( OvrHal->psHwReference, in phFriNfc_OvrHal_Send()
244 &OvrHal->TransactInfo, in phFriNfc_OvrHal_Send()
245 OvrHal->sSendData, in phFriNfc_OvrHal_Send()
247 (void *)OvrHal); in phFriNfc_OvrHal_Send()
255 NFCSTATUS phFriNfc_OvrHal_Reconnect(phFriNfc_OvrHal_t *OvrHal, in phFriNfc_OvrHal_Reconnect() argument
262 if((NULL == OvrHal) || (NULL == CompletionInfo) || (NULL == RemoteDevInfo)) in phFriNfc_OvrHal_Reconnect()
268 phFriNfc_OvrHal_SetComplInfo(OvrHal, CompletionInfo, PH_FRINFC_OVRHAL_DIS); in phFriNfc_OvrHal_Reconnect()
271 OvrHal->psHwReference, in phFriNfc_OvrHal_Reconnect()
274 (void *)OvrHal); in phFriNfc_OvrHal_Reconnect()
282 NFCSTATUS phFriNfc_OvrHal_Connect(phFriNfc_OvrHal_t *OvrHal, in phFriNfc_OvrHal_Connect() argument
290 if((NULL == OvrHal) || (NULL == CompletionInfo) || (NULL == RemoteDevInfo) || in phFriNfc_OvrHal_Connect()
297 phFriNfc_OvrHal_SetComplInfo(OvrHal, CompletionInfo, PH_FRINFC_OVRHAL_CON); in phFriNfc_OvrHal_Connect()
300 OvrHal->psHwReference, in phFriNfc_OvrHal_Connect()
303 (void *)OvrHal in phFriNfc_OvrHal_Connect()
319 phFriNfc_OvrHal_t *OvrHal = (phFriNfc_OvrHal_t *)context; in phFriNfc_OvrHal_CB_Transceive() local
321 if (NULL != OvrHal) in phFriNfc_OvrHal_CB_Transceive()
323 …if(NULL != pRecvdata && OvrHal->TranceiveInfo.sRecvData.buffer != NULL && pRecvdata->buffer != NUL… in phFriNfc_OvrHal_CB_Transceive()
326 if (OvrHal->TranceiveInfo.sRecvData.buffer != pRecvdata->buffer) in phFriNfc_OvrHal_CB_Transceive()
328 … memcpy(OvrHal->TranceiveInfo.sRecvData.buffer, pRecvdata->buffer, pRecvdata->length); in phFriNfc_OvrHal_CB_Transceive()
330 if (OvrHal->pndef_recv_length != NULL) in phFriNfc_OvrHal_CB_Transceive()
332 *OvrHal->pndef_recv_length = (uint16_t) pRecvdata->length; in phFriNfc_OvrHal_CB_Transceive()
341 if (NULL != OvrHal->TemporaryCompletionInfo.CompletionRoutine) in phFriNfc_OvrHal_CB_Transceive()
343 OvrHal->TemporaryCompletionInfo.CompletionRoutine( in phFriNfc_OvrHal_CB_Transceive()
344 OvrHal->TemporaryCompletionInfo.Context, in phFriNfc_OvrHal_CB_Transceive()
353 phFriNfc_OvrHal_t *OvrHal = (phFriNfc_OvrHal_t *)context; in phFriNfc_OvrHal_CB_Send() local
355 if (NULL != OvrHal) in phFriNfc_OvrHal_CB_Send()
357 if (NULL != OvrHal->TemporarySndCompletionInfo.CompletionRoutine) in phFriNfc_OvrHal_CB_Send()
359 OvrHal->TemporarySndCompletionInfo.CompletionRoutine( in phFriNfc_OvrHal_CB_Send()
360 OvrHal->TemporarySndCompletionInfo.Context, in phFriNfc_OvrHal_CB_Send()
370 phFriNfc_OvrHal_t *OvrHal = (phFriNfc_OvrHal_t *)context; in phFriNfc_OvrHal_CB_Receive() local
372 if (NULL != OvrHal) in phFriNfc_OvrHal_CB_Receive()
375 if(NULL != pDataInfo && OvrHal->sReceiveData.buffer != NULL && pDataInfo->buffer != NULL) in phFriNfc_OvrHal_CB_Receive()
377 memcpy(OvrHal->sReceiveData.buffer, pDataInfo->buffer, pDataInfo->length); in phFriNfc_OvrHal_CB_Receive()
378 *OvrHal->pndef_recv_length = (uint16_t) pDataInfo->length; in phFriNfc_OvrHal_CB_Receive()
381 if (NULL != OvrHal->TemporaryRcvCompletionInfo.CompletionRoutine) in phFriNfc_OvrHal_CB_Receive()
383 OvrHal->TemporaryRcvCompletionInfo.CompletionRoutine( in phFriNfc_OvrHal_CB_Receive()
384 OvrHal->TemporaryRcvCompletionInfo.Context, in phFriNfc_OvrHal_CB_Receive()
396 phFriNfc_OvrHal_t *OvrHal = (phFriNfc_OvrHal_t *)context; in phFriNfc_OvrHal_CB_ConnectDisconnect() local
398 if (NULL != OvrHal) in phFriNfc_OvrHal_CB_ConnectDisconnect()
410 OvrHal->TemporaryCompletionInfo.CompletionRoutine( in phFriNfc_OvrHal_CB_ConnectDisconnect()
411 OvrHal->TemporaryCompletionInfo.Context, status); in phFriNfc_OvrHal_CB_ConnectDisconnect()
416 static void phFriNfc_OvrHal_SetComplInfo(phFriNfc_OvrHal_t *OvrHal, in phFriNfc_OvrHal_SetComplInfo() argument
421 OvrHal->Operation = Operation; in phFriNfc_OvrHal_SetComplInfo()
426 OvrHal->TemporaryRcvCompletionInfo.CompletionRoutine = CompletionInfo->CompletionRoutine; in phFriNfc_OvrHal_SetComplInfo()
427 OvrHal->TemporaryRcvCompletionInfo.Context = CompletionInfo->Context; in phFriNfc_OvrHal_SetComplInfo()
432 OvrHal->TemporarySndCompletionInfo.CompletionRoutine = CompletionInfo->CompletionRoutine; in phFriNfc_OvrHal_SetComplInfo()
433 OvrHal->TemporarySndCompletionInfo.Context = CompletionInfo->Context; in phFriNfc_OvrHal_SetComplInfo()
438 OvrHal->TemporaryCompletionInfo.CompletionRoutine = CompletionInfo->CompletionRoutine; in phFriNfc_OvrHal_SetComplInfo()
439 OvrHal->TemporaryCompletionInfo.Context = CompletionInfo->Context; in phFriNfc_OvrHal_SetComplInfo()