Lines Matching refs:err
115 int err; in sleepMsec() local
121 err = nanosleep (&ts, &ts); in sleepMsec()
122 } while (err < 0 && errno == EINTR); in sleepMsec()
725 int err = 0; in at_send_command_full_nolock() local
731 err = AT_ERROR_COMMAND_PENDING; in at_send_command_full_nolock()
735 err = writeline (command); in at_send_command_full_nolock()
737 if (err < 0) { in at_send_command_full_nolock()
755 err = pthread_cond_timeout_np(&s_commandcond, &s_commandmutex, timeoutMsec); in at_send_command_full_nolock()
757 err = pthread_cond_timedwait(&s_commandcond, &s_commandmutex, &ts); in at_send_command_full_nolock()
760 err = pthread_cond_wait(&s_commandcond, &s_commandmutex); in at_send_command_full_nolock()
763 if (err == ETIMEDOUT) { in at_send_command_full_nolock()
764 err = AT_ERROR_TIMEOUT; in at_send_command_full_nolock()
780 err = AT_ERROR_CHANNEL_CLOSED; in at_send_command_full_nolock()
784 err = 0; in at_send_command_full_nolock()
788 return err; in at_send_command_full_nolock()
800 int err; in at_send_command_full() local
809 err = at_send_command_full_nolock(command, type, in at_send_command_full()
815 if (err == AT_ERROR_TIMEOUT && s_onTimeout != NULL) { in at_send_command_full()
819 return err; in at_send_command_full()
834 int err; in at_send_command() local
836 err = at_send_command_full (command, NO_RESULT, NULL, in at_send_command()
839 return err; in at_send_command()
847 int err; in at_send_command_singleline() local
849 err = at_send_command_full (command, SINGLELINE, responsePrefix, in at_send_command_singleline()
852 if (err == 0 && pp_outResponse != NULL in at_send_command_singleline()
862 return err; in at_send_command_singleline()
869 int err; in at_send_command_numeric() local
871 err = at_send_command_full (command, NUMERIC, NULL, in at_send_command_numeric()
874 if (err == 0 && pp_outResponse != NULL in at_send_command_numeric()
884 return err; in at_send_command_numeric()
893 int err; in at_send_command_sms() local
895 err = at_send_command_full (command, SINGLELINE, responsePrefix, in at_send_command_sms()
898 if (err == 0 && pp_outResponse != NULL in at_send_command_sms()
908 return err; in at_send_command_sms()
916 int err; in at_send_command_multiline() local
918 err = at_send_command_full (command, MULTILINE, responsePrefix, in at_send_command_multiline()
921 return err; in at_send_command_multiline()
952 int err = 0; in at_handshake() local
963 err = at_send_command_full_nolock ("ATE0Q0V1", NO_RESULT, in at_handshake()
966 if (err == 0) { in at_handshake()
971 if (err == 0) { in at_handshake()
980 return err; in at_handshake()
990 int err; in at_get_cme_error() local
1004 err = at_tok_start(&p_cur); in at_get_cme_error()
1006 if (err < 0) { in at_get_cme_error()
1010 err = at_tok_nextint(&p_cur, &ret); in at_get_cme_error()
1012 if (err < 0) { in at_get_cme_error()