Lines Matching refs:entry

69 int __apei_exec_read_register(struct acpi_whea_header *entry, u64 *val)  in __apei_exec_read_register()  argument
73 rc = apei_read(val, &entry->register_region); in __apei_exec_read_register()
76 *val >>= entry->register_region.bit_offset; in __apei_exec_read_register()
77 *val &= entry->mask; in __apei_exec_read_register()
83 struct acpi_whea_header *entry) in apei_exec_read_register() argument
88 rc = __apei_exec_read_register(entry, &val); in apei_exec_read_register()
98 struct acpi_whea_header *entry) in apei_exec_read_register_value() argument
102 rc = apei_exec_read_register(ctx, entry); in apei_exec_read_register_value()
105 ctx->value = (ctx->value == entry->value); in apei_exec_read_register_value()
111 int __apei_exec_write_register(struct acpi_whea_header *entry, u64 val) in __apei_exec_write_register() argument
115 val &= entry->mask; in __apei_exec_write_register()
116 val <<= entry->register_region.bit_offset; in __apei_exec_write_register()
117 if (entry->flags & APEI_EXEC_PRESERVE_REGISTER) { in __apei_exec_write_register()
119 rc = apei_read(&valr, &entry->register_region); in __apei_exec_write_register()
122 valr &= ~(entry->mask << entry->register_region.bit_offset); in __apei_exec_write_register()
125 rc = apei_write(val, &entry->register_region); in __apei_exec_write_register()
131 struct acpi_whea_header *entry) in apei_exec_write_register() argument
133 return __apei_exec_write_register(entry, ctx->value); in apei_exec_write_register()
138 struct acpi_whea_header *entry) in apei_exec_write_register_value() argument
142 ctx->value = entry->value; in apei_exec_write_register_value()
143 rc = apei_exec_write_register(ctx, entry); in apei_exec_write_register_value()
150 struct acpi_whea_header *entry) in apei_exec_noop() argument
165 struct acpi_whea_header *entry; in __apei_exec_run() local
179 entry = &ctx->action_table[i]; in __apei_exec_run()
180 if (entry->action != action) in __apei_exec_run()
183 if (entry->instruction >= ctx->instructions || in __apei_exec_run()
184 !ctx->ins_table[entry->instruction].run) { in __apei_exec_run()
187 entry->instruction); in __apei_exec_run()
190 run = ctx->ins_table[entry->instruction].run; in __apei_exec_run()
191 rc = run(ctx, entry); in __apei_exec_run()
207 struct acpi_whea_header *entry,
217 struct acpi_whea_header *entry; in apei_exec_for_each_entry() local
221 entry = ctx->action_table + i; in apei_exec_for_each_entry()
222 ins = entry->instruction; in apei_exec_for_each_entry()
231 rc = func(ctx, entry, data); in apei_exec_for_each_entry()
240 struct acpi_whea_header *entry, in pre_map_gar_callback() argument
243 u8 ins = entry->instruction; in pre_map_gar_callback()
246 return apei_map_generic_address(&entry->register_region); in pre_map_gar_callback()
273 struct acpi_whea_header *entry, in post_unmap_gar_callback() argument
276 u8 ins = entry->instruction; in post_unmap_gar_callback()
279 apei_unmap_generic_address(&entry->register_region); in post_unmap_gar_callback()
716 struct acpi_whea_header *entry, in collect_res_callback() argument
720 struct acpi_generic_address *reg = &entry->register_region; in collect_res_callback()
721 u8 ins = entry->instruction; in collect_res_callback()