Lines Matching refs:sccb

23 static void __init sclp_early_facilities_detect(struct read_info_sccb *sccb)
28 if (sclp_early_get_info(sccb))
31 sclp.facilities = sccb->facilities;
32 sclp.has_sprp = !!(sccb->fac84 & 0x02);
33 sclp.has_core_type = !!(sccb->fac84 & 0x01);
34 sclp.has_gsls = !!(sccb->fac85 & 0x80);
35 sclp.has_64bscao = !!(sccb->fac116 & 0x80);
36 sclp.has_cmma = !!(sccb->fac116 & 0x40);
37 sclp.has_esca = !!(sccb->fac116 & 0x08);
38 sclp.has_pfmfi = !!(sccb->fac117 & 0x40);
39 sclp.has_ibs = !!(sccb->fac117 & 0x20);
40 sclp.has_gisaf = !!(sccb->fac118 & 0x08);
41 sclp.has_hvs = !!(sccb->fac119 & 0x80);
42 sclp.has_kss = !!(sccb->fac98 & 0x01);
43 if (sccb->fac85 & 0x02)
45 if (sccb->fac91 & 0x40)
47 if (sccb->cpuoff > 134)
48 sclp.has_diag318 = !!(sccb->byte_134 & 0x80);
49 if (sccb->cpuoff > 137)
50 sclp.has_sipl = !!(sccb->cbl & 0x4000);
51 sclp.rnmax = sccb->rnmax ? sccb->rnmax : sccb->rnmax2;
52 sclp.rzm = sccb->rnsize ? sccb->rnsize : sccb->rnsize2;
54 sclp.ibc = sccb->ibc;
56 if (sccb->hamaxpow && sccb->hamaxpow < 64)
57 sclp.hamax = (1UL << sccb->hamaxpow) - 1;
61 if (!sccb->hcpua) {
65 sclp.max_cores = sccb->ncpurl;
67 sclp.max_cores = sccb->hcpua + 1;
71 cpue = (void *)sccb + sccb->cpuoff;
72 for (cpu = 0; cpu < sccb->ncpurl; cpue++, cpu++) {
87 if (sccb->fac91 & 0x2)
89 memcpy(&sclp_ipl_info.loadparm, &sccb->loadparm, LOADPARM_LEN);
91 if (sccb->hsa_size)
92 sclp.hsa_size = (sccb->hsa_size - 1) * PAGE_SIZE;
93 sclp.mtid = (sccb->fac42 & 0x80) ? (sccb->fac42 & 31) : 0;
94 sclp.mtid_cp = (sccb->fac42 & 0x80) ? (sccb->fac43 & 31) : 0;
95 sclp.mtid_prev = (sccb->fac42 & 0x80) ? (sccb->fac66 & 31) : 0;
97 sclp.hmfai = sccb->hmfai;
98 sclp.has_dirq = !!(sccb->cpudirq & 0x80);
114 static void __init sclp_early_init_core_info(struct read_cpu_info_sccb *sccb)
118 memset(sccb, 0, sizeof(*sccb));
119 sccb->header.length = sizeof(*sccb);
120 if (sclp_early_cmd(SCLP_CMDW_READ_CPU_INFO, sccb))
122 if (sccb->header.response_code != 0x0010)
124 sclp_fill_core_info(&sclp_early_core_info, sccb);
136 static void __init sclp_early_console_detect(struct init_sccb *sccb)
138 if (sccb->header.response_code != 0x20)
141 if (sclp_early_con_check_vt220(sccb))
144 if (sclp_early_con_check_linemode(sccb))
150 void *sccb = sclp_early_sccb;
152 sclp_early_facilities_detect(sccb);
153 sclp_early_init_core_info(sccb);
157 * sccb. These are sufficient to detect sclp console capabilities.
159 sclp_early_set_event_mask(sccb, 0, 0);
160 sclp_early_console_detect(sccb);