Lines Matching refs:history_index
116 u16 history_index; in acpi_db_display_history() local
118 history_index = acpi_gbl_lo_history; in acpi_db_display_history()
123 if (acpi_gbl_history_buffer[history_index].command) { in acpi_db_display_history()
125 acpi_gbl_history_buffer[history_index]. in acpi_db_display_history()
127 acpi_gbl_history_buffer[history_index]. in acpi_db_display_history()
131 history_index++; in acpi_db_display_history()
132 if (history_index >= HISTORY_SIZE) { in acpi_db_display_history()
133 history_index = 0; in acpi_db_display_history()
182 u16 history_index; in acpi_db_get_history_by_index() local
186 history_index = acpi_gbl_lo_history; in acpi_db_get_history_by_index()
188 if (acpi_gbl_history_buffer[history_index].cmd_num == cmd_num) { in acpi_db_get_history_by_index()
192 return (acpi_gbl_history_buffer[history_index].command); in acpi_db_get_history_by_index()
197 history_index++; in acpi_db_get_history_by_index()
198 if (history_index >= HISTORY_SIZE) { in acpi_db_get_history_by_index()
199 history_index = 0; in acpi_db_get_history_by_index()
203 acpi_os_printf("Invalid history number: %u\n", history_index); in acpi_db_get_history_by_index()