Lines Matching refs:rc
139 struct ACPIRegionContent *rc;
141 rc = malloc(sizeof(struct ACPIRegionContent));
142 if (rc == NULL) {
145 rc->regtype = regtype;
146 rc->addr = addr;
147 rc->value = value;
149 TAILQ_INSERT_TAIL(&RegionContentList, rc, links);
156 struct ACPIRegionContent *rc;
161 TAILQ_FOREACH(rc, &RegionContentList, links) {
162 if (rc->regtype == regtype && rc->addr == addr) {
163 *valuep = rc->value;
175 struct ACPIRegionContent *rc;
180 TAILQ_FOREACH(rc, &RegionContentList, links) {
181 if (rc->regtype == regtype && rc->addr == addr) {
182 rc->value = *valuep;
227 struct ACPIRegionContent rc;
241 rc.regtype = strtoq(np, &ep, 10);
248 rc.addr = strtoq(np, &ep, 16);
255 rc.value = strtoq(np, &ep, 16);
259 aml_simulate_regcontent_write(rc.regtype, rc.addr, &rc.value);
268 struct ACPIRegionContent *rc;
279 rc = TAILQ_FIRST(&RegionContentList);
281 rc->regtype, (uintmax_t)rc->addr, rc->value);
282 TAILQ_REMOVE(&RegionContentList, rc, links);
283 free(rc);