Lines Matching full:sccb
23 static void __init sclp_early_facilities_detect(struct read_info_sccb *sccb) in sclp_early_facilities_detect() argument
28 if (sclp_early_get_info(sccb)) in sclp_early_facilities_detect()
31 sclp.facilities = sccb->facilities; in sclp_early_facilities_detect()
32 sclp.has_sprp = !!(sccb->fac84 & 0x02); in sclp_early_facilities_detect()
33 sclp.has_core_type = !!(sccb->fac84 & 0x01); in sclp_early_facilities_detect()
34 sclp.has_gsls = !!(sccb->fac85 & 0x80); in sclp_early_facilities_detect()
35 sclp.has_64bscao = !!(sccb->fac116 & 0x80); in sclp_early_facilities_detect()
36 sclp.has_cmma = !!(sccb->fac116 & 0x40); in sclp_early_facilities_detect()
37 sclp.has_esca = !!(sccb->fac116 & 0x08); in sclp_early_facilities_detect()
38 sclp.has_pfmfi = !!(sccb->fac117 & 0x40); in sclp_early_facilities_detect()
39 sclp.has_ibs = !!(sccb->fac117 & 0x20); in sclp_early_facilities_detect()
40 sclp.has_gisaf = !!(sccb->fac118 & 0x08); in sclp_early_facilities_detect()
41 sclp.has_hvs = !!(sccb->fac119 & 0x80); in sclp_early_facilities_detect()
42 sclp.has_kss = !!(sccb->fac98 & 0x01); in sclp_early_facilities_detect()
43 sclp.has_sipl = !!(sccb->cbl & 0x4000); in sclp_early_facilities_detect()
44 if (sccb->fac85 & 0x02) in sclp_early_facilities_detect()
46 if (sccb->fac91 & 0x40) in sclp_early_facilities_detect()
48 if (sccb->cpuoff > 134) in sclp_early_facilities_detect()
49 sclp.has_diag318 = !!(sccb->byte_134 & 0x80); in sclp_early_facilities_detect()
50 sclp.rnmax = sccb->rnmax ? sccb->rnmax : sccb->rnmax2; in sclp_early_facilities_detect()
51 sclp.rzm = sccb->rnsize ? sccb->rnsize : sccb->rnsize2; in sclp_early_facilities_detect()
53 sclp.ibc = sccb->ibc; in sclp_early_facilities_detect()
55 if (sccb->hamaxpow && sccb->hamaxpow < 64) in sclp_early_facilities_detect()
56 sclp.hamax = (1UL << sccb->hamaxpow) - 1; in sclp_early_facilities_detect()
60 if (!sccb->hcpua) { in sclp_early_facilities_detect()
64 sclp.max_cores = sccb->ncpurl; in sclp_early_facilities_detect()
66 sclp.max_cores = sccb->hcpua + 1; in sclp_early_facilities_detect()
70 cpue = (void *)sccb + sccb->cpuoff; in sclp_early_facilities_detect()
71 for (cpu = 0; cpu < sccb->ncpurl; cpue++, cpu++) { in sclp_early_facilities_detect()
86 if (sccb->fac91 & 0x2) in sclp_early_facilities_detect()
88 memcpy(&sclp_ipl_info.loadparm, &sccb->loadparm, LOADPARM_LEN); in sclp_early_facilities_detect()
90 if (sccb->hsa_size) in sclp_early_facilities_detect()
91 sclp.hsa_size = (sccb->hsa_size - 1) * PAGE_SIZE; in sclp_early_facilities_detect()
92 sclp.mtid = (sccb->fac42 & 0x80) ? (sccb->fac42 & 31) : 0; in sclp_early_facilities_detect()
93 sclp.mtid_cp = (sccb->fac42 & 0x80) ? (sccb->fac43 & 31) : 0; in sclp_early_facilities_detect()
94 sclp.mtid_prev = (sccb->fac42 & 0x80) ? (sccb->fac66 & 31) : 0; in sclp_early_facilities_detect()
96 sclp.hmfai = sccb->hmfai; in sclp_early_facilities_detect()
97 sclp.has_dirq = !!(sccb->cpudirq & 0x80); in sclp_early_facilities_detect()
113 static void __init sclp_early_init_core_info(struct read_cpu_info_sccb *sccb) in sclp_early_init_core_info() argument
117 memset(sccb, 0, sizeof(*sccb)); in sclp_early_init_core_info()
118 sccb->header.length = sizeof(*sccb); in sclp_early_init_core_info()
119 if (sclp_early_cmd(SCLP_CMDW_READ_CPU_INFO, sccb)) in sclp_early_init_core_info()
121 if (sccb->header.response_code != 0x0010) in sclp_early_init_core_info()
123 sclp_fill_core_info(&sclp_early_core_info, sccb); in sclp_early_init_core_info()
135 static void __init sclp_early_console_detect(struct init_sccb *sccb) in sclp_early_console_detect() argument
137 if (sccb->header.response_code != 0x20) in sclp_early_console_detect()
140 if (sclp_early_con_check_vt220(sccb)) in sclp_early_console_detect()
143 if (sclp_early_con_check_linemode(sccb)) in sclp_early_console_detect()
149 void *sccb = sclp_early_sccb; in sclp_early_detect() local
151 sclp_early_facilities_detect(sccb); in sclp_early_detect()
152 sclp_early_init_core_info(sccb); in sclp_early_detect()
156 * sccb. These are sufficient to detect sclp console capabilities. in sclp_early_detect()
158 sclp_early_set_event_mask(sccb, 0, 0); in sclp_early_detect()
159 sclp_early_console_detect(sccb); in sclp_early_detect()