Lines Matching refs:platform
35 static char platform[255] = "";
39 size_t platlen = sizeof(platform);
40 if (strlen(platform) == 0)
41 sysctlbyname("hw.platform", platform, &platlen, NULL, -1);
43 if (strcmp(platform, "powermac") == 0)
45 if (strcmp(platform, "chrp") == 0)
54 size_t platlen = sizeof(platform);
55 if (strlen(platform) == 0)
56 sysctlbyname("hw.platform", platform, &platlen, NULL, -1);
58 if (strcmp(platform, "powermac") == 0 && strcmp(part_type, "APM") == 0)
60 if (strcmp(platform, "ps3") == 0 && strcmp(part_type, "GPT") == 0)
62 if (strcmp(platform, "chrp") == 0 &&
81 size_t platlen = sizeof(platform);
82 if (strlen(platform) == 0)
83 sysctlbyname("hw.platform", platform, &platlen, NULL, -1);
87 if (strcmp(platform, "chrp") == 0 && strcmp(part_type, "GPT") == 0)
94 size_t platlen = sizeof(platform);
95 if (strlen(platform) == 0)
96 sysctlbyname("hw.platform", platform, &platlen, NULL, -1);
98 if (strcmp(platform, "chrp") == 0)
100 if (strcmp(platform, "powermac") == 0)
113 size_t platlen = sizeof(platform);
114 if (strlen(platform) == 0)
115 sysctlbyname("hw.platform", platform, &platlen, NULL, -1);
120 (strcmp(platform, "chrp") == 0 && strcmp(part_type, "GPT") == 0))