Lines Matching refs:p
309 int valid_parts = 0, p, ret; in get_gpt_info() local
319 for (p = 1; p <= MAX_SEARCH_PARTITIONS; p++) { in get_gpt_info()
320 ret = part_get_info(dev_desc, p, &info); in get_gpt_info()
380 char *val, *p; in set_gpt_info() local
413 if (extract_env(val, &p)) in set_gpt_info()
414 p = val; in set_gpt_info()
415 *str_disk_guid = strdup(p); in set_gpt_info()
433 p = s; in set_gpt_info()
434 while (*p) { in set_gpt_info()
435 if (*p++ == ';') in set_gpt_info()
462 if (extract_env(val, &p)) in set_gpt_info()
463 p = val; in set_gpt_info()
464 if (strnlen(p, max_str_part) >= sizeof(parts[i].uuid)) { in set_gpt_info()
469 strncpy((char *)parts[i].uuid, p, max_str_part); in set_gpt_info()
477 if (extract_env(val, &p)) in set_gpt_info()
478 p = val; in set_gpt_info()
479 if (strnlen(p, max_str_part) >= sizeof(parts[i].type_guid)) { in set_gpt_info()
485 strncpy((char *)parts[i].type_guid, p, max_str_part); in set_gpt_info()
495 if (extract_env(val, &p)) in set_gpt_info()
496 p = val; in set_gpt_info()
497 if (strnlen(p, max_str_part) >= sizeof(parts[i].name)) { in set_gpt_info()
501 strncpy((char *)parts[i].name, p, max_str_part); in set_gpt_info()
510 if (extract_env(val, &p)) in set_gpt_info()
511 p = val; in set_gpt_info()
512 if ((strcmp(p, "-") == 0)) { in set_gpt_info()
516 size_ll = ustrtoull(p, &p, 0); in set_gpt_info()
525 if (extract_env(val, &p)) in set_gpt_info()
526 p = val; in set_gpt_info()
527 start_ll = ustrtoull(p, &p, 0); in set_gpt_info()