Lines Matching full:private
42 struct io_subchannel_private *private; in ccw_timeout_log() local
47 private = to_io_private(sch); in ccw_timeout_log()
48 orb = &private->orb; in ccw_timeout_log()
72 &private->dma_area->sense_ccw || in ccw_timeout_log()
74 cdev->private->dma_area->iccws) in ccw_timeout_log()
85 cdev->private->state); in ccw_timeout_log()
92 &cdev->private->flags, sizeof(cdev->private->flags), 0); in ccw_timeout_log()
118 del_timer(&cdev->private->timer); in ccw_device_set_timeout()
120 mod_timer(&cdev->private->timer, jiffies + expires); in ccw_device_set_timeout()
130 ret = cio_cancel_halt_clear(sch, &cdev->private->iretry); in ccw_device_cancel_halt_clear()
134 cdev->private->dev_id.ssid, in ccw_device_cancel_halt_clear()
135 cdev->private->dev_id.devno); in ccw_device_cancel_halt_clear()
143 cdev->id.cu_type = cdev->private->dma_area->senseid.cu_type; in ccw_device_update_sense_data()
144 cdev->id.cu_model = cdev->private->dma_area->senseid.cu_model; in ccw_device_update_sense_data()
145 cdev->id.dev_type = cdev->private->dma_area->senseid.dev_type; in ccw_device_update_sense_data()
146 cdev->id.dev_model = cdev->private->dma_area->senseid.dev_model; in ccw_device_update_sense_data()
152 cdev->private->dma_area->senseid.cu_type && in ccw_device_test_sense_data()
154 cdev->private->dma_area->senseid.cu_model && in ccw_device_test_sense_data()
156 cdev->private->dma_area->senseid.dev_type && in ccw_device_test_sense_data()
158 cdev->private->dma_area->senseid.dev_model; in ccw_device_test_sense_data()
210 if (cdev->private->state == DEV_STATE_DISCONNECTED_SENSE_ID) in ccw_device_recog_done()
215 if (cdev->private->state == DEV_STATE_DISCONNECTED_SENSE_ID && in ccw_device_recog_done()
217 cdev->private->flags.recog_done = 1; in ccw_device_recog_done()
218 cdev->private->state = DEV_STATE_DISCONNECTED; in ccw_device_recog_done()
219 wake_up(&cdev->private->wait_q); in ccw_device_recog_done()
230 cdev->private->state = DEV_STATE_OFFLINE; in ccw_device_recog_done()
231 cdev->private->flags.recog_done = 1; in ccw_device_recog_done()
233 cdev->private->flags.donotify = 1; in ccw_device_recog_done()
235 wake_up(&cdev->private->wait_q); in ccw_device_recog_done()
243 cdev->private->flags.recog_done = 1; in ccw_device_recog_done()
244 cdev->private->state = DEV_STATE_BOXED; in ccw_device_recog_done()
245 wake_up(&cdev->private->wait_q); in ccw_device_recog_done()
250 cdev->private->state = state; in ccw_device_recog_done()
252 wake_up(&cdev->private->wait_q); in ccw_device_recog_done()
294 cdev->private->dev_id.ssid, cdev->private->dev_id.devno, in ccw_device_notify()
316 cdev->private->path_new_mask = sch->vpm; in ccw_device_oper_notify()
340 memset(&cdev->private->dma_area->irb, 0, sizeof(struct irb)); in ccw_device_done()
342 cdev->private->state = state; in ccw_device_done()
347 cdev->private->dev_id.devno, sch->schid.sch_no); in ccw_device_done()
351 cdev->private->flags.donotify = 0; in ccw_device_done()
355 cdev->private->dev_id.devno, sch->schid.sch_no); in ccw_device_done()
360 cdev->private->flags.donotify = 0; in ccw_device_done()
364 "%04x\n", cdev->private->dev_id.devno, in ccw_device_done()
367 cdev->private->state = DEV_STATE_NOT_OPER; in ccw_device_done()
371 cdev->private->flags.donotify = 0; in ccw_device_done()
377 if (cdev->private->flags.donotify) { in ccw_device_done()
378 cdev->private->flags.donotify = 0; in ccw_device_done()
381 wake_up(&cdev->private->wait_q); in ccw_device_done()
399 cdev->private->flags.recog_done = 0; in ccw_device_recognition()
400 cdev->private->state = DEV_STATE_SENSE_ID; in ccw_device_recognition()
436 if (mask & cdev->private->path_gone_mask & ~(sch->vpm)) in ccw_device_report_path_events()
438 if (mask & cdev->private->path_new_mask & sch->vpm) in ccw_device_report_path_events()
440 if (mask & cdev->private->pgid_reset_mask & sch->vpm) in ccw_device_report_path_events()
449 cdev->private->path_gone_mask = 0; in ccw_device_reset_path_events()
450 cdev->private->path_new_mask = 0; in ccw_device_reset_path_events()
451 cdev->private->pgid_reset_mask = 0; in ccw_device_reset_path_events()
478 if (broken_paths && (cdev->private->path_broken_mask != broken_paths)) in ccw_device_handle_broken_paths()
481 cdev->private->path_broken_mask = broken_paths; in ccw_device_handle_broken_paths()
497 if (cdev->private->flags.doverify) { in ccw_device_verify_done()
506 if (cdev->private->flags.fake_irb) { in ccw_device_verify_done()
508 cdev->private->dev_id.ssid, in ccw_device_verify_done()
509 cdev->private->dev_id.devno, in ccw_device_verify_done()
510 cdev->private->intparm, in ccw_device_verify_done()
511 cdev->private->flags.fake_irb); in ccw_device_verify_done()
512 create_fake_irb(&cdev->private->dma_area->irb, in ccw_device_verify_done()
513 cdev->private->flags.fake_irb); in ccw_device_verify_done()
514 cdev->private->flags.fake_irb = 0; in ccw_device_verify_done()
516 cdev->handler(cdev, cdev->private->intparm, in ccw_device_verify_done()
517 &cdev->private->dma_area->irb); in ccw_device_verify_done()
518 memset(&cdev->private->dma_area->irb, 0, in ccw_device_verify_done()
527 cdev->private->flags.donotify = 0; in ccw_device_verify_done()
532 cdev->private->flags.donotify = 0; in ccw_device_verify_done()
537 cdev->private->flags.donotify = 0; in ccw_device_verify_done()
553 if ((cdev->private->state != DEV_STATE_OFFLINE) && in ccw_device_online()
554 (cdev->private->state != DEV_STATE_BOXED)) in ccw_device_online()
565 cdev->private->state = DEV_STATE_VERIFY; in ccw_device_online()
581 cdev->private->flags.donotify = 0; in ccw_device_disband_done()
596 if (cdev->private->state == DEV_STATE_DISCONNECTED || in ccw_device_offline()
597 cdev->private->state == DEV_STATE_NOT_OPER) { in ccw_device_offline()
598 cdev->private->flags.donotify = 0; in ccw_device_offline()
602 if (cdev->private->state == DEV_STATE_BOXED) { in ccw_device_offline()
615 if (cdev->private->state != DEV_STATE_ONLINE) in ccw_device_offline()
618 if (!cdev->private->flags.pgroup) { in ccw_device_offline()
624 cdev->private->state = DEV_STATE_DISBAND_PGID; in ccw_device_offline()
660 if (cdev->private->state == DEV_STATE_W4SENSE) { in ccw_device_online_verify()
661 cdev->private->flags.doverify = 1; in ccw_device_online_verify()
676 (scsw_stctl(&cdev->private->dma_area->irb.scsw) & in ccw_device_online_verify()
683 cdev->private->flags.doverify = 1; in ccw_device_online_verify()
687 cdev->private->state = DEV_STATE_VERIFY; in ccw_device_online_verify()
724 stctl = scsw_stctl(&cdev->private->dma_area->irb.scsw); in ccw_device_call_handler()
729 !cdev->private->options.repall && in ccw_device_call_handler()
731 !(cdev->private->options.fast && in ccw_device_call_handler()
739 cdev->handler(cdev, cdev->private->intparm, in ccw_device_call_handler()
740 &cdev->private->dma_area->irb); in ccw_device_call_handler()
742 memset(&cdev->private->dma_area->irb, 0, sizeof(struct irb)); in ccw_device_call_handler()
764 memcpy(&cdev->private->dma_area->irb, irb, in ccw_device_irq()
766 cdev->private->state = DEV_STATE_W4SENSE; in ccw_device_irq()
767 cdev->private->intparm = 0; in ccw_device_irq()
773 if (cdev->private->flags.doverify) in ccw_device_irq()
779 if (is_cmd && cdev->private->flags.dosense) { in ccw_device_irq()
781 cdev->private->state = DEV_STATE_W4SENSE; in ccw_device_irq()
786 if (ccw_device_call_handler(cdev) && cdev->private->flags.doverify) in ccw_device_irq()
800 cdev->private->iretry = 255; in ccw_device_online_timeout()
801 cdev->private->async_kill_io_rc = -ETIMEDOUT; in ccw_device_online_timeout()
805 cdev->private->state = DEV_STATE_TIMEOUT_KILL; in ccw_device_online_timeout()
811 cdev->handler(cdev, cdev->private->intparm, in ccw_device_online_timeout()
833 cdev->private->dev_id.ssid, in ccw_device_w4sense()
834 cdev->private->dev_id.devno); in ccw_device_w4sense()
847 cdev->private->flags.dosense = 0; in ccw_device_w4sense()
848 memset(&cdev->private->dma_area->irb, 0, sizeof(struct irb)); in ccw_device_w4sense()
854 if (cdev->private->flags.dosense) { in ccw_device_w4sense()
860 cdev->private->state = DEV_STATE_ONLINE; in ccw_device_w4sense()
862 wake_up(&cdev->private->wait_q); in ccw_device_w4sense()
864 if (ccw_device_call_handler(cdev) && cdev->private->flags.doverify) in ccw_device_w4sense()
877 cdev->handler(cdev, cdev->private->intparm, in ccw_device_killing_irq()
878 ERR_PTR(cdev->private->async_kill_io_rc)); in ccw_device_killing_irq()
894 cdev->handler(cdev, cdev->private->intparm, in ccw_device_killing_timeout()
895 ERR_PTR(cdev->private->async_kill_io_rc)); in ccw_device_killing_timeout()
903 cdev->private->iretry = 255; in ccw_device_kill_io()
904 cdev->private->async_kill_io_rc = -EIO; in ccw_device_kill_io()
908 cdev->private->state = DEV_STATE_TIMEOUT_KILL; in ccw_device_kill_io()
914 cdev->handler(cdev, cdev->private->intparm, in ccw_device_kill_io()
922 cdev->private->flags.doverify = 1; in ccw_device_delay_verify()
934 cdev->private->state = DEV_STATE_DISCONNECTED_SENSE_ID; in ccw_device_start_id()
942 if (cdev->private->state != DEV_STATE_DISCONNECTED) in ccw_device_trigger_reprobe()
964 if (sch->schib.pmcw.dev != cdev->private->dev_id.devno) in ccw_device_trigger_reprobe()
987 cdev->private->state = DEV_STATE_ONLINE; in ccw_device_change_cmfstate()
995 cdev->private->state = DEV_STATE_ONLINE; in ccw_device_update_cmfblock()
1003 cdev->private->state = DEV_STATE_NOT_OPER; in ccw_device_quiesce_done()
1004 wake_up(&cdev->private->wait_q); in ccw_device_quiesce_done()
1016 cdev->private->state = DEV_STATE_NOT_OPER; in ccw_device_quiesce_timeout()
1017 wake_up(&cdev->private->wait_q); in ccw_device_quiesce_timeout()