Lines Matching defs:bnum
137 int bnum;
369 int bnum;
401 rv = opl_read_hwd(mp->dev.bp->bnum, NULL, NULL, NULL, &hwd);
458 int bnum;
470 int bnum, core_id, strand_id;
484 bnum = -1;
485 len = sizeof (bnum);
488 (caddr_t)&bnum, &len) != DDI_PROP_SUCCESS) {
489 bnum = -1;
493 if (bnum != p->bnum)
513 bnum = LSB_ID(cpuid);
519 ASSERT(bnum == bp->bnum);
544 drmach_add_remove_cpu(int bnum, int core_id, int option)
549 bp = drmach_get_board_by_bnum(bnum);
553 arg.bnum = bnum;
571 int bnum;
585 bnum = -1;
586 len = sizeof (bnum);
589 (caddr_t)&bnum, &len) != DDI_PROP_SUCCESS) {
590 bnum = -1;
594 if (bnum != p->bp->bnum)
610 bnum = LSB_ID(cpuid);
611 ASSERT(bnum == p->bp->bnum);
923 drmach_get_board_by_bnum(int bnum)
927 if (drmach_array_get(drmach_boards, bnum, &id) == 0)
1031 drmach_board_new(int bnum, int boot_board)
1041 (void) drmach_board_name(bnum, bp->cm.name, sizeof (bp->cm.name));
1043 bp->bnum = bnum;
1058 (void) drmach_array_set(drmach_boards, bnum, bp);
1131 return ((drmach_domain.floating & (1 << bp->bnum)) ? 1 : 0);
1169 int bnum;
1172 bnum = -1;
1173 bnum = ddi_getprop(DDI_DEV_T_ANY, rdip, DDI_PROP_DONTPASS,
1175 if (bnum == -1)
1178 if (drmach_array_get(drmach_boards, bnum, &id) == -1) {
1181 OBP_BOARDNUM, bnum);
1184 (void) drmach_board_new(bnum, 1);
1363 drmach_board_assign(int bnum, drmachid_t *id)
1369 if (drmach_array_get(drmach_boards, bnum, id) == -1) {
1370 err = drerr_new(1, EOPL_BNUM, "%d", bnum);
1380 (drmachid_t)drmach_board_new(bnum, 0);
1400 if (opl_probe_sb(obj->bnum, &cpu_impl) != 0)
1405 (void) opl_unprobe_sb(obj->bnum);
1410 (void) prom_attach_notice(obj->bnum);
1452 int i, bnum;
1454 bnum = bp->bnum;
1461 if (drmach_add_remove_cpu(bnum, i,
1464 "CMP %d on board %d\n", i, bnum);
1494 rv = opl_unprobe_sb(obj->bnum);
1497 (void) prom_detach_notice(obj->bnum);
1591 int bnum;
1608 rv = node->n_getprop(node, OBP_BOARDNUM, &bnum, sizeof (bnum));
1616 bnum = (portid >> 5) & 0x1f;
1622 if (bnum != obj->bnum)
1703 drmach_board_lookup(int bnum, drmachid_t *id)
1708 if (drmach_array_get(drmach_boards, bnum, id)) {
1717 drmach_board_name(int bnum, char *buf, int buflen)
1719 (void) snprintf(buf, buflen, "SB%d", bnum);
1803 if (drmach_array_set(drmach_boards, bp->bnum, 0) != 0)
2504 cmn_err(CE_CONT, "DR: detach board %d\n", bp->bnum);
2532 DRMACH_PR("calling opl_probe_board for bnum=%d\n", bp->bnum);
2533 rv = opl_probe_sb(bp->bnum, &cpu_impl);
2553 cmn_err(CE_CONT, "DR: in-kernel unprobe board %d\n", bp->bnum);
2555 rv = opl_unprobe_sb(bp->bnum);
2739 int bnum, cpuid, onb_core_num, strand_id;
2745 bnum = LSB_ID(cpuid);
2748 bp = drmach_get_board_by_bnum(bnum);
2752 if (drmach_add_remove_cpu(bnum, onb_core_num,
2755 onb_core_num, bnum);
2769 if (drmach_add_remove_cpu(bnum, onb_core_num,
2772 "on board %d\n", onb_core_num, bnum);
2819 int bnum, onb_core_num, strand_id;
2824 bnum = LSB_ID(cpuid);
2827 bp = drmach_get_board_by_bnum(bnum);
2832 if (drmach_add_remove_cpu(bnum, onb_core_num,
2835 "%d\n", onb_core_num, bnum);
3508 s_bd = s_mem->dev.bp->bnum;
3509 t_bd = t_mem->dev.bp->bnum;
4004 if (oplcfg_pa_swap(s_board->bnum, t_board->bnum) != 0)