Lines Matching defs:mctrl
447 mc_dlist_t *mctrl;
684 mctrl = mctrl_head;
686 while (mctrl != NULL) {
687 mcctrlconf->mcids[i].globalid = mctrl->id;
688 mcctrlconf->mcids[i].localid = mctrl->id;
690 mctrl = mctrl->next;
1009 mc_add_xor_banks(struct mctrl_info *mctrl,
1021 if ((dgrp = mc_node_get(mctrl->devgrpids[0], dgrp_head)) == NULL) {
1051 bankid = mctrl->mctrl_node.id * NLOGBANKS_PER_MC;
1064 mctrl->devgrpids[id]);
1130 mc_logical_layout(struct mctrl_info *mctrl, struct mc_soft_state *softsp)
1135 if (mctrl->ndevgrps == 0)
1138 mcid = mctrl->mctrl_node.id;
1146 if (mctrl->ndevgrps == NDGRPS_PER_MC &&
1148 mc_add_xor_banks(mctrl, mask, match, interleave);
1160 for (i = 0; i < mctrl->ndevgrps; i++) {
1161 bankid += mc_add_dgrp_banks(bankid, mctrl->devgrpids[i],
1308 struct mctrl_info *mctrl;
1321 if ((mctrl = mc_node_get(mcid, mctrl_head)) != NULL) {
1322 DPRINTF(MC_CNSTRC_DEBUG, ("mc_construct: mctrl %d exists\n",
1328 mctrl = kmem_zalloc(sizeof (*mctrl), KM_SLEEP);
1330 mctrl->mctrl_node.id = mcid;
1336 mctrl->devgrpids[i] = dgrpid;
1337 mctrl->ndevgrps++;
1344 mctrl->devgrpids[i] = dgrpid;
1345 mctrl->ndevgrps++;
1348 mc_logical_layout(mctrl, softsp);
1350 mctrl->dimminfop = (struct dimm_info *)softsp->memlayoutp;
1353 mc_node_add((mc_dlist_t *)mctrl, &mctrl_head, &mctrl_tail);
1370 struct mctrl_info *mctrl;
1379 if ((mctrl = mc_node_get(mc_id, mctrl_head)) != NULL) {
1380 mc_node_del((mc_dlist_t *)mctrl, &mctrl_head, &mctrl_tail);
1381 kmem_free(mctrl, sizeof (*mctrl));
1384 DPRINTF(MC_DESTRC_DEBUG, ("mc_delete: mctrl is not found\n"));
1559 struct mctrl_info *mctrl;
1592 mctrl = mc_node_get(mcid, mctrl_head);
1593 ASSERT(mctrl != NULL);
1601 dimmp = (struct dimm_info *)mctrl->dimminfop;