Lines Matching full:private
41 struct io_subchannel_private *private; in ccw_timeout_log() local
46 private = to_io_private(sch); in ccw_timeout_log()
47 orb = &private->orb; in ccw_timeout_log()
71 &private->dma_area->sense_ccw || in ccw_timeout_log()
73 cdev->private->dma_area->iccws) in ccw_timeout_log()
84 cdev->private->state); in ccw_timeout_log()
91 &cdev->private->flags, sizeof(cdev->private->flags), 0); in ccw_timeout_log()
117 del_timer(&cdev->private->timer); in ccw_device_set_timeout()
120 if (timer_pending(&cdev->private->timer)) { in ccw_device_set_timeout()
121 if (mod_timer(&cdev->private->timer, jiffies + expires)) in ccw_device_set_timeout()
124 cdev->private->timer.expires = jiffies + expires; in ccw_device_set_timeout()
125 add_timer(&cdev->private->timer); in ccw_device_set_timeout()
135 ret = cio_cancel_halt_clear(sch, &cdev->private->iretry); in ccw_device_cancel_halt_clear()
139 cdev->private->dev_id.ssid, in ccw_device_cancel_halt_clear()
140 cdev->private->dev_id.devno); in ccw_device_cancel_halt_clear()
148 cdev->id.cu_type = cdev->private->dma_area->senseid.cu_type; in ccw_device_update_sense_data()
149 cdev->id.cu_model = cdev->private->dma_area->senseid.cu_model; in ccw_device_update_sense_data()
150 cdev->id.dev_type = cdev->private->dma_area->senseid.dev_type; in ccw_device_update_sense_data()
151 cdev->id.dev_model = cdev->private->dma_area->senseid.dev_model; in ccw_device_update_sense_data()
157 cdev->private->dma_area->senseid.cu_type && in ccw_device_test_sense_data()
159 cdev->private->dma_area->senseid.cu_model && in ccw_device_test_sense_data()
161 cdev->private->dma_area->senseid.dev_type && in ccw_device_test_sense_data()
163 cdev->private->dma_area->senseid.dev_model; in ccw_device_test_sense_data()
215 if (cdev->private->state == DEV_STATE_DISCONNECTED_SENSE_ID) in ccw_device_recog_done()
220 if (cdev->private->state == DEV_STATE_DISCONNECTED_SENSE_ID && in ccw_device_recog_done()
222 cdev->private->flags.recog_done = 1; in ccw_device_recog_done()
223 cdev->private->state = DEV_STATE_DISCONNECTED; in ccw_device_recog_done()
224 wake_up(&cdev->private->wait_q); in ccw_device_recog_done()
227 if (cdev->private->flags.resuming) { in ccw_device_recog_done()
228 cdev->private->state = state; in ccw_device_recog_done()
229 cdev->private->flags.recog_done = 1; in ccw_device_recog_done()
230 wake_up(&cdev->private->wait_q); in ccw_device_recog_done()
241 cdev->private->state = DEV_STATE_OFFLINE; in ccw_device_recog_done()
242 cdev->private->flags.recog_done = 1; in ccw_device_recog_done()
244 cdev->private->flags.donotify = 1; in ccw_device_recog_done()
246 wake_up(&cdev->private->wait_q); in ccw_device_recog_done()
254 cdev->private->flags.recog_done = 1; in ccw_device_recog_done()
255 cdev->private->state = DEV_STATE_BOXED; in ccw_device_recog_done()
256 wake_up(&cdev->private->wait_q); in ccw_device_recog_done()
261 cdev->private->state = state; in ccw_device_recog_done()
263 wake_up(&cdev->private->wait_q); in ccw_device_recog_done()
305 cdev->private->dev_id.ssid, cdev->private->dev_id.devno, in ccw_device_notify()
327 cdev->private->path_new_mask = sch->vpm; in ccw_device_oper_notify()
351 memset(&cdev->private->dma_area->irb, 0, sizeof(struct irb)); in ccw_device_done()
353 cdev->private->state = state; in ccw_device_done()
358 cdev->private->dev_id.devno, sch->schid.sch_no); in ccw_device_done()
362 cdev->private->flags.donotify = 0; in ccw_device_done()
366 cdev->private->dev_id.devno, sch->schid.sch_no); in ccw_device_done()
371 cdev->private->flags.donotify = 0; in ccw_device_done()
375 "%04x\n", cdev->private->dev_id.devno, in ccw_device_done()
378 cdev->private->state = DEV_STATE_NOT_OPER; in ccw_device_done()
382 cdev->private->flags.donotify = 0; in ccw_device_done()
388 if (cdev->private->flags.donotify) { in ccw_device_done()
389 cdev->private->flags.donotify = 0; in ccw_device_done()
392 wake_up(&cdev->private->wait_q); in ccw_device_done()
410 cdev->private->flags.recog_done = 0; in ccw_device_recognition()
411 cdev->private->state = DEV_STATE_SENSE_ID; in ccw_device_recognition()
447 if (mask & cdev->private->path_gone_mask & ~(sch->vpm)) in ccw_device_report_path_events()
449 if (mask & cdev->private->path_new_mask & sch->vpm) in ccw_device_report_path_events()
451 if (mask & cdev->private->pgid_reset_mask & sch->vpm) in ccw_device_report_path_events()
460 cdev->private->path_gone_mask = 0; in ccw_device_reset_path_events()
461 cdev->private->path_new_mask = 0; in ccw_device_reset_path_events()
462 cdev->private->pgid_reset_mask = 0; in ccw_device_reset_path_events()
489 if (broken_paths && (cdev->private->path_broken_mask != broken_paths)) in ccw_device_handle_broken_paths()
492 cdev->private->path_broken_mask = broken_paths; in ccw_device_handle_broken_paths()
508 if (cdev->private->flags.doverify) { in ccw_device_verify_done()
517 if (cdev->private->flags.fake_irb) { in ccw_device_verify_done()
518 create_fake_irb(&cdev->private->dma_area->irb, in ccw_device_verify_done()
519 cdev->private->flags.fake_irb); in ccw_device_verify_done()
520 cdev->private->flags.fake_irb = 0; in ccw_device_verify_done()
522 cdev->handler(cdev, cdev->private->intparm, in ccw_device_verify_done()
523 &cdev->private->dma_area->irb); in ccw_device_verify_done()
524 memset(&cdev->private->dma_area->irb, 0, in ccw_device_verify_done()
533 cdev->private->flags.donotify = 0; in ccw_device_verify_done()
538 cdev->private->flags.donotify = 0; in ccw_device_verify_done()
543 cdev->private->flags.donotify = 0; in ccw_device_verify_done()
559 if ((cdev->private->state != DEV_STATE_OFFLINE) && in ccw_device_online()
560 (cdev->private->state != DEV_STATE_BOXED)) in ccw_device_online()
571 cdev->private->state = DEV_STATE_VERIFY; in ccw_device_online()
587 cdev->private->flags.donotify = 0; in ccw_device_disband_done()
602 if (cdev->private->state == DEV_STATE_DISCONNECTED || in ccw_device_offline()
603 cdev->private->state == DEV_STATE_NOT_OPER) { in ccw_device_offline()
604 cdev->private->flags.donotify = 0; in ccw_device_offline()
608 if (cdev->private->state == DEV_STATE_BOXED) { in ccw_device_offline()
621 if (cdev->private->state != DEV_STATE_ONLINE) in ccw_device_offline()
624 if (!cdev->private->flags.pgroup) { in ccw_device_offline()
630 cdev->private->state = DEV_STATE_DISBAND_PGID; in ccw_device_offline()
666 if (cdev->private->state == DEV_STATE_W4SENSE) { in ccw_device_online_verify()
667 cdev->private->flags.doverify = 1; in ccw_device_online_verify()
682 (scsw_stctl(&cdev->private->dma_area->irb.scsw) & in ccw_device_online_verify()
689 cdev->private->flags.doverify = 1; in ccw_device_online_verify()
693 cdev->private->state = DEV_STATE_VERIFY; in ccw_device_online_verify()
730 stctl = scsw_stctl(&cdev->private->dma_area->irb.scsw); in ccw_device_call_handler()
735 !cdev->private->options.repall && in ccw_device_call_handler()
737 !(cdev->private->options.fast && in ccw_device_call_handler()
745 cdev->handler(cdev, cdev->private->intparm, in ccw_device_call_handler()
746 &cdev->private->dma_area->irb); in ccw_device_call_handler()
748 memset(&cdev->private->dma_area->irb, 0, sizeof(struct irb)); in ccw_device_call_handler()
770 memcpy(&cdev->private->dma_area->irb, irb, in ccw_device_irq()
772 cdev->private->state = DEV_STATE_W4SENSE; in ccw_device_irq()
773 cdev->private->intparm = 0; in ccw_device_irq()
779 if (cdev->private->flags.doverify) in ccw_device_irq()
785 if (is_cmd && cdev->private->flags.dosense) { in ccw_device_irq()
787 cdev->private->state = DEV_STATE_W4SENSE; in ccw_device_irq()
792 if (ccw_device_call_handler(cdev) && cdev->private->flags.doverify) in ccw_device_irq()
806 cdev->private->iretry = 255; in ccw_device_online_timeout()
807 cdev->private->async_kill_io_rc = -ETIMEDOUT; in ccw_device_online_timeout()
811 cdev->private->state = DEV_STATE_TIMEOUT_KILL; in ccw_device_online_timeout()
817 cdev->handler(cdev, cdev->private->intparm, in ccw_device_online_timeout()
839 cdev->private->dev_id.ssid, in ccw_device_w4sense()
840 cdev->private->dev_id.devno); in ccw_device_w4sense()
853 cdev->private->flags.dosense = 0; in ccw_device_w4sense()
854 memset(&cdev->private->dma_area->irb, 0, sizeof(struct irb)); in ccw_device_w4sense()
860 if (cdev->private->flags.dosense) { in ccw_device_w4sense()
866 cdev->private->state = DEV_STATE_ONLINE; in ccw_device_w4sense()
868 wake_up(&cdev->private->wait_q); in ccw_device_w4sense()
870 if (ccw_device_call_handler(cdev) && cdev->private->flags.doverify) in ccw_device_w4sense()
883 cdev->handler(cdev, cdev->private->intparm, in ccw_device_killing_irq()
884 ERR_PTR(cdev->private->async_kill_io_rc)); in ccw_device_killing_irq()
900 cdev->handler(cdev, cdev->private->intparm, in ccw_device_killing_timeout()
901 ERR_PTR(cdev->private->async_kill_io_rc)); in ccw_device_killing_timeout()
909 cdev->private->iretry = 255; in ccw_device_kill_io()
910 cdev->private->async_kill_io_rc = -EIO; in ccw_device_kill_io()
914 cdev->private->state = DEV_STATE_TIMEOUT_KILL; in ccw_device_kill_io()
920 cdev->handler(cdev, cdev->private->intparm, in ccw_device_kill_io()
928 cdev->private->flags.doverify = 1; in ccw_device_delay_verify()
940 cdev->private->state = DEV_STATE_DISCONNECTED_SENSE_ID; in ccw_device_start_id()
948 if (cdev->private->state != DEV_STATE_DISCONNECTED) in ccw_device_trigger_reprobe()
970 if (sch->schib.pmcw.dev != cdev->private->dev_id.devno) in ccw_device_trigger_reprobe()
993 cdev->private->state = DEV_STATE_ONLINE; in ccw_device_change_cmfstate()
1001 cdev->private->state = DEV_STATE_ONLINE; in ccw_device_update_cmfblock()
1009 cdev->private->state = DEV_STATE_NOT_OPER; in ccw_device_quiesce_done()
1010 wake_up(&cdev->private->wait_q); in ccw_device_quiesce_done()
1022 cdev->private->state = DEV_STATE_NOT_OPER; in ccw_device_quiesce_timeout()
1023 wake_up(&cdev->private->wait_q); in ccw_device_quiesce_timeout()