Lines Matching refs:err

278     int err;
282 err = at_tok_start(&line);
283 if (err < 0) goto error;
285 err = at_tok_nextint(&line, &(p_call->index));
286 if (err < 0) goto error;
288 err = at_tok_nextbool(&line, &(p_call->isMT));
289 if (err < 0) goto error;
291 err = at_tok_nextint(&line, &state);
292 if (err < 0) goto error;
294 err = clccStateToRILState(state, &(p_call->state));
295 if (err < 0) goto error;
297 err = at_tok_nextint(&line, &mode);
298 if (err < 0) goto error;
302 err = at_tok_nextbool(&line, &(p_call->isMpty));
303 if (err < 0) goto error;
306 err = at_tok_nextstr(&line, &(p_call->number));
309 if (err < 0) return 0;
319 err = at_tok_nextint(&line, &p_call->toa);
320 if (err < 0) goto error;
371 int err;
378 err = at_send_command("AT+CFUN=0", &p_response);
379 if (err < 0 || p_response->success == 0) goto error;
382 err = at_send_command("AT+CFUN=1", &p_response);
383 if (err < 0|| p_response->success == 0) {
408 int err;
412 err = at_send_command("AT+CFUN=0", &p_response);
437 int err;
441 err = at_send_command_multiline ("AT+CGACT?", "+CGACT:", &p_response);
442 if (err != 0 || p_response->success == 0) {
478 err = at_tok_start(&line);
479 if (err < 0)
482 err = at_tok_nextint(&line, &response->cid);
483 if (err < 0)
486 err = at_tok_nextint(&line, &response->active);
487 if (err < 0)
495 err = at_send_command_multiline ("AT+CGDCONT?", "+CGDCONT:", &p_response);
496 if (err != 0 || p_response->success == 0) {
510 err = at_tok_start(&line);
511 if (err < 0)
514 err = at_tok_nextint(&line, &cid);
515 if (err < 0)
532 err = at_tok_nextstr(&line, &out);
533 if (err < 0)
539 err = at_tok_nextstr(&line, &out);
540 if (err < 0)
546 err = at_tok_nextstr(&line, &out);
547 if (err < 0)
627 int err;
632 err = at_send_command_singleline("AT+COPS?", "+COPS:", &p_response);
634 if (err < 0 || p_response->success == 0) {
640 err = at_tok_start(&line);
642 if (err < 0) {
646 err = at_tok_nextint(&line, &response);
648 if (err < 0) {
670 int err;
687 err = at_send_command_multiline ("AT+CLCC", "+CLCC:", &p_response);
689 if (err != 0 || p_response->success == 0) {
717 err = callFromCLCCLine(p_cur->line, p_calls + countValidCalls);
719 if (err != 0) {
823 int err;
831 err = at_send_command_sms(cmd, p_args->pdu, "+CMGW:", &p_response);
833 if (err != 0 || p_response->success == 0) goto error;
869 int err;
875 err = at_send_command_singleline("AT+CSQ", "+CSQ:", &p_response);
877 if (err < 0 || p_response->success == 0) {
884 err = at_tok_start(&line);
885 if (err < 0) goto error;
888 err = at_tok_nextint(&line, &(response[count]));
889 if (err < 0) goto error;
921 int err;
938 err = at_send_command_singleline(cmd, "+CTEC:", &p_response);
940 if (err || !p_response->success) {
989 int err;
995 err = at_send_command_singleline("AT+WPRL?", "+WPRL:", &p_response);
996 if (err < 0 || !p_response->success) goto error;
998 err = at_tok_start(&line);
999 if (err < 0) goto error;
1000 err = at_tok_nextstr(&line, &responseStr);
1001 if (err < 0 || !responseStr) goto error;
1013 int err;
1032 int err;
1048 err = at_send_command_numeric("AT+CGSN", &p_response);
1049 if (err < 0 || p_response->success == 0) {
1069 int err;
1079 err = at_send_command_singleline(cmd, "+CCSS:", &p_response);
1080 if (err < 0 || !p_response->success)
1084 err = at_tok_start(&line);
1085 if (err < 0) goto error;
1087 err = at_tok_nextint(&line, &response);
1102 int err;
1115 err = at_send_command(cmd, &p_response);
1116 if (err < 0 || !p_response->success)
1134 int err;
1211 int err;
1219 err = at_tok_start(&line);
1220 if (err < 0) goto error;
1253 err = at_tok_nextint(&line, &resp[0]);
1254 if (err < 0) goto error;
1260 err = at_tok_nextint(&line, &skip);
1261 if (err < 0) goto error;
1262 err = at_tok_nextint(&line, &resp[0]);
1263 if (err < 0) goto error;
1266 if (err < 0) goto error;
1270 err = at_tok_nextint(&line, &resp[0]);
1271 if (err < 0) goto error;
1272 err = at_tok_nexthexint(&line, &resp[1]);
1273 if (err < 0) goto error;
1274 err = at_tok_nexthexint(&line, &resp[2]);
1275 if (err < 0) goto error;
1278 err = at_tok_nextint(&line, &skip);
1279 if (err < 0) goto error;
1280 err = at_tok_nextint(&line, &resp[0]);
1281 if (err < 0) goto error;
1282 err = at_tok_nexthexint(&line, &resp[1]);
1283 if (err < 0) goto error;
1284 err = at_tok_nexthexint(&line, &resp[2]);
1285 if (err < 0) goto error;
1291 err = at_tok_nextint(&line, &skip);
1292 if (err < 0) goto error;
1293 err = at_tok_nextint(&line, &resp[0]);
1294 if (err < 0) goto error;
1295 err = at_tok_nexthexint(&line, &resp[1]);
1296 if (err < 0) goto error;
1297 err = at_tok_nexthexint(&line, &resp[2]);
1298 if (err < 0) goto error;
1299 err = at_tok_nexthexint(&line, &resp[3]);
1300 if (err < 0) goto error;
1325 int err;
1350 err = at_send_command_singleline(cmd, prefix, &p_response);
1352 if (err != 0) goto error;
1438 int err;
1448 err = at_send_command_multiline(
1458 if (err != 0) goto error;
1466 err = at_tok_start(&line);
1467 if (err < 0) goto error;
1469 err = at_tok_nextint(&line, &skip);
1470 if (err < 0) goto error;
1479 err = at_tok_nextint(&line, &skip);
1480 if (err < 0) goto error;
1488 err = at_tok_nextstr(&line, &(response[i]));
1489 if (err < 0) goto error;
1515 int err = 1; // Set to go to error:
1531 if (err != 0) goto error;
1549 int err;
1576 err = at_send_command_sms(cmd1, cmd2, "+CMGS:", &p_response);
1578 if (err != 0 || p_response->success == 0) goto error;
1648 int err;
1655 err = at_send_command("AT%CPRIM=\"GMM\",\"CONFIG MULTISLOT_CLASS=<10>\"",
1658 err = at_send_command("AT%DATA=2,\"UART\",1,,\"SER\",\"UART\",0", NULL);
1733 err = at_send_command(cmd, NULL);
1737 err = at_send_command("AT+CGQREQ=1", NULL);
1740 err = at_send_command("AT+CGQMIN=1", NULL);
1743 err = at_send_command("AT+CGEREP=1,0", NULL);
1746 err = at_send_command("AT+CGACT=1,0", NULL);
1749 err = at_send_command("ATD*99***1#", &p_response);
1751 if (err < 0 || p_response->success == 0) {
1770 int err;
1775 err = at_send_command("AT+CNMA=1", NULL);
1777 err = at_send_command("AT+CNMA=2", NULL);
1793 int err;
1814 err = at_send_command_singleline(cmd, "+CRSM:", &p_response);
1816 if (err < 0 || p_response->success == 0) {
1822 err = at_tok_start(&line);
1823 if (err < 0) goto error;
1825 err = at_tok_nextint(&line, &(sr.sw1));
1826 if (err < 0) goto error;
1828 err = at_tok_nextint(&line, &(sr.sw2));
1829 if (err < 0) goto error;
1832 err = at_tok_nextstr(&line, &(sr.simResponse));
1833 if (err < 0) goto error;
1851 int err;
1862 err = at_send_command_singleline(cmd, "+CPIN:", &p_response);
1865 if (err < 0 || p_response->success == 0) {
1890 int err;
1893 err = at_send_command("AT+WSOS=0", &p_response);
1895 if (err < 0 || p_response->success == 0) {
2001 int err;
2176 err = at_send_command_numeric("AT+CIMI", &p_response);
2178 if (err < 0 || p_response->success == 0) {
2189 err = at_send_command_numeric("AT+CGSN", &p_response);
2191 if (err < 0 || p_response->success == 0) {
2210 err = at_send_command_numeric("AT+CUSD=2", &p_response);
2212 if (err < 0 || p_response->success == 0) {
2264 err = at_send_command(cmd, &p_response);
2266 if (err < 0 || p_response->success == 0) {
2501 int err;
2511 err = at_send_command_singleline("AT+CPIN?", "+CPIN:", &p_response);
2513 if (err != 0) {
2534 err = at_tok_start (&cpinLine);
2536 if (err < 0) {
2541 err = at_tok_nextstr(&cpinLine, &cpinResult);
2543 if (err < 0) {
2578 int err;
2589 err = at_send_command_singleline("AT+CPIN?", "+CPIN:", &p_response);
2591 if (err != 0) {
2612 err = at_tok_start (&cpinLine);
2614 if (err < 0) {
2619 err = at_tok_nextstr(&cpinLine, &cpinResult);
2621 if (err < 0) {
2790 int err;
2794 err = at_send_command_singleline("AT+CFUN?", "+CFUN:", &p_response);
2796 if (err < 0 || p_response->success == 0) {
2803 err = at_tok_start(&line);
2804 if (err < 0) goto error;
2806 err = at_tok_nextbool(&line, &ret);
2807 if (err < 0) goto error;
2830 int err;
2838 err = at_tok_start(&p);
2839 if (err || !at_tok_hasmore(&p)) {
2840 RLOGD("err: %d. p: %s", err, p);
2845 err = at_tok_nextint(&p, &ct);
2846 if (err) {
2854 err = at_tok_nexthexint(&p, &pt);
2855 if (err) {
2870 int err, val, techs = 0;
2875 err = at_send_command_singleline("AT+CTEC=?", "+CTEC:", &p_response);
2876 if (err || !p_response->success)
2879 err = at_tok_start(&line);
2880 if (err || !at_tok_hasmore(&line))
2909 int err;
2913 err = at_send_command_singleline("AT+CTEC?", "+CTEC:", &response);
2914 if (!err && response->success) {
2919 RLOGE("Error executing command: %d. response: %p. status: %d", err, response, response? response->success : -1);
2927 int err;
2949 int err;
2965 err = at_send_command_singleline("AT+WNAM","+WNAM:", &response);
2966 if (!err && response->success) {
2974 if (!err) at_response_free(response);
2988 int err;
3009 err = at_send_command("AT+CREG=2", &p_response);
3012 if (err < 0 || p_response->success == 0) {
3095 int err;
3111 err = at_tok_nextstr(&p, &response);
3114 if (err != 0) {