Lines Matching refs:rdtgrp
131 struct rdtgroup *rdtgrp = data->rdtgrp; in parse_cbm() local
143 if (rdtgrp->mode == RDT_MODE_PSEUDO_LOCKSETUP && in parse_cbm()
152 if ((rdtgrp->mode == RDT_MODE_EXCLUSIVE || in parse_cbm()
153 rdtgrp->mode == RDT_MODE_SHAREABLE) && in parse_cbm()
163 if (rdtgroup_cbm_overlaps(r, d, cbm_val, rdtgrp->closid, true)) { in parse_cbm()
168 if (rdtgroup_cbm_overlaps(r, d, cbm_val, rdtgrp->closid, false)) { in parse_cbm()
169 if (rdtgrp->mode == RDT_MODE_EXCLUSIVE || in parse_cbm()
170 rdtgrp->mode == RDT_MODE_PSEUDO_LOCKSETUP) { in parse_cbm()
189 struct rdtgroup *rdtgrp) in parse_line() argument
196 if (rdtgrp->mode == RDT_MODE_PSEUDO_LOCKSETUP && in parse_line()
215 data.rdtgrp = rdtgrp; in parse_line()
218 if (rdtgrp->mode == RDT_MODE_PSEUDO_LOCKSETUP) { in parse_line()
227 rdtgrp->plr->r = r; in parse_line()
228 rdtgrp->plr->d = d; in parse_line()
229 rdtgrp->plr->cbm = d->new_ctrl; in parse_line()
230 d->plr = rdtgrp->plr; in parse_line()
285 struct rdtgroup *rdtgrp) in rdtgroup_parse_resource() argument
290 if (!strcmp(resname, r->name) && rdtgrp->closid < r->num_closid) in rdtgroup_parse_resource()
291 return parse_line(tok, r, rdtgrp); in rdtgroup_parse_resource()
300 struct rdtgroup *rdtgrp; in rdtgroup_schemata_write() local
312 rdtgrp = rdtgroup_kn_lock_live(of->kn); in rdtgroup_schemata_write()
313 if (!rdtgrp) { in rdtgroup_schemata_write()
324 if (rdtgrp->mode == RDT_MODE_PSEUDO_LOCKED) { in rdtgroup_schemata_write()
347 ret = rdtgroup_parse_resource(resname, tok, rdtgrp); in rdtgroup_schemata_write()
353 ret = update_domains(r, rdtgrp->closid); in rdtgroup_schemata_write()
358 if (rdtgrp->mode == RDT_MODE_PSEUDO_LOCKSETUP) { in rdtgroup_schemata_write()
365 ret = rdtgroup_pseudo_lock_create(rdtgrp); in rdtgroup_schemata_write()
397 struct rdtgroup *rdtgrp; in rdtgroup_schemata_show() local
402 rdtgrp = rdtgroup_kn_lock_live(of->kn); in rdtgroup_schemata_show()
403 if (rdtgrp) { in rdtgroup_schemata_show()
404 if (rdtgrp->mode == RDT_MODE_PSEUDO_LOCKSETUP) { in rdtgroup_schemata_show()
407 } else if (rdtgrp->mode == RDT_MODE_PSEUDO_LOCKED) { in rdtgroup_schemata_show()
408 if (!rdtgrp->plr->d) { in rdtgroup_schemata_show()
414 rdtgrp->plr->r->name, in rdtgroup_schemata_show()
415 rdtgrp->plr->d->id, in rdtgroup_schemata_show()
416 rdtgrp->plr->cbm); in rdtgroup_schemata_show()
419 closid = rdtgrp->closid; in rdtgroup_schemata_show()
433 struct rdt_domain *d, struct rdtgroup *rdtgrp, in mon_event_read() argument
439 rr->rgrp = rdtgrp; in mon_event_read()
453 struct rdtgroup *rdtgrp; in rdtgroup_mondata_show() local
460 rdtgrp = rdtgroup_kn_lock_live(of->kn); in rdtgroup_mondata_show()
461 if (!rdtgrp) { in rdtgroup_mondata_show()
478 mon_event_read(&rr, r, d, rdtgrp, evtid, false); in rdtgroup_mondata_show()