Searched refs:mcbank (Results 1 – 3 of 3) sorted by relevance
/illumos-gate/usr/src/cmd/picl/plugins/common/memcfg/ |
H A D | piclmemcfg_comm.c | 246 struct mc_bank mcbank; in add_mem_banks() local 253 mcbank.id = mcseg->bankids[i].globalid; in add_mem_banks() 254 if (ioctl(fd, MCIOC_BANK, &mcbank) == -1) in add_mem_banks() 269 PICL_PTYPE_UNSIGNED_INT, PICL_READ, sizeof (mcbank.size), in add_mem_banks() 274 err = ptree_create_and_add_prop(bankh, &propinfo, &mcbank.size, in add_mem_banks() 283 PICL_PTYPE_UNSIGNED_INT, PICL_READ, sizeof (mcbank.mask), in add_mem_banks() 288 err = ptree_create_and_add_prop(bankh, &propinfo, &mcbank.mask, in add_mem_banks() 297 PICL_PTYPE_UNSIGNED_INT, PICL_READ, sizeof (mcbank.match), in add_mem_banks() 303 &mcbank.match, NULL); in add_mem_banks() 311 PICL_PTYPE_INT, PICL_READ, sizeof (mcbank.id), PICL_PROP_ID, in add_mem_banks() [all …]
|
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | mc-us3i.c | 439 struct mc_bank mcbank; in mc_ioctl() local 591 if (copyin((void *)arg, &mcbank, sizeof (mcbank)) != 0) in mc_ioctl() 594 DPRINTF(MC_CMD_DEBUG, ("MCIOC_BANK: bank id %d\n", mcbank.id)); in mc_ioctl() 598 if ((bank = mc_node_get(mcbank.id, bank_head)) == NULL) { in mc_ioctl() 603 mcbank.mask = bank->mask; in mc_ioctl() 604 mcbank.match = bank->match; in mc_ioctl() 605 mcbank.size = bank->size; in mc_ioctl() 606 mcbank.devgrpid.globalid = bank->devgrp_id; in mc_ioctl() 607 mcbank.devgrpid.localid = in mc_ioctl() 612 if (copyout(&mcbank, (void *)arg, sizeof (mcbank))) in mc_ioctl()
|
H A D | mc-us3.c | 499 struct mc_bank mcbank; in mc_ioctl() local 657 if (copyin((void *)arg, &mcbank, sizeof (struct mc_bank)) != 0) in mc_ioctl() 660 DPRINTF(MC_CMD_DEBUG, ("MCIOC_BANK: bank id %d\n", mcbank.id)); in mc_ioctl() 664 if ((bank = (struct bank_info *)mc_node_get(mcbank.id, in mc_ioctl() 678 mcbank.mask = (~(bank->lk | ~(MADR_LK_MASK >> in mc_ioctl() 680 mcbank.match = bank->lm << MADR_LPA_SHIFT; in mc_ioctl() 681 mcbank.size = bank->size; in mc_ioctl() 682 mcbank.devgrpid.globalid = bank->devgrp_id; in mc_ioctl() 683 mcbank.devgrpid.localid = bank->devgrp_id % NDGRPS; in mc_ioctl() 687 if (copyout(&mcbank, (void *)arg, sizeof (struct mc_bank))) in mc_ioctl()
|