• Home
  • Raw
  • Download

Lines Matching refs:schid

43 	struct subchannel_id schid;  in for_each_subchannel()  local
46 init_subchannel_id(&schid); in for_each_subchannel()
49 ret = fn(schid, data); in for_each_subchannel()
52 } while (schid.sch_no++ < __MAX_SUBCHANNEL); in for_each_subchannel()
53 schid.sch_no = 0; in for_each_subchannel()
54 } while (schid.ssid++ < max_ssid); in for_each_subchannel()
72 idset_sch_del(cb->set, sch->schid); in call_fn_known_sch()
78 static int call_fn_unknown_sch(struct subchannel_id schid, void *data) in call_fn_unknown_sch() argument
83 if (idset_sch_contains(cb->set, schid)) in call_fn_unknown_sch()
84 rc = cb->fn_unknown_sch(schid, cb->data); in call_fn_unknown_sch()
88 static int call_fn_all_sch(struct subchannel_id schid, void *data) in call_fn_all_sch() argument
94 sch = get_subchannel_by_schid(schid); in call_fn_all_sch()
101 rc = cb->fn_unknown_sch(schid, cb->data); in call_fn_all_sch()
169 struct subchannel *css_alloc_subchannel(struct subchannel_id schid) in css_alloc_subchannel() argument
178 ret = cio_validate_subchannel(sch, schid); in css_alloc_subchannel()
201 dev_set_name(&sch->dev, "0.%x.%04x", sch->schid.ssid, in css_sch_device_register()
202 sch->schid.sch_no); in css_sch_device_register()
254 ret = chsc_get_ssd_info(sch->schid, &sch->ssd_info); in css_update_ssd_info()
319 sch->schid.ssid, sch->schid.sch_no, ret); in css_register_subchannel()
334 static int css_probe_device(struct subchannel_id schid) in css_probe_device() argument
339 sch = css_alloc_subchannel(schid); in css_probe_device()
354 struct subchannel_id *schid = data; in check_subchannel() local
357 return schid_equal(&sch->schid, schid); in check_subchannel()
361 get_subchannel_by_schid(struct subchannel_id schid) in get_subchannel_by_schid() argument
366 &schid, check_subchannel); in get_subchannel_by_schid()
385 static int css_evaluate_new_subchannel(struct subchannel_id schid, int slow) in css_evaluate_new_subchannel() argument
393 if (stsch(schid, &schib)) { in css_evaluate_new_subchannel()
401 CIO_MSG_EVENT(4, "event: sch 0.%x.%04x, new\n", schid.ssid, in css_evaluate_new_subchannel()
402 schid.sch_no); in css_evaluate_new_subchannel()
404 return css_probe_device(schid); in css_evaluate_new_subchannel()
421 sch->schid.ssid, sch->schid.sch_no, ret); in css_evaluate_known_subchannel()
426 static void css_evaluate_subchannel(struct subchannel_id schid, int slow) in css_evaluate_subchannel() argument
431 sch = get_subchannel_by_schid(schid); in css_evaluate_subchannel()
436 ret = css_evaluate_new_subchannel(schid, slow); in css_evaluate_subchannel()
438 css_schedule_eval(schid); in css_evaluate_subchannel()
453 sch->schid.ssid, sch->schid.sch_no, todo); in css_sched_sch_todo()
477 CIO_MSG_EVENT(4, "sch_todo: sch=0.%x.%04x, todo=%d\n", sch->schid.ssid, in css_sch_todo()
478 sch->schid.sch_no, todo); in css_sch_todo()
525 eval = idset_sch_contains(slow_subchannel_set, sch->schid); in slow_eval_known_fn()
526 idset_sch_del(slow_subchannel_set, sch->schid); in slow_eval_known_fn()
531 css_schedule_eval(sch->schid); in slow_eval_known_fn()
536 static int slow_eval_unknown_fn(struct subchannel_id schid, void *data) in slow_eval_unknown_fn() argument
542 eval = idset_sch_contains(slow_subchannel_set, schid); in slow_eval_unknown_fn()
543 idset_sch_del(slow_subchannel_set, schid); in slow_eval_unknown_fn()
546 rc = css_evaluate_new_subchannel(schid, 1); in slow_eval_unknown_fn()
549 css_schedule_eval(schid); in slow_eval_unknown_fn()
557 idset_sch_del_subseq(slow_subchannel_set, schid); in slow_eval_unknown_fn()
588 void css_schedule_eval(struct subchannel_id schid) in css_schedule_eval() argument
593 idset_sch_add(slow_subchannel_set, schid); in css_schedule_eval()
615 idset_sch_del(set, sch->schid); in __unset_registered()