Lines Matching refs:apm_info
527 if (apm_info.allow_ints) { in __apm_irq_save()
784 if (apm_info.connection_version < 0x0102) in apm_get_event()
863 clock_slowed = (apm_info.bios.flags & APM_IDLE_SLOWS_CLOCK) != 0; in apm_do_idle()
924 if (apm_info.forbid_idle) in apm_cpu_idle()
984 if (apm_info.realmode_power_off) { in apm_power_off()
1006 if ((enable == 0) && (apm_info.bios.flags & APM_BIOS_DISENGAGED)) in apm_enable_power_management()
1012 apm_info.bios.flags &= ~APM_BIOS_DISABLED; in apm_enable_power_management()
1014 apm_info.bios.flags |= APM_BIOS_DISABLED; in apm_enable_power_management()
1041 if (apm_info.get_power_status_broken) in apm_get_power_status()
1050 if (apm_info.get_power_status_swabinminutes) { in apm_get_power_status()
1073 && (apm_info.bios.flags & APM_BIOS_DISABLED)) in apm_engage_power_management()
1080 apm_info.bios.flags &= ~APM_BIOS_DISENGAGED; in apm_engage_power_management()
1082 apm_info.bios.flags |= APM_BIOS_DISENGAGED; in apm_engage_power_management()
1321 if (apm_info.connection_version > 0x100) in check_events()
1327 if (apm_info.connection_version > 0x100) in check_events()
1387 if ((apm_info.connection_version > 0x100) && in apm_event_handler()
1627 if (apm_info.connection_version > 0x100) { in proc_apm_show()
1675 (apm_info.bios.version >> 8) & 0xff, in proc_apm_show()
1676 apm_info.bios.version & 0xff, in proc_apm_show()
1677 apm_info.bios.flags, in proc_apm_show()
1706 if (apm_info.connection_version == 0) { in apm()
1707 apm_info.connection_version = apm_info.bios.version; in apm()
1708 if (apm_info.connection_version > 0x100) { in apm()
1712 if (apm_info.connection_version > 0x0102) in apm()
1713 apm_info.connection_version = 0x0102; in apm()
1714 error = apm_driver_version(&apm_info.connection_version); in apm()
1718 apm_info.connection_version = 0x100; in apm()
1725 (apm_info.connection_version >> 8) & 0xff, in apm()
1726 apm_info.connection_version & 0xff); in apm()
1729 if (apm_info.bios.flags & APM_BIOS_DISABLED) { in apm()
1743 if ((apm_info.bios.flags & APM_BIOS_DISENGAGED) in apm()
1744 && (apm_info.connection_version > 0x0100)) { in apm()
1795 if (apm_info.connection_version > 0x100) { in apm()
1860 apm_info.allow_ints = !invert; in apm_setup()
1863 apm_info.get_power_status_broken = !invert; in apm_setup()
1866 apm_info.realmode_power_off = !invert; in apm_setup()
1915 if (apm_info.realmode_power_off == 0) { in set_realmode_power_off()
1916 apm_info.realmode_power_off = 1; in set_realmode_power_off()
1926 if (apm_info.allow_ints == 0) { in set_apm_ints()
1927 apm_info.allow_ints = 1; in set_apm_ints()
1937 if (apm_info.disabled == 0) { in apm_is_horked()
1938 apm_info.disabled = 1; in apm_is_horked()
1947 if (apm_info.disabled == 0) { in apm_is_horked_d850md()
1948 apm_info.disabled = 1; in apm_is_horked_d850md()
1960 if (apm_info.forbid_idle == 0) { in apm_likes_to_melt()
1961 apm_info.forbid_idle = 1; in apm_likes_to_melt()
1985 apm_info.get_power_status_broken = 1; in broken_apm_power()
1997 apm_info.get_power_status_swabinminutes = 1; in swab_apm_power_in_minutes()
2231 if (apm_info.bios.version == 0 || machine_is_olpc()) { in apm_init()
2237 ((apm_info.bios.version >> 8) & 0xff), in apm_init()
2238 (apm_info.bios.version & 0xff), in apm_init()
2239 apm_info.bios.flags, in apm_init()
2241 if ((apm_info.bios.flags & APM_32_BIT_SUPPORT) == 0) { in apm_init()
2247 apm_info.allow_ints = 1; in apm_init()
2249 apm_info.get_power_status_broken = 1; in apm_init()
2251 apm_info.realmode_power_off = 1; in apm_init()
2254 apm_info.disabled = apm_disabled; in apm_init()
2260 if (apm_info.bios.version == 0x001) in apm_init()
2261 apm_info.bios.version = 0x100; in apm_init()
2264 if (apm_info.bios.version < 0x102) in apm_init()
2265 apm_info.bios.cseg_16_len = 0; /* 64k */ in apm_init()
2269 apm_info.bios.cseg, apm_info.bios.offset, in apm_init()
2270 apm_info.bios.cseg_16, apm_info.bios.dseg); in apm_init()
2271 if (apm_info.bios.version > 0x100) in apm_init()
2273 apm_info.bios.cseg_len, in apm_init()
2274 apm_info.bios.dseg_len); in apm_init()
2275 if (apm_info.bios.version > 0x101) in apm_init()
2276 printk(" cseg16 len %x", apm_info.bios.cseg_16_len); in apm_init()
2280 if (apm_info.disabled) { in apm_init()
2286 apm_info.disabled = 1; in apm_init()
2291 apm_info.disabled = 1; in apm_init()
2299 apm_bios_entry.offset = apm_info.bios.offset; in apm_init()
2314 (unsigned long)__va((unsigned long)apm_info.bios.cseg << 4)); in apm_init()
2316 (unsigned long)__va((unsigned long)apm_info.bios.cseg_16 << 4)); in apm_init()
2318 (unsigned long)__va((unsigned long)apm_info.bios.dseg << 4)); in apm_init()
2365 if (((apm_info.bios.flags & APM_BIOS_DISENGAGED) == 0) in apm_exit()
2366 && (apm_info.connection_version > 0x0100)) { in apm_exit()