Lines Matching refs:mctrl

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