Lines Matching refs:info
82 static void stsi_1_1_1(struct seq_file *m, struct sysinfo_1_1_1 *info) in stsi_1_1_1() argument
87 if (stsi(info, 1, 1, 1)) in stsi_1_1_1()
89 has_var_cap = !!info->model_var_cap[0]; in stsi_1_1_1()
90 EBCASC(info->manufacturer, sizeof(info->manufacturer)); in stsi_1_1_1()
91 EBCASC(info->type, sizeof(info->type)); in stsi_1_1_1()
92 EBCASC(info->model, sizeof(info->model)); in stsi_1_1_1()
93 EBCASC(info->sequence, sizeof(info->sequence)); in stsi_1_1_1()
94 EBCASC(info->plant, sizeof(info->plant)); in stsi_1_1_1()
95 EBCASC(info->model_capacity, sizeof(info->model_capacity)); in stsi_1_1_1()
96 EBCASC(info->model_perm_cap, sizeof(info->model_perm_cap)); in stsi_1_1_1()
97 EBCASC(info->model_temp_cap, sizeof(info->model_temp_cap)); in stsi_1_1_1()
99 EBCASC(info->model_var_cap, sizeof(info->model_var_cap)); in stsi_1_1_1()
100 seq_printf(m, "Manufacturer: %-16.16s\n", info->manufacturer); in stsi_1_1_1()
101 seq_printf(m, "Type: %-4.4s\n", info->type); in stsi_1_1_1()
102 if (info->lic) in stsi_1_1_1()
103 seq_printf(m, "LIC Identifier: %016lx\n", info->lic); in stsi_1_1_1()
111 seq_printf(m, "Model: %-16.16s", info->model_capacity); in stsi_1_1_1()
112 if (info->model[0] != '\0') in stsi_1_1_1()
113 seq_printf(m, " %-16.16s", info->model); in stsi_1_1_1()
115 seq_printf(m, "Sequence Code: %-16.16s\n", info->sequence); in stsi_1_1_1()
116 seq_printf(m, "Plant: %-4.4s\n", info->plant); in stsi_1_1_1()
118 info->model_capacity, info->model_cap_rating); in stsi_1_1_1()
119 if (info->model_perm_cap_rating) in stsi_1_1_1()
121 info->model_perm_cap, in stsi_1_1_1()
122 info->model_perm_cap_rating); in stsi_1_1_1()
123 if (info->model_temp_cap_rating) in stsi_1_1_1()
125 info->model_temp_cap, in stsi_1_1_1()
126 info->model_temp_cap_rating); in stsi_1_1_1()
127 if (has_var_cap && info->model_var_cap_rating) in stsi_1_1_1()
129 info->model_var_cap, in stsi_1_1_1()
130 info->model_var_cap_rating); in stsi_1_1_1()
131 if (info->ncr) in stsi_1_1_1()
132 seq_printf(m, "Nominal Cap. Rating: %08u\n", info->ncr); in stsi_1_1_1()
133 if (info->npr) in stsi_1_1_1()
134 seq_printf(m, "Nominal Perm. Rating: %08u\n", info->npr); in stsi_1_1_1()
135 if (info->ntr) in stsi_1_1_1()
136 seq_printf(m, "Nominal Temp. Rating: %08u\n", info->ntr); in stsi_1_1_1()
137 if (has_var_cap && info->nvr) in stsi_1_1_1()
138 seq_printf(m, "Nominal Var. Rating: %08u\n", info->nvr); in stsi_1_1_1()
139 if (info->cai) { in stsi_1_1_1()
140 seq_printf(m, "Capacity Adj. Ind.: %d\n", info->cai); in stsi_1_1_1()
141 seq_printf(m, "Capacity Ch. Reason: %d\n", info->ccr); in stsi_1_1_1()
142 seq_printf(m, "Capacity Transient: %d\n", info->t); in stsi_1_1_1()
144 if (info->p) { in stsi_1_1_1()
145 for (i = 1; i <= ARRAY_SIZE(info->typepct); i++) { in stsi_1_1_1()
147 i, info->typepct[i - 1]); in stsi_1_1_1()
152 static void stsi_15_1_x(struct seq_file *m, struct sysinfo_15_1_x *info) in stsi_15_1_x() argument
159 if (stsi(info, 15, 1, topology_max_mnest)) in stsi_15_1_x()
163 seq_printf(m, " %d", info->mag[i]); in stsi_15_1_x()
166 store_topology(info); in stsi_15_1_x()
169 seq_printf(m, " %d", info->mag[i]); in stsi_15_1_x()
174 static void stsi_1_2_2(struct seq_file *m, struct sysinfo_1_2_2 *info) in stsi_1_2_2() argument
179 if (stsi(info, 1, 2, 2)) in stsi_1_2_2()
182 ((unsigned long) info + info->acc_offset); in stsi_1_2_2()
183 seq_printf(m, "CPUs Total: %d\n", info->cpus_total); in stsi_1_2_2()
184 seq_printf(m, "CPUs Configured: %d\n", info->cpus_configured); in stsi_1_2_2()
185 seq_printf(m, "CPUs Standby: %d\n", info->cpus_standby); in stsi_1_2_2()
186 seq_printf(m, "CPUs Reserved: %d\n", info->cpus_reserved); in stsi_1_2_2()
187 if (info->mt_installed) { in stsi_1_2_2()
188 seq_printf(m, "CPUs G-MTID: %d\n", info->mt_gtid); in stsi_1_2_2()
189 seq_printf(m, "CPUs S-MTID: %d\n", info->mt_stid); in stsi_1_2_2()
200 seq_printf(m, "Capability: %u", info->capability); in stsi_1_2_2()
201 if (info->format == 1) in stsi_1_2_2()
204 if (info->nominal_cap) in stsi_1_2_2()
205 seq_printf(m, "Nominal Capability: %d\n", info->nominal_cap); in stsi_1_2_2()
206 if (info->secondary_cap) in stsi_1_2_2()
207 seq_printf(m, "Secondary Capability: %d\n", info->secondary_cap); in stsi_1_2_2()
208 for (i = 2; i <= info->cpus_total; i++) { in stsi_1_2_2()
210 i, info->adjustment[i-2]); in stsi_1_2_2()
211 if (info->format == 1) in stsi_1_2_2()
217 static void stsi_2_2_2(struct seq_file *m, struct sysinfo_2_2_2 *info) in stsi_2_2_2() argument
219 if (stsi(info, 2, 2, 2)) in stsi_2_2_2()
221 EBCASC(info->name, sizeof(info->name)); in stsi_2_2_2()
223 seq_printf(m, "LPAR Number: %d\n", info->lpar_number); in stsi_2_2_2()
225 if (info->characteristics & LPAR_CHAR_DEDICATED) in stsi_2_2_2()
227 if (info->characteristics & LPAR_CHAR_SHARED) in stsi_2_2_2()
229 if (info->characteristics & LPAR_CHAR_LIMITED) in stsi_2_2_2()
232 seq_printf(m, "LPAR Name: %-8.8s\n", info->name); in stsi_2_2_2()
233 seq_printf(m, "LPAR Adjustment: %d\n", info->caf); in stsi_2_2_2()
234 seq_printf(m, "LPAR CPUs Total: %d\n", info->cpus_total); in stsi_2_2_2()
235 seq_printf(m, "LPAR CPUs Configured: %d\n", info->cpus_configured); in stsi_2_2_2()
236 seq_printf(m, "LPAR CPUs Standby: %d\n", info->cpus_standby); in stsi_2_2_2()
237 seq_printf(m, "LPAR CPUs Reserved: %d\n", info->cpus_reserved); in stsi_2_2_2()
238 seq_printf(m, "LPAR CPUs Dedicated: %d\n", info->cpus_dedicated); in stsi_2_2_2()
239 seq_printf(m, "LPAR CPUs Shared: %d\n", info->cpus_shared); in stsi_2_2_2()
240 if (info->mt_installed) { in stsi_2_2_2()
241 seq_printf(m, "LPAR CPUs G-MTID: %d\n", info->mt_gtid); in stsi_2_2_2()
242 seq_printf(m, "LPAR CPUs S-MTID: %d\n", info->mt_stid); in stsi_2_2_2()
243 seq_printf(m, "LPAR CPUs PS-MTID: %d\n", info->mt_psmtid); in stsi_2_2_2()
245 if (convert_ext_name(info->vsne, info->ext_name, sizeof(info->ext_name))) { in stsi_2_2_2()
246 seq_printf(m, "LPAR Extended Name: %-.256s\n", info->ext_name); in stsi_2_2_2()
247 seq_printf(m, "LPAR UUID: %pUb\n", &info->uuid); in stsi_2_2_2()
252 struct sysinfo_3_2_2 *info) in print_ext_name() argument
254 size_t len = sizeof(info->ext_names[lvl]); in print_ext_name()
256 if (!convert_ext_name(info->vm[lvl].evmne, info->ext_names[lvl], len)) in print_ext_name()
259 info->ext_names[lvl]); in print_ext_name()
262 static void print_uuid(struct seq_file *m, int i, struct sysinfo_3_2_2 *info) in print_uuid() argument
264 if (uuid_is_null(&info->vm[i].uuid)) in print_uuid()
266 seq_printf(m, "VM%02d UUID: %pUb\n", i, &info->vm[i].uuid); in print_uuid()
269 static void stsi_3_2_2(struct seq_file *m, struct sysinfo_3_2_2 *info) in stsi_3_2_2() argument
273 if (stsi(info, 3, 2, 2)) in stsi_3_2_2()
275 for (i = 0; i < info->count; i++) { in stsi_3_2_2()
276 EBCASC(info->vm[i].name, sizeof(info->vm[i].name)); in stsi_3_2_2()
277 EBCASC(info->vm[i].cpi, sizeof(info->vm[i].cpi)); in stsi_3_2_2()
279 seq_printf(m, "VM%02d Name: %-8.8s\n", i, info->vm[i].name); in stsi_3_2_2()
280 seq_printf(m, "VM%02d Control Program: %-16.16s\n", i, info->vm[i].cpi); in stsi_3_2_2()
281 seq_printf(m, "VM%02d Adjustment: %d\n", i, info->vm[i].caf); in stsi_3_2_2()
282 seq_printf(m, "VM%02d CPUs Total: %d\n", i, info->vm[i].cpus_total); in stsi_3_2_2()
283 seq_printf(m, "VM%02d CPUs Configured: %d\n", i, info->vm[i].cpus_configured); in stsi_3_2_2()
284 seq_printf(m, "VM%02d CPUs Standby: %d\n", i, info->vm[i].cpus_standby); in stsi_3_2_2()
285 seq_printf(m, "VM%02d CPUs Reserved: %d\n", i, info->vm[i].cpus_reserved); in stsi_3_2_2()
286 print_ext_name(m, i, info); in stsi_3_2_2()
287 print_uuid(m, i, info); in stsi_3_2_2()
293 void *info = (void *)get_zeroed_page(GFP_KERNEL); in sysinfo_show() local
296 if (!info) in sysinfo_show()
300 stsi_1_1_1(m, info); in sysinfo_show()
302 stsi_15_1_x(m, info); in sysinfo_show()
304 stsi_1_2_2(m, info); in sysinfo_show()
306 stsi_2_2_2(m, info); in sysinfo_show()
308 stsi_3_2_2(m, info); in sysinfo_show()
309 free_page((unsigned long)info); in sysinfo_show()
430 struct sysinfo_1_2_2 *info; in s390_adjust_jiffies() local
433 info = (void *) get_zeroed_page(GFP_KERNEL); in s390_adjust_jiffies()
434 if (!info) in s390_adjust_jiffies()
437 if (stsi(info, 1, 2, 2) == 0) { in s390_adjust_jiffies()
451 if (info->capability & 0xff800000) in s390_adjust_jiffies()
452 fpu_ldgr(2, info->capability); in s390_adjust_jiffies()
454 fpu_cefbr(2, info->capability); in s390_adjust_jiffies()
466 free_page((unsigned long) info); in s390_adjust_jiffies()