Lines Matching refs:nlayers
481 int nlayers;
500 nlayers = 0;
503 topo_layers[nlayers].type = TOPO_TYPE_PKG;
504 topo_layers[nlayers].id_shift = pkg_id_shift;
506 printf("Package ID shift: %u\n", topo_layers[nlayers].id_shift);
507 nlayers++;
521 topo_layers[nlayers].type = TOPO_TYPE_CACHE;
522 topo_layers[nlayers].subtype = i + 1;
523 topo_layers[nlayers].id_shift = caches[i].id_shift;
526 topo_layers[nlayers].subtype,
527 topo_layers[nlayers].id_shift);
528 nlayers++;
533 topo_layers[nlayers].type = TOPO_TYPE_CORE;
534 topo_layers[nlayers].id_shift = core_id_shift;
537 topo_layers[nlayers].id_shift);
538 nlayers++;
541 topo_layers[nlayers].type = TOPO_TYPE_PU;
542 topo_layers[nlayers].id_shift = 0;
543 nlayers++;
551 for (layer = 0; layer < nlayers; ++layer) {
560 for (layer = 0; layer < nlayers; ++layer) {