Lines Matching refs:sccb

40 int sclp_sync_request(sclp_cmdw_t cmd, void *sccb)  in sclp_sync_request()  argument
42 return sclp_sync_request_timeout(cmd, sccb, 0); in sclp_sync_request()
45 int sclp_sync_request_timeout(sclp_cmdw_t cmd, void *sccb, int timeout) in sclp_sync_request_timeout() argument
57 request->sccb = sccb; in sclp_sync_request_timeout()
90 struct read_cpu_info_sccb *sccb; in _sclp_get_core_info() local
94 sccb = (void *) get_zeroed_page(GFP_KERNEL | GFP_DMA); in _sclp_get_core_info()
95 if (!sccb) in _sclp_get_core_info()
97 sccb->header.length = sizeof(*sccb); in _sclp_get_core_info()
98 rc = sclp_sync_request_timeout(SCLP_CMDW_READ_CPU_INFO, sccb, in _sclp_get_core_info()
102 if (sccb->header.response_code != 0x0010) { in _sclp_get_core_info()
104 sccb->header.response_code); in _sclp_get_core_info()
108 sclp_fill_core_info(info, sccb); in _sclp_get_core_info()
110 free_page((unsigned long) sccb); in _sclp_get_core_info()
120 struct cpu_configure_sccb *sccb; in do_core_configure() local
129 sccb = kzalloc(sizeof(*sccb), GFP_KERNEL | GFP_DMA); in do_core_configure()
130 if (!sccb) in do_core_configure()
132 sccb->header.length = sizeof(*sccb); in do_core_configure()
133 rc = sclp_sync_request_timeout(cmd, sccb, SCLP_QUEUE_INTERVAL); in do_core_configure()
136 switch (sccb->header.response_code) { in do_core_configure()
142 cmd, sccb->header.response_code); in do_core_configure()
147 kfree(sccb); in do_core_configure()
194 struct assign_storage_sccb *sccb; in do_assign_storage() local
197 sccb = (void *) get_zeroed_page(GFP_KERNEL | GFP_DMA); in do_assign_storage()
198 if (!sccb) in do_assign_storage()
200 sccb->header.length = PAGE_SIZE; in do_assign_storage()
201 sccb->rn = rn; in do_assign_storage()
202 rc = sclp_sync_request_timeout(cmd, sccb, SCLP_QUEUE_INTERVAL); in do_assign_storage()
205 switch (sccb->header.response_code) { in do_assign_storage()
211 cmd, sccb->header.response_code, rn); in do_assign_storage()
216 free_page((unsigned long) sccb); in do_assign_storage()
248 struct attach_storage_sccb *sccb; in sclp_attach_storage() local
252 sccb = (void *) get_zeroed_page(GFP_KERNEL | GFP_DMA); in sclp_attach_storage()
253 if (!sccb) in sclp_attach_storage()
255 sccb->header.length = PAGE_SIZE; in sclp_attach_storage()
256 sccb->header.function_code = 0x40; in sclp_attach_storage()
257 rc = sclp_sync_request_timeout(0x00080001 | id << 8, sccb, in sclp_attach_storage()
261 switch (sccb->header.response_code) { in sclp_attach_storage()
264 for (i = 0; i < sccb->assigned; i++) { in sclp_attach_storage()
265 if (sccb->entries[i]) in sclp_attach_storage()
266 sclp_unassign_storage(sccb->entries[i] >> 16); in sclp_attach_storage()
274 free_page((unsigned long) sccb); in sclp_attach_storage()
486 struct read_storage_sccb *sccb; in sclp_detect_standby_memory() local
494 sccb = (void *) __get_free_page(GFP_KERNEL | GFP_DMA); in sclp_detect_standby_memory()
495 if (!sccb) in sclp_detect_standby_memory()
499 memset(sccb, 0, PAGE_SIZE); in sclp_detect_standby_memory()
500 sccb->header.length = PAGE_SIZE; in sclp_detect_standby_memory()
501 rc = sclp_sync_request(0x00040001 | id << 8, sccb); in sclp_detect_standby_memory()
504 switch (sccb->header.response_code) { in sclp_detect_standby_memory()
507 for (i = 0; i < sccb->assigned; i++) { in sclp_detect_standby_memory()
508 if (!sccb->entries[i]) in sclp_detect_standby_memory()
511 insert_increment(sccb->entries[i] >> 16, 0, 1); in sclp_detect_standby_memory()
517 for (i = 0; i < sccb->assigned; i++) { in sclp_detect_standby_memory()
518 if (!sccb->entries[i]) in sclp_detect_standby_memory()
521 insert_increment(sccb->entries[i] >> 16, 1, 1); in sclp_detect_standby_memory()
529 sclp_max_storage_id = sccb->max_id; in sclp_detect_standby_memory()
550 free_page((unsigned long) sccb); in sclp_detect_standby_memory()
574 struct chp_cfg_sccb *sccb; in do_chp_configure() local
580 sccb = (struct chp_cfg_sccb *) get_zeroed_page(GFP_KERNEL | GFP_DMA); in do_chp_configure()
581 if (!sccb) in do_chp_configure()
583 sccb->header.length = sizeof(*sccb); in do_chp_configure()
584 rc = sclp_sync_request(cmd, sccb); in do_chp_configure()
587 switch (sccb->header.response_code) { in do_chp_configure()
595 cmd, sccb->header.response_code); in do_chp_configure()
600 free_page((unsigned long) sccb); in do_chp_configure()
648 struct chp_info_sccb *sccb; in sclp_chp_read_info() local
654 sccb = (struct chp_info_sccb *) get_zeroed_page(GFP_KERNEL | GFP_DMA); in sclp_chp_read_info()
655 if (!sccb) in sclp_chp_read_info()
657 sccb->header.length = sizeof(*sccb); in sclp_chp_read_info()
658 rc = sclp_sync_request(SCLP_CMDW_READ_CHPATH_INFORMATION, sccb); in sclp_chp_read_info()
661 if (sccb->header.response_code != 0x0010) { in sclp_chp_read_info()
663 sccb->header.response_code); in sclp_chp_read_info()
667 memcpy(info->recognized, sccb->recognized, SCLP_CHP_INFO_MASK_SIZE); in sclp_chp_read_info()
668 memcpy(info->standby, sccb->standby, SCLP_CHP_INFO_MASK_SIZE); in sclp_chp_read_info()
669 memcpy(info->configured, sccb->configured, SCLP_CHP_INFO_MASK_SIZE); in sclp_chp_read_info()
671 free_page((unsigned long) sccb); in sclp_chp_read_info()