Searched refs:portid (Results 1 - 25 of 96) sorted by relevance

1234

/illumos-gate/usr/src/uts/sun4u/serengeti/sys/
H A Dserengeti.h99 /* we only need the 5 LSB of the portid to calculate the board number */
107 * For Serengeti and WildCat the portid consists of 10 bits.
122 * For Jaguar there are two CPU IDs the can be derived from portid
141 * Calculates the SSM NodeID from the portid
143 #define SG_PORTID_TO_NODEID(portid) (((portid) >> SG_PORTID_NODE_SHIFT) & \
149 * Calculates the Safari Agent ID from the portid.
151 #define SG_PORTID_TO_SAFARI_ID(portid) ((portid) & SG_SAFARI_ID_MASK)
157 * If a valid portid i
[all...]
/illumos-gate/usr/src/lib/efcode/jupiter/
H A Djupiter.c43 /* Macro to get I/O portid */
44 #define DO_GET_IO_PORTID(env, lo, hi, portid) \
48 portid = (uint32_t)POP(DS)
152 unsigned int portid, lsb, ch, leaf; local
154 CHECK_DEPTH(env, 2, "jupiter:get-portid");
163 portid = OPL_IO_PORTID(lsb, ch, leaf);
165 debug_msg(DEBUG_REG_ACCESS, "jupiter:get-portid ( %x %x ) -> %x\n",
166 (int)phi, (int)plo, (int)portid);
167 PUSH(DS, portid);
184 /* Convert physical address to portid */
204 unsigned int portid, lsb, ch; local
236 uint32_t portid, ch, leaf; local
313 uint32_t portid = 0; local
375 int portid; local
[all...]
/illumos-gate/usr/src/uts/sun4u/io/
H A Dmach_rootnex.c82 int32_t portid; local
85 if (((portid = ddi_prop_get_int(DDI_DEV_T_ANY, rdip,
86 DDI_PROP_DONTPASS, "upa-portid", -1)) != -1) ||
87 ((portid = ddi_prop_get_int(DDI_DEV_T_ANY, rdip,
88 DDI_PROP_DONTPASS, "portid", -1)) != -1)) {
98 * portid for those devices which have a portid.
100 hdlp->ih_vector |= (UPAID_TO_IGN(portid) << 6);
114 DDI_PROP_DONTPASS, "upa-portid", -1)) != -1) {
160 int32_t portid; local
240 int portid; local
298 int portid, nodeid; local
[all...]
H A Dgptwo_cpu.c78 uint_t portid; member in struct:bca
148 gptwocfg_configure_cpu(dev_info_t *ap, spcd_t *pcd, uint_t portid) argument
157 GPTWO_DEBUG2(1, CE_CONT, "gptwocfg_configure_cpu: portid=%x pcd=%lx\n",
158 portid, pcd);
175 "skipping configure of portid=0x%x", implementation,
176 portid);
182 if (cmp_node = gptwocfg_create_cmp_node(ap, pcd, portid))
193 cmp_node : ap, pcd, portid, pcd->spcd_cpuid[i], i,
211 (mc_node[0] = gptwocfg_create_mc_node(ap, pcd, portid)))
232 gptwocfg_create_cmp_node(dev_info_t *ap, spcd_t *pcd, uint_t portid) argument
261 uint_t portid; local
300 gptwocfg_create_cpu_node(dev_info_t *ap, spcd_t *pcd, uint_t portid, uint_t cpuid, uint_t coreid, uint_t impl) argument
469 uint_t portid, impl; local
877 gptwocfg_create_mc_node(dev_info_t *ap, spcd_t *pcd, uint_t portid) argument
906 uint_t portid = bcp->portid; local
[all...]
/illumos-gate/usr/src/uts/sun4u/montecarlo/io/
H A Dttymux.conf31 upa-portid = 0x0;
/illumos-gate/usr/src/uts/sun4u/chicago/os/
H A Dchicago.c210 int portid; local
237 if (prom_getprop(curnode, "portid", (caddr_t)&portid) !=
238 -1 && portid > max_portid)
239 max_portid = portid;
309 int portid; local
312 * Chicago memory controller portid == global CPU id
314 if ((prom_getprop(nodeid, "portid", (caddr_t)&portid) == -1) ||
315 (portid <
[all...]
/illumos-gate/usr/src/uts/sun4u/enchilada/os/
H A Denchilada.c257 int portid; local
285 if (prom_getprop(curnode, "portid", (caddr_t)&portid) != -1 &&
286 portid > max_portid)
287 max_portid = portid;
357 int portid; local
360 * Enchilada memory controller portid == global CPU id
362 if ((prom_getprop(nodeid, "portid", (caddr_t)&portid) == -1) ||
363 (portid <
[all...]
/illumos-gate/usr/src/uts/sun4u/schumacher/os/
H A Dschumacher.c240 int portid; local
268 if (prom_getprop(curnode, "portid", (caddr_t)&portid) != -1 &&
269 portid > max_portid)
270 max_portid = portid;
340 int portid; local
343 * Schumacher memory controller portid == global CPU id
345 if ((prom_getprop(nodeid, "portid", (caddr_t)&portid) == -1) ||
346 (portid <
[all...]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/littleneck/common/
H A Dworkfile.c41 void print_us3_memory_line(int portid,
88 * Calculates the Safari Agent ID from the portid.
90 #define LNECK_PORTID_TO_SAFARI_ID(portid) ((portid) & LNECK_SAFARI_ID_MASK)
95 * If the portid associated with a CPU board is passed in, TRUE is returned,
98 #define LNECK_PORTID_IS_CPU_TYPE(portid) \
99 (((((portid) & LNECK_SAFARI_ID_MASK) >= LNECK_MIN_CPU_SAFARI_ID) && \
100 (((portid) & LNECK_SAFARI_ID_MASK) <= LNECK_MAX_CPU_SAFARI_ID)) ? \
106 * Calculates the SSM NodeID from the portid
108 #define LNECK_PORTID_TO_NODEID(portid) (((porti
467 int portid = -1; local
506 print_us3_memory_line(int portid, int bank_id, uint64_t bank_size, char *bank_status, uint64_t dimm_size, uint32_t intlv, int seg_id) argument
633 int portid; local
[all...]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/serengeti/common/
H A Dserengeti.c142 void print_us3_memory_line(int portid, int bank_id, uint64_t bank_size,
221 int portid; local
447 * Get the portid of the schizo and xmits that this card
450 portid = -1;
451 value = get_prop_val(find_prop(pci, "portid"));
453 portid = *(int *)value;
455 card.schizo_portid = portid;
458 (void) sprintf(card.notes, "%s portid [%d] dev_no[%d]"
461 portid,
772 int portid local
1282 int portid; local
1466 int portid; local
1586 int portid, nodeid, board; local
1807 print_us3_memory_line(int portid, int bank_id, uint64_t bank_size, char *bank_status, uint64_t dimm_size, uint32_t intlv, int seg_id) argument
1830 print_us3_failed_memory_line(int portid, int bank_id, char *bank_status) argument
[all...]
/illumos-gate/usr/src/lib/libprtdiag/common/
H A Dmemory.c78 static void add_bank_node(uint64_t mc_decode, int portid, char *bank_status);
131 int portid; local
142 /* Get portid of this mc from libdevinfo. */
143 portid = (*(int *)get_prop_val(find_prop(pnode, "portid")));
208 add_bank_node(madr[i], portid, bank_status);
222 add_bank_node(uint64_t mc_decode, int portid, char *bank_status) argument
234 new->portid = portid;
299 mcid = SG_PORTID_TO_SAFARI_ID(bank->portid);
483 print_us3_memory_line(int portid, int bank_id, uint64_t bank_size, char *bank_status, uint64_t dimm_size, uint32_t intlv, int seg_id) argument
536 print_us3_failed_memory_line(int portid, int bank_id, char *bank_status) argument
[all...]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/daktari/common/
H A Dworkfile.c40 /* we only need the 5 LSB of the portid to calculate the board number */
55 * If the portid associated with a CPU board is passed in, TRUE is returned,
58 #define DAK_PORTID_IS_CPU_TYPE(portid) \
59 (((((portid) & DAK_SAFARI_ID_MASK) >= DAK_MIN_CPU_SAFARI_ID) && \
60 (((portid) & DAK_SAFARI_ID_MASK) <= DAK_MAX_CPU_SAFARI_ID)) ? \
65 * If the portid associated with a CPU board is passed in, the board number
66 * associated with this portid is returned, otherwise -1.
68 #define DAK_CPU_BD_PORTID_TO_BD_NUM(portid) \
69 ((DAK_PORTID_IS_CPU_TYPE(portid)) ? \
70 (((portid)
192 int portid = -1; local
580 print_us3_memory_line(int portid, int bank_id, uint64_t bank_size, char *bank_status, uint64_t dimm_size, uint32_t intlv, int seg_id) argument
607 int portid; local
[all...]
/illumos-gate/usr/src/uts/sun4u/boston/os/
H A Dboston.c451 int portid; local
479 if (prom_getprop(curnode, "portid", (caddr_t)&portid) !=
480 -1 && portid > max_portid)
481 max_portid = portid;
551 int portid; local
554 * Memory controller portid == global CPU id
556 if ((prom_getprop(nodeid, "portid", (caddr_t)&portid) == -1) ||
557 (portid <
[all...]
/illumos-gate/usr/src/uts/sun4u/seattle/os/
H A Dseattle.c453 int portid; local
481 if (prom_getprop(curnode, "portid", (caddr_t)&portid) !=
482 -1 && portid > max_portid)
483 max_portid = portid;
553 int portid; local
556 * Memory controller portid == global CPU id
558 if ((prom_getprop(nodeid, "portid", (caddr_t)&portid) == -1) ||
559 (portid <
[all...]
/illumos-gate/usr/src/lib/efcode/gp2/
H A Dgp2.c115 fstack_t phi, plo, portid; local
118 CHECK_DEPTH(env, 2, "gp2:get-portid");
122 portid = ((plo & 0xff800000) >> 23) | ((phi & 1) << 9);
123 debug_msg(DEBUG_REG_ACCESS, "gp2:get-portid ( %x %x ) -> %x\n",
124 (int)phi, (int)plo, (int)portid);
125 PUSH(DS, portid);
203 fstack_t portid, bar, align, type, size_hi, size_lo; local
210 portid = POP(DS);
218 fc_int2cell(portid), fc_int2cell(bar), fc_int2cell(align),
226 "gp2:%s ( %x %x %x %x %x %x ) -> %x %x\n", service, (int)portid,
237 int portid; local
[all...]
/illumos-gate/usr/src/uts/sun4u/os/
H A Dfillsysinfo.c356 int portid; local
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"
446 int portid; local
615 int portid; local
670 int portid; local
1056 uint_t portid; local
1083 uint_t portid; local
[all...]
H A Dcmp.c36 * Note: We assume that chipid == portid. This is not necessarily true.
55 /* N.B. We're assuming that the cpunode[].portid is still intact */
56 chipid = cpunodes[cpuid].portid;
78 /* N.B. We're assuming that the cpunode[].portid is still intact */
79 chipid = cpunodes[cpuid].portid;
103 chipid = cpunodes[cpuid].portid;
138 /* N.B. We're assuming that the cpunode[].portid is still intact */
139 return (cpunodes[cpuid].portid);
/illumos-gate/usr/src/uts/sun4u/serengeti/io/
H A Dsbdp_cpu.c110 processorid_t portid; local
157 * to be called with the portid rather than the cpuid.
159 portid = SG_CPUID_TO_PORTID(cpuid);
160 if (!SBDP_IS_CPU_PRESENT(bdp, SG_CPUID_TO_CPU_UNIT(portid))) {
161 cpu = portid;
223 processorid_t portid; local
231 * interface needs to be called with the portid rather
234 portid = SG_CPUID_TO_PORTID(cpuid);
235 if (!SBDP_IS_CPU_PRESENT(bdp, SG_CPUID_TO_CPU_UNIT(portid))) {
236 cpu = portid;
563 processorid_t portid; /* portid we are looking for */ member in struct:sbdp_prom_get_node_args
568 sbdp_find_nearby_cpu_by_portid(pnode_t nodeid, processorid_t portid) argument
586 int portid; local
826 int impl, cpuid, portid; local
[all...]
/illumos-gate/usr/src/uts/common/io/comstar/port/fct/
H A Dfct_impl.h186 #define FCT_LOOP_HASH(portid) (portid & 0xff)
187 #define FCT_FABRIC_HASH(portid) (((portid & 0x1f00) | \
188 ((portid & 0x70000)>>3)) >> 8)
189 #define FCT_PORTID_HASH_FUNC(portid) \
190 ((portid & 0xFFFF00)?FCT_FABRIC_HASH(portid):FCT_LOOP_HASH(portid))
396 uint32_t portid);
[all...]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/
H A Dpmcs_intr.c255 pmcs_kill_port(pmcs_hw_t *pwp, int portid) argument
257 pmcs_phy_t *pptr = pwp->ports[portid];
270 if (pptr->link_rate && pptr->portid == portid &&
277 pptr = pwp->ports[portid];
278 pwp->ports[portid] = NULL;
286 pmcs_prt(pwp, PMCS_PRT_INFO, NULL, NULL, "PortID 0x%x Cleared", portid);
296 uint8_t portid = IOP_EVENT_PORTID(w1); local
350 * the portid, both of which only ever change in this function.
352 rp = pwp->ports[portid];
[all...]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/starcat/common/
H A Dstarcat.c90 void print_us3_memory_line(int portid, int bank_id, uint64_t bank_size,
129 int portid; local
320 * Get the portid of the schizo that this card
323 portid = -1;
324 value = get_prop_val(find_prop(pci, "portid"));
326 portid = *(int *)value;
328 card.schizo_portid = portid;
331 (void) sprintf(card.notes, "%s portid [%d]"
333 card.notes, portid, card.dev_no,
520 int portid local
980 print_us3_memory_line(int portid, int bank_id, uint64_t bank_size, char *bank_status, uint64_t dimm_size, uint32_t intlv, int seg_id) argument
[all...]
/illumos-gate/usr/src/psm/promif/ieee1275/sun4u/
H A Dprom_starcat.c43 * Given the portid of the IOB to which the tunnel should be moved and the type
52 prom_starcat_switch_tunnel(uint_t portid, uint_t msgtype) argument
77 ci[3] = p1275_uint2cell(portid);
/illumos-gate/usr/src/uts/common/sys/ib/clients/eoib/
H A Deib.h113 * Making VHUB_ID from vlan and portid
115 #define EIB_VHUB_ID(portid, vlan) \
116 ((((uint_t)(portid) & 0xfff) << 12) | ((uint_t)(vlan) & 0xfff))
138 #define EIB_PROP_GW_PORTID "gw-portid"
/illumos-gate/usr/src/uts/sun4u/sys/
H A Dopl_cfg.h47 * CPU device portid:
75 * pseudo-mc portid:
110 #define OPL_IO_PORTID_TO_LSB(portid) (((portid) >> 4) & OPL_LSBID_MASK)
111 #define OPL_PORTID_TO_CHANNEL(portid) (((portid) >> 1) & 0x7)
112 #define OPL_PORTID_TO_LEAF(portid) ((portid) & 0x1)
/illumos-gate/usr/src/uts/sun4u/starcat/os/
H A Dstarcat.c354 int portid; local
367 * Starcat memory controller portid == global CPU id
369 if ((prom_getprop(nodeid, "portid", (caddr_t)&portid) < 0) ||
370 (portid == -1))
373 expnum = STARCAT_CPUID_TO_EXPANDER(portid);
394 if (portid == cpunodes[CPU->cpu_id].portid)
898 int cpuid; /* input, to match cpuid/portid/upa-portid */
922 int portid; local
[all...]

Completed in 95 milliseconds

1234