Lines Matching refs:os_info
20 static struct os_info os_info __page_aligned_data;
25 u32 os_info_csum(struct os_info *os_info) in os_info_csum() argument
27 int size = sizeof(*os_info) - offsetof(struct os_info, version_major); in os_info_csum()
28 return csum_partial(&os_info->version_major, size, 0); in os_info_csum()
36 os_info.crashkernel_addr = (u64)(unsigned long)base; in os_info_crashkernel_add()
37 os_info.crashkernel_size = (u64)(unsigned long)size; in os_info_crashkernel_add()
38 os_info.csum = os_info_csum(&os_info); in os_info_crashkernel_add()
46 os_info.entry[nr].addr = (u64)(unsigned long)ptr; in os_info_entry_add()
47 os_info.entry[nr].size = size; in os_info_entry_add()
48 os_info.entry[nr].csum = csum_partial(ptr, size, 0); in os_info_entry_add()
49 os_info.csum = os_info_csum(&os_info); in os_info_entry_add()
57 void *ptr = &os_info; in os_info_init()
59 os_info.version_major = OS_INFO_VERSION_MAJOR; in os_info_init()
60 os_info.version_minor = OS_INFO_VERSION_MINOR; in os_info_init()
61 os_info.magic = OS_INFO_MAGIC; in os_info_init()
62 os_info.csum = os_info_csum(&os_info); in os_info_init()
63 copy_to_absolute_zero(&S390_lowcore.os_info, &ptr, sizeof(ptr)); in os_info_init()
68 static struct os_info *os_info_old;
124 if (copy_from_oldmem(&addr, &S390_lowcore.os_info, sizeof(addr))) in os_info_old_init()