Lines Matching refs:result

114    NFCSTATUS      result;  in phLibNfc_Mgt_SetLlcp_ConfigParams()  local
120 result = static_CheckState(); in phLibNfc_Mgt_SetLlcp_ConfigParams()
121 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Mgt_SetLlcp_ConfigParams()
123 return result; in phLibNfc_Mgt_SetLlcp_ConfigParams()
144 result = phFriNfc_Llcp_EncodeLinkParams( &sGeneralBytesBuffer, in phLibNfc_Mgt_SetLlcp_ConfigParams()
147 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Mgt_SetLlcp_ConfigParams()
149 return PHNFCSTATUS(result); in phLibNfc_Mgt_SetLlcp_ConfigParams()
154 result = phLibNfc_Mgt_SetP2P_ConfigParams(&sNfcIPCfg, pConfigRspCb, pContext); in phLibNfc_Mgt_SetLlcp_ConfigParams()
155 if (result != NFCSTATUS_PENDING) in phLibNfc_Mgt_SetLlcp_ConfigParams()
157 return PHNFCSTATUS(result); in phLibNfc_Mgt_SetLlcp_ConfigParams()
161 result = phFriNfc_Llcp_Reset( &gpphLibContext->llcp_cntx.sLlcpContext, in phLibNfc_Mgt_SetLlcp_ConfigParams()
170 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Mgt_SetLlcp_ConfigParams()
172 return PHNFCSTATUS(result); in phLibNfc_Mgt_SetLlcp_ConfigParams()
176 result = phFriNfc_LlcpTransport_Reset( &gpphLibContext->llcp_cntx.sLlcpTransportContext, in phLibNfc_Mgt_SetLlcp_ConfigParams()
178 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Mgt_SetLlcp_ConfigParams()
180 return PHNFCSTATUS(result); in phLibNfc_Mgt_SetLlcp_ConfigParams()
192 NFCSTATUS result; in phLibNfc_Llcp_CheckLlcp() local
196 result = static_CheckState(); in phLibNfc_Llcp_CheckLlcp()
197 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_CheckLlcp()
199 return result; in phLibNfc_Llcp_CheckLlcp()
240 result = phLibNfc_UpdateNextState(gpphLibContext, eLibNfcHalStateTransaction); in phLibNfc_Llcp_CheckLlcp()
241 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_CheckLlcp()
243 return result; in phLibNfc_Llcp_CheckLlcp()
247 result = phFriNfc_Llcp_ChkLlcp( &gpphLibContext->llcp_cntx.sLlcpContext, in phLibNfc_Llcp_CheckLlcp()
252 result = PHNFCSTATUS(result); in phLibNfc_Llcp_CheckLlcp()
253 if (result == NFCSTATUS_PENDING) in phLibNfc_Llcp_CheckLlcp()
257 else if (result == NFCSTATUS_SUCCESS) in phLibNfc_Llcp_CheckLlcp()
261 else if (result != NFCSTATUS_FAILED) in phLibNfc_Llcp_CheckLlcp()
263 result = NFCSTATUS_TARGET_LOST; in phLibNfc_Llcp_CheckLlcp()
266 return result; in phLibNfc_Llcp_CheckLlcp()
365 NFCSTATUS result; in phLibNfc_Llcp_Activate() local
368 result = static_CheckState(); in phLibNfc_Llcp_Activate()
369 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_Activate()
371 return result; in phLibNfc_Llcp_Activate()
381 result = static_CheckDevice(hRemoteDevice); in phLibNfc_Llcp_Activate()
382 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_Activate()
384 return result; in phLibNfc_Llcp_Activate()
388 result = phFriNfc_Llcp_Activate(&gpphLibContext->llcp_cntx.sLlcpContext); in phLibNfc_Llcp_Activate()
390 return PHNFCSTATUS(result); in phLibNfc_Llcp_Activate()
395 NFCSTATUS result; in phLibNfc_Llcp_Deactivate() local
398 result = static_CheckState(); in phLibNfc_Llcp_Deactivate()
399 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_Deactivate()
401 return result; in phLibNfc_Llcp_Deactivate()
411 result = static_CheckDevice(hRemoteDevice); in phLibNfc_Llcp_Deactivate()
412 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_Deactivate()
414 return result; in phLibNfc_Llcp_Deactivate()
418 result = phFriNfc_Llcp_Deactivate(&gpphLibContext->llcp_cntx.sLlcpContext); in phLibNfc_Llcp_Deactivate()
420 return PHNFCSTATUS(result); in phLibNfc_Llcp_Deactivate()
427 NFCSTATUS result; in phLibNfc_Llcp_GetLocalInfo() local
430 result = static_CheckState(); in phLibNfc_Llcp_GetLocalInfo()
431 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_GetLocalInfo()
433 return result; in phLibNfc_Llcp_GetLocalInfo()
443 result = phFriNfc_Llcp_GetLocalInfo(&gpphLibContext->llcp_cntx.sLlcpContext, pConfigInfo); in phLibNfc_Llcp_GetLocalInfo()
445 return PHNFCSTATUS(result); in phLibNfc_Llcp_GetLocalInfo()
452 NFCSTATUS result; in phLibNfc_Llcp_GetRemoteInfo() local
455 result = static_CheckState(); in phLibNfc_Llcp_GetRemoteInfo()
456 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_GetRemoteInfo()
458 return result; in phLibNfc_Llcp_GetRemoteInfo()
469 result = static_CheckDevice(hRemoteDevice); in phLibNfc_Llcp_GetRemoteInfo()
470 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_GetRemoteInfo()
472 return result; in phLibNfc_Llcp_GetRemoteInfo()
476 result = phFriNfc_Llcp_GetRemoteInfo(&gpphLibContext->llcp_cntx.sLlcpContext, pConfigInfo); in phLibNfc_Llcp_GetRemoteInfo()
478 return PHNFCSTATUS(result); in phLibNfc_Llcp_GetRemoteInfo()
489 NFCSTATUS result; in phLibNfc_Llcp_DiscoverServices() local
493 result = static_CheckState(); in phLibNfc_Llcp_DiscoverServices()
494 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_DiscoverServices()
496 return result; in phLibNfc_Llcp_DiscoverServices()
510 result = static_CheckDevice(hRemoteDevice); in phLibNfc_Llcp_DiscoverServices()
511 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_DiscoverServices()
513 return result; in phLibNfc_Llcp_DiscoverServices()
521 result = phLibNfc_UpdateNextState(gpphLibContext, eLibNfcHalStateTransaction); in phLibNfc_Llcp_DiscoverServices()
522 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_DiscoverServices()
524 return result; in phLibNfc_Llcp_DiscoverServices()
528result = phFriNfc_LlcpTransport_DiscoverServices( &gpphLibContext->llcp_cntx.sLlcpTransportContext, in phLibNfc_Llcp_DiscoverServices()
535 result = PHNFCSTATUS(result); in phLibNfc_Llcp_DiscoverServices()
536 if ((result == NFCSTATUS_PENDING) || (result == NFCSTATUS_SUCCESS)) in phLibNfc_Llcp_DiscoverServices()
540 else if (result != NFCSTATUS_FAILED) in phLibNfc_Llcp_DiscoverServices()
542 result = NFCSTATUS_TARGET_LOST; in phLibNfc_Llcp_DiscoverServices()
545 return result; in phLibNfc_Llcp_DiscoverServices()
556 NFCSTATUS result; in phLibNfc_Llcp_Socket() local
560 result = static_CheckState(); in phLibNfc_Llcp_Socket()
561 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_Socket()
563 return result; in phLibNfc_Llcp_Socket()
575 result = phFriNfc_LlcpTransport_Socket(&gpphLibContext->llcp_cntx.sLlcpTransportContext, in phLibNfc_Llcp_Socket()
586 return PHNFCSTATUS(result); in phLibNfc_Llcp_Socket()
591 NFCSTATUS result; in phLibNfc_Llcp_Close() local
595 result = static_CheckState(); in phLibNfc_Llcp_Close()
596 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_Close()
598 return result; in phLibNfc_Llcp_Close()
609 result = phFriNfc_LlcpTransport_Close(psSocket); in phLibNfc_Llcp_Close()
611 return PHNFCSTATUS(result); in phLibNfc_Llcp_Close()
618 NFCSTATUS result; in phLibNfc_Llcp_SocketGetLocalOptions() local
622 result = static_CheckState(); in phLibNfc_Llcp_SocketGetLocalOptions()
623 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_SocketGetLocalOptions()
625 return result; in phLibNfc_Llcp_SocketGetLocalOptions()
636 result = phFriNfc_LlcpTransport_SocketGetLocalOptions(psSocket, psLocalOptions); in phLibNfc_Llcp_SocketGetLocalOptions()
638 return PHNFCSTATUS(result); in phLibNfc_Llcp_SocketGetLocalOptions()
646 NFCSTATUS result; in phLibNfc_Llcp_SocketGetRemoteOptions() local
652 result = static_CheckState(); in phLibNfc_Llcp_SocketGetRemoteOptions()
653 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_SocketGetRemoteOptions()
655 return result; in phLibNfc_Llcp_SocketGetRemoteOptions()
667 result = static_CheckDevice(hRemoteDevice); in phLibNfc_Llcp_SocketGetRemoteOptions()
668 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_SocketGetRemoteOptions()
670 return result; in phLibNfc_Llcp_SocketGetRemoteOptions()
674 result = phFriNfc_LlcpTransport_SocketGetRemoteOptions(psSocket, psRemoteOptions); in phLibNfc_Llcp_SocketGetRemoteOptions()
676 return PHNFCSTATUS(result); in phLibNfc_Llcp_SocketGetRemoteOptions()
684 NFCSTATUS result; in phLibNfc_Llcp_Bind() local
690 result = static_CheckState(); in phLibNfc_Llcp_Bind()
691 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_Bind()
693 return result; in phLibNfc_Llcp_Bind()
703 result = phFriNfc_LlcpTransport_Bind(psSocket, nSap, psServiceName); in phLibNfc_Llcp_Bind()
705 return PHNFCSTATUS(result); in phLibNfc_Llcp_Bind()
713 NFCSTATUS result; in phLibNfc_Llcp_Listen() local
719 result = static_CheckState(); in phLibNfc_Llcp_Listen()
720 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_Listen()
722 return result; in phLibNfc_Llcp_Listen()
734 result = phFriNfc_LlcpTransport_Listen( psSocket, in phLibNfc_Llcp_Listen()
738 return PHNFCSTATUS(result); in phLibNfc_Llcp_Listen()
749 NFCSTATUS result; in phLibNfc_Llcp_Accept() local
755 result = static_CheckState(); in phLibNfc_Llcp_Accept()
756 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_Accept()
758 return result; in phLibNfc_Llcp_Accept()
772 result = phFriNfc_LlcpTransport_Accept( psSocket, in phLibNfc_Llcp_Accept()
779 return PHNFCSTATUS(result); in phLibNfc_Llcp_Accept()
788 NFCSTATUS result; in phLibNfc_Llcp_Reject() local
794 result = static_CheckState(); in phLibNfc_Llcp_Reject()
795 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_Reject()
797 return result; in phLibNfc_Llcp_Reject()
809 result = static_CheckDevice(hRemoteDevice); in phLibNfc_Llcp_Reject()
810 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_Reject()
812 return result; in phLibNfc_Llcp_Reject()
816 result = phFriNfc_LlcpTransport_Reject( psSocket, in phLibNfc_Llcp_Reject()
820 return PHNFCSTATUS(result); in phLibNfc_Llcp_Reject()
830 NFCSTATUS result; in phLibNfc_Llcp_Connect() local
836 result = static_CheckState(); in phLibNfc_Llcp_Connect()
837 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_Connect()
839 return result; in phLibNfc_Llcp_Connect()
852 result = static_CheckDevice(hRemoteDevice); in phLibNfc_Llcp_Connect()
853 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_Connect()
855 return result; in phLibNfc_Llcp_Connect()
859 result = phFriNfc_LlcpTransport_Connect( psSocket, in phLibNfc_Llcp_Connect()
864 return PHNFCSTATUS(result); in phLibNfc_Llcp_Connect()
874 NFCSTATUS result; in phLibNfc_Llcp_ConnectByUri() local
880 result = static_CheckState(); in phLibNfc_Llcp_ConnectByUri()
881 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_ConnectByUri()
883 return result; in phLibNfc_Llcp_ConnectByUri()
897 result = static_CheckDevice(hRemoteDevice); in phLibNfc_Llcp_ConnectByUri()
898 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_ConnectByUri()
900 return result; in phLibNfc_Llcp_ConnectByUri()
904 result = phFriNfc_LlcpTransport_ConnectByUri( psSocket, in phLibNfc_Llcp_ConnectByUri()
909 return PHNFCSTATUS(result); in phLibNfc_Llcp_ConnectByUri()
918 NFCSTATUS result; in phLibNfc_Llcp_Disconnect() local
924 result = static_CheckState(); in phLibNfc_Llcp_Disconnect()
925 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_Disconnect()
927 return result; in phLibNfc_Llcp_Disconnect()
939 result = static_CheckDevice(hRemoteDevice); in phLibNfc_Llcp_Disconnect()
940 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_Disconnect()
942 return result; in phLibNfc_Llcp_Disconnect()
946 result = phFriNfc_LlcpTransport_Disconnect( psSocket, in phLibNfc_Llcp_Disconnect()
950 return PHNFCSTATUS(result); in phLibNfc_Llcp_Disconnect()
960 NFCSTATUS result; in phLibNfc_Llcp_Recv() local
966 result = static_CheckState(); in phLibNfc_Llcp_Recv()
967 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_Recv()
969 return result; in phLibNfc_Llcp_Recv()
982 result = static_CheckDevice(hRemoteDevice); in phLibNfc_Llcp_Recv()
983 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_Recv()
985 return result; in phLibNfc_Llcp_Recv()
989 result = phFriNfc_LlcpTransport_Recv( psSocket, in phLibNfc_Llcp_Recv()
994 return PHNFCSTATUS(result); in phLibNfc_Llcp_Recv()
1004 NFCSTATUS result; in phLibNfc_Llcp_RecvFrom() local
1010 result = static_CheckState(); in phLibNfc_Llcp_RecvFrom()
1011 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_RecvFrom()
1013 return result; in phLibNfc_Llcp_RecvFrom()
1026 result = static_CheckDevice(hRemoteDevice); in phLibNfc_Llcp_RecvFrom()
1027 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_RecvFrom()
1029 return result; in phLibNfc_Llcp_RecvFrom()
1033 result = phFriNfc_LlcpTransport_RecvFrom( psSocket, in phLibNfc_Llcp_RecvFrom()
1038 return PHNFCSTATUS(result); in phLibNfc_Llcp_RecvFrom()
1048 NFCSTATUS result; in phLibNfc_Llcp_Send() local
1054 result = static_CheckState(); in phLibNfc_Llcp_Send()
1055 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_Send()
1057 return result; in phLibNfc_Llcp_Send()
1070 result = static_CheckDevice(hRemoteDevice); in phLibNfc_Llcp_Send()
1071 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_Send()
1073 return result; in phLibNfc_Llcp_Send()
1077 result = phFriNfc_LlcpTransport_Send( psSocket, in phLibNfc_Llcp_Send()
1082 return PHNFCSTATUS(result); in phLibNfc_Llcp_Send()
1093 NFCSTATUS result; in phLibNfc_Llcp_SendTo() local
1099 result = static_CheckState(); in phLibNfc_Llcp_SendTo()
1100 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_SendTo()
1102 return result; in phLibNfc_Llcp_SendTo()
1115 result = static_CheckDevice(hRemoteDevice); in phLibNfc_Llcp_SendTo()
1116 if (result != NFCSTATUS_SUCCESS) in phLibNfc_Llcp_SendTo()
1118 return result; in phLibNfc_Llcp_SendTo()
1122 result = phFriNfc_LlcpTransport_SendTo( psSocket, in phLibNfc_Llcp_SendTo()
1128 return PHNFCSTATUS(result); in phLibNfc_Llcp_SendTo()