Home
last modified time | relevance | path

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

/titanic_41/usr/src/cmd/picl/plugins/common/memcfg/
H A Dpiclmemcfg_comm.c561 struct mc_control *mccontrol; in create_physical_tree() local
575 if ((mccontrol = alloca((ndevgrps - 1) * in create_physical_tree()
576 sizeof (mccontrol->devgrpids[0]) + sizeof (*mccontrol))) == NULL) in create_physical_tree()
579 mccontrol->id = portid; in create_physical_tree()
580 mccontrol->ndevgrps = ndevgrps; in create_physical_tree()
582 if (ioctl(fd, MCIOC_CONTROL, mccontrol) == -1) { in create_physical_tree()
593 if (mccontrol->ndevgrps == 0) in create_physical_tree()
599 for (i = 0; i < mccontrol->ndevgrps; i++) { in create_physical_tree()
600 int mmglocalid = mccontrol->devgrpids[i].localid; in create_physical_tree()
602 mcdevgrp.id = mccontrol->devgrpids[i].globalid; in create_physical_tree()
/titanic_41/usr/src/uts/sun4u/io/
H A Dmc-us3i.c442 struct mc_control *mccontrol, mccontrol_in; in mc_ioctl() local
741 size = sizeof (*mccontrol) + (mcport->ndevgrps - 1) * in mc_ioctl()
742 sizeof (mccontrol->devgrpids[0]); in mc_ioctl()
743 mccontrol = kmem_zalloc(size, KM_SLEEP); in mc_ioctl()
745 mccontrol->id = mcport->mctrl_node.id; in mc_ioctl()
746 mccontrol->ndevgrps = mcport->ndevgrps; in mc_ioctl()
748 mccontrol->devgrpids[i].globalid = mcport->devgrpids[i]; in mc_ioctl()
749 mccontrol->devgrpids[i].localid = in mc_ioctl()
756 if (copyout(mccontrol, (void *)arg, size)) in mc_ioctl()
759 kmem_free(mccontrol, size); in mc_ioctl()
H A Dmc-us3.c502 struct mc_control *mccontrol, mccontrol_in; in mc_ioctl() local
819 sizeof (mccontrol->devgrpids[0]); in mc_ioctl()
820 mccontrol = kmem_zalloc(size, KM_SLEEP); in mc_ioctl()
822 mccontrol->id = mcport->mctrl_node.id; in mc_ioctl()
823 mccontrol->ndevgrps = mcport->ndevgrps; in mc_ioctl()
825 mccontrol->devgrpids[i].globalid = mcport->devgrpids[i]; in mc_ioctl()
826 mccontrol->devgrpids[i].localid = in mc_ioctl()
829 *(uint64_t *)&mccontrol->devgrpids[i])); in mc_ioctl()
833 if (copyout(mccontrol, (void *)arg, size)) in mc_ioctl()
836 kmem_free(mccontrol, size); in mc_ioctl()