• Home
  • Raw
  • Download

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()
477 struct read_storage_sccb *sccb; in sclp_detect_standby_memory() local
485 sccb = (void *) __get_free_page(GFP_KERNEL | GFP_DMA); in sclp_detect_standby_memory()
486 if (!sccb) in sclp_detect_standby_memory()
490 memset(sccb, 0, PAGE_SIZE); in sclp_detect_standby_memory()
491 sccb->header.length = PAGE_SIZE; in sclp_detect_standby_memory()
492 rc = sclp_sync_request(SCLP_CMDW_READ_STORAGE_INFO | id << 8, sccb); in sclp_detect_standby_memory()
495 switch (sccb->header.response_code) { in sclp_detect_standby_memory()
498 for (i = 0; i < sccb->assigned; i++) { in sclp_detect_standby_memory()
499 if (!sccb->entries[i]) in sclp_detect_standby_memory()
502 insert_increment(sccb->entries[i] >> 16, 0, 1); in sclp_detect_standby_memory()
508 for (i = 0; i < sccb->assigned; i++) { in sclp_detect_standby_memory()
509 if (!sccb->entries[i]) in sclp_detect_standby_memory()
512 insert_increment(sccb->entries[i] >> 16, 1, 1); in sclp_detect_standby_memory()
520 sclp_max_storage_id = sccb->max_id; in sclp_detect_standby_memory()
541 free_page((unsigned long) sccb); in sclp_detect_standby_memory()
565 struct chp_cfg_sccb *sccb; in do_chp_configure() local
571 sccb = (struct chp_cfg_sccb *) get_zeroed_page(GFP_KERNEL | GFP_DMA); in do_chp_configure()
572 if (!sccb) in do_chp_configure()
574 sccb->header.length = sizeof(*sccb); in do_chp_configure()
575 rc = sclp_sync_request(cmd, sccb); in do_chp_configure()
578 switch (sccb->header.response_code) { in do_chp_configure()
586 cmd, sccb->header.response_code); in do_chp_configure()
591 free_page((unsigned long) sccb); in do_chp_configure()
639 struct chp_info_sccb *sccb; in sclp_chp_read_info() local
645 sccb = (struct chp_info_sccb *) get_zeroed_page(GFP_KERNEL | GFP_DMA); in sclp_chp_read_info()
646 if (!sccb) in sclp_chp_read_info()
648 sccb->header.length = sizeof(*sccb); in sclp_chp_read_info()
649 rc = sclp_sync_request(SCLP_CMDW_READ_CHPATH_INFORMATION, sccb); in sclp_chp_read_info()
652 if (sccb->header.response_code != 0x0010) { in sclp_chp_read_info()
654 sccb->header.response_code); in sclp_chp_read_info()
658 memcpy(info->recognized, sccb->recognized, SCLP_CHP_INFO_MASK_SIZE); in sclp_chp_read_info()
659 memcpy(info->standby, sccb->standby, SCLP_CHP_INFO_MASK_SIZE); in sclp_chp_read_info()
660 memcpy(info->configured, sccb->configured, SCLP_CHP_INFO_MASK_SIZE); in sclp_chp_read_info()
662 free_page((unsigned long) sccb); in sclp_chp_read_info()