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

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

Completed in 61 milliseconds