• Home
  • Raw
  • Download

Lines Matching refs:err

278     int err;  in callFromCLCCLine()  local
282 err = at_tok_start(&line); in callFromCLCCLine()
283 if (err < 0) goto error; in callFromCLCCLine()
285 err = at_tok_nextint(&line, &(p_call->index)); in callFromCLCCLine()
286 if (err < 0) goto error; in callFromCLCCLine()
288 err = at_tok_nextbool(&line, &(p_call->isMT)); in callFromCLCCLine()
289 if (err < 0) goto error; in callFromCLCCLine()
291 err = at_tok_nextint(&line, &state); in callFromCLCCLine()
292 if (err < 0) goto error; in callFromCLCCLine()
294 err = clccStateToRILState(state, &(p_call->state)); in callFromCLCCLine()
295 if (err < 0) goto error; in callFromCLCCLine()
297 err = at_tok_nextint(&line, &mode); in callFromCLCCLine()
298 if (err < 0) goto error; in callFromCLCCLine()
302 err = at_tok_nextbool(&line, &(p_call->isMpty)); in callFromCLCCLine()
303 if (err < 0) goto error; in callFromCLCCLine()
306 err = at_tok_nextstr(&line, &(p_call->number)); in callFromCLCCLine()
309 if (err < 0) return 0; in callFromCLCCLine()
319 err = at_tok_nextint(&line, &p_call->toa); in callFromCLCCLine()
320 if (err < 0) goto error; in callFromCLCCLine()
371 int err; in requestRadioPower() local
378 err = at_send_command("AT+CFUN=0", &p_response); in requestRadioPower()
379 if (err < 0 || p_response->success == 0) goto error; in requestRadioPower()
382 err = at_send_command("AT+CFUN=1", &p_response); in requestRadioPower()
383 if (err < 0|| p_response->success == 0) { in requestRadioPower()
408 int err; in requestShutdown() local
412 err = at_send_command("AT+CFUN=0", &p_response); in requestShutdown()
437 int err; in requestOrSendDataCallList() local
441 err = at_send_command_multiline ("AT+CGACT?", "+CGACT:", &p_response); in requestOrSendDataCallList()
442 if (err != 0 || p_response->success == 0) { in requestOrSendDataCallList()
478 err = at_tok_start(&line); in requestOrSendDataCallList()
479 if (err < 0) in requestOrSendDataCallList()
482 err = at_tok_nextint(&line, &response->cid); in requestOrSendDataCallList()
483 if (err < 0) in requestOrSendDataCallList()
486 err = at_tok_nextint(&line, &response->active); in requestOrSendDataCallList()
487 if (err < 0) in requestOrSendDataCallList()
495 err = at_send_command_multiline ("AT+CGDCONT?", "+CGDCONT:", &p_response); in requestOrSendDataCallList()
496 if (err != 0 || p_response->success == 0) { in requestOrSendDataCallList()
510 err = at_tok_start(&line); in requestOrSendDataCallList()
511 if (err < 0) in requestOrSendDataCallList()
514 err = at_tok_nextint(&line, &cid); in requestOrSendDataCallList()
515 if (err < 0) in requestOrSendDataCallList()
532 err = at_tok_nextstr(&line, &out); in requestOrSendDataCallList()
533 if (err < 0) in requestOrSendDataCallList()
539 err = at_tok_nextstr(&line, &out); in requestOrSendDataCallList()
540 if (err < 0) in requestOrSendDataCallList()
546 err = at_tok_nextstr(&line, &out); in requestOrSendDataCallList()
547 if (err < 0) in requestOrSendDataCallList()
627 int err; in requestQueryNetworkSelectionMode() local
632 err = at_send_command_singleline("AT+COPS?", "+COPS:", &p_response); in requestQueryNetworkSelectionMode()
634 if (err < 0 || p_response->success == 0) { in requestQueryNetworkSelectionMode()
640 err = at_tok_start(&line); in requestQueryNetworkSelectionMode()
642 if (err < 0) { in requestQueryNetworkSelectionMode()
646 err = at_tok_nextint(&line, &response); in requestQueryNetworkSelectionMode()
648 if (err < 0) { in requestQueryNetworkSelectionMode()
670 int err; local
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; local
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; local
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; local
938 err = at_send_command_singleline(cmd, "+CTEC:", &p_response);
940 if (err || !p_response->success) {
989 int err; local
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; local
1032 int err; local
1048 err = at_send_command_numeric("AT+CGSN", &p_response);
1049 if (err < 0 || p_response->success == 0) {
1069 int err; local
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; local
1115 err = at_send_command(cmd, &p_response);
1116 if (err < 0 || !p_response->success)
1134 int err; local
1211 int err; local
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; local
1350 err = at_send_command_singleline(cmd, prefix, &p_response);
1352 if (err != 0) goto error;
1438 int err; local
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: local
1531 if (err != 0) goto error;
1549 int err; local
1576 err = at_send_command_sms(cmd1, cmd2, "+CMGS:", &p_response);
1578 if (err != 0 || p_response->success == 0) goto error;
1648 int err; local
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; local
1775 err = at_send_command("AT+CNMA=1", NULL);
1777 err = at_send_command("AT+CNMA=2", NULL);
1793 int err; local
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; local
1862 err = at_send_command_singleline(cmd, "+CPIN:", &p_response);
1865 if (err < 0 || p_response->success == 0) {
1890 int err; local
1893 err = at_send_command("AT+WSOS=0", &p_response);
1895 if (err < 0 || p_response->success == 0) {
2001 int err; local
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; local
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; local
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; local
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; local
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; local
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; local
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->…
2927 int err; local
2949 int err; local
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; local
3009 err = at_send_command("AT+CREG=2", &p_response);
3012 if (err < 0 || p_response->success == 0) {
3095 int err; local
3111 err = at_tok_nextstr(&p, &response);
3113 if (err != 0) {