Lines Matching refs:mcseg
438 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()
569 mcseg->bankids[i++].localid = bank->local_id; in mc_ioctl()
575 if (copyout(mcseg, (void *)arg, size)) in mc_ioctl()
578 kmem_free(mcseg, size); in mc_ioctl()