Lines Matching refs:aml_append
152 aml_append(method, in build_legacy_cpu_hotplug_aml()
154 aml_append(method, in build_legacy_cpu_hotplug_aml()
157 aml_append(method, aml_store(cpu_id, aml_index(madt, aml_int(2)))); in build_legacy_cpu_hotplug_aml()
158 aml_append(method, aml_store(apic_id, aml_index(madt, aml_int(3)))); in build_legacy_cpu_hotplug_aml()
159 aml_append(method, aml_store(cpu_on, aml_index(madt, aml_int(4)))); in build_legacy_cpu_hotplug_aml()
160 aml_append(method, aml_return(madt)); in build_legacy_cpu_hotplug_aml()
161 aml_append(sb_scope, method); in build_legacy_cpu_hotplug_aml()
169 aml_append(method, in build_legacy_cpu_hotplug_aml()
173 aml_append(if_ctx, aml_return(aml_int(0xF))); in build_legacy_cpu_hotplug_aml()
175 aml_append(method, if_ctx); in build_legacy_cpu_hotplug_aml()
178 aml_append(else_ctx, aml_return(zero)); in build_legacy_cpu_hotplug_aml()
180 aml_append(method, else_ctx); in build_legacy_cpu_hotplug_aml()
181 aml_append(sb_scope, method); in build_legacy_cpu_hotplug_aml()
184 aml_append(method, aml_sleep(200)); in build_legacy_cpu_hotplug_aml()
185 aml_append(sb_scope, method); in build_legacy_cpu_hotplug_aml()
198 aml_append(method, aml_store(aml_name(CPU_STATUS_MAP), status_map)); in build_legacy_cpu_hotplug_aml()
199 aml_append(method, aml_store(zero, byte)); in build_legacy_cpu_hotplug_aml()
200 aml_append(method, aml_store(zero, idx)); in build_legacy_cpu_hotplug_aml()
204 aml_append(while_ctx, in build_legacy_cpu_hotplug_aml()
210 aml_append(if_ctx, aml_shiftright(byte, one, byte)); in build_legacy_cpu_hotplug_aml()
212 aml_append(while_ctx, if_ctx); in build_legacy_cpu_hotplug_aml()
217 aml_append(else_ctx, aml_store(aml_derefof(aml_index(status_map, in build_legacy_cpu_hotplug_aml()
220 aml_append(while_ctx, else_ctx); in build_legacy_cpu_hotplug_aml()
222 aml_append(while_ctx, aml_store(aml_and(byte, one, NULL), status)); in build_legacy_cpu_hotplug_aml()
226 aml_append(if_ctx, aml_store(status, aml_index(cpus_map, idx))); in build_legacy_cpu_hotplug_aml()
229 aml_append(if_ctx2, in build_legacy_cpu_hotplug_aml()
232 aml_append(if_ctx, if_ctx2); in build_legacy_cpu_hotplug_aml()
235 aml_append(else_ctx2, in build_legacy_cpu_hotplug_aml()
239 aml_append(if_ctx, else_ctx2); in build_legacy_cpu_hotplug_aml()
240 aml_append(while_ctx, if_ctx); in build_legacy_cpu_hotplug_aml()
242 aml_append(while_ctx, aml_increment(idx)); /* go to next cpu */ in build_legacy_cpu_hotplug_aml()
243 aml_append(method, while_ctx); in build_legacy_cpu_hotplug_aml()
245 aml_append(sb_scope, method); in build_legacy_cpu_hotplug_aml()
258 aml_append(dev, aml_name_decl("_HID", aml_eisaid("PNP0A06"))); in build_legacy_cpu_hotplug_aml()
259 aml_append(dev, in build_legacy_cpu_hotplug_aml()
263 aml_append(dev, aml_name_decl("_STA", aml_int(0xB))); in build_legacy_cpu_hotplug_aml()
265 aml_append(crs, in build_legacy_cpu_hotplug_aml()
268 aml_append(dev, aml_name_decl("_CRS", crs)); in build_legacy_cpu_hotplug_aml()
269 aml_append(sb_scope, dev); in build_legacy_cpu_hotplug_aml()
271 aml_append(sb_scope, aml_operation_region( in build_legacy_cpu_hotplug_aml()
274 aml_append(field, aml_named_field("PRS", 256)); in build_legacy_cpu_hotplug_aml()
275 aml_append(sb_scope, field); in build_legacy_cpu_hotplug_aml()
286 aml_append(method, in build_legacy_cpu_hotplug_aml()
290 aml_append(dev, method); in build_legacy_cpu_hotplug_aml()
293 aml_append(method, in build_legacy_cpu_hotplug_aml()
295 aml_append(dev, method); in build_legacy_cpu_hotplug_aml()
298 aml_append(method, in build_legacy_cpu_hotplug_aml()
302 aml_append(dev, method); in build_legacy_cpu_hotplug_aml()
304 aml_append(sb_scope, dev); in build_legacy_cpu_hotplug_aml()
316 aml_append(if_ctx, in build_legacy_cpu_hotplug_aml()
319 aml_append(method, if_ctx); in build_legacy_cpu_hotplug_aml()
321 aml_append(sb_scope, method); in build_legacy_cpu_hotplug_aml()
337 aml_append(pkg, aml_int(0)); in build_legacy_cpu_hotplug_aml()
339 aml_append(pkg, aml_int(apic_ids->cpus[i].cpu ? 1 : 0)); in build_legacy_cpu_hotplug_aml()
342 aml_append(sb_scope, aml_name_decl(CPU_ON_BITMAP, pkg)); in build_legacy_cpu_hotplug_aml()
343 aml_append(ctx, sb_scope); in build_legacy_cpu_hotplug_aml()
346 aml_append(method, aml_call0("\\_SB." CPU_SCAN_METHOD)); in build_legacy_cpu_hotplug_aml()
347 aml_append(ctx, method); in build_legacy_cpu_hotplug_aml()