Lines Matching refs:history_index
115 u16 history_index; in acpi_db_display_history() local
117 history_index = acpi_gbl_lo_history; in acpi_db_display_history()
122 if (acpi_gbl_history_buffer[history_index].command) { in acpi_db_display_history()
124 acpi_gbl_history_buffer[history_index]. in acpi_db_display_history()
126 acpi_gbl_history_buffer[history_index]. in acpi_db_display_history()
130 history_index++; in acpi_db_display_history()
131 if (history_index >= HISTORY_SIZE) { in acpi_db_display_history()
132 history_index = 0; in acpi_db_display_history()
181 u16 history_index; in acpi_db_get_history_by_index() local
185 history_index = acpi_gbl_lo_history; in acpi_db_get_history_by_index()
187 if (acpi_gbl_history_buffer[history_index].cmd_num == cmd_num) { in acpi_db_get_history_by_index()
191 return (acpi_gbl_history_buffer[history_index].command); in acpi_db_get_history_by_index()
196 history_index++; in acpi_db_get_history_by_index()
197 if (history_index >= HISTORY_SIZE) { in acpi_db_get_history_by_index()
198 history_index = 0; in acpi_db_get_history_by_index()
202 acpi_os_printf("Invalid history number: %u\n", history_index); in acpi_db_get_history_by_index()