/titanic_41/usr/src/uts/sun4u/serengeti/sys/ |
H A D | serengeti.h | 143 #define SG_PORTID_TO_NODEID(portid) (((portid) >> SG_PORTID_NODE_SHIFT) & \ argument 151 #define SG_PORTID_TO_SAFARI_ID(portid) ((portid) & SG_SAFARI_ID_MASK) argument 160 #define SG_PORTID_TO_BOARD_NUM(portid) \ argument 161 ((SG_PORTID_IS_CPU_TYPE(portid)) ? \ 162 (SG_CPU_BD_PORTID_TO_BD_NUM(portid)) : \ 163 ((SG_PORTID_IS_IO_TYPE(portid)) ? \ 164 SG_IO_BD_PORTID_TO_BD_NUM(portid) : (-1))) 191 #define SG_PORTID_IS_CPU_TYPE(portid) \ argument 192 (((((portid) & SG_SAFARI_ID_MASK) >= SG_MIN_CPU_SAFARI_ID) && \ 193 (((portid) & SG_SAFARI_ID_MASK) <= SG_MAX_CPU_SAFARI_ID)) ? TRUE: FALSE) [all …]
|
/titanic_41/usr/src/lib/efcode/jupiter/ |
H A D | jupiter.c | 44 #define DO_GET_IO_PORTID(env, lo, hi, portid) \ argument 48 portid = (uint32_t)POP(DS) 152 unsigned int portid, lsb, ch, leaf; in do_get_io_portid() local 163 portid = OPL_IO_PORTID(lsb, ch, leaf); in do_get_io_portid() 166 (int)phi, (int)plo, (int)portid); in do_get_io_portid() 167 PUSH(DS, portid); in do_get_io_portid() 204 unsigned int portid, lsb, ch; in do_decode_unit() local 210 if (sscanf(buf, "%x,%llx", &portid, &lo) != 2) { in do_decode_unit() 211 if (sscanf(buf, "%x", &portid) != 1) { in do_decode_unit() 218 lsb = OPL_IO_PORTID_TO_LSB(portid); in do_decode_unit() [all …]
|
/titanic_41/usr/src/uts/sun4u/io/ |
H A D | mach_rootnex.c | 82 int32_t portid; in rootnex_add_intr_impl() local 85 if (((portid = ddi_prop_get_int(DDI_DEV_T_ANY, rdip, in rootnex_add_intr_impl() 87 ((portid = ddi_prop_get_int(DDI_DEV_T_ANY, rdip, in rootnex_add_intr_impl() 100 hdlp->ih_vector |= (UPAID_TO_IGN(portid) << 6); in rootnex_add_intr_impl() 160 int32_t portid; in rootnex_remove_intr_impl() local 163 if (((portid = ddi_prop_get_int(DDI_DEV_T_ANY, rdip, in rootnex_remove_intr_impl() 165 ((portid = ddi_prop_get_int(DDI_DEV_T_ANY, rdip, in rootnex_remove_intr_impl() 171 hdlp->ih_vector |= (UPAID_TO_IGN(portid) << 6); in rootnex_remove_intr_impl() 240 int portid; in rootnex_ctl_reportdev_impl() local 257 portid = ddi_prop_get_int(DDI_DEV_T_ANY, dev, in rootnex_ctl_reportdev_impl() [all …]
|
H A D | gptwo_cpu.c | 78 uint_t portid; member 148 gptwocfg_configure_cpu(dev_info_t *ap, spcd_t *pcd, uint_t portid) in gptwocfg_configure_cpu() argument 158 portid, pcd); in gptwocfg_configure_cpu() 176 portid); in gptwocfg_configure_cpu() 182 if (cmp_node = gptwocfg_create_cmp_node(ap, pcd, portid)) in gptwocfg_configure_cpu() 193 cmp_node : ap, pcd, portid, pcd->spcd_cpuid[i], i, in gptwocfg_configure_cpu() 211 (mc_node[0] = gptwocfg_create_mc_node(ap, pcd, portid))) in gptwocfg_configure_cpu() 232 gptwocfg_create_cmp_node(dev_info_t *ap, spcd_t *pcd, uint_t portid) in gptwocfg_create_cmp_node() argument 238 arg.portid = portid; in gptwocfg_create_cmp_node() 261 uint_t portid; in set_cmp_props() local [all …]
|
H A D | opl_cfg.c | 509 int portid, board, chip, channel, leaf; in opl_init_root_nodes() local 514 ret = OPL_GET_PROP(int, node, "portid", &portid, -1); in opl_init_root_nodes() 522 chip = OPL_CPU_CHIP(portid); in opl_init_root_nodes() 527 ret = OPL_GET_PROP(int, node, "portid", &portid, -1); in opl_init_root_nodes() 531 board = OPL_IO_PORTID_TO_LSB(portid); in opl_init_root_nodes() 532 channel = OPL_PORTID_TO_CHANNEL(portid); in opl_init_root_nodes() 540 leaf = OPL_PORTID_TO_LEAF(portid); in opl_init_root_nodes() 1003 int board, portid; in opl_create_pseudo_mc() local 1019 portid = OPL_LSB_TO_PSEUDOMC_PORTID(board); in opl_create_pseudo_mc() 1020 OPL_UPDATE_PROP(int, node, "portid", portid); in opl_create_pseudo_mc() [all …]
|
/titanic_41/usr/src/lib/libprtdiag_psr/sparc/littleneck/common/ |
H A D | workfile.c | 41 void print_us3_memory_line(int portid, 90 #define LNECK_PORTID_TO_SAFARI_ID(portid) ((portid) & LNECK_SAFARI_ID_MASK) argument 98 #define LNECK_PORTID_IS_CPU_TYPE(portid) \ argument 99 (((((portid) & LNECK_SAFARI_ID_MASK) >= LNECK_MIN_CPU_SAFARI_ID) && \ 100 (((portid) & LNECK_SAFARI_ID_MASK) <= LNECK_MAX_CPU_SAFARI_ID)) ? \ 108 #define LNECK_PORTID_TO_NODEID(portid) (((portid) >> LNECK_PORTID_NODE_SHIFT) \ argument 117 #define LNECK_CPU_BD_PORTID_TO_BD_NUM(portid) \ argument 118 ((LNECK_PORTID_IS_CPU_TYPE(portid)) ? \ 119 (((portid) & LNECK_SAFARI_ID_MASK) / 4) : (-1)) 127 #define LNECK_PORTID_IS_IO_TYPE(portid) \ argument [all …]
|
/titanic_41/usr/src/uts/sun4u/schumacher/os/ |
H A D | schumacher.c | 240 int portid; in plat_lgrp_init() local 268 if (prom_getprop(curnode, "portid", (caddr_t)&portid) != -1 && in plat_lgrp_init() 269 portid > max_portid) in plat_lgrp_init() 270 max_portid = portid; in plat_lgrp_init() 340 int portid; in plat_fill_mc() local 345 if ((prom_getprop(nodeid, "portid", (caddr_t)&portid) == -1) || in plat_fill_mc() 346 (portid < 0)) in plat_fill_mc() 349 if (portid < max_mem_nodes) in plat_fill_mc() 350 plat_assign_lgrphand_to_mem_node(portid, portid); in plat_fill_mc()
|
/titanic_41/usr/src/lib/libprtdiag_psr/sparc/serengeti/common/ |
H A D | serengeti.c | 142 void print_us3_memory_line(int portid, int bank_id, uint64_t bank_size, 221 int portid; in display_pci() local 450 portid = -1; in display_pci() 453 portid = *(int *)value; in display_pci() 455 card.schizo_portid = portid; in display_pci() 461 portid, in display_pci() 772 int portid = -1; in add_node() local 787 portid = *(int *)value; in add_node() 790 nodeid = SG_PORTID_TO_NODEID(portid); in add_node() 791 board = SG_PORTID_TO_BOARD_NUM(portid); in add_node() [all …]
|
/titanic_41/usr/src/uts/sun4u/enchilada/os/ |
H A D | enchilada.c | 257 int portid; in plat_lgrp_init() local 285 if (prom_getprop(curnode, "portid", (caddr_t)&portid) != -1 && in plat_lgrp_init() 286 portid > max_portid) in plat_lgrp_init() 287 max_portid = portid; in plat_lgrp_init() 357 int portid; in plat_fill_mc() local 362 if ((prom_getprop(nodeid, "portid", (caddr_t)&portid) == -1) || in plat_fill_mc() 363 (portid < 0)) in plat_fill_mc() 366 if (portid < max_mem_nodes) in plat_fill_mc() 367 plat_assign_lgrphand_to_mem_node(portid, portid); in plat_fill_mc()
|
/titanic_41/usr/src/lib/libprtdiag_psr/sparc/daktari/common/ |
H A D | workfile.c | 58 #define DAK_PORTID_IS_CPU_TYPE(portid) \ argument 59 (((((portid) & DAK_SAFARI_ID_MASK) >= DAK_MIN_CPU_SAFARI_ID) && \ 60 (((portid) & DAK_SAFARI_ID_MASK) <= DAK_MAX_CPU_SAFARI_ID)) ? \ 68 #define DAK_CPU_BD_PORTID_TO_BD_NUM(portid) \ argument 69 ((DAK_PORTID_IS_CPU_TYPE(portid)) ? \ 70 (((portid) & DAK_SAFARI_ID_MASK) / 4) : (-1)) 78 #define DAK_PORTID_IS_IO_TYPE(portid) \ argument 79 (((((portid) & DAK_SAFARI_ID_MASK) >= DAK_MIN_IO_SAFARI_ID) && \ 80 (((portid) & DAK_SAFARI_ID_MASK) <= DAK_MAX_IO_SAFARI_ID)) ? \ 89 #define DAK_IO_BD_PORTID_TO_BD_NUM(portid) \ argument [all …]
|
/titanic_41/usr/src/uts/sun4u/chicago/os/ |
H A D | chicago.c | 210 int portid; in plat_lgrp_init() local 237 if (prom_getprop(curnode, "portid", (caddr_t)&portid) != in plat_lgrp_init() 238 -1 && portid > max_portid) in plat_lgrp_init() 239 max_portid = portid; in plat_lgrp_init() 309 int portid; in plat_fill_mc() local 314 if ((prom_getprop(nodeid, "portid", (caddr_t)&portid) == -1) || in plat_fill_mc() 315 (portid < 0)) in plat_fill_mc() 318 if (portid < max_mem_nodes) in plat_fill_mc() 319 plat_assign_lgrphand_to_mem_node((lgrp_handle_t)portid, portid); in plat_fill_mc()
|
/titanic_41/usr/src/uts/sun4u/os/ |
H A D | fillsysinfo.c | 356 int portid; in get_portid() local 364 if (GETPROP(node, "portid", (caddr_t)&portid) != -1) in get_portid() 365 return (portid); in get_portid() 366 if (GETPROP(node, "upa-portid", (caddr_t)&portid) != -1) in get_portid() 367 return (portid); in get_portid() 383 if (GETPROP(node, "portid", (caddr_t)&portid) != -1) { in get_portid() 386 return (portid); in get_portid() 446 int portid; in fill_cpu() local 455 if ((portid = get_portid(node, &cmpnode)) == -1) { in fill_cpu() 460 cpuid = portid; in fill_cpu() [all …]
|
H A D | cmp.c | 56 chipid = cpunodes[cpuid].portid; in cmp_cpu_is_cmp() 79 chipid = cpunodes[cpuid].portid; in cmp_delete_cpu() 103 chipid = cpunodes[cpuid].portid; in cmp_error_resteer() 139 return (cpunodes[cpuid].portid); in cmp_cpu_to_chip()
|
/titanic_41/usr/src/lib/libprtdiag/common/ |
H A D | memory.c | 78 static void add_bank_node(uint64_t mc_decode, int portid, char *bank_status); 131 int portid; in get_us3_mem_regs() local 143 portid = (*(int *)get_prop_val(find_prop(pnode, "portid"))); in get_us3_mem_regs() 208 add_bank_node(madr[i], portid, bank_status); in get_us3_mem_regs() 222 add_bank_node(uint64_t mc_decode, int portid, char *bank_status) in add_bank_node() argument 234 new->portid = portid; in add_bank_node() 299 mcid = SG_PORTID_TO_SAFARI_ID(bank->portid); in display_us3_banks() 336 tmp_bank->portid)) { in display_us3_banks() 364 tmp_bank->portid)) { in display_us3_banks() 404 print_us3_memory_line(bank->portid, bank->id, bank_size, in display_us3_banks() [all …]
|
H A D | libdevinfo_sun4u.c | 80 int portid; in walk_di_tree() local 119 portid = *int_val; in walk_di_tree() 122 portid = *int_val; in walk_di_tree() 124 portid = -1; in walk_di_tree() 133 printf("portid=%d\n", portid); in walk_di_tree() 143 "portid =%d\n", name, type, model, portid); in walk_di_tree() 168 D_PRINTF("node not added: type=%s portid =%d\n", type, portid); in walk_di_tree()
|
/titanic_41/usr/src/uts/common/io/scsi/adapters/pmcs/ |
H A D | pmcs_intr.c | 255 pmcs_kill_port(pmcs_hw_t *pwp, int portid) in pmcs_kill_port() argument 257 pmcs_phy_t *pptr = pwp->ports[portid]; in pmcs_kill_port() 270 if (pptr->link_rate && pptr->portid == portid && in pmcs_kill_port() 277 pptr = pwp->ports[portid]; in pmcs_kill_port() 278 pwp->ports[portid] = NULL; in pmcs_kill_port() 286 pmcs_prt(pwp, PMCS_PRT_INFO, NULL, NULL, "PortID 0x%x Cleared", portid); in pmcs_kill_port() 296 uint8_t portid = IOP_EVENT_PORTID(w1); in pmcs_process_sas_hw_event() local 352 rp = pwp->ports[portid]; in pmcs_process_sas_hw_event() 368 if (rp->portid != portid) { in pmcs_process_sas_hw_event() 372 "A DIFFERENT PORTID 0x%x", rp->portid, in pmcs_process_sas_hw_event() [all …]
|
/titanic_41/usr/src/uts/sun4u/serengeti/io/ |
H A D | sbdp_cpu.c | 110 processorid_t portid; in sbdp_disconnect_cpu() local 159 portid = SG_CPUID_TO_PORTID(cpuid); in sbdp_disconnect_cpu() 160 if (!SBDP_IS_CPU_PRESENT(bdp, SG_CPUID_TO_CPU_UNIT(portid))) { in sbdp_disconnect_cpu() 161 cpu = portid; in sbdp_disconnect_cpu() 223 processorid_t portid; in sbdp_connect_cpu() local 234 portid = SG_CPUID_TO_PORTID(cpuid); in sbdp_connect_cpu() 235 if (!SBDP_IS_CPU_PRESENT(bdp, SG_CPUID_TO_CPU_UNIT(portid))) { in sbdp_connect_cpu() 236 cpu = portid; in sbdp_connect_cpu() 563 processorid_t portid; /* portid we are looking for */ member 568 sbdp_find_nearby_cpu_by_portid(pnode_t nodeid, processorid_t portid) in sbdp_find_nearby_cpu_by_portid() argument [all …]
|
/titanic_41/usr/src/lib/efcode/gp2/ |
H A D | gp2.c | 115 fstack_t phi, plo, portid; in do_get_portid() local 122 portid = ((plo & 0xff800000) >> 23) | ((phi & 1) << 9); in do_get_portid() 124 (int)phi, (int)plo, (int)portid); in do_get_portid() 125 PUSH(DS, portid); in do_get_portid() 203 fstack_t portid, bar, align, type, size_hi, size_lo; in do_claim_addr() local 210 portid = POP(DS); in do_claim_addr() 218 fc_int2cell(portid), fc_int2cell(bar), fc_int2cell(align), in do_claim_addr() 226 "gp2:%s ( %x %x %x %x %x %x ) -> %x %x\n", service, (int)portid, in do_claim_addr() 237 int portid; in do_master_interrupt() local 241 portid = POP(DS); in do_master_interrupt() [all …]
|
/titanic_41/usr/src/uts/sun4u/boston/os/ |
H A D | boston.c | 451 int portid; in plat_lgrp_init() local 479 if (prom_getprop(curnode, "portid", (caddr_t)&portid) != in plat_lgrp_init() 480 -1 && portid > max_portid) in plat_lgrp_init() 481 max_portid = portid; in plat_lgrp_init() 551 int portid; in plat_fill_mc() local 556 if ((prom_getprop(nodeid, "portid", (caddr_t)&portid) == -1) || in plat_fill_mc() 557 (portid < 0)) in plat_fill_mc() 560 if (portid < max_mem_nodes) in plat_fill_mc() 561 plat_assign_lgrphand_to_mem_node((lgrp_handle_t)portid, portid); in plat_fill_mc()
|
/titanic_41/usr/src/uts/sun4u/seattle/os/ |
H A D | seattle.c | 453 int portid; in plat_lgrp_init() local 481 if (prom_getprop(curnode, "portid", (caddr_t)&portid) != in plat_lgrp_init() 482 -1 && portid > max_portid) in plat_lgrp_init() 483 max_portid = portid; in plat_lgrp_init() 553 int portid; in plat_fill_mc() local 558 if ((prom_getprop(nodeid, "portid", (caddr_t)&portid) == -1) || in plat_fill_mc() 559 (portid < 0)) in plat_fill_mc() 562 if (portid < max_mem_nodes) in plat_fill_mc() 563 plat_assign_lgrphand_to_mem_node((lgrp_handle_t)portid, portid); in plat_fill_mc()
|
/titanic_41/usr/src/uts/common/io/comstar/port/fct/ |
H A D | fct_impl.h | 186 #define FCT_LOOP_HASH(portid) (portid & 0xff) argument 187 #define FCT_FABRIC_HASH(portid) (((portid & 0x1f00) | \ argument 188 ((portid & 0x70000)>>3)) >> 8) 189 #define FCT_PORTID_HASH_FUNC(portid) \ argument 190 ((portid & 0xFFFF00)?FCT_FABRIC_HASH(portid):FCT_LOOP_HASH(portid)) 396 uint32_t portid);
|
/titanic_41/usr/src/lib/libprtdiag_psr/sparc/starcat/common/ |
H A D | starcat.c | 90 void print_us3_memory_line(int portid, int bank_id, uint64_t bank_size, 129 int portid; in display_pci() local 323 portid = -1; in display_pci() 326 portid = *(int *)value; in display_pci() 328 card.schizo_portid = portid; in display_pci() 333 card.notes, portid, card.dev_no, in display_pci() 520 int portid = -1; in add_node() local 535 portid = *(int *)value; in add_node() 536 nodeid = PORTID_TO_EXPANDER(portid); in add_node() 540 if ((bnode = find_board(root, portid)) == NULL) { in add_node() [all …]
|
/titanic_41/usr/src/uts/sun4u/sys/ |
H A D | opl_cfg.h | 110 #define OPL_IO_PORTID_TO_LSB(portid) (((portid) >> 4) & OPL_LSBID_MASK) argument 111 #define OPL_PORTID_TO_CHANNEL(portid) (((portid) >> 1) & 0x7) argument 112 #define OPL_PORTID_TO_LEAF(portid) ((portid) & 0x1) argument
|
/titanic_41/usr/src/uts/sun4u/starcat/os/ |
H A D | starcat.c | 354 int portid; in plat_fill_mc() local 369 if ((prom_getprop(nodeid, "portid", (caddr_t)&portid) < 0) || in plat_fill_mc() 370 (portid == -1)) in plat_fill_mc() 373 expnum = STARCAT_CPUID_TO_EXPANDER(portid); in plat_fill_mc() 394 if (portid == cpunodes[CPU->cpu_id].portid) in plat_fill_mc() 922 int portid; in plat_get_ecache_cpu() local 944 portid = ddi_prop_get_int(DDI_DEV_T_ANY, dip, in plat_get_ecache_cpu() 947 if (portid == -1) in plat_get_ecache_cpu() 948 portid = ddi_prop_get_int(DDI_DEV_T_ANY, dip, in plat_get_ecache_cpu() 951 if (portid == -1) in plat_get_ecache_cpu() [all …]
|
/titanic_41/usr/src/lib/libprtdiag_psr/sparc/cherrystone/common/ |
H A D | workfile.c | 45 void print_us3_memory_line(int portid, 331 int portid = -1; in add_node() local 340 portid = *(int *)value; in add_node() 343 board = CHERRYSTONE_GETSLOT(portid); in add_node() 369 print_us3_memory_line(int portid, int bank_id, uint64_t bank_size, in print_us3_memory_line() argument 375 CHERRYSTONE_GETSLOT_LABEL(portid), portid, in print_us3_memory_line() 497 int portid; in fill_pci_card_list() local 522 portid = -1; in fill_pci_card_list() 525 portid = *(int *)value; in fill_pci_card_list() 527 pci_card->schizo_portid = portid; in fill_pci_card_list()
|