Lines Matching refs:g_max_cpus
61 static processorid_t g_max_cpus;
229 g_max_cpus = (processorid_t)sysconf(_SC_CPUID_MAX) + 1;
231 if ((g_selected = malloc(sizeof (int8_t) * g_max_cpus)) == NULL)
234 bzero(g_selected, sizeof (int8_t) * g_max_cpus);
236 g_pset_cpus = malloc(sizeof (processorid_t) * g_max_cpus);
240 bzero(g_pset_cpus, sizeof (processorid_t) * g_max_cpus);
271 if ((g_data[0] = malloc(g_datasize * g_max_cpus)) == NULL)
274 if ((g_data[1] = malloc(g_datasize * g_max_cpus)) == NULL)
404 if (cpu < 0 || cpu >= g_max_cpus)
422 if (low < 0 || low >= g_max_cpus)
425 if (high < 0 || high >= g_max_cpus)
454 for (i = 0; i < g_max_cpus; i++)
458 if (i != g_max_cpus)
462 g_pset_ncpus = g_max_cpus;
480 uint_t ncpus = g_max_cpus;
515 bzero(g_selected, sizeof (int8_t) * g_max_cpus);
700 for (i = 0; i < g_max_cpus; i++) {
743 for (i = 0; i < g_max_cpus; i++) {
816 for (i = 0; i < g_max_cpus; i++) {
856 for (i = 0; i < g_max_cpus; i++) {
889 for (i = 0; i < g_max_cpus; i++) {
905 if (&data[i] - base >= g_max_cpus)
953 for (base = data; data - base < g_max_cpus; data++, odata++) {
998 for (i = 0; i < g_max_cpus; i++) {
1009 if (i == g_max_cpus)
1016 for (odata->tdata_cpuid = -1; i < g_max_cpus - 1; i++) {
1292 for (id = 0; id < g_max_cpus; id++) {