Lines Matching refs:os_info
22 static struct os_info os_info __page_aligned_data;
27 u32 os_info_csum(struct os_info *os_info) in os_info_csum() argument
29 int size = sizeof(*os_info) - offsetof(struct os_info, version_major); in os_info_csum()
30 return (__force u32)csum_partial(&os_info->version_major, size, 0); in os_info_csum()
38 os_info.crashkernel_addr = (u64)(unsigned long)base; in os_info_crashkernel_add()
39 os_info.crashkernel_size = (u64)(unsigned long)size; in os_info_crashkernel_add()
40 os_info.csum = os_info_csum(&os_info); in os_info_crashkernel_add()
48 os_info.entry[nr].addr = (u64)(unsigned long)ptr; in os_info_entry_add()
49 os_info.entry[nr].size = size; in os_info_entry_add()
50 os_info.entry[nr].csum = (__force u32)csum_partial(ptr, size, 0); in os_info_entry_add()
51 os_info.csum = os_info_csum(&os_info); in os_info_entry_add()
59 void *ptr = &os_info; in os_info_init()
61 os_info.version_major = OS_INFO_VERSION_MAJOR; in os_info_init()
62 os_info.version_minor = OS_INFO_VERSION_MINOR; in os_info_init()
63 os_info.magic = OS_INFO_MAGIC; in os_info_init()
64 os_info.csum = os_info_csum(&os_info); in os_info_init()
65 mem_assign_absolute(S390_lowcore.os_info, (unsigned long) ptr); in os_info_init()
70 static struct os_info *os_info_old;
126 if (copy_oldmem_kernel(&addr, &S390_lowcore.os_info, sizeof(addr))) in os_info_old_init()