Lines Matching refs:sctns
173 static void fill_hdr(struct sthyi_sctns *sctns) in fill_hdr() argument
175 sctns->hdr.infhdln = sizeof(sctns->hdr); in fill_hdr()
176 sctns->hdr.infmoff = sizeof(sctns->hdr); in fill_hdr()
177 sctns->hdr.infmlen = sizeof(sctns->mac); in fill_hdr()
178 sctns->hdr.infplen = sizeof(sctns->par); in fill_hdr()
179 sctns->hdr.infpoff = sctns->hdr.infhdln + sctns->hdr.infmlen; in fill_hdr()
180 sctns->hdr.infhtotl = sctns->hdr.infpoff + sctns->hdr.infplen; in fill_hdr()
183 static void fill_stsi_mac(struct sthyi_sctns *sctns, in fill_stsi_mac() argument
189 sclp_ocf_cpc_name_copy(sctns->mac.infmname); in fill_stsi_mac()
191 memcpy(sctns->mac.infmtype, sysinfo->type, sizeof(sctns->mac.infmtype)); in fill_stsi_mac()
192 memcpy(sctns->mac.infmmanu, sysinfo->manufacturer, sizeof(sctns->mac.infmmanu)); in fill_stsi_mac()
193 memcpy(sctns->mac.infmpman, sysinfo->plant, sizeof(sctns->mac.infmpman)); in fill_stsi_mac()
194 memcpy(sctns->mac.infmseq, sysinfo->sequence, sizeof(sctns->mac.infmseq)); in fill_stsi_mac()
196 sctns->mac.infmval1 |= MAC_ID_VLD | MAC_NAME_VLD; in fill_stsi_mac()
199 static void fill_stsi_par(struct sthyi_sctns *sctns, in fill_stsi_par() argument
205 sctns->par.infppnum = sysinfo->lpar_number; in fill_stsi_par()
206 memcpy(sctns->par.infppnam, sysinfo->name, sizeof(sctns->par.infppnam)); in fill_stsi_par()
208 sctns->par.infpval1 |= PAR_ID_VLD; in fill_stsi_par()
211 static void fill_stsi(struct sthyi_sctns *sctns) in fill_stsi() argument
220 fill_stsi_mac(sctns, sysinfo); in fill_stsi()
221 fill_stsi_par(sctns, sysinfo); in fill_stsi()
226 static void fill_diag_mac(struct sthyi_sctns *sctns, in fill_diag_mac() argument
236 sctns->mac.infmdcps++; in fill_diag_mac()
238 sctns->mac.infmscps++; in fill_diag_mac()
242 sctns->mac.infmdifl++; in fill_diag_mac()
244 sctns->mac.infmsifl++; in fill_diag_mac()
248 sctns->mac.infmval1 |= MAC_CNT_VLD; in fill_diag_mac()
301 static void fill_diag(struct sthyi_sctns *sctns) in fill_diag() argument
349 sctns->par.infpflg1 = PAR_MT_EN; in fill_diag()
351 sctns->par.infpval1 |= PAR_GRP_VLD; in fill_diag()
352 sctns->par.infplgcp = scale_cap(lpar_inf.cp.lpar_grp_cap); in fill_diag()
353 sctns->par.infplgif = scale_cap(lpar_inf.ifl.lpar_grp_cap); in fill_diag()
354 memcpy(sctns->par.infplgnm, part_block->hdr.hardware_group_name, in fill_diag()
355 sizeof(sctns->par.infplgnm)); in fill_diag()
357 sctns->par.infpscps = lpar_inf.cp.cpu_num_shd; in fill_diag()
358 sctns->par.infpdcps = lpar_inf.cp.cpu_num_ded; in fill_diag()
359 sctns->par.infpsifl = lpar_inf.ifl.cpu_num_shd; in fill_diag()
360 sctns->par.infpdifl = lpar_inf.ifl.cpu_num_ded; in fill_diag()
361 sctns->par.infpval1 |= PAR_PCNT_VLD; in fill_diag()
363 sctns->par.infpabcp = scale_cap(lpar_inf.cp.lpar_cap); in fill_diag()
364 sctns->par.infpabif = scale_cap(lpar_inf.ifl.lpar_cap); in fill_diag()
365 sctns->par.infpval1 |= PAR_ABS_VLD; in fill_diag()
372 sctns->hdr.infhflg1 |= HDR_PERF_UNAV; in fill_diag()
376 fill_diag_mac(sctns, phys_block, diag224_buf); in fill_diag()
379 sctns->par.infpwbcp = sctns->mac.infmscps * 0x10000 * in fill_diag()
384 sctns->par.infpwbif = sctns->mac.infmsifl * 0x10000 * in fill_diag()
387 sctns->par.infpval1 |= PAR_WGHT_VLD; in fill_diag()
414 struct sthyi_sctns *sctns = (struct sthyi_sctns *)dst; in fill_dst() local
423 fill_hdr(sctns); in fill_dst()
424 fill_stsi(sctns); in fill_dst()
425 fill_diag(sctns); in fill_dst()