Lines Matching refs:tp
172 char *tp = is_prefixed_with(buf, prefix); in skip_whitespace_if_prefixed_with() local
173 if (tp) { in skip_whitespace_if_prefixed_with()
174 tp = skip_whitespace(tp); in skip_whitespace_if_prefixed_with()
176 return tp; in skip_whitespace_if_prefixed_with()
205 char *tp, *p; in procps_read_smaps() local
208 if ((tp = skip_whitespace_if_prefixed_with(buf, S)) != NULL) { \ in procps_read_smaps()
209 total->X += currec.X = fast_strtoul_10(&tp); \ in procps_read_smaps()
221 tp = strchr(buf, '-'); in procps_read_smaps()
222 if (tp) { in procps_read_smaps()
236 *tp = ' '; in procps_read_smaps()
237 tp = buf; in procps_read_smaps()
238 currec.smap_start = fast_strtoull_16(&tp); in procps_read_smaps()
239 currec.smap_size = (fast_strtoull_16(&tp) - currec.smap_start) >> 10; in procps_read_smaps()
241 strncpy(currec.smap_mode, tp, sizeof(currec.smap_mode)-1); in procps_read_smaps()
244 tp = skip_whitespace(skip_fields(tp, 4)); in procps_read_smaps()
246 if (!is_prefixed_with(tp, "/dev/") || strcmp(tp, "/dev/zero\n") == 0) { in procps_read_smaps()
256 if (strcmp(tp, "[stack]\n") == 0) in procps_read_smaps()
259 p = skip_non_whitespace(tp); in procps_read_smaps()
260 if (p == tp) { in procps_read_smaps()
264 currec.smap_name = xstrdup(tp); in procps_read_smaps()
496 char *tp; in procps_scan() local
498 if ((tp = is_prefixed_with(buf, str)) != NULL) { \ in procps_scan()
499 tp = skip_whitespace(tp); \ in procps_scan()
500 sscanf(tp, "%u", &sp->name); \ in procps_scan()