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_kss = !!(sccb->fac98 & 0x01); in sclp_early_facilities_detect()
48 if (sccb->fac85 & 0x02) in sclp_early_facilities_detect()
50 if (sccb->fac91 & 0x40) in sclp_early_facilities_detect()
52 if (sccb->cpuoff > 134) in sclp_early_facilities_detect()
53 sclp.has_diag318 = !!(sccb->byte_134 & 0x80); in sclp_early_facilities_detect()
54 if (sccb->cpuoff > 137) in sclp_early_facilities_detect()
55 sclp.has_sipl = !!(sccb->cbl & 0x4000); in sclp_early_facilities_detect()
56 sclp.rnmax = sccb->rnmax ? sccb->rnmax : sccb->rnmax2; in sclp_early_facilities_detect()
57 sclp.rzm = sccb->rnsize ? sccb->rnsize : sccb->rnsize2; in sclp_early_facilities_detect()
59 sclp.ibc = sccb->ibc; in sclp_early_facilities_detect()
61 if (sccb->hamaxpow && sccb->hamaxpow < 64) in sclp_early_facilities_detect()
62 sclp.hamax = (1UL << sccb->hamaxpow) - 1; in sclp_early_facilities_detect()
66 if (!sccb->hcpua) { in sclp_early_facilities_detect()
70 sclp.max_cores = sccb->ncpurl; in sclp_early_facilities_detect()
72 sclp.max_cores = sccb->hcpua + 1; in sclp_early_facilities_detect()
76 cpue = (void *)sccb + sccb->cpuoff; in sclp_early_facilities_detect()
77 for (cpu = 0; cpu < sccb->ncpurl; cpue++, cpu++) { in sclp_early_facilities_detect()
92 if (sccb->fac91 & 0x2) in sclp_early_facilities_detect()
94 memcpy(&sclp_ipl_info.loadparm, &sccb->loadparm, LOADPARM_LEN); in sclp_early_facilities_detect()
96 if (sccb->hsa_size) in sclp_early_facilities_detect()
97 sclp.hsa_size = (sccb->hsa_size - 1) * PAGE_SIZE; in sclp_early_facilities_detect()
98 sclp.mtid = (sccb->fac42 & 0x80) ? (sccb->fac42 & 31) : 0; in sclp_early_facilities_detect()
99 sclp.mtid_cp = (sccb->fac42 & 0x80) ? (sccb->fac43 & 31) : 0; in sclp_early_facilities_detect()
100 sclp.mtid_prev = (sccb->fac42 & 0x80) ? (sccb->fac66 & 31) : 0; in sclp_early_facilities_detect()
102 sclp.hmfai = sccb->hmfai; in sclp_early_facilities_detect()
103 sclp.has_dirq = !!(sccb->cpudirq & 0x80); in sclp_early_facilities_detect()
118 struct read_cpu_info_sccb *sccb; in sclp_early_get_core_info() local
125 sccb = memblock_alloc_low(length, PAGE_SIZE); in sclp_early_get_core_info()
126 if (!sccb) in sclp_early_get_core_info()
129 memset(sccb, 0, length); in sclp_early_get_core_info()
130 sccb->header.length = length; in sclp_early_get_core_info()
131 sccb->header.control_mask[2] = 0x80; in sclp_early_get_core_info()
132 if (sclp_early_cmd(SCLP_CMDW_READ_CPU_INFO, sccb)) { in sclp_early_get_core_info()
136 if (sccb->header.response_code != 0x0010) { in sclp_early_get_core_info()
140 sclp_fill_core_info(info, sccb); in sclp_early_get_core_info()
142 memblock_free_early((unsigned long)sccb, length); in sclp_early_get_core_info()
146 static void __init sclp_early_console_detect(struct init_sccb *sccb) in sclp_early_console_detect() argument
148 if (sccb->header.response_code != 0x20) in sclp_early_console_detect()
151 if (sclp_early_con_check_vt220(sccb)) in sclp_early_console_detect()
154 if (sclp_early_con_check_linemode(sccb)) in sclp_early_console_detect()
160 void *sccb = sclp_early_sccb; in sclp_early_detect() local
166 * sccb. These are sufficient to detect sclp console capabilities. in sclp_early_detect()
168 sclp_early_set_event_mask(sccb, 0, 0); in sclp_early_detect()
169 sclp_early_console_detect(sccb); in sclp_early_detect()