Lines Matching refs:p_device_mgmt_info
214 phHciNfc_DevMgmt_Info_t *p_device_mgmt_info=NULL; in phHciNfc_DevMgmt_Init_Resources() local
222 if(( NULL == psHciContext->p_device_mgmt_info ) && in phHciNfc_DevMgmt_Init_Resources()
223 (phHciNfc_Allocate_Resource((void **)(&p_device_mgmt_info), in phHciNfc_DevMgmt_Init_Resources()
226 psHciContext->p_device_mgmt_info = p_device_mgmt_info; in phHciNfc_DevMgmt_Init_Resources()
227 p_device_mgmt_info->current_seq = DEV_MGMT_PIPE_OPEN; in phHciNfc_DevMgmt_Init_Resources()
228 p_device_mgmt_info->next_seq = DEV_MGMT_PIPE_OPEN; in phHciNfc_DevMgmt_Init_Resources()
229 p_device_mgmt_info->p_pipe_info = NULL; in phHciNfc_DevMgmt_Init_Resources()
250 && ( NULL != psHciContext->p_device_mgmt_info ) in phHciNfc_DevMgmt_Get_PipeID()
255 psHciContext->p_device_mgmt_info)->p_pipe_info ; in phHciNfc_DevMgmt_Get_PipeID()
284 && ( NULL != psHciContext->p_device_mgmt_info ) in phHciNfc_DevMgmt_Get_Test_Result()
287 phHciNfc_DevMgmt_Info_t *p_device_mgmt_info=NULL; in phHciNfc_DevMgmt_Get_Test_Result() local
288 p_device_mgmt_info = (phHciNfc_DevMgmt_Info_t *) in phHciNfc_DevMgmt_Get_Test_Result()
289 psHciContext->p_device_mgmt_info ; in phHciNfc_DevMgmt_Get_Test_Result()
290 p_test_result->buffer = p_device_mgmt_info->test_result.buffer; in phHciNfc_DevMgmt_Get_Test_Result()
291 p_test_result->length = p_device_mgmt_info->test_result.length; in phHciNfc_DevMgmt_Get_Test_Result()
312 && ( NULL != psHciContext->p_device_mgmt_info ) in phHciNfc_DevMgmt_Set_Test_Result()
315 phHciNfc_DevMgmt_Info_t *p_device_mgmt_info=NULL; in phHciNfc_DevMgmt_Set_Test_Result() local
316 p_device_mgmt_info = (phHciNfc_DevMgmt_Info_t *) in phHciNfc_DevMgmt_Set_Test_Result()
317 psHciContext->p_device_mgmt_info ; in phHciNfc_DevMgmt_Set_Test_Result()
318 p_device_mgmt_info->test_status = test_status; in phHciNfc_DevMgmt_Set_Test_Result()
344 else if(NULL == psHciContext->p_device_mgmt_info) in phHciNfc_DevMgmt_Update_PipeInfo()
350 phHciNfc_DevMgmt_Info_t *p_device_mgmt_info=NULL; in phHciNfc_DevMgmt_Update_PipeInfo() local
351 p_device_mgmt_info = (phHciNfc_DevMgmt_Info_t *) in phHciNfc_DevMgmt_Update_PipeInfo()
352 psHciContext->p_device_mgmt_info ; in phHciNfc_DevMgmt_Update_PipeInfo()
355 p_device_mgmt_info->p_pipe_info = pPipeInfo; in phHciNfc_DevMgmt_Update_PipeInfo()
389 else if( NULL == psHciContext->p_device_mgmt_info ) in phHciNfc_DevMgmt_Configure()
396 psHciContext->p_device_mgmt_info)->p_pipe_info ; in phHciNfc_DevMgmt_Configure()
438 else if( NULL == psHciContext->p_device_mgmt_info ) in phHciNfc_DevMgmt_Get_Info()
445 psHciContext->p_device_mgmt_info)->p_pipe_info ; in phHciNfc_DevMgmt_Get_Info()
455 psHciContext->p_device_mgmt_info)->p_val = p_val; in phHciNfc_DevMgmt_Get_Info()
486 phHciNfc_DevMgmt_Info_t *p_device_mgmt_info=NULL; in phHciNfc_DevMgmt_Initialise() local
495 else if (NULL == psHciContext->p_device_mgmt_info) in phHciNfc_DevMgmt_Initialise()
502 p_device_mgmt_info = (phHciNfc_DevMgmt_Info_t *) in phHciNfc_DevMgmt_Initialise()
503 psHciContext->p_device_mgmt_info ; in phHciNfc_DevMgmt_Initialise()
504 p_pipe_info = p_device_mgmt_info->p_pipe_info; in phHciNfc_DevMgmt_Initialise()
513 switch(p_device_mgmt_info->current_seq ) in phHciNfc_DevMgmt_Initialise()
522 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
537 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
540 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
553 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
566 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
569 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
586 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
591 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
608 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
622 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
625 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
638 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
650 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
660 if (0 != p_device_mgmt_info->eeprom_crc) in phHciNfc_DevMgmt_Initialise()
674 p_device_mgmt_info->next_seq = DEV_MGMT_ANAIRQ_CONF; in phHciNfc_DevMgmt_Initialise()
676 p_device_mgmt_info->next_seq = DEV_MGMT_CLK_REQ; in phHciNfc_DevMgmt_Initialise()
692 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
706 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
721 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
735 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
747 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
763 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
779 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
795 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
811 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
827 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
843 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
856 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
859 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
873 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
888 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
891 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
908 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
922 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
925 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
940 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
953 p_device_mgmt_info->next_seq = in phHciNfc_DevMgmt_Initialise()
990 phHciNfc_DevMgmt_Info_t *p_device_mgmt_info=NULL; in phHciNfc_DevMgmt_Release() local
998 if( NULL != psHciContext->p_device_mgmt_info ) in phHciNfc_DevMgmt_Release()
1000 p_device_mgmt_info = (phHciNfc_DevMgmt_Info_t *) in phHciNfc_DevMgmt_Release()
1001 psHciContext->p_device_mgmt_info ; in phHciNfc_DevMgmt_Release()
1002 switch(p_device_mgmt_info->current_seq) in phHciNfc_DevMgmt_Release()
1008 p_pipe_info = p_device_mgmt_info->p_pipe_info; in phHciNfc_DevMgmt_Release()
1017 p_device_mgmt_info->next_seq = DEV_MGMT_PIPE_OPEN; in phHciNfc_DevMgmt_Release()
1025 p_pipe_info = p_device_mgmt_info->p_pipe_info; in phHciNfc_DevMgmt_Release()
1031 p_device_mgmt_info->next_seq = DEV_MGMT_PIPE_OPEN; in phHciNfc_DevMgmt_Release()
1058 phHciNfc_DevMgmt_Info_t *p_device_mgmt_info=NULL; in phHciNfc_DevMgmt_Update_Sequence() local
1063 else if ( NULL == psHciContext->p_device_mgmt_info ) in phHciNfc_DevMgmt_Update_Sequence()
1070 p_device_mgmt_info = (phHciNfc_DevMgmt_Info_t *) in phHciNfc_DevMgmt_Update_Sequence()
1071 psHciContext->p_device_mgmt_info ; in phHciNfc_DevMgmt_Update_Sequence()
1077 p_device_mgmt_info->current_seq = DEV_MGMT_PIPE_OPEN; in phHciNfc_DevMgmt_Update_Sequence()
1078 p_device_mgmt_info->next_seq = DEV_MGMT_PIPE_OPEN ; in phHciNfc_DevMgmt_Update_Sequence()
1083 p_device_mgmt_info->current_seq = p_device_mgmt_info->next_seq; in phHciNfc_DevMgmt_Update_Sequence()
1089 p_device_mgmt_info->current_seq = DEV_MGMT_EVT_AUTONOMOUS; in phHciNfc_DevMgmt_Update_Sequence()
1090 p_device_mgmt_info->next_seq = DEV_MGMT_EVT_AUTONOMOUS ; in phHciNfc_DevMgmt_Update_Sequence()
1131 else if( NULL == psHciContext->p_device_mgmt_info ) in phHciNfc_DevMgmt_Test()
1137 phHciNfc_DevMgmt_Info_t *p_device_mgmt_info = (phHciNfc_DevMgmt_Info_t *) in phHciNfc_DevMgmt_Test() local
1138 psHciContext->p_device_mgmt_info ; in phHciNfc_DevMgmt_Test()
1140 psHciContext->p_device_mgmt_info)->p_pipe_info ; in phHciNfc_DevMgmt_Test()
1156 p_device_mgmt_info->test_result.buffer = NULL; in phHciNfc_DevMgmt_Test()
1157 p_device_mgmt_info->test_result.length = 0; in phHciNfc_DevMgmt_Test()
1203 phHciNfc_DevMgmt_Info_t *p_device_mgmt_info=NULL; in phHciNfc_Recv_DevMgmt_Response() local
1211 else if( NULL == psHciContext->p_device_mgmt_info ) in phHciNfc_Recv_DevMgmt_Response()
1217 p_device_mgmt_info = (phHciNfc_DevMgmt_Info_t *) in phHciNfc_Recv_DevMgmt_Response()
1218 psHciContext->p_device_mgmt_info ; in phHciNfc_Recv_DevMgmt_Response()
1219 prev_cmd = p_device_mgmt_info->p_pipe_info->prev_msg ; in phHciNfc_Recv_DevMgmt_Response()
1226 p_device_mgmt_info->p_pipe_info->reg_index, in phHciNfc_Recv_DevMgmt_Response()
1241 phOsalNfc_FreeMemory(p_device_mgmt_info->p_pipe_info); in phHciNfc_Recv_DevMgmt_Response()
1242 p_device_mgmt_info->p_pipe_info = NULL; in phHciNfc_Recv_DevMgmt_Response()
1250 if( NULL != p_device_mgmt_info->p_val ) in phHciNfc_Recv_DevMgmt_Response()
1252 *p_device_mgmt_info->p_val = (uint8_t)( length > HCP_HEADER_LEN ) ? in phHciNfc_Recv_DevMgmt_Response()
1254 p_device_mgmt_info->p_val = NULL; in phHciNfc_Recv_DevMgmt_Response()
1264 p_device_mgmt_info->test_status = (uint8_t) ( length > HCP_HEADER_LEN ) ? in phHciNfc_Recv_DevMgmt_Response()
1266 p_device_mgmt_info->test_result.buffer = (uint8_t)( length > HCP_HEADER_LEN ) ? in phHciNfc_Recv_DevMgmt_Response()
1268 p_device_mgmt_info->test_result.length = ( length - HCP_HEADER_LEN ); in phHciNfc_Recv_DevMgmt_Response()
1280 if( NULL != p_device_mgmt_info->p_pipe_info) in phHciNfc_Recv_DevMgmt_Response()
1282 p_device_mgmt_info->p_pipe_info->prev_status = NFCSTATUS_SUCCESS; in phHciNfc_Recv_DevMgmt_Response()
1284 p_device_mgmt_info->current_seq = p_device_mgmt_info->next_seq; in phHciNfc_Recv_DevMgmt_Response()
1313 phHciNfc_DevMgmt_Info_t *p_device_mgmt_info=NULL; in phHciNfc_Recv_DevMgmt_Event() local
1324 else if( NULL == psHciContext->p_device_mgmt_info ) in phHciNfc_Recv_DevMgmt_Event()
1330 p_device_mgmt_info = (phHciNfc_DevMgmt_Info_t *) in phHciNfc_Recv_DevMgmt_Event()
1331 psHciContext->p_device_mgmt_info ; in phHciNfc_Recv_DevMgmt_Event()
1351 p_device_mgmt_info->pmuvcc_status = (uint8_t) ( length > HCP_HEADER_LEN ) ? in phHciNfc_Recv_DevMgmt_Event()
1358 p_device_mgmt_info->rf_status = (uint8_t) ( length > HCP_HEADER_LEN ) ? in phHciNfc_Recv_DevMgmt_Event()
1362 (p_device_mgmt_info->rf_status & 0x1FU))? in phHciNfc_Recv_DevMgmt_Event()
1365 event_info.eventType = (TRUE == p_device_mgmt_info->rf_status)? in phHciNfc_Recv_DevMgmt_Event()
1378 p_device_mgmt_info->overheat_status = (uint8_t)( length > HCP_HEADER_LEN ) ? in phHciNfc_Recv_DevMgmt_Event()
1382 p_device_mgmt_info->overheat_status; in phHciNfc_Recv_DevMgmt_Event()
1399 if( NULL != p_device_mgmt_info->p_pipe_info) in phHciNfc_Recv_DevMgmt_Event()
1401 p_device_mgmt_info->p_pipe_info->prev_status = in phHciNfc_Recv_DevMgmt_Event()
1404 p_device_mgmt_info->current_seq = in phHciNfc_Recv_DevMgmt_Event()
1405 p_device_mgmt_info->next_seq; in phHciNfc_Recv_DevMgmt_Event()
1424 phHciNfc_DevMgmt_Info_t *p_device_mgmt_info=NULL; in phHciNfc_DevMgmt_InfoUpdate() local
1436 else if ( NULL == psHciContext->p_device_mgmt_info ) in phHciNfc_DevMgmt_InfoUpdate()
1442 p_device_mgmt_info = (phHciNfc_DevMgmt_Info_t *) in phHciNfc_DevMgmt_InfoUpdate()
1443 psHciContext->p_device_mgmt_info ; in phHciNfc_DevMgmt_InfoUpdate()
1449 p_device_mgmt_info->eeprom_crc = reg_value[i]; in phHciNfc_DevMgmt_InfoUpdate()