Lines Matching defs:p
43 parser_read_arg_bool(const char *p)
45 p = rte_str_skip_leading_spaces(p);
48 if (((p[0] == 'y') && (p[1] == 'e') && (p[2] == 's')) ||
49 ((p[0] == 'Y') && (p[1] == 'E') && (p[2] == 'S'))) {
50 p += 3;
54 if (((p[0] == 'o') && (p[1] == 'n')) ||
55 ((p[0] == 'O') && (p[1] == 'N'))) {
56 p += 2;
60 if (((p[0] == 'n') && (p[1] == 'o')) ||
61 ((p[0] == 'N') && (p[1] == 'O'))) {
62 p += 2;
66 if (((p[0] == 'o') && (p[1] == 'f') && (p[2] == 'f')) ||
67 ((p[0] == 'O') && (p[1] == 'F') && (p[2] == 'F'))) {
68 p += 3;
72 p = rte_str_skip_leading_spaces(p);
74 if (p[0] != '\0')
81 parser_read_uint64(uint64_t *value, const char *p)
86 p = rte_str_skip_leading_spaces(p);
87 if (!isdigit(*p))
90 val = strtoul(p, &next, 10);
91 if (p == next)
94 p = next;
95 switch (*p) {
108 p++;
112 p = rte_str_skip_leading_spaces(p);
113 if (*p != '\0')
121 parser_read_uint64_hex(uint64_t *value, const char *p)
126 p = rte_str_skip_leading_spaces(p);
128 val = strtoul(p, &next, 16);
129 if (p == next)
132 p = rte_str_skip_leading_spaces(next);
133 if (*p != '\0')
141 parser_read_uint32(uint32_t *value, const char *p)
144 int ret = parser_read_uint64(&val, p);
157 parser_read_uint32_hex(uint32_t *value, const char *p)
160 int ret = parser_read_uint64_hex(&val, p);
173 parser_read_uint16(uint16_t *value, const char *p)
176 int ret = parser_read_uint64(&val, p);
189 parser_read_uint16_hex(uint16_t *value, const char *p)
192 int ret = parser_read_uint64_hex(&val, p);
205 parser_read_uint8(uint8_t *value, const char *p)
208 int ret = parser_read_uint64(&val, p);
221 parser_read_uint8_hex(uint8_t *value, const char *p)
224 int ret = parser_read_uint64_hex(&val, p);
416 struct cpu_core_params *p)
426 if (p == NULL)
502 p->socket_id = s;
503 p->core_id = c;
504 p->thread_id = h;