Lines Matching refs:p_response

502     ATResponse *p_response = NULL;  in requestRadioPower()  local
508 err = at_send_command("AT+CFUN=0", &p_response); in requestRadioPower()
509 if (err < 0 || p_response->success == 0) goto error; in requestRadioPower()
512 err = at_send_command("AT+CFUN=1", &p_response); in requestRadioPower()
513 if (err < 0|| p_response->success == 0) { in requestRadioPower()
526 at_response_free(p_response); in requestRadioPower()
530 at_response_free(p_response); in requestRadioPower()
539 ATResponse *p_response = NULL; in requestShutdown() local
542 err = at_send_command("AT+CFUN=0", &p_response); in requestShutdown()
546 at_response_free(p_response); in requestShutdown()
631 ATResponse *p_response; in requestOrSendDataCallList() local
642 err = at_send_command_multiline ("AT+CGACT?", "+CGACT:", &p_response); in requestOrSendDataCallList()
643 if (err != 0 || p_response->success == 0) { in requestOrSendDataCallList()
652 for (p_cur = p_response->p_intermediates; p_cur != NULL; in requestOrSendDataCallList()
675 for (p_cur = p_response->p_intermediates; p_cur != NULL; in requestOrSendDataCallList()
694 at_response_free(p_response); in requestOrSendDataCallList()
696 err = at_send_command_multiline ("AT+CGDCONT?", "+CGDCONT:", &p_response); in requestOrSendDataCallList()
697 if (err != 0 || p_response->success == 0) { in requestOrSendDataCallList()
706 for (p_cur = p_response->p_intermediates; p_cur != NULL; in requestOrSendDataCallList()
865 at_response_free(p_response); in requestOrSendDataCallList()
885 at_response_free(p_response); in requestOrSendDataCallList()
891 ATResponse *p_response = NULL; in setNetworkSelectionAutomatic() local
898 err = at_send_command("AT+COPS=0", &p_response); in setNetworkSelectionAutomatic()
900 if (err < 0 || p_response == NULL || p_response->success == 0) { in setNetworkSelectionAutomatic()
906 at_response_free(p_response); in setNetworkSelectionAutomatic()
913 ATResponse *p_response = NULL; in requestQueryNetworkSelectionMode() local
917 err = at_send_command_singleline("AT+COPS?", "+COPS:", &p_response); in requestQueryNetworkSelectionMode()
919 if (err < 0 || p_response->success == 0) { in requestQueryNetworkSelectionMode()
923 line = p_response->p_intermediates->line; in requestQueryNetworkSelectionMode()
938 at_response_free(p_response); in requestQueryNetworkSelectionMode()
941 at_response_free(p_response); in requestQueryNetworkSelectionMode()
956 ATResponse *p_response; local
972 err = at_send_command_multiline ("AT+CLCC", "+CLCC:", &p_response);
974 if (err != 0 || p_response->success == 0) {
980 for (countCalls = 0, p_cur = p_response->p_intermediates
998 for (countValidCalls = 0, p_cur = p_response->p_intermediates
1059 at_response_free(p_response);
1074 at_response_free(p_response);
1111 ATResponse *p_response = NULL; local
1123 err = at_send_command_sms(cmd, p_args->pdu, "+CMGW:", &p_response);
1125 if (err != 0 || p_response->success == 0) goto error;
1128 at_response_free(p_response);
1133 at_response_free(p_response);
1164 ATResponse *p_response = NULL; local
1175 err = at_send_command_singleline("AT+CSQ", "+CSQ:", &p_response);
1177 if (err < 0 || p_response->success == 0) {
1182 line = p_response->p_intermediates->line;
1200 at_response_free(p_response);
1206 at_response_free(p_response);
1223 ATResponse *p_response = NULL; local
1244 err = at_send_command_singleline(cmd, "+CTEC:", &p_response);
1246 if (err || !p_response->success) {
1251 if (!strstr( p_response->p_intermediates->line, "DONE") ) {
1253 int res = parse_technology_response(p_response->p_intermediates->line, &current, NULL);
1297 ATResponse *p_response = NULL; local
1301 err = at_send_command_singleline("AT+WPRL?", "+WPRL:", &p_response);
1302 if (err < 0 || !p_response->success) goto error;
1303 line = p_response->p_intermediates->line;
1309 at_response_free(p_response);
1312 at_response_free(p_response);
1321 ATResponse *p_response = NULL; local
1341 ATResponse *p_response = NULL; local
1355 err = at_send_command_numeric("AT+CGSN", &p_response);
1356 if (err < 0 || p_response->success == 0) {
1361 responseStr[3] = p_response->p_intermediates->line;
1363 responseStr[0] = p_response->p_intermediates->line;
1368 at_response_free(p_response);
1376 ATResponse *p_response = NULL; local
1384 err = at_send_command_singleline(cmd, "+CCSS:", &p_response);
1385 if (err < 0 || !p_response->success)
1388 line = p_response->p_intermediates->line;
1409 ATResponse *p_response = NULL; local
1420 err = at_send_command(cmd, &p_response);
1421 if (err < 0 || !p_response->success)
1442 ATResponse *p_response = NULL; local
1463 ATResponse *p_response = NULL; local
1467 res = at_send_command_singleline("AT+WRMP?", "+WRMP:", &p_response);
1468 if (res < 0 || !p_response->success) {
1471 line = p_response->p_intermediates->line;
1489 ATResponse *p_response = NULL; local
1497 res = at_send_command(cmd, &p_response);
1498 if (res < 0 || !p_response->success)
1628 ATResponse *p_response = NULL; local
1655 err = at_send_command_singleline(cmd, prefix, &p_response);
1659 line = p_response->p_intermediates->line;
1724 at_response_free(p_response);
1738 at_response_free(p_response);
1751 ATResponse *p_response = NULL; local
1755 "+COPS:", &p_response);
1765 for (i = 0, p_cur = p_response->p_intermediates
1809 at_response_free(p_response);
1815 at_response_free(p_response);
1865 ATResponse *p_response = NULL; local
1891 err = at_send_command_sms(cmd1, cmd2, "+CMGS:", &p_response);
1896 if (err != 0 || p_response->success == 0) goto error;
1901 at_response_free(p_response);
1907 at_response_free(p_response);
1913 at_response_free(p_response);
1964 ATResponse *p_response = NULL; local
1982 err = at_send_command_numeric(cmd, &p_response);
1983 if (err < 0 || p_response == NULL || p_response->success == 0) {
1985 err, p_response ? p_response->success : 0);
1987 at_response_free(p_response);
1994 line = p_response->p_intermediates->line;
2003 at_response_free(p_response);
2008 ATResponse *p_response = NULL; local
2020 err = at_send_command_singleline(cmd, "+CCHC", &p_response);
2022 if (err < 0 || p_response == NULL || p_response->success == 0) {
2023 AT_CME_Error cme = p_response ? at_get_cme_error(p_response) :
2029 err, session_id, p_response ? p_response->success : 0);
2031 at_response_free(p_response);
2037 at_response_free(p_response);
2044 ATResponse *p_response = NULL; local
2064 err = at_send_command_singleline(cmd, "+CGLA", &p_response);
2066 if (err < 0 || p_response == NULL || p_response->success == 0) {
2068 err, p_response ? p_response->success : 0);
2070 at_response_free(p_response);
2074 line = p_response->p_intermediates->line;
2084 at_response_free(p_response);
2092 ATResponse *p_response = NULL; local
2197 err = at_send_command("ATD*99***1#", &p_response);
2199 if (err < 0 || p_response->success == 0) {
2206 at_response_free(p_response);
2211 at_response_free(p_response);
2252 ATResponse *p_response = NULL; local
2279 err = at_send_command_singleline(cmd, "+CRSM:", &p_response);
2281 if (err < 0 || p_response->success == 0) {
2285 line = p_response->p_intermediates->line;
2293 at_response_free(p_response);
2299 at_response_free(p_response);
2306 ATResponse *p_response = NULL; local
2318 err = at_send_command_singleline(cmd, "+CPIN:", &p_response);
2321 if (err < 0 || p_response->success == 0) {
2327 at_response_free(p_response);
2347 ATResponse *p_response = NULL; local
2349 err = at_send_command("AT+WSOS=0", &p_response);
2351 if (err < 0 || p_response->success == 0) {
2504 ATResponse *p_response = NULL; local
2513 err = at_send_command_singleline(cmd, "+CSIM:", &p_response);
2514 if (err < 0 || p_response == NULL || p_response->success == 0) {
2516 err, p_response ? p_response->success : 0);
2518 at_response_free(p_response);
2522 char* line = p_response->p_intermediates->line;
2527 free(p_response);
2534 ATResponse *p_response = NULL; local
2537 err = at_send_command_singleline("AT+MAI", "+MAI:", &p_response);
2538 if (err < 0 || p_response == NULL || p_response->success == 0) {
2540 err, (p_response ? p_response->success : 0));
2545 if (sscanf(p_response->p_intermediates->line,
2556 at_response_free(p_response);
2560 p_response->p_intermediates->line);
2564 at_response_free(p_response);
2570 ATResponse *p_response = NULL; local
2579 err = at_send_command_singleline(cmd, "+CRRSTR:", &p_response);
2580 success = p_response ? p_response->success : 0;
2581 at_response_free(p_response);
2608 ATResponse *p_response; local
2796 p_response = NULL;
2797 err = at_send_command_numeric("AT+CIMI", &p_response);
2799 if (err < 0 || p_response->success == 0) {
2803 p_response->p_intermediates->line, sizeof(char *));
2805 at_response_free(p_response);
2809 p_response = NULL;
2810 err = at_send_command_numeric("AT+CGSN", &p_response);
2812 if (err < 0 || p_response->success == 0) {
2816 p_response->p_intermediates->line, sizeof(char *));
2818 at_response_free(p_response);
2834 p_response = NULL;
2835 err = at_send_command_numeric("AT+CUSD=2", &p_response);
2837 if (err < 0 || p_response->success == 0) {
2841 p_response->p_intermediates->line, sizeof(char *));
2843 at_response_free(p_response);
2887 p_response = NULL;
2889 err = at_send_command(cmd, &p_response);
2891 if (err < 0 || p_response->success == 0) {
2896 at_response_free(p_response);
3180 ATResponse *p_response = NULL; local
3191 err = at_send_command_singleline("AT+CPIN?", "+CPIN:", &p_response);
3198 switch (at_get_cme_error(p_response)) {
3213 cpinLine = p_response->p_intermediates->line;
3242 at_response_free(p_response);
3243 p_response = NULL;
3249 at_response_free(p_response);
3257 ATResponse *p_response = NULL; local
3264 err = at_send_command_singleline("AT+CPIN?", "+CPIN:", &p_response);
3271 switch (at_get_cme_error(p_response)) {
3286 cpinLine = p_response->p_intermediates->line;
3317 at_response_free(p_response);
3466 ATResponse *p_response; local
3499 ATResponse *p_response = NULL; local
3504 err = at_send_command_singleline("AT+CFUN?", "+CFUN:", &p_response);
3506 if (err < 0 || p_response->success == 0) {
3511 line = p_response->p_intermediates->line;
3519 at_response_free(p_response);
3525 at_response_free(p_response);
3579 ATResponse *p_response; local
3585 err = at_send_command_singleline("AT+CTEC=?", "+CTEC:", &p_response);
3586 if (err || !p_response->success)
3588 line = p_response->p_intermediates->line;
3598 at_response_free(p_response);
3697 ATResponse *p_response = NULL; local
3719 err = at_send_command("AT+CREG=2", &p_response);
3722 if (err < 0 || p_response->success == 0) {
3726 at_response_free(p_response);