• Home
  • Raw
  • Download

Lines Matching refs:p_response

484     ATResponse *p_response = NULL;  in requestRadioPower()  local
490 err = at_send_command("AT+CFUN=0", &p_response); in requestRadioPower()
491 if (err < 0 || p_response->success == 0) goto error; in requestRadioPower()
494 err = at_send_command("AT+CFUN=1", &p_response); in requestRadioPower()
495 if (err < 0|| p_response->success == 0) { in requestRadioPower()
508 at_response_free(p_response); in requestRadioPower()
512 at_response_free(p_response); in requestRadioPower()
521 ATResponse *p_response = NULL; in requestShutdown() local
524 err = at_send_command("AT+CFUN=0", &p_response); in requestShutdown()
528 at_response_free(p_response); in requestShutdown()
613 ATResponse *p_response; in requestOrSendDataCallList() local
622 err = at_send_command_multiline ("AT+CGACT?", "+CGACT:", &p_response); in requestOrSendDataCallList()
623 if (err != 0 || p_response->success == 0) { in requestOrSendDataCallList()
632 for (p_cur = p_response->p_intermediates; p_cur != NULL; in requestOrSendDataCallList()
655 for (p_cur = p_response->p_intermediates; p_cur != NULL; in requestOrSendDataCallList()
674 at_response_free(p_response); in requestOrSendDataCallList()
676 err = at_send_command_multiline ("AT+CGDCONT?", "+CGDCONT:", &p_response); in requestOrSendDataCallList()
677 if (err != 0 || p_response->success == 0) { in requestOrSendDataCallList()
686 for (p_cur = p_response->p_intermediates; p_cur != NULL; in requestOrSendDataCallList()
824 at_response_free(p_response); in requestOrSendDataCallList()
843 at_response_free(p_response); in requestOrSendDataCallList()
849 ATResponse *p_response = NULL; in setNetworkSelectionAutomatic() local
856 err = at_send_command("AT+COPS=0", &p_response); in setNetworkSelectionAutomatic()
858 if (err < 0 || p_response == NULL || p_response->success == 0) { in setNetworkSelectionAutomatic()
864 at_response_free(p_response); in setNetworkSelectionAutomatic()
871 ATResponse *p_response = NULL; in requestQueryNetworkSelectionMode() local
875 err = at_send_command_singleline("AT+COPS?", "+COPS:", &p_response); in requestQueryNetworkSelectionMode()
877 if (err < 0 || p_response->success == 0) { in requestQueryNetworkSelectionMode()
881 line = p_response->p_intermediates->line; in requestQueryNetworkSelectionMode()
896 at_response_free(p_response); in requestQueryNetworkSelectionMode()
899 at_response_free(p_response); in requestQueryNetworkSelectionMode()
914 ATResponse *p_response; local
930 err = at_send_command_multiline ("AT+CLCC", "+CLCC:", &p_response);
932 if (err != 0 || p_response->success == 0) {
938 for (countCalls = 0, p_cur = p_response->p_intermediates
956 for (countValidCalls = 0, p_cur = p_response->p_intermediates
1017 at_response_free(p_response);
1032 at_response_free(p_response);
1069 ATResponse *p_response = NULL; local
1081 err = at_send_command_sms(cmd, p_args->pdu, "+CMGW:", &p_response);
1083 if (err != 0 || p_response->success == 0) goto error;
1086 at_response_free(p_response);
1091 at_response_free(p_response);
1122 ATResponse *p_response = NULL; local
1133 err = at_send_command_singleline("AT+CSQ", "+CSQ:", &p_response);
1135 if (err < 0 || p_response->success == 0) {
1140 line = p_response->p_intermediates->line;
1158 at_response_free(p_response);
1164 at_response_free(p_response);
1181 ATResponse *p_response = NULL; local
1202 err = at_send_command_singleline(cmd, "+CTEC:", &p_response);
1204 if (err || !p_response->success) {
1209 if (!strstr( p_response->p_intermediates->line, "DONE") ) {
1211 int res = parse_technology_response(p_response->p_intermediates->line, &current, NULL);
1255 ATResponse *p_response = NULL; local
1259 err = at_send_command_singleline("AT+WPRL?", "+WPRL:", &p_response);
1260 if (err < 0 || !p_response->success) goto error;
1261 line = p_response->p_intermediates->line;
1267 at_response_free(p_response);
1270 at_response_free(p_response);
1279 ATResponse *p_response = NULL; local
1299 ATResponse *p_response = NULL; local
1313 err = at_send_command_numeric("AT+CGSN", &p_response);
1314 if (err < 0 || p_response->success == 0) {
1319 responseStr[3] = p_response->p_intermediates->line;
1321 responseStr[0] = p_response->p_intermediates->line;
1326 at_response_free(p_response);
1334 ATResponse *p_response = NULL; local
1342 err = at_send_command_singleline(cmd, "+CCSS:", &p_response);
1343 if (err < 0 || !p_response->success)
1346 line = p_response->p_intermediates->line;
1367 ATResponse *p_response = NULL; local
1378 err = at_send_command(cmd, &p_response);
1379 if (err < 0 || !p_response->success)
1400 ATResponse *p_response = NULL; local
1421 ATResponse *p_response = NULL; local
1425 res = at_send_command_singleline("AT+WRMP?", "+WRMP:", &p_response);
1426 if (res < 0 || !p_response->success) {
1429 line = p_response->p_intermediates->line;
1447 ATResponse *p_response = NULL; local
1455 res = at_send_command(cmd, &p_response);
1456 if (res < 0 || !p_response->success)
1586 ATResponse *p_response = NULL; local
1608 err = at_send_command_singleline(cmd, prefix, &p_response);
1612 line = p_response->p_intermediates->line;
1677 at_response_free(p_response);
1691 at_response_free(p_response);
1704 ATResponse *p_response = NULL; local
1708 "+COPS:", &p_response);
1718 for (i = 0, p_cur = p_response->p_intermediates
1762 at_response_free(p_response);
1768 at_response_free(p_response);
1818 ATResponse *p_response = NULL; local
1844 err = at_send_command_sms(cmd1, cmd2, "+CMGS:", &p_response);
1849 if (err != 0 || p_response->success == 0) goto error;
1854 at_response_free(p_response);
1860 at_response_free(p_response);
1866 at_response_free(p_response);
1917 ATResponse *p_response = NULL; local
1933 err = at_send_command_numeric(cmd, &p_response);
1934 if (err < 0 || p_response == NULL || p_response->success == 0) {
1936 err, p_response ? p_response->success : 0);
1938 at_response_free(p_response);
1943 line = p_response->p_intermediates->line;
1951 at_response_free(p_response);
1956 ATResponse *p_response = NULL; local
1968 err = at_send_command_singleline(cmd, "+CCHC", &p_response);
1970 if (err < 0 || p_response == NULL || p_response->success == 0) {
1971 AT_CME_Error cme = p_response ? at_get_cme_error(p_response) :
1977 err, session_id, p_response ? p_response->success : 0);
1979 at_response_free(p_response);
1985 at_response_free(p_response);
1992 ATResponse *p_response = NULL; local
2010 err = at_send_command_singleline(cmd, "+CGLA", &p_response);
2012 if (err < 0 || p_response == NULL || p_response->success == 0) {
2014 err, p_response ? p_response->success : 0);
2016 at_response_free(p_response);
2020 line = p_response->p_intermediates->line;
2030 at_response_free(p_response);
2038 ATResponse *p_response = NULL; local
2143 err = at_send_command("ATD*99***1#", &p_response);
2145 if (err < 0 || p_response->success == 0) {
2152 at_response_free(p_response);
2157 at_response_free(p_response);
2198 ATResponse *p_response = NULL; local
2221 err = at_send_command_singleline(cmd, "+CRSM:", &p_response);
2223 if (err < 0 || p_response->success == 0) {
2227 line = p_response->p_intermediates->line;
2235 at_response_free(p_response);
2241 at_response_free(p_response);
2248 ATResponse *p_response = NULL; local
2260 err = at_send_command_singleline(cmd, "+CPIN:", &p_response);
2263 if (err < 0 || p_response->success == 0) {
2269 at_response_free(p_response);
2289 ATResponse *p_response = NULL; local
2291 err = at_send_command("AT+WSOS=0", &p_response);
2293 if (err < 0 || p_response->success == 0) {
2445 ATResponse *p_response = NULL; local
2454 err = at_send_command_singleline(cmd, "+CSIM:", &p_response);
2455 if (err < 0 || p_response == NULL || p_response->success == 0) {
2457 err, p_response ? p_response->success : 0);
2459 at_response_free(p_response);
2463 char* line = p_response->p_intermediates->line;
2468 free(p_response);
2475 ATResponse *p_response = NULL; local
2478 err = at_send_command_singleline("AT+MAI", "+MAI:", &p_response);
2479 if (err < 0 || p_response == NULL || p_response->success == 0) {
2481 err, (p_response ? p_response->success : 0));
2486 if (sscanf(p_response->p_intermediates->line,
2497 at_response_free(p_response);
2501 p_response->p_intermediates->line);
2505 at_response_free(p_response);
2511 ATResponse *p_response = NULL; local
2520 err = at_send_command_singleline(cmd, "+CRRSTR:", &p_response);
2521 success = p_response ? p_response->success : 0;
2522 at_response_free(p_response);
2549 ATResponse *p_response; local
2734 p_response = NULL;
2735 err = at_send_command_numeric("AT+CIMI", &p_response);
2737 if (err < 0 || p_response->success == 0) {
2741 p_response->p_intermediates->line, sizeof(char *));
2743 at_response_free(p_response);
2747 p_response = NULL;
2748 err = at_send_command_numeric("AT+CGSN", &p_response);
2750 if (err < 0 || p_response->success == 0) {
2754 p_response->p_intermediates->line, sizeof(char *));
2756 at_response_free(p_response);
2772 p_response = NULL;
2773 err = at_send_command_numeric("AT+CUSD=2", &p_response);
2775 if (err < 0 || p_response->success == 0) {
2779 p_response->p_intermediates->line, sizeof(char *));
2781 at_response_free(p_response);
2825 p_response = NULL;
2827 err = at_send_command(cmd, &p_response);
2829 if (err < 0 || p_response->success == 0) {
2834 at_response_free(p_response);
3118 ATResponse *p_response = NULL; local
3129 err = at_send_command_singleline("AT+CPIN?", "+CPIN:", &p_response);
3136 switch (at_get_cme_error(p_response)) {
3151 cpinLine = p_response->p_intermediates->line;
3180 at_response_free(p_response);
3181 p_response = NULL;
3187 at_response_free(p_response);
3195 ATResponse *p_response = NULL; local
3202 err = at_send_command_singleline("AT+CPIN?", "+CPIN:", &p_response);
3209 switch (at_get_cme_error(p_response)) {
3224 cpinLine = p_response->p_intermediates->line;
3255 at_response_free(p_response);
3404 ATResponse *p_response; local
3437 ATResponse *p_response = NULL; local
3442 err = at_send_command_singleline("AT+CFUN?", "+CFUN:", &p_response);
3444 if (err < 0 || p_response->success == 0) {
3449 line = p_response->p_intermediates->line;
3457 at_response_free(p_response);
3463 at_response_free(p_response);
3517 ATResponse *p_response; local
3523 err = at_send_command_singleline("AT+CTEC=?", "+CTEC:", &p_response);
3524 if (err || !p_response->success)
3526 line = p_response->p_intermediates->line;
3536 at_response_free(p_response);
3635 ATResponse *p_response = NULL; local
3657 err = at_send_command("AT+CREG=2", &p_response);
3660 if (err < 0 || p_response->success == 0) {
3664 at_response_free(p_response);