Lines Matching refs:schid
47 struct subchannel_id schid; in for_each_subchannel() local
50 init_subchannel_id(&schid); in for_each_subchannel()
53 ret = fn(schid, data); in for_each_subchannel()
56 } while (schid.sch_no++ < __MAX_SUBCHANNEL); in for_each_subchannel()
57 schid.sch_no = 0; in for_each_subchannel()
58 } while (schid.ssid++ < max_ssid); in for_each_subchannel()
76 idset_sch_del(cb->set, sch->schid); in call_fn_known_sch()
82 static int call_fn_unknown_sch(struct subchannel_id schid, void *data) in call_fn_unknown_sch() argument
87 if (idset_sch_contains(cb->set, schid)) in call_fn_unknown_sch()
88 rc = cb->fn_unknown_sch(schid, cb->data); in call_fn_unknown_sch()
92 static int call_fn_all_sch(struct subchannel_id schid, void *data) in call_fn_all_sch() argument
98 sch = get_subchannel_by_schid(schid); in call_fn_all_sch()
105 rc = cb->fn_unknown_sch(schid, cb->data); in call_fn_all_sch()
174 static int css_validate_subchannel(struct subchannel_id schid, in css_validate_subchannel() argument
184 else if (is_blacklisted(schid.ssid, schib->pmcw.dev)) { in css_validate_subchannel()
187 schib->pmcw.dev, schid.ssid); in css_validate_subchannel()
199 schid.ssid, schid.sch_no, schib->pmcw.st); in css_validate_subchannel()
204 struct subchannel *css_alloc_subchannel(struct subchannel_id schid, in css_alloc_subchannel() argument
210 ret = css_validate_subchannel(schid, schib); in css_alloc_subchannel()
218 sch->schid = schid; in css_alloc_subchannel()
257 dev_set_name(&sch->dev, "0.%x.%04x", sch->schid.ssid, in css_sch_device_register()
258 sch->schid.sch_no); in css_sch_device_register()
309 ret = chsc_get_ssd_info(sch->schid, &sch->ssd_info); in css_update_ssd_info()
422 return sysfs_emit(buf, "0.%x.%04x\n", sch->schid.ssid, in dev_busid_show()
458 sch->schid.ssid, sch->schid.sch_no, ret); in css_register_subchannel()
464 static int css_probe_device(struct subchannel_id schid, struct schib *schib) in css_probe_device() argument
469 sch = css_alloc_subchannel(schid, schib); in css_probe_device()
484 struct subchannel_id *schid = (void *)data; in check_subchannel() local
487 return schid_equal(&sch->schid, schid); in check_subchannel()
491 get_subchannel_by_schid(struct subchannel_id schid) in get_subchannel_by_schid() argument
496 &schid, check_subchannel); in get_subchannel_by_schid()
515 static int css_evaluate_new_subchannel(struct subchannel_id schid, int slow) in css_evaluate_new_subchannel() argument
530 ccode = stsch(schid, &schib); in css_evaluate_new_subchannel()
534 return css_probe_device(schid, &schib); in css_evaluate_new_subchannel()
551 sch->schid.ssid, sch->schid.sch_no, ret); in css_evaluate_known_subchannel()
556 static void css_evaluate_subchannel(struct subchannel_id schid, int slow) in css_evaluate_subchannel() argument
561 sch = get_subchannel_by_schid(schid); in css_evaluate_subchannel()
566 ret = css_evaluate_new_subchannel(schid, slow); in css_evaluate_subchannel()
568 css_schedule_eval(schid); in css_evaluate_subchannel()
583 sch->schid.ssid, sch->schid.sch_no, todo); in css_sched_sch_todo()
607 CIO_MSG_EVENT(4, "sch_todo: sch=0.%x.%04x, todo=%d\n", sch->schid.ssid, in css_sch_todo()
608 sch->schid.sch_no, todo); in css_sch_todo()
653 eval = idset_sch_contains(slow_subchannel_set, sch->schid); in slow_eval_known_fn()
654 idset_sch_del(slow_subchannel_set, sch->schid); in slow_eval_known_fn()
659 css_schedule_eval(sch->schid); in slow_eval_known_fn()
669 static int slow_eval_unknown_fn(struct subchannel_id schid, void *data) in slow_eval_unknown_fn() argument
675 eval = idset_sch_contains(slow_subchannel_set, schid); in slow_eval_unknown_fn()
676 idset_sch_del(slow_subchannel_set, schid); in slow_eval_unknown_fn()
679 rc = css_evaluate_new_subchannel(schid, 1); in slow_eval_unknown_fn()
682 css_schedule_eval(schid); in slow_eval_unknown_fn()
690 idset_sch_del_subseq(slow_subchannel_set, schid); in slow_eval_unknown_fn()
721 void css_schedule_eval(struct subchannel_id schid) in css_schedule_eval() argument
726 idset_sch_add(slow_subchannel_set, schid); in css_schedule_eval()
748 idset_sch_del(set, sch->schid); in __unset_registered()
758 idset_sch_del(set, sch->schid); in __unset_online()