Lines Matching refs:cs
153 cs_match(struct mcamd_hdl *hdl, uint64_t iaddr, mcamd_node_t *cs) in cs_match() argument
159 cs, MCAMD_PROP_NUM, &csnum, in cs_match()
160 cs, MCAMD_PROP_BASE_ADDR, &csbase, in cs_match()
161 cs, MCAMD_PROP_MASK, &csmask, in cs_match()
162 cs, MCAMD_PROP_CSBE, &csbe, in cs_match()
188 cs_sparedto(struct mcamd_hdl *hdl, mcamd_node_t *cs, mcamd_node_t *mc) in cs_sparedto() argument
193 cs, MCAMD_PROP_NUM, &csnum, in cs_sparedto()
206 for (cs = mcamd_cs_next(hdl, mc, NULL); cs != NULL; in cs_sparedto()
207 cs = mcamd_cs_next(hdl, mc, cs)) { in cs_sparedto()
208 if (!mcamd_get_numprop(hdl, cs, MCAMD_PROP_NUM, &tmpcsnum)) { in cs_sparedto()
217 if (cs != NULL) { in cs_sparedto()
227 return (cs); in cs_sparedto()
237 unum_fill(struct mcamd_hdl *hdl, mcamd_node_t *cs, int which, in unum_fill() argument
245 if ((mc = mcamd_cs_mc(hdl, cs)) == NULL || in unum_fill()
248 cs, MCAMD_PROP_NUM, &csnum, in unum_fill()
249 cs, MCAMD_PROP_DIMMRANK, &ranknum, in unum_fill()
257 !mcamd_get_numprop(hdl, cs, MCAMD_PROP_CSDIMM1, &dimm1) || in unum_fill()
259 !mcamd_get_numprop(hdl, cs, MCAMD_PROP_CSDIMM2, &dimm2)) { in unum_fill()
324 (void) mc_pa_to_offset(hdl, mc, cs, iaddr, &unump->unum_offset); in unum_fill()
347 mc_whichdimm(struct mcamd_hdl *hdl, mcamd_node_t *cs, uint64_t pa, in mc_whichdimm() argument
362 cs, MCAMD_PROP_CSDIMM1, &dimm1, in mc_whichdimm()
363 cs, MCAMD_PROP_CSDIMM2, &dimm2, in mc_whichdimm()
449 mcamd_node_t *cs; in mc_bkdg_patounum() local
535 for (cs = mcamd_cs_next(hdl, mc, NULL); cs != NULL; in mc_bkdg_patounum()
536 cs = mcamd_cs_next(hdl, mc, cs)) { in mc_bkdg_patounum()
540 cs, MCAMD_REG_CSBASE, &CSBase, in mc_bkdg_patounum()
541 cs, MCAMD_REG_CSMASK, &CSMask, in mc_bkdg_patounum()
544 cs, MCAMD_PROP_NUM, &csnum, in mc_bkdg_patounum()
545 cs, MCAMD_PROP_CSBE, &CSEn, in mc_bkdg_patounum()
577 if ((sparecs = cs_sparedto(hdl, cs, mc)) != NULL) in mc_bkdg_patounum()
578 cs = sparecs; in mc_bkdg_patounum()
580 if ((which = mc_whichdimm(hdl, cs, pa, valid_lo, in mc_bkdg_patounum()
590 if (unum_fill(hdl, cs, which, InputAddr, unump, 0) < 0) in mc_bkdg_patounum()
615 mcamd_node_t *cs, *sparecs; in mc_patounum() local
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()
637 if (cs_match(hdl, iaddr, cs)) in mc_patounum()
641 if (cs == NULL) in mc_patounum()
651 if ((sparecs = cs_sparedto(hdl, cs, mc)) != NULL) { in mc_patounum()
652 cs = sparecs; in mc_patounum()
655 if ((which = mc_whichdimm(hdl, cs, pa, valid_lo, synd, in mc_patounum()
659 if (unum_fill(hdl, cs, which, iaddr, unump, 1) < 0) in mc_patounum()