Lines Matching defs:sccb

29 	struct read_info_sccb *sccb;
32 sccb = sclp_early_get_info();
33 if (!sccb)
36 sclp.facilities = sccb->facilities;
37 sclp.has_sprp = !!(sccb->fac84 & 0x02);
38 sclp.has_core_type = !!(sccb->fac84 & 0x01);
39 sclp.has_gsls = !!(sccb->fac85 & 0x80);
40 sclp.has_64bscao = !!(sccb->fac116 & 0x80);
41 sclp.has_cmma = !!(sccb->fac116 & 0x40);
42 sclp.has_esca = !!(sccb->fac116 & 0x08);
43 sclp.has_pfmfi = !!(sccb->fac117 & 0x40);
44 sclp.has_ibs = !!(sccb->fac117 & 0x20);
45 sclp.has_gisaf = !!(sccb->fac118 & 0x08);
46 sclp.has_hvs = !!(sccb->fac119 & 0x80);
47 sclp.has_kss = !!(sccb->fac98 & 0x01);
48 sclp.has_aisii = !!(sccb->fac118 & 0x40);
49 sclp.has_aeni = !!(sccb->fac118 & 0x20);
50 sclp.has_aisi = !!(sccb->fac118 & 0x10);
51 sclp.has_zpci_lsi = !!(sccb->fac118 & 0x01);
52 if (sccb->fac85 & 0x02)
54 if (sccb->fac91 & 0x40)
56 if (sccb->cpuoff > 134) {
57 sclp.has_diag318 = !!(sccb->byte_134 & 0x80);
58 sclp.has_diag320 = !!(sccb->byte_134 & 0x04);
59 sclp.has_iplcc = !!(sccb->byte_134 & 0x02);
61 if (sccb->cpuoff > 137) {
62 sclp.has_sipl = !!(sccb->cbl & 0x4000);
63 sclp.has_sipl_eckd = !!(sccb->cbl & 0x2000);
65 sclp.rnmax = sccb->rnmax ? sccb->rnmax : sccb->rnmax2;
66 sclp.rzm = sccb->rnsize ? sccb->rnsize : sccb->rnsize2;
68 sclp.ibc = sccb->ibc;
70 if (sccb->hamaxpow && sccb->hamaxpow < 64)
71 sclp.hamax = (1UL << sccb->hamaxpow) - 1;
75 if (!sccb->hcpua) {
79 sclp.max_cores = sccb->ncpurl;
81 sclp.max_cores = sccb->hcpua + 1;
85 cpue = (void *)sccb + sccb->cpuoff;
86 for (cpu = 0; cpu < sccb->ncpurl; cpue++, cpu++) {
101 if (sccb->fac91 & 0x2)
103 memcpy(&sclp_ipl_info.loadparm, &sccb->loadparm, LOADPARM_LEN);
105 if (sccb->hsa_size)
106 sclp.hsa_size = (sccb->hsa_size - 1) * PAGE_SIZE;
107 sclp.mtid = (sccb->fac42 & 0x80) ? (sccb->fac42 & 31) : 0;
108 sclp.mtid_cp = (sccb->fac42 & 0x80) ? (sccb->fac43 & 31) : 0;
109 sclp.mtid_prev = (sccb->fac42 & 0x80) ? (sccb->fac66 & 31) : 0;
111 sclp.hmfai = sccb->hmfai;
112 sclp.has_dirq = !!(sccb->cpudirq & 0x80);
127 struct read_cpu_info_sccb *sccb;
134 sccb = memblock_alloc_low(length, PAGE_SIZE);
135 if (!sccb)
138 memset(sccb, 0, length);
139 sccb->header.length = length;
140 sccb->header.control_mask[2] = 0x80;
141 if (sclp_early_cmd(SCLP_CMDW_READ_CPU_INFO, sccb)) {
145 if (sccb->header.response_code != 0x0010) {
149 sclp_fill_core_info(info, sccb);
151 memblock_free(sccb, length);
155 static void __init sclp_early_console_detect(struct init_sccb *sccb)
157 if (sccb->header.response_code != 0x20)
160 if (sclp_early_con_check_vt220(sccb))
163 if (sclp_early_con_check_linemode(sccb))
174 void *sccb = sclp_early_sccb;
180 * sccb. These are sufficient to detect sclp console capabilities.
182 sclp_early_set_event_mask(sccb, 0, 0);
183 sclp_early_console_detect(sccb);