Lines Matching refs:sccb
39 int sclp_sync_request(sclp_cmdw_t cmd, void *sccb) in sclp_sync_request() argument
41 return sclp_sync_request_timeout(cmd, sccb, 0); in sclp_sync_request()
44 int sclp_sync_request_timeout(sclp_cmdw_t cmd, void *sccb, int timeout) in sclp_sync_request_timeout() argument
56 request->sccb = sccb; in sclp_sync_request_timeout()
90 struct read_cpu_info_sccb *sccb; in _sclp_get_core_info() local
95 sccb = (void *)__get_free_pages(GFP_KERNEL | GFP_DMA | __GFP_ZERO, get_order(length)); in _sclp_get_core_info()
96 if (!sccb) in _sclp_get_core_info()
98 sccb->header.length = length; in _sclp_get_core_info()
99 sccb->header.control_mask[2] = 0x80; in _sclp_get_core_info()
100 rc = sclp_sync_request_timeout(SCLP_CMDW_READ_CPU_INFO, sccb, in _sclp_get_core_info()
104 if (sccb->header.response_code != 0x0010) { in _sclp_get_core_info()
106 sccb->header.response_code); in _sclp_get_core_info()
110 sclp_fill_core_info(info, sccb); in _sclp_get_core_info()
112 free_pages((unsigned long) sccb, get_order(length)); in _sclp_get_core_info()
122 struct cpu_configure_sccb *sccb; in do_core_configure() local
131 sccb = kzalloc(sizeof(*sccb), GFP_KERNEL | GFP_DMA); in do_core_configure()
132 if (!sccb) in do_core_configure()
134 sccb->header.length = sizeof(*sccb); in do_core_configure()
135 rc = sclp_sync_request_timeout(cmd, sccb, SCLP_QUEUE_INTERVAL); in do_core_configure()
138 switch (sccb->header.response_code) { in do_core_configure()
144 cmd, sccb->header.response_code); in do_core_configure()
149 kfree(sccb); in do_core_configure()
195 struct assign_storage_sccb *sccb; in do_assign_storage() local
198 sccb = (void *) get_zeroed_page(GFP_KERNEL | GFP_DMA); in do_assign_storage()
199 if (!sccb) in do_assign_storage()
201 sccb->header.length = PAGE_SIZE; in do_assign_storage()
202 sccb->rn = rn; in do_assign_storage()
203 rc = sclp_sync_request_timeout(cmd, sccb, SCLP_QUEUE_INTERVAL); in do_assign_storage()
206 switch (sccb->header.response_code) { in do_assign_storage()
212 cmd, sccb->header.response_code, rn); in do_assign_storage()
217 free_page((unsigned long) sccb); in do_assign_storage()
249 struct attach_storage_sccb *sccb; in sclp_attach_storage() local
253 sccb = (void *) get_zeroed_page(GFP_KERNEL | GFP_DMA); in sclp_attach_storage()
254 if (!sccb) in sclp_attach_storage()
256 sccb->header.length = PAGE_SIZE; in sclp_attach_storage()
257 sccb->header.function_code = 0x40; in sclp_attach_storage()
258 rc = sclp_sync_request_timeout(0x00080001 | id << 8, sccb, in sclp_attach_storage()
262 switch (sccb->header.response_code) { in sclp_attach_storage()
265 for (i = 0; i < sccb->assigned; i++) { in sclp_attach_storage()
266 if (sccb->entries[i]) in sclp_attach_storage()
267 sclp_unassign_storage(sccb->entries[i] >> 16); in sclp_attach_storage()
275 free_page((unsigned long) sccb); in sclp_attach_storage()
456 struct read_storage_sccb *sccb; in sclp_detect_standby_memory() local
464 sccb = (void *) __get_free_page(GFP_KERNEL | GFP_DMA); in sclp_detect_standby_memory()
465 if (!sccb) in sclp_detect_standby_memory()
469 memset(sccb, 0, PAGE_SIZE); in sclp_detect_standby_memory()
470 sccb->header.length = PAGE_SIZE; in sclp_detect_standby_memory()
471 rc = sclp_sync_request(SCLP_CMDW_READ_STORAGE_INFO | id << 8, sccb); in sclp_detect_standby_memory()
474 switch (sccb->header.response_code) { in sclp_detect_standby_memory()
477 for (i = 0; i < sccb->assigned; i++) { in sclp_detect_standby_memory()
478 if (!sccb->entries[i]) in sclp_detect_standby_memory()
481 insert_increment(sccb->entries[i] >> 16, 0, 1); in sclp_detect_standby_memory()
487 for (i = 0; i < sccb->assigned; i++) { in sclp_detect_standby_memory()
488 if (!sccb->entries[i]) in sclp_detect_standby_memory()
491 insert_increment(sccb->entries[i] >> 16, 1, 1); in sclp_detect_standby_memory()
499 sclp_max_storage_id = sccb->max_id; in sclp_detect_standby_memory()
510 free_page((unsigned long) sccb); in sclp_detect_standby_memory()
534 struct chp_cfg_sccb *sccb; in do_chp_configure() local
540 sccb = (struct chp_cfg_sccb *) get_zeroed_page(GFP_KERNEL | GFP_DMA); in do_chp_configure()
541 if (!sccb) in do_chp_configure()
543 sccb->header.length = sizeof(*sccb); in do_chp_configure()
544 rc = sclp_sync_request(cmd, sccb); in do_chp_configure()
547 switch (sccb->header.response_code) { in do_chp_configure()
555 cmd, sccb->header.response_code); in do_chp_configure()
560 free_page((unsigned long) sccb); in do_chp_configure()
608 struct chp_info_sccb *sccb; in sclp_chp_read_info() local
614 sccb = (struct chp_info_sccb *) get_zeroed_page(GFP_KERNEL | GFP_DMA); in sclp_chp_read_info()
615 if (!sccb) in sclp_chp_read_info()
617 sccb->header.length = sizeof(*sccb); in sclp_chp_read_info()
618 rc = sclp_sync_request(SCLP_CMDW_READ_CHPATH_INFORMATION, sccb); in sclp_chp_read_info()
621 if (sccb->header.response_code != 0x0010) { in sclp_chp_read_info()
623 sccb->header.response_code); in sclp_chp_read_info()
627 memcpy(info->recognized, sccb->recognized, SCLP_CHP_INFO_MASK_SIZE); in sclp_chp_read_info()
628 memcpy(info->standby, sccb->standby, SCLP_CHP_INFO_MASK_SIZE); in sclp_chp_read_info()
629 memcpy(info->configured, sccb->configured, SCLP_CHP_INFO_MASK_SIZE); in sclp_chp_read_info()
631 free_page((unsigned long) sccb); in sclp_chp_read_info()