Lines Matching refs:p

79     const char *p;  in get_str()  local
84 p = *pp; in get_str()
85 while (qemu_isspace(*p)) { in get_str()
86 p++; in get_str()
88 if (*p == '\0') { in get_str()
91 *pp = p; in get_str()
94 if (*p == '\"') { in get_str()
95 p++; in get_str()
96 while (*p != '\0' && *p != '\"') { in get_str()
97 if (*p == '\\') { in get_str()
98 p++; in get_str()
99 c = *p++; in get_str()
120 *q++ = *p; in get_str()
122 p++; in get_str()
125 if (*p != '\"') { in get_str()
129 p++; in get_str()
131 while (*p != '\0' && !qemu_isspace(*p)) { in get_str()
133 *q++ = *p; in get_str()
135 p++; in get_str()
139 *pp = p; in get_str()
173 const char *p; in parse_cmdline() local
177 p = cmdline; in parse_cmdline()
180 while (qemu_isspace(*p)) { in parse_cmdline()
181 p++; in parse_cmdline()
183 if (*p == '\0') { in parse_cmdline()
189 ret = get_str(buf, sizeof(buf), &p); in parse_cmdline()
340 char *p; in expr_unary() local
409 n = strtoull(pch, &p, 0); in expr_unary()
413 if (pch == p) { in expr_unary()
414 expr_error(mon, "invalid char '%c' in expression", *p); in expr_unary()
416 pch = p; in expr_unary()
527 const char *p = *pp; in get_double() local
531 d = strtod(p, &tailp); in get_double()
532 if (tailp == p) { in get_double()
554 const char *p, *pstart; in get_command_name() local
556 p = cmdline; in get_command_name()
557 while (qemu_isspace(*p)) { in get_command_name()
558 p++; in get_command_name()
560 if (*p == '\0') { in get_command_name()
563 pstart = p; in get_command_name()
564 while (*p != '\0' && *p != '/' && !qemu_isspace(*p)) { in get_command_name()
565 p++; in get_command_name()
567 len = p - pstart; in get_command_name()
573 return p; in get_command_name()
583 char *p, *str; in key_get_info() local
589 p = strchr(type, ':'); in key_get_info()
590 if (!p) { in key_get_info()
594 len = p - type; in key_get_info()
601 return ++p; in key_get_info()
649 const char *p; in monitor_parse_command() local
654 p = get_command_name(*cmdp, cmdname, sizeof(cmdname)); in monitor_parse_command()
655 if (!p) { in monitor_parse_command()
662 (int)(p - cmdp_start), cmdp_start); in monitor_parse_command()
668 (int)(p - cmdp_start), cmdp_start); in monitor_parse_command()
673 while (qemu_isspace(*p)) { in monitor_parse_command()
674 p++; in monitor_parse_command()
677 *cmdp = p; in monitor_parse_command()
679 if (cmd->sub_table != NULL && *p != '\0') { in monitor_parse_command()
699 const char *p = *endp; in monitor_parse_arguments() local
719 while (qemu_isspace(*p)) { in monitor_parse_arguments()
720 p++; in monitor_parse_arguments()
724 if (*p == '\0') { in monitor_parse_arguments()
729 ret = get_str(buf, sizeof(buf), &p); in monitor_parse_arguments()
758 while (qemu_isspace(*p)) { in monitor_parse_arguments()
759 p++; in monitor_parse_arguments()
761 if (!*p) { in monitor_parse_arguments()
764 if (get_str(buf, sizeof(buf), &p) < 0) { in monitor_parse_arguments()
779 while (qemu_isspace(*p)) { in monitor_parse_arguments()
780 p++; in monitor_parse_arguments()
782 if (*p == '/') { in monitor_parse_arguments()
784 p++; in monitor_parse_arguments()
786 if (qemu_isdigit(*p)) { in monitor_parse_arguments()
788 while (qemu_isdigit(*p)) { in monitor_parse_arguments()
789 count = count * 10 + (*p - '0'); in monitor_parse_arguments()
790 p++; in monitor_parse_arguments()
796 switch (*p) { in monitor_parse_arguments()
803 format = *p++; in monitor_parse_arguments()
807 p++; in monitor_parse_arguments()
811 p++; in monitor_parse_arguments()
815 p++; in monitor_parse_arguments()
820 p++; in monitor_parse_arguments()
827 if (*p != '\0' && !qemu_isspace(*p)) { in monitor_parse_arguments()
829 *p); in monitor_parse_arguments()
863 while (qemu_isspace(*p)) { in monitor_parse_arguments()
864 p++; in monitor_parse_arguments()
868 if (*p == '\0') { in monitor_parse_arguments()
873 if (*p == '.') { in monitor_parse_arguments()
874 p++; in monitor_parse_arguments()
875 while (qemu_isspace(*p)) { in monitor_parse_arguments()
876 p++; in monitor_parse_arguments()
885 if (get_expr(mon, &val, &p)) { in monitor_parse_arguments()
909 while (qemu_isspace(*p)) { in monitor_parse_arguments()
910 p++; in monitor_parse_arguments()
914 if (*p == '\0') { in monitor_parse_arguments()
918 ret = qemu_strtosz_MiB(p, &end, &val); in monitor_parse_arguments()
924 p = end; in monitor_parse_arguments()
931 while (qemu_isspace(*p)) { in monitor_parse_arguments()
932 p++; in monitor_parse_arguments()
936 if (*p == '\0') { in monitor_parse_arguments()
940 if (get_double(mon, &val, &p) < 0) { in monitor_parse_arguments()
943 if (p[0] && p[1] == 's') { in monitor_parse_arguments()
944 switch (*p) { in monitor_parse_arguments()
946 val /= 1e3; p += 2; break; in monitor_parse_arguments()
948 val /= 1e6; p += 2; break; in monitor_parse_arguments()
950 val /= 1e9; p += 2; break; in monitor_parse_arguments()
953 if (*p && !qemu_isspace(*p)) { in monitor_parse_arguments()
965 while (qemu_isspace(*p)) { in monitor_parse_arguments()
966 p++; in monitor_parse_arguments()
968 beg = p; in monitor_parse_arguments()
969 while (qemu_isgraph(*p)) { in monitor_parse_arguments()
970 p++; in monitor_parse_arguments()
972 if (p - beg == 2 && !memcmp(beg, "on", p - beg)) { in monitor_parse_arguments()
974 } else if (p - beg == 3 && !memcmp(beg, "off", p - beg)) { in monitor_parse_arguments()
985 const char *tmp = p; in monitor_parse_arguments()
994 while (qemu_isspace(*p)) { in monitor_parse_arguments()
995 p++; in monitor_parse_arguments()
997 if (*p == '-') { in monitor_parse_arguments()
998 p++; in monitor_parse_arguments()
999 if (c != *p) { in monitor_parse_arguments()
1000 if (!is_valid_option(p, typestr)) { in monitor_parse_arguments()
1002 cmd->name, *p); in monitor_parse_arguments()
1009 p = tmp; in monitor_parse_arguments()
1013 tmp = p++; in monitor_parse_arguments()
1014 while (qemu_isspace(*p)) { in monitor_parse_arguments()
1015 p++; in monitor_parse_arguments()
1017 ret = get_str(buf, sizeof(buf), &p); in monitor_parse_arguments()
1026 p++; in monitor_parse_arguments()
1039 while (qemu_isspace(*p)) { in monitor_parse_arguments()
1040 p++; in monitor_parse_arguments()
1044 if (*p == '\0') { in monitor_parse_arguments()
1049 len = strlen(p); in monitor_parse_arguments()
1055 qdict_put_str(qdict, key, p); in monitor_parse_arguments()
1056 p += len; in monitor_parse_arguments()
1068 while (qemu_isspace(*p)) { in monitor_parse_arguments()
1069 p++; in monitor_parse_arguments()
1071 if (*p != '\0') { in monitor_parse_arguments()
1178 const char *p, *pstart; in cmd_completion() local
1182 p = list; in cmd_completion()
1184 pstart = p; in cmd_completion()
1185 p = qemu_strchrnul(p, '|'); in cmd_completion()
1186 len = p - pstart; in cmd_completion()
1193 if (*p == '\0') { in cmd_completion()
1196 p++; in cmd_completion()
1207 const char *p; in file_completion() local
1209 p = strrchr(input, '/'); in file_completion()
1210 if (!p) { in file_completion()
1215 input_path_len = p - input + 1; in file_completion()
1221 pstrcpy(file_prefix, sizeof(file_prefix), p + 1); in file_completion()
1260 const char *p = strchr(typestr, ':'); in next_arg_type() local
1261 return (p != NULL ? ++p : typestr); in next_arg_type()