Lines Matching defs:chip
51 * cpu id, core id, or chip id. We generalize this with simple node.
60 * A physical chip. A chip can contain multiple cores and virtual cpus.
228 struct pchip *chip;
235 chip = l1->l_ptr;
237 if ((nspec != 0) && (chip->p_doit == 0))
240 vcpu = chip->p_vcpus->l_ptr;
247 if ((chip->p_ncore == 1) || (chip->p_ncore == chip->p_nvcpu)) {
250 chip->p_nvcpu,
251 chip->p_nvcpu > 1 ?
257 chip->p_ncore, _("cores"),
258 chip->p_nvcpu,
259 chip->p_nvcpu > 1 ?
263 print_links(chip->p_vcpus);
266 if ((chip->p_ncore == 1) || (chip->p_ncore == chip->p_nvcpu)) {
278 for (l2 = chip->p_cores; l2; l2 = l2->l_next) {
283 chip->p_nvcpu > 1 ?
307 * Report "1" if all cpus colocated on the same chip are online.
443 struct pchip *chip;
566 chip = find_link(&pchips, vc->v_pchip_id, &ins);
567 if (chip == NULL) {
568 chip = zalloc(sizeof (struct pchip));
569 chip->p_link.l_id = vc->v_pchip_id;
570 chip->p_link.l_ptr = chip;
571 ins_link(ins, &chip->p_link);
573 vc->v_pchip = chip;
584 core->c_pchip = chip;
586 chip->p_ncore++;
587 (void) find_link(&chip->p_cores, core->c_link.l_id,
596 (void) find_link(&chip->p_vcpus, vc->v_link.l_id, &ins);
598 chip->p_nvcpu++;