• Home
  • Raw
  • Download

Lines Matching refs:schib

117 	CIO_HEX_EVENT(0, &sch->schib, sizeof (struct schib));  in cio_start_handle_notoper()
162 sch->schib.scsw.cmd.actl |= SCSW_ACTL_START_PEND; in cio_start_key()
197 sch->schib.scsw.cmd.actl |= SCSW_ACTL_RESUME_PEND; in cio_resume()
235 sch->schib.scsw.cmd.actl |= SCSW_ACTL_HALT_PEND; in cio_halt()
268 sch->schib.scsw.cmd.actl |= SCSW_ACTL_CLEAR_PEND; in cio_clear()
313 static void cio_apply_config(struct subchannel *sch, struct schib *schib) in cio_apply_config() argument
315 schib->pmcw.intparm = sch->config.intparm; in cio_apply_config()
316 schib->pmcw.mbi = sch->config.mbi; in cio_apply_config()
317 schib->pmcw.isc = sch->config.isc; in cio_apply_config()
318 schib->pmcw.ena = sch->config.ena; in cio_apply_config()
319 schib->pmcw.mme = sch->config.mme; in cio_apply_config()
320 schib->pmcw.mp = sch->config.mp; in cio_apply_config()
321 schib->pmcw.csense = sch->config.csense; in cio_apply_config()
322 schib->pmcw.mbfc = sch->config.mbfc; in cio_apply_config()
324 schib->mba = sch->config.mba; in cio_apply_config()
327 static int cio_check_config(struct subchannel *sch, struct schib *schib) in cio_check_config() argument
329 return (schib->pmcw.intparm == sch->config.intparm) && in cio_check_config()
330 (schib->pmcw.mbi == sch->config.mbi) && in cio_check_config()
331 (schib->pmcw.isc == sch->config.isc) && in cio_check_config()
332 (schib->pmcw.ena == sch->config.ena) && in cio_check_config()
333 (schib->pmcw.mme == sch->config.mme) && in cio_check_config()
334 (schib->pmcw.mp == sch->config.mp) && in cio_check_config()
335 (schib->pmcw.csense == sch->config.csense) && in cio_check_config()
336 (schib->pmcw.mbfc == sch->config.mbfc) && in cio_check_config()
337 (!sch->config.mbfc || (schib->mba == sch->config.mba)); in cio_check_config()
346 struct schib schib; in cio_commit_config() local
349 if (stsch(sch->schid, &schib) || !css_sch_is_valid(&schib)) in cio_commit_config()
354 cio_apply_config(sch, &schib); in cio_commit_config()
355 ccode = msch(sch->schid, &schib); in cio_commit_config()
360 if (stsch(sch->schid, &schib) || in cio_commit_config()
361 !css_sch_is_valid(&schib)) in cio_commit_config()
363 if (cio_check_config(sch, &schib)) { in cio_commit_config()
365 memcpy(&sch->schib, &schib, sizeof(schib)); in cio_commit_config()
393 struct schib schib; in cio_update_schib() local
395 if (stsch(sch->schid, &schib) || !css_sch_is_valid(&schib)) in cio_update_schib()
398 memcpy(&sch->schib, &schib, sizeof(schib)); in cio_update_schib()
464 if (is_blacklisted(sch->schid.ssid, sch->schib.pmcw.dev)) { in cio_check_devno_blacklisted()
471 sch->schib.pmcw.dev, sch->schid.ssid); in cio_check_devno_blacklisted()
504 ccode = stsch(schid, &sch->schib); in cio_validate_subchannel()
509 sch->st = sch->schib.pmcw.st; in cio_validate_subchannel()
515 if (!css_sch_is_valid(&sch->schib)) in cio_validate_subchannel()
556 memcpy (&sch->schib.scsw, &irb->scsw, sizeof (irb->scsw)); in do_cio_interrupt()
599 memcpy(&sch->schib.scsw, &irb->scsw, sizeof(union scsw)); in cio_tsch()
619 struct schib schib; in cio_test_for_console() local
621 if (stsch(schid, &schib) != 0) in cio_test_for_console()
623 if ((schib.pmcw.st == SUBCHANNEL_TYPE_IO) && schib.pmcw.dnv && in cio_test_for_console()
624 (schib.pmcw.dev == console_devno)) { in cio_test_for_console()
634 struct schib schib; in cio_get_console_sch_no() local
640 if (stsch(schid, &schib) != 0 || in cio_get_console_sch_no()
641 (schib.pmcw.st != SUBCHANNEL_TYPE_IO) || !schib.pmcw.dnv) in cio_get_console_sch_no()
643 console_devno = schib.pmcw.dev; in cio_get_console_sch_no()
703 __disable_subchannel_easy(struct subchannel_id schid, struct schib *schib) in __disable_subchannel_easy() argument
709 schib->pmcw.ena = 0; in __disable_subchannel_easy()
710 cc = msch(schid, schib); in __disable_subchannel_easy()
713 if (stsch(schid, schib) || !css_sch_is_valid(schib)) in __disable_subchannel_easy()
715 if (!schib->pmcw.ena) in __disable_subchannel_easy()
754 static int stsch_reset(struct subchannel_id schid, struct schib *addr) in stsch_reset()
774 struct schib schib; in __shutdown_subchannel_easy() local
776 if (stsch_reset(schid, &schib)) in __shutdown_subchannel_easy()
778 if (!schib.pmcw.ena) in __shutdown_subchannel_easy()
780 switch(__disable_subchannel_easy(schid, &schib)) { in __shutdown_subchannel_easy()
785 switch (schib.pmcw.st) { in __shutdown_subchannel_easy()
797 stsch(schid, &schib); in __shutdown_subchannel_easy()
798 __disable_subchannel_easy(schid, &schib); in __shutdown_subchannel_easy()
884 struct schib schib; in __reipl_subchannel_match() local
887 if (stsch_reset(schid, &schib)) in __reipl_subchannel_match()
889 if ((schib.pmcw.st == SUBCHANNEL_TYPE_IO) && schib.pmcw.dnv && in __reipl_subchannel_match()
890 (schib.pmcw.dev == match_id->devid.devno) && in __reipl_subchannel_match()
929 struct schib schib; in cio_get_iplinfo() local
945 if (stsch(schid, &schib)) in cio_get_iplinfo()
947 if (schib.pmcw.st != SUBCHANNEL_TYPE_IO) in cio_get_iplinfo()
949 if (!schib.pmcw.dnv) in cio_get_iplinfo()
953 iplinfo->devno = schib.pmcw.dev; in cio_get_iplinfo()
954 iplinfo->is_qdio = schib.pmcw.qf; in cio_get_iplinfo()