Lines Matching full:platform

35 static char platform[255] = "";  variable
39 size_t platlen = sizeof(platform); in default_scheme()
40 if (strlen(platform) == 0) in default_scheme()
41 sysctlbyname("hw.platform", platform, &platlen, NULL, -1); in default_scheme()
43 if (strcmp(platform, "powermac") == 0) in default_scheme()
45 if (strcmp(platform, "chrp") == 0 || strcmp(platform, "ps3") == 0 || in default_scheme()
46 strcmp(platform, "mpc85xx") == 0) in default_scheme()
55 size_t platlen = sizeof(platform); in is_scheme_bootable()
56 if (strlen(platform) == 0) in is_scheme_bootable()
57 sysctlbyname("hw.platform", platform, &platlen, NULL, -1); in is_scheme_bootable()
59 if (strcmp(platform, "powermac") == 0 && strcmp(part_type, "APM") == 0) in is_scheme_bootable()
61 if (strcmp(platform, "powernv") == 0 && strcmp(part_type, "GPT") == 0) in is_scheme_bootable()
63 if ((strcmp(platform, "chrp") == 0 || strcmp(platform, "ps3") == 0) && in is_scheme_bootable()
67 if (strcmp(platform, "mpc85xx") == 0 && strcmp(part_type, "MBR") == 0) in is_scheme_bootable()
85 size_t platlen = sizeof(platform); in bootpart_size()
86 if (strlen(platform) == 0) in bootpart_size()
87 sysctlbyname("hw.platform", platform, &platlen, NULL, -1); in bootpart_size()
93 if (strcmp(platform, "chrp") == 0) in bootpart_size()
95 if (strcmp(platform, "ps3") == 0 || strcmp(platform, "powernv") == 0) in bootpart_size()
97 if (strcmp(platform, "mpc85xx") == 0) in bootpart_size()
105 size_t platlen = sizeof(platform); in bootpart_type()
106 if (strlen(platform) == 0) in bootpart_type()
107 sysctlbyname("hw.platform", platform, &platlen, NULL, -1); in bootpart_type()
109 if (strcmp(platform, "chrp") == 0) in bootpart_type()
111 if (strcmp(platform, "powermac") == 0) in bootpart_type()
113 if (strcmp(platform, "powernv") == 0 || strcmp(platform, "ps3") == 0) { in bootpart_type()
120 if (strcmp(platform, "mpc85xx") == 0) { in bootpart_type()
135 size_t platlen = sizeof(platform); in partcode_path()
136 if (strlen(platform) == 0) in partcode_path()
137 sysctlbyname("hw.platform", platform, &platlen, NULL, -1); in partcode_path()
141 if (strcmp(platform, "chrp") == 0) in partcode_path()