Lines Matching refs:err

475     int err;  in callFromCLCCLine()  local
479 err = at_tok_start(&line); in callFromCLCCLine()
480 if (err < 0) goto error; in callFromCLCCLine()
482 err = at_tok_nextint(&line, &(p_call->index)); in callFromCLCCLine()
483 if (err < 0) goto error; in callFromCLCCLine()
485 err = at_tok_nextbool(&line, &(p_call->isMT)); in callFromCLCCLine()
486 if (err < 0) goto error; in callFromCLCCLine()
488 err = at_tok_nextint(&line, &state); in callFromCLCCLine()
489 if (err < 0) goto error; in callFromCLCCLine()
491 err = clccStateToRILState(state, &(p_call->state)); in callFromCLCCLine()
492 if (err < 0) goto error; in callFromCLCCLine()
494 err = at_tok_nextint(&line, &mode); in callFromCLCCLine()
495 if (err < 0) goto error; in callFromCLCCLine()
499 err = at_tok_nextbool(&line, &(p_call->isMpty)); in callFromCLCCLine()
500 if (err < 0) goto error; in callFromCLCCLine()
503 err = at_tok_nextstr(&line, &(p_call->number)); in callFromCLCCLine()
506 if (err < 0) return 0; in callFromCLCCLine()
516 err = at_tok_nextint(&line, &p_call->toa); in callFromCLCCLine()
517 if (err < 0) goto error; in callFromCLCCLine()
530 int err; in parseSimResponseLine() local
532 err = at_tok_start(&line); in parseSimResponseLine()
533 if (err < 0) return err; in parseSimResponseLine()
534 err = at_tok_nextint(&line, &response->sw1); in parseSimResponseLine()
535 if (err < 0) return err; in parseSimResponseLine()
536 err = at_tok_nextint(&line, &response->sw2); in parseSimResponseLine()
537 if (err < 0) return err; in parseSimResponseLine()
540 err = at_tok_nextstr(&line, &response->simResponse); in parseSimResponseLine()
541 if (err < 0) return err; in parseSimResponseLine()
695 int err; in requestRadioPower() local
702 err = at_send_command("AT+CFUN=0", &p_response); in requestRadioPower()
703 if (err < 0 || p_response->success == 0) goto error; in requestRadioPower()
706 err = at_send_command("AT+CFUN=1", &p_response); in requestRadioPower()
707 if (err < 0|| p_response->success == 0) { in requestRadioPower()
834 int err = -1; in requestOrSendDataCallList() local
840 err = at_send_command_multiline ("AT+CGACT?", "+CGACT:", &p_response); in requestOrSendDataCallList()
841 if (err != 0 || p_response->success == 0) { in requestOrSendDataCallList()
877 err = at_tok_start(&line); in requestOrSendDataCallList()
878 if (err < 0) in requestOrSendDataCallList()
881 err = at_tok_nextint(&line, &response->cid); in requestOrSendDataCallList()
882 if (err < 0) in requestOrSendDataCallList()
885 err = at_tok_nextint(&line, &response->active); in requestOrSendDataCallList()
886 if (err < 0) in requestOrSendDataCallList()
894 err = at_send_command_multiline ("AT+CGDCONT?", "+CGDCONT:", &p_response); in requestOrSendDataCallList()
895 if (err != 0 || p_response->success == 0) { in requestOrSendDataCallList()
909 err = at_tok_start(&line); in requestOrSendDataCallList()
910 if (err < 0) in requestOrSendDataCallList()
913 err = at_tok_nextint(&line, &ncid); in requestOrSendDataCallList()
914 if (err < 0) in requestOrSendDataCallList()
929 err = at_tok_nextstr(&line, &out); in requestOrSendDataCallList()
930 if (err < 0) in requestOrSendDataCallList()
938 err = at_tok_nextstr(&line, &out); in requestOrSendDataCallList()
939 if (err < 0) in requestOrSendDataCallList()
946 err = at_tok_nextstr(&line, &out); in requestOrSendDataCallList()
947 if (err < 0) in requestOrSendDataCallList()
1024 err = at_send_command_singleline(cmd, "+CGCONTRDP:", &p_response); in requestOrSendDataCallList()
1025 if (err < 0 || p_response->success == 0) { in requestOrSendDataCallList()
1034 err = at_tok_start(&input); in requestOrSendDataCallList()
1035 if (err < 0) goto error; in requestOrSendDataCallList()
1037 err = at_tok_nextint(&input, &ncid); // cid in requestOrSendDataCallList()
1038 if (err < 0) goto error; in requestOrSendDataCallList()
1044 err = at_tok_nextint(&input, &skip); // bearer_id in requestOrSendDataCallList()
1045 if (err < 0) goto error; in requestOrSendDataCallList()
1047 err = at_tok_nextstr(&input, &sskip); // apn in requestOrSendDataCallList()
1048 if (err < 0) goto error; in requestOrSendDataCallList()
1050 err = at_tok_nextstr(&input, &sskip); // local_addr_and_subnet_mask in requestOrSendDataCallList()
1051 if (err < 0) goto error; in requestOrSendDataCallList()
1053 err = at_tok_nextstr( in requestOrSendDataCallList()
1055 if (err < 0) goto error; in requestOrSendDataCallList()
1057 err = at_tok_nextstr( in requestOrSendDataCallList()
1059 if (err < 0) goto error; in requestOrSendDataCallList()
1092 int err; in requestQueryNetworkSelectionMode() local
1097 err = at_send_command_singleline("AT+COPS?", "+COPS:", &p_response); in requestQueryNetworkSelectionMode()
1099 if (err < 0 || p_response->success == 0) { in requestQueryNetworkSelectionMode()
1105 err = at_tok_start(&line); in requestQueryNetworkSelectionMode()
1107 if (err < 0) { in requestQueryNetworkSelectionMode()
1111 err = at_tok_nextint(&line, &response); in requestQueryNetworkSelectionMode()
1113 if (err < 0) { in requestQueryNetworkSelectionMode()
1135 int err; local
1152 err = at_send_command_multiline ("AT+CLCC", "+CLCC:", &p_response);
1154 if (err != 0 || p_response->success == 0) {
1182 err = callFromCLCCLine(p_cur->line, p_calls + countValidCalls);
1184 if (err != 0) {
1289 int err; local
1302 err = at_send_command_sms(cmd, p_args->pdu, "+CMGW:", &p_response);
1304 if (err != 0 || p_response->success == 0) goto error;
1343 int err; local
1354 err = at_send_command_singleline("AT+CSQ", "+CSQ:", &p_response);
1356 if (err < 0 || p_response->success == 0) {
1363 err = at_tok_start(&line);
1364 if (err < 0) goto error;
1367 err = at_tok_nextint(&line, &(response[count]));
1368 if (err < 0 && count < minNumOfElements) goto error;
1438 int err; local
1462 err = at_send_command_singleline(cmd, "+CTEC:", &p_response);
1464 if (err || !p_response->success) {
1543 int err; local
1549 err = at_send_command_singleline("AT+WPRL?", "+WPRL:", &p_response);
1550 if (err < 0 || !p_response->success) goto error;
1552 err = at_tok_start(&line);
1553 if (err < 0) goto error;
1554 err = at_tok_nextstr(&line, &responseStr);
1555 if (err < 0 || !responseStr) goto error;
1567 int err; local
1586 int err; local
1598 err = at_send_command_numeric("AT+CGSN", &p_response);
1599 if (err < 0 || p_response->success == 0) {
1621 int err; local
1631 err = at_send_command_singleline(cmd, "+CCSS:", &p_response);
1632 if (err < 0 || !p_response->success)
1636 err = at_tok_start(&line);
1637 if (err < 0) goto error;
1639 err = at_tok_nextint(&line, &response);
1654 int err; local
1667 err = at_send_command(cmd, &p_response);
1668 if (err < 0 || !p_response->success)
1686 int err; local
1758 int err; local
1768 err = at_tok_start(&line);
1769 if (err < 0) goto error;
1802 err = at_tok_nextint(&line, &resp[0]);
1803 if (err < 0) goto error;
1807 err = at_tok_nextint(&line, &skip);
1808 if (err < 0) goto error;
1809 err = at_tok_nextint(&line, &resp[0]);
1810 if (err < 0) goto error;
1814 err = at_tok_nextint(&line, &resp[0]);
1815 if (err < 0) goto error;
1816 err = at_tok_nexthexint(&line, &resp[1]);
1817 if (err < 0) goto error;
1818 err = at_tok_nexthexint(&line, &resp[2]);
1819 if (err < 0) goto error;
1822 err = at_tok_nextint(&line, &skip);
1823 if (err < 0) goto error;
1824 err = at_tok_nextint(&line, &resp[0]);
1825 if (err < 0) goto error;
1826 err = at_tok_nexthexint(&line, &resp[1]);
1827 if (err < 0) goto error;
1828 err = at_tok_nexthexint(&line, &resp[2]);
1829 if (err < 0) goto error;
1835 err = at_tok_nextint(&line, &skip);
1836 if (err < 0) goto error;
1837 err = at_tok_nextint(&line, &resp[0]);
1838 if (err < 0) goto error;
1839 err = at_tok_nexthexint(&line, &resp[1]);
1840 if (err < 0) goto error;
1841 err = at_tok_nexthexint(&line, &resp[2]);
1842 if (err < 0) goto error;
1843 err = at_tok_nextint(&line, &resp[3]);
1844 if (err < 0) goto error;
1915 int err; local
1944 err = at_send_command_singleline(cmd, prefix, &p_response);
1946 if (err < 0 || !p_response->success) goto error;
2052 int err; local
2062 err = at_send_command_multiline(
2072 if (err != 0) goto error;
2080 err = at_tok_start(&line);
2081 if (err < 0) goto error;
2083 err = at_tok_nextint(&line, &skip);
2084 if (err < 0) goto error;
2093 err = at_tok_nextint(&line, &skip);
2094 if (err < 0) goto error;
2102 err = at_tok_nextstr(&line, &(response[i]));
2103 if (err < 0) goto error;
2139 int err = 1; // Set to go to error: local
2162 if (err != 0) goto error;
2179 int err; local
2211 err = at_send_command_sms(cmd1, cmd2, "+CMGS:", &p_response);
2216 if (err != 0 || p_response->success == 0) goto error;
2221 err = at_tok_start(&line);
2222 if (err < 0) goto error;
2224 err = at_tok_nextint(&line, &messageRef);
2225 if (err < 0) goto error;
2300 int err = -1; local
2314 err = at_send_command_singleline(cmd, "+CGLA:", &p_response);
2315 if (err < 0) goto done;
2358 int err; local
2370 err = at_send_command_singleline("AT+CSIM=10,\"0070000001\"", "+CSIM:", &p_response);
2373 err = at_send_command_numeric(cmd, &p_response);
2376 if (err < 0 || p_response == NULL || p_response->success == 0) {
2378 err, p_response ? p_response->success : 0);
2386 err = at_tok_start(&line);
2387 if (err < 0) goto error;
2389 err = at_tok_nextint(&line, &skip);
2390 if (err < 0) goto error;
2392 err = at_tok_nextstr(&line, &statusWord);
2393 if (err < 0) goto error;
2434 int err; local
2449 err = at_send_command_singleline(cmd, "+CCHC", &p_response);
2451 if (err < 0 || p_response == NULL || p_response->success == 0) {
2453 err, session_id, p_response ? p_response->success : 0);
2469 int err; local
2487 err = at_send_command_singleline(cmd, "+CGLA:", &p_response);
2489 if (err < 0 || p_response == NULL || p_response->success == 0) {
2491 err, p_response ? p_response->success : 0);
2496 err = at_tok_start(&line);
2497 if (err < 0) goto error;
2499 err = at_tok_nextint(&line, &len);
2500 if (err < 0) goto error;
2502 err = at_tok_nextstr(&line, &(sr.simResponse));
2503 if (err < 0) goto error;
2521 int err = -1, ret = 0; local
2590 err = at_send_command_singleline( cmd, "^MBAU:", &p_response);
2593 if (err < 0 || p_response->success == 0) {
2597 err = at_tok_start(&line);
2598 if (err < 0) goto error;
2600 err = at_tok_nextint(&line, &status);
2601 if (err < 0) goto error;
2607 err = at_tok_nextstr(&line, &kc);
2608 if (err < 0) goto error;
2611 err = at_tok_nextstr(&line, &sres);
2612 if (err < 0) goto error;
2633 err = at_tok_nextstr(&line, &ck);
2634 if (err < 0) goto error;
2637 err = at_tok_nextstr(&line, &ik);
2638 if (err < 0) goto error;
2641 err = at_tok_nextstr(&line, &resAuts);
2642 if (err < 0) goto error;
2708 int err, len; local
2734 err = at_send_command_singleline(cmd, "+CSIM:", &p_response);
2736 if (err < 0 || p_response->success == 0) {
2741 err = at_tok_start(&line);
2742 if (err < 0) goto error;
2744 err = at_tok_nextint(&line, &len);
2745 if (err < 0) goto error;
2747 err = at_tok_nextstr(&line, &(sr.simResponse));
2748 if (err < 0) goto error;
2787 int err = -1; local
2795 err = at_send_command("AT%CPRIM=\"GMM\",\"CONFIG MULTISLOT_CLASS=<10>\"",
2798 err = at_send_command("AT%DATA=2,\"UART\",1,,\"SER\",\"UART\",0", NULL);
2897 err = at_send_command(cmd, NULL);
2901 err = at_send_command("AT+CGQREQ=1", NULL);
2904 err = at_send_command("AT+CGQMIN=1", NULL);
2907 err = at_send_command("AT+CGEREP=1,0", NULL);
2910 err = at_send_command("AT+CGACT=1,0", NULL);
2913 err = at_send_command("ATD*99***1#", &p_response);
2915 if (err < 0 || p_response->success == 0) {
2950 int err; local
2960 err = at_send_command("AT+CNMA=1", NULL);
2961 if (err < 0) {
2965 err = at_send_command("AT+CNMA=2", NULL);
2966 if (err < 0) {
3085 int err; local
3109 err = at_send_command_singleline(cmd, "+CRSM:", &p_response);
3111 if (err < 0 || p_response->success == 0) {
3117 err = parseSimResponseLine(line, &sr);
3118 if (err < 0) {
3151 int err = -1; local
3159 err = at_send_command_multiline(cmd, "+CPINR:", &p_response);
3160 if (err < 0 || p_response->success == 0) {
3165 err = at_tok_start(&line);
3166 if (err < 0) goto error;
3168 err = at_tok_nextstr(&line, &lock_type);
3169 if (err < 0) goto error;
3171 err = at_tok_nextint(&line, &remain_times);
3172 if (err < 0) goto error;
3182 int err; local
3192 err = at_send_command_singleline(cmd, "+CPIN:", &p_response);
3195 if (err < 0 || p_response->success == 0) {
3213 int err; local
3223 err = at_send_command_singleline(cmd, "+CPIN:", &p_response);
3226 if (err < 0 || p_response->success == 0) {
3244 int err, ret; local
3256 err = at_send_command(cmd, &p_response);
3257 if (err < 0 || p_response->success == 0) {
3276 int err = -1; local
3282 err = at_send_command(cmd, &p_response);
3283 if (err < 0 || p_response->success == 0) {
3293 int err; local
3296 err = at_send_command("AT+WSOS=0", &p_response);
3298 if (err < 0 || p_response->success == 0) {
3484 int err = -1; local
3489 err = at_send_command_singleline("AT+CMUT?", "+CMUT:", &p_response);
3490 if (err < 0 || p_response->success) {
3495 err = at_tok_start(&line);
3496 if (err < 0) goto done;
3509 int err = -1; local
3514 err = at_send_command(cmd, &p_response);
3515 if (err < 0 || p_response->success) {
3547 int err = -1; local
3558 err = at_send_command_singleline("AT+CLIP?", "+CLIP:", &p_response);
3559 if (err < 0 || p_response->success == 0) {
3564 err = at_tok_start(&line);
3565 if (err < 0) goto error;
3567 err = at_tok_nextint(&line, &skip);
3568 if (err < 0) goto error;
3570 err = at_tok_nextint(&line, &response);
3571 if (err < 0) goto error;
3587 int err = -1; local
3597 err = at_send_command_singleline("AT+CLIR?", "+CLIR:", &p_response);
3598 if (err < 0 || p_response->success == 0) {
3603 err = at_tok_start(&line);
3604 if (err < 0) goto error;
3606 err = at_tok_nextint(&line, &response[0]);
3607 if (err < 0) goto error;
3609 err = at_tok_nextint(&line, &response[1]);
3610 if (err < 0) goto error;
3625 int err = -1; local
3631 err = at_send_command(cmd, &p_response);
3632 if (err < 0 || p_response->success == 0) {
3641 int err = -1; local
3648 err = at_tok_start(&line);
3649 if (err < 0) goto error;
3651 err = at_tok_nextint(&line, &(p_forward->status));
3652 if (err < 0) goto error;
3654 err = at_tok_nextint(&line, &(p_forward->serviceClass));
3655 if (err < 0) goto error;
3659 err = at_tok_nextint(&line, &numberType);
3660 if (err < 0) goto error;
3662 err = at_tok_nextint(&line, &p_forward->toa);
3663 if (err < 0) goto error;
3665 err = at_tok_nextstr(&line, &(p_forward->number));
3668 if (err < 0) return 0;
3676 err = at_tok_nextint(&line, &p_forward->timeSeconds);
3677 if (err < 0) {
3692 int err = -1; local
3725 err = at_send_command_multiline(cmd, "+CCFCU:", &p_response);
3726 if (err < 0 || p_response->success == 0) {
3741 int err = -1; local
3753 err = at_send_command_multiline(cmd, "+CCFCU:", &p_response);
3754 if (err < 0 || p_response->success == 0) {
3782 err = forwardFromCCFCULine(p_cur->line, forwardList[validCount]);
3784 if (err == 0) validCount++;
3800 int err = -1, mode = 0; local
3813 err = at_send_command_multiline(cmd, "+CCWA:", &p_response);
3814 if (err < 0 || p_response->success == 0) {
3821 err = at_tok_start(&line);
3822 if (err < 0) goto error;
3824 err = at_tok_nextint(&line, &mode);
3825 if (err < 0) goto error;
3827 err = at_tok_nextint(&line, &serviceClass);
3828 if (err < 0) goto error;
3846 int err = -1; local
3857 err = at_send_command(cmd, &p_response);
3858 if (err < 0 || p_response->success == 0) {
3870 int err = 0; local
3876 err = at_send_command(cmd, &p_response);
3877 if (err < 0 || p_response->success == 0) {
3886 int err = -1; local
3901 err = at_send_command(cmd, &p_response);
3902 if (err < 0 || p_response->success == 0) {
3916 int err = -1; local
3950 err = at_send_command_multiline(cmd, "+CLCK: ", &p_response);
3951 if (err < 0 || p_response->success == 0) {
3956 err = at_tok_start(&line);
3957 if (err < 0) goto error;
3959 err = at_tok_nextint(&line, &status);
3960 if (err < 0) goto error;
3966 err = at_send_command(cmd, &p_response);
3967 if (err < 0 || p_response->success == 0) {
3991 int err = -1; local
4006 err = at_send_command_singleline(cmd, "+CSCA:", &p_response);
4007 if (err < 0 || p_response->success == 0) {
4021 int err = -1; local
4024 err = at_send_command_singleline( "AT+CSCA?", "+CSCA:", &p_response);
4025 if (err < 0 || p_response->success == 0) {
4030 err = at_tok_start(&line);
4031 if (err < 0) goto error;
4033 err = at_tok_nextstr(&line, &decidata);
4034 if (err < 0) goto error;
4090 int err = at_send_command_singleline( cmd, "+CSCB:", &p_response); local
4092 if (err < 0 || p_response->success == 0) {
4106 int err = -1, mode, commas = 0, i = 0; local
4111 err = at_send_command_singleline("AT+CSCB?", "+CSCB:", &p_response);
4112 if (err < 0 || p_response->success == 0) {
4117 err = at_tok_start(&line);
4118 if (err < 0) goto error;
4120 err = at_tok_nextint(&line, &mode);
4121 if (err < 0) goto error;
4123 err = at_tok_nextstr(&line, &serviceIds);
4124 if (err < 0) goto error;
4126 err = at_tok_nextstr(&line, &codeSchemes);
4127 if (err < 0) goto error;
4144 err = at_tok_nextstr(&serviceIds, &serviceId);
4145 if (err < 0) goto error;
4152 err = at_tok_nextstr(&codeSchemes, &codeScheme);
4153 if (err < 0) goto error;
4205 int err = -1; local
4216 err = at_send_command(cmd, &p_response);
4217 if (err < 0 || p_response->success == 0) {
4237 int err = -1; local
4250 err = at_send_command_singleline("AT+CUSATD?", "+CUSATD:", &p_response);
4252 if (err < 0 || p_response->success == 0) {
4262 int ret = -1, err = -1; local
4273 err = at_send_command_singleline(cmd, "+CUSATE:", &p_response);
4274 if (err < 0 || p_response->success == 0) {
4302 int ret = -1, err = -1; local
4313 err = at_send_command_singleline( cmd, "+CUSATT:", &p_response);
4314 if (err < 0 || p_response->success == 0) {
4325 int err = -1; local
4354 err = at_send_command(cmd, NULL);
4355 if (err != 0) goto error;
4447 int err; local
4648 err = at_send_command_numeric("AT+CIMI", &p_response);
4650 if (err < 0 || p_response->success == 0) {
4661 err = at_send_command_numeric("AT+CGSN", &p_response);
4663 if (err < 0 || p_response->success == 0) {
4687 err = at_send_command_numeric("AT+CUSD=2", &p_response);
4689 if (err < 0 || p_response->success == 0) {
4704 err = at_send_command("AT+COPS=0", &p_response);
4705 if (err < 0 || p_response->success == 0) {
4756 err = at_send_command(cmd, &p_response);
4758 if (err < 0 || p_response->success == 0) {
5298 int err; local
5308 err = at_send_command_singleline("AT+CPIN?", "+CPIN:", &p_response);
5310 if (err != 0) {
5331 err = at_tok_start (&cpinLine);
5333 if (err < 0) {
5338 err = at_tok_nextstr(&cpinLine, &cpinResult);
5340 if (err < 0) {
5375 int err; local
5381 err = at_send_command_singleline("AT+CPIN?", "+CPIN:", &p_response);
5383 if (err != 0) {
5404 err = at_tok_start (&cpinLine);
5406 if (err < 0) {
5411 err = at_tok_nextstr(&cpinLine, &cpinResult);
5413 if (err < 0) {
5444 int err = 0; local
5451 err = at_send_command_numeric("AT+CICCID", &p_response);
5452 if (err < 0 || p_response->success == 0) {
5632 int err; local
5636 err = at_send_command_singleline("AT+CFUN?", "+CFUN:", &p_response);
5638 if (err < 0 || p_response->success == 0) {
5645 err = at_tok_start(&line);
5646 if (err < 0) goto error;
5648 err = at_tok_nextbool(&line, &ret);
5649 if (err < 0) goto error;
5672 int err; local
5680 err = at_tok_start(&p);
5681 if (err || !at_tok_hasmore(&p)) {
5682 RLOGD("err: %d. p: %s", err, p);
5687 err = at_tok_nextint(&p, &ct);
5688 if (err) {
5696 err = at_tok_nexthexint(&p, &pt);
5697 if (err) {
5712 int err, val, techs = 0; local
5717 err = at_send_command_singleline("AT+CTEC=?", "+CTEC:", &p_response);
5718 if (err || !p_response->success)
5721 err = at_tok_start(&line);
5722 if (err || !at_tok_hasmore(&line))
5751 int err; local
5755 err = at_send_command_singleline("AT+CTEC?", "+CTEC:", &response);
5756 if (!err && response->success) {
5761 …RLOGE("Error executing command: %d. response: %p. status: %d", err, response, response? response->…
5769 int err; local
5791 int err; local
5807 err = at_send_command_singleline("AT+WNAM","+WNAM:", &response);
5808 if (!err && response->success) {
5816 if (!err) at_response_free(response);
5830 int err; local
5851 err = at_send_command("AT+CREG=2", &p_response);
5854 if (err < 0 || p_response->success == 0) {
6001 int err; local
6017 err = at_tok_start(&line);
6018 if(err) {
6023 for (int i=0; i < kSize && !err; ++i) {
6024 err = at_tok_nextint(&line, &(configs[i]));
6027 if(err) {
6044 err = at_tok_nextstr(&p, &response);
6046 if (err != 0) {
6187 err = at_tok_nextint(&p, &(response[count]));
6188 if (err < 0 && count < minNumOfElements) {