Lines Matching refs:NULL
85 static const char *s_responsePrefix = NULL;
86 static const char *s_smsPDU = NULL;
87 static ATResponse *sp_response = NULL;
89 static void (*s_onTimeout)(void) = NULL;
90 static void (*s_onReaderClosed)(void) = NULL;
102 gettimeofday(&tv, (struct timezone *) NULL); in setTimespecRelative()
236 if (s_unsolHandler != NULL) { in handleUnsolicited()
237 s_unsolHandler(line, NULL); in handleUnsolicited()
245 if (sp_response == NULL) { in processLine()
254 } else if (s_smsPDU != NULL && 0 == strcmp(line, "> ")) { in processLine()
258 s_smsPDU = NULL; in processLine()
264 if (sp_response->p_intermediates == NULL in processLine()
275 if (sp_response->p_intermediates == NULL in processLine()
318 return *cur == '\0' ? NULL : cur; in findNextEOL()
336 char *p_read = NULL; in readline()
337 char *p_eol = NULL; in readline()
358 if (p_eol == NULL) { in readline()
372 while (p_eol == NULL) { in readline()
405 return NULL; in readline()
423 if (s_onReaderClosed != NULL && s_readerClosed == 0) { in onReaderClosed()
445 if (line == NULL) { in readerLoop()
459 if (line2 == NULL) { in readerLoop()
463 if (s_unsolHandler != NULL) { in readerLoop()
482 return NULL; in readerLoop()
573 if (sp_response != NULL) { in clearPendingCommand()
577 sp_response = NULL; in clearPendingCommand()
578 s_responsePrefix = NULL; in clearPendingCommand()
579 s_smsPDU = NULL; in clearPendingCommand()
597 s_responsePrefix = NULL; in at_open()
598 s_smsPDU = NULL; in at_open()
599 sp_response = NULL; in at_open()
677 if (p_response == NULL) return; in at_response_free()
681 while (p_line != NULL) { in at_response_free()
704 p_response->p_intermediates = NULL; in reverseIntermediates()
706 while (pcur != NULL) { in reverseIntermediates()
730 if(sp_response != NULL) { in at_send_command_full_nolock()
752 while (sp_response->finalResponse == NULL && s_readerClosed == 0) { in at_send_command_full_nolock()
769 if (pp_outResponse == NULL) { in at_send_command_full_nolock()
777 sp_response = NULL; in at_send_command_full_nolock()
815 if (err == AT_ERROR_TIMEOUT && s_onTimeout != NULL) { in at_send_command_full()
836 err = at_send_command_full (command, NO_RESULT, NULL, in at_send_command()
837 NULL, 0, pp_outResponse); in at_send_command()
850 NULL, 0, pp_outResponse); in at_send_command_singleline()
852 if (err == 0 && pp_outResponse != NULL in at_send_command_singleline()
854 && (*pp_outResponse)->p_intermediates == NULL in at_send_command_singleline()
858 *pp_outResponse = NULL; in at_send_command_singleline()
871 err = at_send_command_full (command, NUMERIC, NULL, in at_send_command_numeric()
872 NULL, 0, pp_outResponse); in at_send_command_numeric()
874 if (err == 0 && pp_outResponse != NULL in at_send_command_numeric()
876 && (*pp_outResponse)->p_intermediates == NULL in at_send_command_numeric()
880 *pp_outResponse = NULL; in at_send_command_numeric()
898 if (err == 0 && pp_outResponse != NULL in at_send_command_sms()
900 && (*pp_outResponse)->p_intermediates == NULL in at_send_command_sms()
904 *pp_outResponse = NULL; in at_send_command_sms()
919 NULL, 0, pp_outResponse); in at_send_command_multiline()
964 NULL, NULL, HANDSHAKE_TIMEOUT_MSEC, NULL); in at_handshake()
997 if (p_response->finalResponse == NULL in at_get_cme_error()