• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/s390/char/

Lines Matching defs:sccb

56 static int __init sclp_cmd_sync_early(sclp_cmdw_t cmd, void *sccb)
61 rc = sclp_service_call(cmd, sccb);
68 /* Contents of the sccb might have changed. */
78 struct read_info_sccb *sccb;
82 sccb = &early_read_info_sccb;
85 memset(sccb, 0, sizeof(*sccb));
86 sccb->header.length = sizeof(*sccb);
87 sccb->header.function_code = 0x80;
88 sccb->header.control_mask[2] = 0x80;
89 rc = sclp_cmd_sync_early(commands[i], sccb);
94 if (sccb->header.response_code == 0x10) {
98 if (sccb->header.response_code != 0x1f0)
105 struct read_info_sccb *sccb;
111 sccb = &early_read_info_sccb;
112 sclp_facilities = sccb->facilities;
113 sclp_fac84 = sccb->fac84;
114 rnmax = sccb->rnmax ? sccb->rnmax : sccb->rnmax2;
115 rzm = sccb->rnsize ? sccb->rnsize : sccb->rnsize2;
131 * called from early.c code. Therefore the sccb should have valid contents.
135 struct read_info_sccb *sccb;
139 sccb = &early_read_info_sccb;
141 if (sccb->flags & 0x2)
143 memcpy(&info->loadparm, &sccb->loadparm, LOADPARM_LEN);
153 static int do_sync_request(sclp_cmdw_t cmd, void *sccb)
163 request->sccb = sccb;
204 struct read_cpu_info_sccb *sccb)
206 char *page = (char *) sccb;
209 info->configured = sccb->nr_configured;
210 info->standby = sccb->nr_standby;
211 info->combined = sccb->nr_configured + sccb->nr_standby;
213 memcpy(&info->cpu, page + sccb->offset_configured,
220 struct read_cpu_info_sccb *sccb;
224 sccb = (void *) get_zeroed_page(GFP_KERNEL | GFP_DMA);
225 if (!sccb)
227 sccb->header.length = sizeof(*sccb);
228 rc = do_sync_request(SCLP_CMDW_READ_CPU_INFO, sccb);
231 if (sccb->header.response_code != 0x0010) {
233 sccb->header.response_code);
237 sclp_fill_cpu_info(info, sccb);
239 free_page((unsigned long) sccb);
249 struct cpu_configure_sccb *sccb;
258 sccb = kzalloc(sizeof(*sccb), GFP_KERNEL | GFP_DMA);
259 if (!sccb)
261 sccb->header.length = sizeof(*sccb);
262 rc = do_sync_request(cmd, sccb);
265 switch (sccb->header.response_code) {
272 sccb->header.response_code);
277 kfree(sccb);
325 struct assign_storage_sccb *sccb;
328 sccb = (void *) get_zeroed_page(GFP_KERNEL | GFP_DMA);
329 if (!sccb)
331 sccb->header.length = PAGE_SIZE;
332 sccb->rn = rn;
333 rc = do_sync_request(cmd, sccb);
336 switch (sccb->header.response_code) {
343 sccb->header.response_code, rn);
348 free_page((unsigned long) sccb);
372 struct attach_storage_sccb *sccb;
376 sccb = (void *) get_zeroed_page(GFP_KERNEL | GFP_DMA);
377 if (!sccb)
379 sccb->header.length = PAGE_SIZE;
380 rc = do_sync_request(0x00080001 | id << 8, sccb);
383 switch (sccb->header.response_code) {
386 for (i = 0; i < sccb->assigned; i++)
387 sclp_unassign_storage(sccb->entries[i] >> 16);
394 free_page((unsigned long) sccb);
571 struct read_storage_sccb *sccb;
579 sccb = (void *) __get_free_page(GFP_KERNEL | GFP_DMA);
580 if (!sccb)
584 memset(sccb, 0, PAGE_SIZE);
585 sccb->header.length = PAGE_SIZE;
586 rc = do_sync_request(0x00040001 | id << 8, sccb);
589 switch (sccb->header.response_code) {
592 for (i = 0; i < sccb->assigned; i++) {
593 if (!sccb->entries[i])
596 insert_increment(sccb->entries[i] >> 16, 0, 1);
602 for (i = 0; i < sccb->assigned; i++) {
603 if (!sccb->entries[i])
606 insert_increment(sccb->entries[i] >> 16, 1, 1);
614 sclp_max_storage_id = sccb->max_id;
635 free_page((unsigned long) sccb);
659 struct chp_cfg_sccb *sccb;
664 /* Prepare sccb. */
665 sccb = (struct chp_cfg_sccb *) get_zeroed_page(GFP_KERNEL | GFP_DMA);
666 if (!sccb)
668 sccb->header.length = sizeof(*sccb);
669 rc = do_sync_request(cmd, sccb);
672 switch (sccb->header.response_code) {
681 sccb->header.response_code);
686 free_page((unsigned long) sccb);
734 struct chp_info_sccb *sccb;
739 /* Prepare sccb. */
740 sccb = (struct chp_info_sccb *) get_zeroed_page(GFP_KERNEL | GFP_DMA);
741 if (!sccb)
743 sccb->header.length = sizeof(*sccb);
744 rc = do_sync_request(SCLP_CMDW_READ_CHPATH_INFORMATION, sccb);
747 if (sccb->header.response_code != 0x0010) {
749 "(response=0x%04x)\n", sccb->header.response_code);
753 memcpy(info->recognized, sccb->recognized, SCLP_CHP_INFO_MASK_SIZE);
754 memcpy(info->standby, sccb->standby, SCLP_CHP_INFO_MASK_SIZE);
755 memcpy(info->configured, sccb->configured, SCLP_CHP_INFO_MASK_SIZE);
757 free_page((unsigned long) sccb);