Lines Matching refs:portid

356 	int portid;
364 if (GETPROP(node, "portid", (caddr_t)&portid) != -1)
365 return (portid);
366 if (GETPROP(node, "upa-portid", (caddr_t)&portid) != -1)
367 return (portid);
372 * For a virtual cpu node that is a CMP core, the "portid"
374 * For a virtual cpu node that is a CMT strand, the "portid" is
376 * So we iterate up as far as 2 levels to get the "portid".
383 if (GETPROP(node, "portid", (caddr_t)&portid) != -1) {
386 return (portid);
446 int portid;
455 if ((portid = get_portid(node, &cmpnode)) == -1) {
456 cmn_err(CE_PANIC, "portid not found");
460 cpuid = portid;
470 cpunode->portid = portid;
571 cmp_add_cpu(portid, cpuid);
615 int portid;
624 if ((portid = ddi_prop_get_int(DDI_DEV_T_ANY, dip,
625 DDI_PROP_DONTPASS, "portid", -1)) != -1)
626 return (portid);
627 if ((portid = ddi_prop_get_int(DDI_DEV_T_ANY, dip,
628 DDI_PROP_DONTPASS, "upa-portid", -1)) != -1)
629 return (portid);
636 * For a virtual cpu node that is a CMP core, the "portid"
638 * For a virtual cpu node that is a CMT strand, the "portid" is
640 * So we iterate up as far as 2 levels to get the "portid".
645 if ((portid = ddi_prop_get_int(DDI_DEV_T_ANY, dip,
646 DDI_PROP_DONTPASS, "portid", -1)) != -1) {
649 return (portid);
670 int portid;
678 if ((portid = get_portid_ddi(dip, &cmpnode)) == -1) {
679 cmn_err(CE_PANIC, "portid not found");
684 cpuid = portid;
694 cpunode->portid = portid;
787 cmp_add_cpu(portid, cpuid);
1056 uint_t portid;
1058 size = GETPROPLEN(node, "upa-portid");
1059 if (size == -1 || size > sizeof (portid))
1060 cmn_err(CE_PANIC, "upa-portid size");
1061 if (GETPROP(node, "upa-portid", (caddr_t)&portid) == -1)
1062 cmn_err(CE_PANIC, "upa-portid");
1083 uint_t portid;
1086 size = GETPROPLEN(node, "portid");
1087 if (size == -1) size = GETPROPLEN(node, "upa-portid");
1090 if (size > sizeof (portid))
1091 cmn_err(CE_PANIC, "portid size wrong");
1093 if (GETPROP(node, "portid", (caddr_t)&portid) == -1)
1094 if (GETPROP(node, "upa-portid", (caddr_t)&portid) == -1)
1095 cmn_err(CE_PANIC, "portid not found");