Lines Matching refs:os_info
26 static struct os_info os_info __page_aligned_data;
31 u32 os_info_csum(struct os_info *os_info) in os_info_csum() argument
33 int size = sizeof(*os_info) - offsetof(struct os_info, version_major); in os_info_csum()
34 return (__force u32)cksm(&os_info->version_major, size, 0); in os_info_csum()
42 os_info.crashkernel_addr = (u64)(unsigned long)base; in os_info_crashkernel_add()
43 os_info.crashkernel_size = (u64)(unsigned long)size; in os_info_crashkernel_add()
44 os_info.csum = os_info_csum(&os_info); in os_info_crashkernel_add()
52 os_info.entry[nr].addr = __pa(ptr); in os_info_entry_add_data()
53 os_info.entry[nr].size = size; in os_info_entry_add_data()
54 os_info.entry[nr].csum = (__force u32)cksm(ptr, size, 0); in os_info_entry_add_data()
55 os_info.csum = os_info_csum(&os_info); in os_info_entry_add_data()
63 os_info.entry[nr].val = value; in os_info_entry_add_val()
64 os_info.entry[nr].size = 0; in os_info_entry_add_val()
65 os_info.entry[nr].csum = 0; in os_info_entry_add_val()
66 os_info.csum = os_info_csum(&os_info); in os_info_entry_add_val()
76 BUILD_BUG_ON(sizeof(struct os_info) != PAGE_SIZE); in os_info_init()
77 os_info.version_major = OS_INFO_VERSION_MAJOR; in os_info_init()
78 os_info.version_minor = OS_INFO_VERSION_MINOR; in os_info_init()
79 os_info.magic = OS_INFO_MAGIC; in os_info_init()
89 os_info.csum = os_info_csum(&os_info); in os_info_init()
91 abs_lc->os_info = __pa(&os_info); in os_info_init()
97 static struct os_info *os_info_old;