Lines Matching refs:trigger_tab
281 static int einj_check_trigger_header(struct acpi_einj_trigger *trigger_tab) in einj_check_trigger_header() argument
283 if (trigger_tab->header_size != sizeof(struct acpi_einj_trigger)) in einj_check_trigger_header()
285 if (trigger_tab->table_size > PAGE_SIZE || in einj_check_trigger_header()
286 trigger_tab->table_size < trigger_tab->header_size) in einj_check_trigger_header()
288 if (trigger_tab->entry_count != in einj_check_trigger_header()
289 (trigger_tab->table_size - trigger_tab->header_size) / in einj_check_trigger_header()
297 struct acpi_einj_trigger *trigger_tab, u64 param1, u64 param2) in einj_get_trigger_parameter_region() argument
303 ((char *)trigger_tab + sizeof(struct acpi_einj_trigger)); in einj_get_trigger_parameter_region()
304 for (i = 0; i < trigger_tab->entry_count; i++) { in einj_get_trigger_parameter_region()
320 struct acpi_einj_trigger *trigger_tab = NULL; in __einj_error_trigger() local
329 r = request_mem_region(trigger_paddr, sizeof(*trigger_tab), in __einj_error_trigger()
335 sizeof(*trigger_tab) - 1); in __einj_error_trigger()
338 trigger_tab = ioremap_cache(trigger_paddr, sizeof(*trigger_tab)); in __einj_error_trigger()
339 if (!trigger_tab) { in __einj_error_trigger()
343 rc = einj_check_trigger_header(trigger_tab); in __einj_error_trigger()
350 if (!trigger_tab->entry_count) in __einj_error_trigger()
354 table_size = trigger_tab->table_size; in __einj_error_trigger()
355 r = request_mem_region(trigger_paddr + sizeof(*trigger_tab), in __einj_error_trigger()
356 table_size - sizeof(*trigger_tab), in __einj_error_trigger()
360 (unsigned long long)trigger_paddr + sizeof(*trigger_tab), in __einj_error_trigger()
364 iounmap(trigger_tab); in __einj_error_trigger()
365 trigger_tab = ioremap_cache(trigger_paddr, table_size); in __einj_error_trigger()
366 if (!trigger_tab) { in __einj_error_trigger()
371 ((char *)trigger_tab + sizeof(struct acpi_einj_trigger)); in __einj_error_trigger()
375 trigger_entry, trigger_tab->entry_count); in __einj_error_trigger()
393 trigger_tab, param1, param2); in __einj_error_trigger()
422 release_mem_region(trigger_paddr + sizeof(*trigger_tab), in __einj_error_trigger()
423 table_size - sizeof(*trigger_tab)); in __einj_error_trigger()
425 release_mem_region(trigger_paddr, sizeof(*trigger_tab)); in __einj_error_trigger()
427 if (trigger_tab) in __einj_error_trigger()
428 iounmap(trigger_tab); in __einj_error_trigger()