Lines Matching full:sccb
68 struct assign_storage_sccb *sccb; in do_assign_storage() local
71 sccb = (void *)get_zeroed_page(GFP_KERNEL | GFP_DMA); in do_assign_storage()
72 if (!sccb) in do_assign_storage()
74 sccb->header.length = PAGE_SIZE; in do_assign_storage()
75 sccb->rn = rn; in do_assign_storage()
76 rc = sclp_sync_request_timeout(cmd, sccb, SCLP_QUEUE_INTERVAL); in do_assign_storage()
79 switch (sccb->header.response_code) { in do_assign_storage()
85 cmd, sccb->header.response_code, rn); in do_assign_storage()
90 free_page((unsigned long)sccb); in do_assign_storage()
114 struct attach_storage_sccb *sccb; in sclp_attach_storage() local
117 sccb = (void *)get_zeroed_page(GFP_KERNEL | GFP_DMA); in sclp_attach_storage()
118 if (!sccb) in sclp_attach_storage()
120 sccb->header.length = PAGE_SIZE; in sclp_attach_storage()
121 sccb->header.function_code = 0x40; in sclp_attach_storage()
122 rc = sclp_sync_request_timeout(0x00080001 | id << 8, sccb, in sclp_attach_storage()
126 switch (sccb->header.response_code) { in sclp_attach_storage()
129 for (i = 0; i < sccb->assigned; i++) { in sclp_attach_storage()
130 if (sccb->entries[i]) in sclp_attach_storage()
131 sclp_unassign_storage(sccb->entries[i] >> 16); in sclp_attach_storage()
139 free_page((unsigned long)sccb); in sclp_attach_storage()
341 struct read_storage_sccb *sccb; in sclp_detect_standby_memory() local
350 sccb = (void *)__get_free_page(GFP_KERNEL | GFP_DMA); in sclp_detect_standby_memory()
351 if (!sccb) in sclp_detect_standby_memory()
355 memset(sccb, 0, PAGE_SIZE); in sclp_detect_standby_memory()
356 sccb->header.length = PAGE_SIZE; in sclp_detect_standby_memory()
357 rc = sclp_sync_request(SCLP_CMDW_READ_STORAGE_INFO | id << 8, sccb); in sclp_detect_standby_memory()
360 switch (sccb->header.response_code) { in sclp_detect_standby_memory()
363 for (i = 0; i < sccb->assigned; i++) { in sclp_detect_standby_memory()
364 if (!sccb->entries[i]) in sclp_detect_standby_memory()
367 insert_increment(sccb->entries[i] >> 16, 0, 1); in sclp_detect_standby_memory()
373 for (i = 0; i < sccb->assigned; i++) { in sclp_detect_standby_memory()
374 if (!sccb->entries[i]) in sclp_detect_standby_memory()
377 insert_increment(sccb->entries[i] >> 16, 1, 1); in sclp_detect_standby_memory()
385 sclp_max_storage_id = sccb->max_id; in sclp_detect_standby_memory()
396 free_page((unsigned long)sccb); in sclp_detect_standby_memory()