Home | History | Annotate | Download | only in reference-ril

Lines Matching refs:err

161     int err;
165 err = at_tok_start(&line);
166 if (err < 0) goto error;
168 err = at_tok_nextint(&line, &(p_call->index));
169 if (err < 0) goto error;
171 err = at_tok_nextbool(&line, &(p_call->isMT));
172 if (err < 0) goto error;
174 err = at_tok_nextint(&line, &state);
175 if (err < 0) goto error;
177 err = clccStateToRILState(state, &(p_call->state));
178 if (err < 0) goto error;
180 err = at_tok_nextint(&line, &mode);
181 if (err < 0) goto error;
185 err = at_tok_nextbool(&line, &(p_call->isMpty));
186 if (err < 0) goto error;
189 err = at_tok_nextstr(&line, &(p_call->number));
192 if (err < 0) return 0;
202 err = at_tok_nextint(&line, &p_call->toa);
203 if (err < 0) goto error;
254 int err;
261 err = at_send_command("AT+CFUN=0", &p_response);
262 if (err < 0 || p_response->success == 0) goto error;
265 err = at_send_command("AT+CFUN=1", &p_response);
266 if (err < 0|| p_response->success == 0) {
303 int err;
307 err = at_send_command_multiline ("AT+CGACT?", "+CGACT:", &p_response);
308 if (err != 0 || p_response->success == 0) {
342 err = at_tok_start(&line);
343 if (err < 0)
346 err = at_tok_nextint(&line, &response->cid);
347 if (err < 0)
350 err = at_tok_nextint(&line, &response->active);
351 if (err < 0)
359 err = at_send_command_multiline ("AT+CGDCONT?", "+CGDCONT:", &p_response);
360 if (err != 0 || p_response->success == 0) {
374 err = at_tok_start(&line);
375 if (err < 0)
378 err = at_tok_nextint(&line, &cid);
379 if (err < 0)
396 err = at_tok_nextstr(&line, &out);
397 if (err < 0)
403 err = at_tok_nextstr(&line, &out);
404 if (err < 0)
410 err = at_tok_nextstr(&line, &out);
411 if (err < 0)
490 int err;
495 err = at_send_command_singleline("AT+COPS?", "+COPS:", &p_response);
497 if (err < 0 || p_response->success == 0) {
503 err = at_tok_start(&line);
505 if (err < 0) {
509 err = at_tok_nextint(&line, &response);
511 if (err < 0) {
533 int err;
550 err = at_send_command_multiline ("AT+CLCC", "+CLCC:", &p_response);
552 if (err != 0 || p_response->success == 0) {
580 err = callFromCLCCLine(p_cur->line, p_calls + countValidCalls);
582 if (err != 0) {
686 int err;
694 err = at_send_command_sms(cmd, p_args->pdu, "+CMGW:", &p_response);
696 if (err != 0 || p_response->success == 0) goto error;
732 int err;
736 err = at_send_command_singleline("AT+CSQ", "+CSQ:", &p_response);
738 if (err < 0 || p_response->success == 0) {
745 err = at_tok_start(&line);
746 if (err < 0) goto error;
748 err = at_tok_nextint(&line, &(response[0]));
749 if (err < 0) goto error;
751 err = at_tok_nextint(&line, &(response[1]));
752 if (err < 0) goto error;
768 int err;
791 err = at_send_command_singleline(cmd, prefix, &p_response);
793 if (err != 0) goto error;
797 err = at_tok_start(&line);
798 if (err < 0) goto error;
829 err = at_tok_nextint(&line, &response[0]);
830 if (err < 0) goto error;
836 err = at_tok_nextint(&line, &skip);
837 if (err < 0) goto error;
838 err = at_tok_nextint(&line, &response[0]);
839 if (err < 0) goto error;
842 if (err < 0) goto error;
846 err = at_tok_nextint(&line, &response[0]);
847 if (err < 0) goto error;
848 err = at_tok_nexthexint(&line, &response[1]);
849 if (err < 0) goto error;
850 err = at_tok_nexthexint(&line, &response[2]);
851 if (err < 0) goto error;
854 err = at_tok_nextint(&line, &skip);
855 if (err < 0) goto error;
856 err = at_tok_nextint(&line, &response[0]);
857 if (err < 0) goto error;
858 err = at_tok_nexthexint(&line, &response[1]);
859 if (err < 0) goto error;
860 err = at_tok_nexthexint(&line, &response[2]);
861 if (err < 0) goto error;
867 err = at_tok_nextint(&line, &skip);
868 if (err < 0) goto error;
869 err = at_tok_nextint(&line, &response[0]);
870 if (err < 0) goto error;
871 err = at_tok_nexthexint(&line, &response[1]);
872 if (err < 0) goto error;
873 err = at_tok_nexthexint(&line, &response[2]);
874 if (err < 0) goto error;
875 err = at_tok_nexthexint(&line, &response[3]);
876 if (err < 0) goto error;
902 int err;
912 err = at_send_command_multiline(
922 if (err != 0) goto error;
930 err = at_tok_start(&line);
931 if (err < 0) goto error;
933 err = at_tok_nextint(&line, &skip);
934 if (err < 0) goto error;
943 err = at_tok_nextint(&line, &skip);
944 if (err < 0) goto error;
952 err = at_tok_nextstr(&line, &(response[i]));
953 if (err < 0) goto error;
973 int err;
994 err = at_send_command_sms(cmd1, cmd2, "+CMGS:", &p_response);
996 if (err != 0 || p_response->success == 0) goto error;
1015 int err;
1022 err = at_send_command("AT%CPRIM=\"GMM\",\"CONFIG MULTISLOT_CLASS=<10>\"",
1025 err = at_send_command("AT%DATA=2,\"UART\",1,,\"SER\",\"UART\",0", NULL);
1100 err = at_send_command(cmd, NULL);
1104 err = at_send_command("AT+CGQREQ=1", NULL);
1107 err = at_send_command("AT+CGQMIN=1", NULL);
1110 err = at_send_command("AT+CGEREP=1,0", NULL);
1113 err = at_send_command("AT+CGACT=1,0", NULL);
1116 err = at_send_command("ATD*99***1#", &p_response);
1118 if (err < 0 || p_response->success == 0) {
1137 int err;
1142 err = at_send_command("AT+CNMA=1", NULL);
1144 err = at_send_command("AT+CNMA=2", NULL);
1160 int err;
1181 err = at_send_command_singleline(cmd, "+CRSM:", &p_response);
1183 if (err < 0 || p_response->success == 0) {
1189 err = at_tok_start(&line);
1190 if (err < 0) goto error;
1192 err = at_tok_nextint(&line, &(sr.sw1));
1193 if (err < 0) goto error;
1195 err = at_tok_nextint(&line, &(sr.sw2));
1196 if (err < 0) goto error;
1199 err = at_tok_nextstr(&line, &(sr.simResponse));
1200 if (err < 0) goto error;
1218 int err;
1229 err = at_send_command_singleline(cmd, "+CPIN:", &p_response);
1232 if (err < 0 || p_response->success == 0) {
1274 int err;
1442 err = at_send_command_numeric("AT+CIMI", &p_response);
1444 if (err < 0 || p_response->success == 0) {
1455 err = at_send_command_numeric("AT+CGSN", &p_response);
1457 if (err < 0 || p_response->success == 0) {
1476 err = at_send_command_numeric("AT+CUSD=2", &p_response);
1478 if (err < 0 || p_response->success == 0) {
1530 err = at_send_command(cmd, &p_response);
1532 if (err < 0 || p_response->success == 0) {
1641 int err;
1651 err = at_send_command_singleline("AT+CPIN?", "+CPIN:", &p_response);
1653 if (err != 0) {
1674 err = at_tok_start (&cpinLine);
1676 if (err < 0) {
1681 err = at_tok_nextstr(&cpinLine, &cpinResult);
1683 if (err < 0) {
1829 int err;
1833 err = at_send_command_singleline("AT+CFUN?", "+CFUN:", &p_response);
1835 if (err < 0 || p_response->success == 0) {
1842 err = at_tok_start(&line);
1843 if (err < 0) goto error;
1845 err = at_tok_nextbool(&line, &ret);
1846 if (err < 0) goto error;
1865 int err;
1885 err = at_send_command("AT+CREG=2", &p_response);
1888 if (err < 0 || p_response->success == 0) {
1959 int err;
1975 err = at_tok_nextstr(&line, &response);
1977 if (err != 0) {