Lines Matching refs:mc

55 iaddr_gen(struct mcamd_hdl *hdl, mcamd_node_t *mc, uint64_t pa,  in iaddr_gen()  argument
62 mc, MCAMD_PROP_NUM, &mcnum, in iaddr_gen()
63 mc, MCAMD_PROP_BASE_ADDR, &base, in iaddr_gen()
64 mc, MCAMD_PROP_LIM_ADDR, &lim, in iaddr_gen()
65 mc, MCAMD_PROP_ILEN, &ilen, in iaddr_gen()
66 mc, MCAMD_PROP_ILSEL, &ilsel, in iaddr_gen()
67 mc, MCAMD_PROP_DRAMHOLE_SIZE, &holesz, in iaddr_gen()
186 cs_sparedto(struct mcamd_hdl *hdl, mcamd_node_t *cs, mcamd_node_t *mc) in cs_sparedto() argument
192 mc, MCAMD_PROP_BADCS, &badcsnum, in cs_sparedto()
193 mc, MCAMD_PROP_SPARECS, &sparecsnum, in cs_sparedto()
204 for (cs = mcamd_cs_next(hdl, mc, NULL); cs != NULL; in cs_sparedto()
205 cs = mcamd_cs_next(hdl, mc, cs)) { in cs_sparedto()
239 mcamd_node_t *mc, *dimm; in unum_fill() local
243 if ((mc = mcamd_cs_mc(hdl, cs)) == NULL || in unum_fill()
245 mc, MCAMD_PROP_NUM, &chipnum, in unum_fill()
298 for (dimm = mcamd_dimm_next(hdl, mc, NULL); dimm != NULL; in unum_fill()
299 dimm = mcamd_dimm_next(hdl, mc, dimm)) { in unum_fill()
322 (void) mc_pa_to_offset(hdl, mc, cs, iaddr, &unump->unum_offset); in unum_fill()
442 mc_bkdg_patounum(struct mcamd_hdl *hdl, mcamd_node_t *mc, uint64_t pa, in mc_bkdg_patounum() argument
465 mc, MCAMD_PROP_NUM, &mcnum, in mc_bkdg_patounum()
466 mc, MCAMD_PROP_REV, &rev, NULL) || !mcamd_get_cfgregs(hdl, in mc_bkdg_patounum()
467 mc, MCAMD_REG_DRAMBASE, &DramBase, in mc_bkdg_patounum()
468 mc, MCAMD_REG_DRAMLIMIT, &DramLimit, in mc_bkdg_patounum()
469 mc, MCAMD_REG_DRAMHOLE, &HoleEn, NULL)) { in mc_bkdg_patounum()
534 for (cs = mcamd_cs_next(hdl, mc, NULL); cs != NULL; in mc_bkdg_patounum()
535 cs = mcamd_cs_next(hdl, mc, cs)) { in mc_bkdg_patounum()
576 if ((sparecs = cs_sparedto(hdl, cs, mc)) != NULL) in mc_bkdg_patounum()
611 mc_patounum(struct mcamd_hdl *hdl, mcamd_node_t *mc, uint64_t pa, in mc_patounum() argument
627 bkdgres = mc_bkdg_patounum(hdl, mc, pa, valid_lo, synd, in mc_patounum()
632 if (iaddr_gen(hdl, mc, pa, &iaddr) < 0) in mc_patounum()
635 for (cs = mcamd_cs_next(hdl, mc, NULL); cs != NULL; in mc_patounum()
636 cs = mcamd_cs_next(hdl, mc, cs)) { in mc_patounum()
651 if ((sparecs = cs_sparedto(hdl, cs, mc)) != NULL) { in mc_patounum()
697 mcamd_node_t *mc; in mcamd_patounum() local
711 for (mc = mcamd_mc_next(hdl, root, NULL); mc != NULL; in mcamd_patounum()
712 mc = mcamd_mc_next(hdl, root, mc)) { in mcamd_patounum()
713 if (mc_patounum(hdl, mc, pa, valid_lo, synd, in mcamd_patounum()