Lines Matching full:sccb
29 struct read_info_sccb *sccb; in sclp_early_facilities_detect() local
32 sccb = sclp_early_get_info(); in sclp_early_facilities_detect()
33 if (!sccb) in sclp_early_facilities_detect()
36 sclp.facilities = sccb->facilities; in sclp_early_facilities_detect()
37 sclp.has_sprp = !!(sccb->fac84 & 0x02); in sclp_early_facilities_detect()
38 sclp.has_core_type = !!(sccb->fac84 & 0x01); in sclp_early_facilities_detect()
39 sclp.has_gsls = !!(sccb->fac85 & 0x80); in sclp_early_facilities_detect()
40 sclp.has_64bscao = !!(sccb->fac116 & 0x80); in sclp_early_facilities_detect()
41 sclp.has_cmma = !!(sccb->fac116 & 0x40); in sclp_early_facilities_detect()
42 sclp.has_esca = !!(sccb->fac116 & 0x08); in sclp_early_facilities_detect()
43 sclp.has_pfmfi = !!(sccb->fac117 & 0x40); in sclp_early_facilities_detect()
44 sclp.has_ibs = !!(sccb->fac117 & 0x20); in sclp_early_facilities_detect()
45 sclp.has_gisaf = !!(sccb->fac118 & 0x08); in sclp_early_facilities_detect()
46 sclp.has_hvs = !!(sccb->fac119 & 0x80); in sclp_early_facilities_detect()
47 sclp.has_wti = !!(sccb->fac119 & 0x40); in sclp_early_facilities_detect()
48 sclp.has_kss = !!(sccb->fac98 & 0x01); in sclp_early_facilities_detect()
49 sclp.has_aisii = !!(sccb->fac118 & 0x40); in sclp_early_facilities_detect()
50 sclp.has_aeni = !!(sccb->fac118 & 0x20); in sclp_early_facilities_detect()
51 sclp.has_aisi = !!(sccb->fac118 & 0x10); in sclp_early_facilities_detect()
52 sclp.has_zpci_lsi = !!(sccb->fac118 & 0x01); in sclp_early_facilities_detect()
53 if (sccb->fac85 & 0x02) in sclp_early_facilities_detect()
55 if (sccb->fac91 & 0x40) in sclp_early_facilities_detect()
57 sclp.has_diag204_bif = !!(sccb->fac98 & 0x80); in sclp_early_facilities_detect()
58 if (sccb->cpuoff > 134) { in sclp_early_facilities_detect()
59 sclp.has_diag318 = !!(sccb->byte_134 & 0x80); in sclp_early_facilities_detect()
60 sclp.has_diag320 = !!(sccb->byte_134 & 0x04); in sclp_early_facilities_detect()
61 sclp.has_iplcc = !!(sccb->byte_134 & 0x02); in sclp_early_facilities_detect()
63 if (sccb->cpuoff > 137) { in sclp_early_facilities_detect()
64 sclp.has_sipl = !!(sccb->cbl & 0x4000); in sclp_early_facilities_detect()
65 sclp.has_sipl_eckd = !!(sccb->cbl & 0x2000); in sclp_early_facilities_detect()
67 sclp.rnmax = sccb->rnmax ? sccb->rnmax : sccb->rnmax2; in sclp_early_facilities_detect()
68 sclp.rzm = sccb->rnsize ? sccb->rnsize : sccb->rnsize2; in sclp_early_facilities_detect()
70 sclp.ibc = sccb->ibc; in sclp_early_facilities_detect()
72 if (sccb->hamaxpow && sccb->hamaxpow < 64) in sclp_early_facilities_detect()
73 sclp.hamax = (1UL << sccb->hamaxpow) - 1; in sclp_early_facilities_detect()
77 if (!sccb->hcpua) { in sclp_early_facilities_detect()
81 sclp.max_cores = sccb->ncpurl; in sclp_early_facilities_detect()
83 sclp.max_cores = sccb->hcpua + 1; in sclp_early_facilities_detect()
87 cpue = (void *)sccb + sccb->cpuoff; in sclp_early_facilities_detect()
88 for (cpu = 0; cpu < sccb->ncpurl; cpue++, cpu++) { in sclp_early_facilities_detect()
103 if (sccb->fac91 & 0x2) in sclp_early_facilities_detect()
105 memcpy(&sclp_ipl_info.loadparm, &sccb->loadparm, LOADPARM_LEN); in sclp_early_facilities_detect()
107 if (sccb->hsa_size) in sclp_early_facilities_detect()
108 sclp.hsa_size = (sccb->hsa_size - 1) * PAGE_SIZE; in sclp_early_facilities_detect()
109 sclp.mtid = (sccb->fac42 & 0x80) ? (sccb->fac42 & 31) : 0; in sclp_early_facilities_detect()
110 sclp.mtid_cp = (sccb->fac42 & 0x80) ? (sccb->fac43 & 31) : 0; in sclp_early_facilities_detect()
111 sclp.mtid_prev = (sccb->fac42 & 0x80) ? (sccb->fac66 & 31) : 0; in sclp_early_facilities_detect()
113 sclp.hmfai = sccb->hmfai; in sclp_early_facilities_detect()
114 sclp.has_dirq = !!(sccb->cpudirq & 0x80); in sclp_early_facilities_detect()
129 struct read_cpu_info_sccb *sccb; in sclp_early_get_core_info() local
136 sccb = memblock_alloc_low(length, PAGE_SIZE); in sclp_early_get_core_info()
137 if (!sccb) in sclp_early_get_core_info()
140 memset(sccb, 0, length); in sclp_early_get_core_info()
141 sccb->header.length = length; in sclp_early_get_core_info()
142 sccb->header.control_mask[2] = 0x80; in sclp_early_get_core_info()
143 if (sclp_early_cmd(SCLP_CMDW_READ_CPU_INFO, sccb)) { in sclp_early_get_core_info()
147 if (sccb->header.response_code != 0x0010) { in sclp_early_get_core_info()
151 sclp_fill_core_info(info, sccb); in sclp_early_get_core_info()
153 memblock_free(sccb, length); in sclp_early_get_core_info()
157 static void __init sclp_early_console_detect(struct init_sccb *sccb) in sclp_early_console_detect() argument
159 if (sccb->header.response_code != 0x20) in sclp_early_console_detect()
162 if (sclp_early_con_check_vt220(sccb)) in sclp_early_console_detect()
165 if (sclp_early_con_check_linemode(sccb)) in sclp_early_console_detect()
176 void *sccb = sclp_early_sccb; in sclp_early_detect() local
182 * sccb. These are sufficient to detect sclp console capabilities. in sclp_early_detect()
184 sclp_early_set_event_mask(sccb, 0, 0); in sclp_early_detect()
185 sclp_early_console_detect(sccb); in sclp_early_detect()