Home
last modified time | relevance | path

Searched refs:mcseg (Results 1 – 3 of 3) sorted by relevance

/illumos-gate/usr/src/cmd/picl/plugins/common/memcfg/
H A Dpiclmemcfg_comm.c239 add_mem_banks(picl_nodehdl_t msegh, int fd, struct mc_segment *mcseg) in add_mem_banks() argument
252 for (i = 0; i < mcseg->nbanks; i++) { in add_mem_banks()
253 mcbank.id = mcseg->bankids[i].globalid; in add_mem_banks()
377 struct mc_segment *mcseg; in create_logical_tree() local
399 if ((mcseg = alloca((nbanks - 1) * sizeof (mcseg->bankids[0]) + in create_logical_tree()
400 sizeof (*mcseg))) == NULL) in create_logical_tree()
408 mcseg->id = mcmem->segmentids[i].globalid; in create_logical_tree()
409 mcseg->nbanks = nbanks; in create_logical_tree()
411 if (ioctl(fd, MCIOC_SEG, mcseg) == -1) in create_logical_tree()
428 PICL_PTYPE_UNSIGNED_INT, PICL_READ, sizeof (mcseg->size), in create_logical_tree()
[all …]
/illumos-gate/usr/src/uts/sun4u/io/
H A Dmc-us3i.c438 struct mc_segment *mcseg, mcseg_in; in mc_ioctl() local
549 size = sizeof (*mcseg) + (seg->nbanks - 1) * in mc_ioctl()
550 sizeof (mcseg->bankids[0]); in mc_ioctl()
551 mcseg = kmem_zalloc(size, KM_SLEEP); in mc_ioctl()
553 mcseg->id = seg->seg_node.id; in mc_ioctl()
554 mcseg->ifactor = seg->ifactor; in mc_ioctl()
555 mcseg->base = seg->base; in mc_ioctl()
556 mcseg->size = seg->size; in mc_ioctl()
557 mcseg->nbanks = seg->nbanks; in mc_ioctl()
568 mcseg->bankids[i].globalid = bank->bank_node.id; in mc_ioctl()
[all …]
H A Dmc-us3.c498 struct mc_segment *mcseg, mcseg_in; in mc_ioctl() local
615 sizeof (mcseg->bankids[0]); in mc_ioctl()
616 mcseg = kmem_zalloc(size, KM_SLEEP); in mc_ioctl()
618 mcseg->id = seg->seg_node.id; in mc_ioctl()
619 mcseg->ifactor = seg->ifactor; in mc_ioctl()
620 mcseg->base = seg->base; in mc_ioctl()
621 mcseg->size = seg->size; in mc_ioctl()
622 mcseg->nbanks = seg->nbanks; in mc_ioctl()
633 mcseg->bankids[i].globalid = bank->bank_node.id; in mc_ioctl()
634 mcseg->bankids[i++].localid = in mc_ioctl()
[all …]