trigger_tab 251 drivers/acpi/apei/einj.c static int einj_check_trigger_header(struct acpi_einj_trigger *trigger_tab) trigger_tab 253 drivers/acpi/apei/einj.c if (trigger_tab->header_size != sizeof(struct acpi_einj_trigger)) trigger_tab 255 drivers/acpi/apei/einj.c if (trigger_tab->table_size > PAGE_SIZE || trigger_tab 256 drivers/acpi/apei/einj.c trigger_tab->table_size < trigger_tab->header_size) trigger_tab 258 drivers/acpi/apei/einj.c if (trigger_tab->entry_count != trigger_tab 259 drivers/acpi/apei/einj.c (trigger_tab->table_size - trigger_tab->header_size) / trigger_tab 267 drivers/acpi/apei/einj.c struct acpi_einj_trigger *trigger_tab, u64 param1, u64 param2) trigger_tab 273 drivers/acpi/apei/einj.c ((char *)trigger_tab + sizeof(struct acpi_einj_trigger)); trigger_tab 274 drivers/acpi/apei/einj.c for (i = 0; i < trigger_tab->entry_count; i++) { trigger_tab 290 drivers/acpi/apei/einj.c struct acpi_einj_trigger *trigger_tab = NULL; trigger_tab 299 drivers/acpi/apei/einj.c r = request_mem_region(trigger_paddr, sizeof(*trigger_tab), trigger_tab 305 drivers/acpi/apei/einj.c sizeof(*trigger_tab) - 1); trigger_tab 308 drivers/acpi/apei/einj.c trigger_tab = ioremap_cache(trigger_paddr, sizeof(*trigger_tab)); trigger_tab 309 drivers/acpi/apei/einj.c if (!trigger_tab) { trigger_tab 313 drivers/acpi/apei/einj.c rc = einj_check_trigger_header(trigger_tab); trigger_tab 320 drivers/acpi/apei/einj.c if (!trigger_tab->entry_count) trigger_tab 324 drivers/acpi/apei/einj.c table_size = trigger_tab->table_size; trigger_tab 325 drivers/acpi/apei/einj.c r = request_mem_region(trigger_paddr + sizeof(*trigger_tab), trigger_tab 326 drivers/acpi/apei/einj.c table_size - sizeof(*trigger_tab), trigger_tab 330 drivers/acpi/apei/einj.c (unsigned long long)trigger_paddr + sizeof(*trigger_tab), trigger_tab 334 drivers/acpi/apei/einj.c iounmap(trigger_tab); trigger_tab 335 drivers/acpi/apei/einj.c trigger_tab = ioremap_cache(trigger_paddr, table_size); trigger_tab 336 drivers/acpi/apei/einj.c if (!trigger_tab) { trigger_tab 341 drivers/acpi/apei/einj.c ((char *)trigger_tab + sizeof(struct acpi_einj_trigger)); trigger_tab 345 drivers/acpi/apei/einj.c trigger_entry, trigger_tab->entry_count); trigger_tab 362 drivers/acpi/apei/einj.c trigger_tab, param1, param2); trigger_tab 391 drivers/acpi/apei/einj.c release_mem_region(trigger_paddr + sizeof(*trigger_tab), trigger_tab 392 drivers/acpi/apei/einj.c table_size - sizeof(*trigger_tab)); trigger_tab 394 drivers/acpi/apei/einj.c release_mem_region(trigger_paddr, sizeof(*trigger_tab)); trigger_tab 396 drivers/acpi/apei/einj.c if (trigger_tab) trigger_tab 397 drivers/acpi/apei/einj.c iounmap(trigger_tab);