Lines Matching refs: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 sclp.has_aisii = !!(sccb->fac118 & 0x40); in sclp_early_facilities_detect()
49 sclp.has_aeni = !!(sccb->fac118 & 0x20); in sclp_early_facilities_detect()
50 sclp.has_aisi = !!(sccb->fac118 & 0x10); in sclp_early_facilities_detect()
51 sclp.has_zpci_lsi = !!(sccb->fac118 & 0x01); in sclp_early_facilities_detect()
52 if (sccb->fac85 & 0x02) in sclp_early_facilities_detect()
54 if (sccb->fac91 & 0x40) in sclp_early_facilities_detect()
56 if (sccb->cpuoff > 134) { in sclp_early_facilities_detect()
57 sclp.has_diag318 = !!(sccb->byte_134 & 0x80); in sclp_early_facilities_detect()
58 sclp.has_iplcc = !!(sccb->byte_134 & 0x02); in sclp_early_facilities_detect()
60 if (sccb->cpuoff > 137) in sclp_early_facilities_detect()
61 sclp.has_sipl = !!(sccb->cbl & 0x4000); in sclp_early_facilities_detect()
62 sclp.rnmax = sccb->rnmax ? sccb->rnmax : sccb->rnmax2; in sclp_early_facilities_detect()
63 sclp.rzm = sccb->rnsize ? sccb->rnsize : sccb->rnsize2; in sclp_early_facilities_detect()
65 sclp.ibc = sccb->ibc; in sclp_early_facilities_detect()
67 if (sccb->hamaxpow && sccb->hamaxpow < 64) in sclp_early_facilities_detect()
68 sclp.hamax = (1UL << sccb->hamaxpow) - 1; in sclp_early_facilities_detect()
72 if (!sccb->hcpua) { in sclp_early_facilities_detect()
76 sclp.max_cores = sccb->ncpurl; in sclp_early_facilities_detect()
78 sclp.max_cores = sccb->hcpua + 1; in sclp_early_facilities_detect()
82 cpue = (void *)sccb + sccb->cpuoff; in sclp_early_facilities_detect()
83 for (cpu = 0; cpu < sccb->ncpurl; cpue++, cpu++) { in sclp_early_facilities_detect()
98 if (sccb->fac91 & 0x2) in sclp_early_facilities_detect()
100 memcpy(&sclp_ipl_info.loadparm, &sccb->loadparm, LOADPARM_LEN); in sclp_early_facilities_detect()
102 if (sccb->hsa_size) in sclp_early_facilities_detect()
103 sclp.hsa_size = (sccb->hsa_size - 1) * PAGE_SIZE; in sclp_early_facilities_detect()
104 sclp.mtid = (sccb->fac42 & 0x80) ? (sccb->fac42 & 31) : 0; in sclp_early_facilities_detect()
105 sclp.mtid_cp = (sccb->fac42 & 0x80) ? (sccb->fac43 & 31) : 0; in sclp_early_facilities_detect()
106 sclp.mtid_prev = (sccb->fac42 & 0x80) ? (sccb->fac66 & 31) : 0; in sclp_early_facilities_detect()
108 sclp.hmfai = sccb->hmfai; in sclp_early_facilities_detect()
109 sclp.has_dirq = !!(sccb->cpudirq & 0x80); in sclp_early_facilities_detect()
124 struct read_cpu_info_sccb *sccb; in sclp_early_get_core_info() local
131 sccb = memblock_alloc_low(length, PAGE_SIZE); in sclp_early_get_core_info()
132 if (!sccb) in sclp_early_get_core_info()
135 memset(sccb, 0, length); in sclp_early_get_core_info()
136 sccb->header.length = length; in sclp_early_get_core_info()
137 sccb->header.control_mask[2] = 0x80; in sclp_early_get_core_info()
138 if (sclp_early_cmd(SCLP_CMDW_READ_CPU_INFO, sccb)) { in sclp_early_get_core_info()
142 if (sccb->header.response_code != 0x0010) { in sclp_early_get_core_info()
146 sclp_fill_core_info(info, sccb); in sclp_early_get_core_info()
148 memblock_free(sccb, length); in sclp_early_get_core_info()
152 static void __init sclp_early_console_detect(struct init_sccb *sccb) in sclp_early_console_detect() argument
154 if (sccb->header.response_code != 0x20) in sclp_early_console_detect()
157 if (sclp_early_con_check_vt220(sccb)) in sclp_early_console_detect()
160 if (sclp_early_con_check_linemode(sccb)) in sclp_early_console_detect()
171 void *sccb = sclp_early_sccb; in sclp_early_detect() local
179 sclp_early_set_event_mask(sccb, 0, 0); in sclp_early_detect()
180 sclp_early_console_detect(sccb); in sclp_early_detect()