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()
119 mod_timer(&cdev->private->timer, jiffies + expires); in ccw_device_set_timeout()
129 ret = cio_cancel_halt_clear(sch, &cdev->private->iretry); in ccw_device_cancel_halt_clear()
133 cdev->private->dev_id.ssid, in ccw_device_cancel_halt_clear()
134 cdev->private->dev_id.devno); in ccw_device_cancel_halt_clear()
142 cdev->id.cu_type = cdev->private->dma_area->senseid.cu_type; in ccw_device_update_sense_data()
143 cdev->id.cu_model = cdev->private->dma_area->senseid.cu_model; in ccw_device_update_sense_data()
144 cdev->id.dev_type = cdev->private->dma_area->senseid.dev_type; in ccw_device_update_sense_data()
145 cdev->id.dev_model = cdev->private->dma_area->senseid.dev_model; in ccw_device_update_sense_data()
151 cdev->private->dma_area->senseid.cu_type && in ccw_device_test_sense_data()
153 cdev->private->dma_area->senseid.cu_model && in ccw_device_test_sense_data()
155 cdev->private->dma_area->senseid.dev_type && in ccw_device_test_sense_data()
157 cdev->private->dma_area->senseid.dev_model; in ccw_device_test_sense_data()
209 if (cdev->private->state == DEV_STATE_DISCONNECTED_SENSE_ID) in ccw_device_recog_done()
214 if (cdev->private->state == DEV_STATE_DISCONNECTED_SENSE_ID && in ccw_device_recog_done()
216 cdev->private->flags.recog_done = 1; in ccw_device_recog_done()
217 cdev->private->state = DEV_STATE_DISCONNECTED; in ccw_device_recog_done()
218 wake_up(&cdev->private->wait_q); in ccw_device_recog_done()
229 cdev->private->state = DEV_STATE_OFFLINE; in ccw_device_recog_done()
230 cdev->private->flags.recog_done = 1; in ccw_device_recog_done()
232 cdev->private->flags.donotify = 1; in ccw_device_recog_done()
234 wake_up(&cdev->private->wait_q); in ccw_device_recog_done()
242 cdev->private->flags.recog_done = 1; in ccw_device_recog_done()
243 cdev->private->state = DEV_STATE_BOXED; in ccw_device_recog_done()
244 wake_up(&cdev->private->wait_q); in ccw_device_recog_done()
249 cdev->private->state = state; in ccw_device_recog_done()
251 wake_up(&cdev->private->wait_q); in ccw_device_recog_done()
293 cdev->private->dev_id.ssid, cdev->private->dev_id.devno, in ccw_device_notify()
315 cdev->private->path_new_mask = sch->vpm; in ccw_device_oper_notify()
339 memset(&cdev->private->dma_area->irb, 0, sizeof(struct irb)); in ccw_device_done()
341 cdev->private->state = state; in ccw_device_done()
346 cdev->private->dev_id.devno, sch->schid.sch_no); in ccw_device_done()
350 cdev->private->flags.donotify = 0; in ccw_device_done()
354 cdev->private->dev_id.devno, sch->schid.sch_no); in ccw_device_done()
359 cdev->private->flags.donotify = 0; in ccw_device_done()
363 "%04x\n", cdev->private->dev_id.devno, in ccw_device_done()
366 cdev->private->state = DEV_STATE_NOT_OPER; in ccw_device_done()
370 cdev->private->flags.donotify = 0; in ccw_device_done()
376 if (cdev->private->flags.donotify) { in ccw_device_done()
377 cdev->private->flags.donotify = 0; in ccw_device_done()
380 wake_up(&cdev->private->wait_q); in ccw_device_done()
398 cdev->private->flags.recog_done = 0; in ccw_device_recognition()
399 cdev->private->state = DEV_STATE_SENSE_ID; in ccw_device_recognition()
435 if (mask & cdev->private->path_gone_mask & ~(sch->vpm)) in ccw_device_report_path_events()
437 if (mask & cdev->private->path_new_mask & sch->vpm) in ccw_device_report_path_events()
439 if (mask & cdev->private->pgid_reset_mask & sch->vpm) in ccw_device_report_path_events()
448 cdev->private->path_gone_mask = 0; in ccw_device_reset_path_events()
449 cdev->private->path_new_mask = 0; in ccw_device_reset_path_events()
450 cdev->private->pgid_reset_mask = 0; in ccw_device_reset_path_events()
477 if (broken_paths && (cdev->private->path_broken_mask != broken_paths)) in ccw_device_handle_broken_paths()
480 cdev->private->path_broken_mask = broken_paths; in ccw_device_handle_broken_paths()
496 if (cdev->private->flags.doverify) { in ccw_device_verify_done()
505 if (cdev->private->flags.fake_irb) { in ccw_device_verify_done()
506 create_fake_irb(&cdev->private->dma_area->irb, in ccw_device_verify_done()
507 cdev->private->flags.fake_irb); in ccw_device_verify_done()
508 cdev->private->flags.fake_irb = 0; in ccw_device_verify_done()
510 cdev->handler(cdev, cdev->private->intparm, in ccw_device_verify_done()
511 &cdev->private->dma_area->irb); in ccw_device_verify_done()
512 memset(&cdev->private->dma_area->irb, 0, in ccw_device_verify_done()
521 cdev->private->flags.donotify = 0; in ccw_device_verify_done()
526 cdev->private->flags.donotify = 0; in ccw_device_verify_done()
531 cdev->private->flags.donotify = 0; in ccw_device_verify_done()
547 if ((cdev->private->state != DEV_STATE_OFFLINE) && in ccw_device_online()
548 (cdev->private->state != DEV_STATE_BOXED)) in ccw_device_online()
559 cdev->private->state = DEV_STATE_VERIFY; in ccw_device_online()
575 cdev->private->flags.donotify = 0; in ccw_device_disband_done()
590 if (cdev->private->state == DEV_STATE_DISCONNECTED || in ccw_device_offline()
591 cdev->private->state == DEV_STATE_NOT_OPER) { in ccw_device_offline()
592 cdev->private->flags.donotify = 0; in ccw_device_offline()
596 if (cdev->private->state == DEV_STATE_BOXED) { in ccw_device_offline()
609 if (cdev->private->state != DEV_STATE_ONLINE) in ccw_device_offline()
612 if (!cdev->private->flags.pgroup) { in ccw_device_offline()
618 cdev->private->state = DEV_STATE_DISBAND_PGID; in ccw_device_offline()
654 if (cdev->private->state == DEV_STATE_W4SENSE) { in ccw_device_online_verify()
655 cdev->private->flags.doverify = 1; in ccw_device_online_verify()
670 (scsw_stctl(&cdev->private->dma_area->irb.scsw) & in ccw_device_online_verify()
677 cdev->private->flags.doverify = 1; in ccw_device_online_verify()
681 cdev->private->state = DEV_STATE_VERIFY; in ccw_device_online_verify()
718 stctl = scsw_stctl(&cdev->private->dma_area->irb.scsw); in ccw_device_call_handler()
723 !cdev->private->options.repall && in ccw_device_call_handler()
725 !(cdev->private->options.fast && in ccw_device_call_handler()
733 cdev->handler(cdev, cdev->private->intparm, in ccw_device_call_handler()
734 &cdev->private->dma_area->irb); in ccw_device_call_handler()
736 memset(&cdev->private->dma_area->irb, 0, sizeof(struct irb)); in ccw_device_call_handler()
758 memcpy(&cdev->private->dma_area->irb, irb, in ccw_device_irq()
760 cdev->private->state = DEV_STATE_W4SENSE; in ccw_device_irq()
761 cdev->private->intparm = 0; in ccw_device_irq()
767 if (cdev->private->flags.doverify) in ccw_device_irq()
773 if (is_cmd && cdev->private->flags.dosense) { in ccw_device_irq()
775 cdev->private->state = DEV_STATE_W4SENSE; in ccw_device_irq()
780 if (ccw_device_call_handler(cdev) && cdev->private->flags.doverify) in ccw_device_irq()
794 cdev->private->iretry = 255; in ccw_device_online_timeout()
795 cdev->private->async_kill_io_rc = -ETIMEDOUT; in ccw_device_online_timeout()
799 cdev->private->state = DEV_STATE_TIMEOUT_KILL; in ccw_device_online_timeout()
805 cdev->handler(cdev, cdev->private->intparm, in ccw_device_online_timeout()
827 cdev->private->dev_id.ssid, in ccw_device_w4sense()
828 cdev->private->dev_id.devno); in ccw_device_w4sense()
841 cdev->private->flags.dosense = 0; in ccw_device_w4sense()
842 memset(&cdev->private->dma_area->irb, 0, sizeof(struct irb)); in ccw_device_w4sense()
848 if (cdev->private->flags.dosense) { in ccw_device_w4sense()
854 cdev->private->state = DEV_STATE_ONLINE; in ccw_device_w4sense()
856 wake_up(&cdev->private->wait_q); in ccw_device_w4sense()
858 if (ccw_device_call_handler(cdev) && cdev->private->flags.doverify) in ccw_device_w4sense()
871 cdev->handler(cdev, cdev->private->intparm, in ccw_device_killing_irq()
872 ERR_PTR(cdev->private->async_kill_io_rc)); in ccw_device_killing_irq()
888 cdev->handler(cdev, cdev->private->intparm, in ccw_device_killing_timeout()
889 ERR_PTR(cdev->private->async_kill_io_rc)); in ccw_device_killing_timeout()
897 cdev->private->iretry = 255; in ccw_device_kill_io()
898 cdev->private->async_kill_io_rc = -EIO; in ccw_device_kill_io()
902 cdev->private->state = DEV_STATE_TIMEOUT_KILL; in ccw_device_kill_io()
908 cdev->handler(cdev, cdev->private->intparm, in ccw_device_kill_io()
916 cdev->private->flags.doverify = 1; in ccw_device_delay_verify()
928 cdev->private->state = DEV_STATE_DISCONNECTED_SENSE_ID; in ccw_device_start_id()
936 if (cdev->private->state != DEV_STATE_DISCONNECTED) in ccw_device_trigger_reprobe()
958 if (sch->schib.pmcw.dev != cdev->private->dev_id.devno) in ccw_device_trigger_reprobe()
981 cdev->private->state = DEV_STATE_ONLINE; in ccw_device_change_cmfstate()
989 cdev->private->state = DEV_STATE_ONLINE; in ccw_device_update_cmfblock()
997 cdev->private->state = DEV_STATE_NOT_OPER; in ccw_device_quiesce_done()
998 wake_up(&cdev->private->wait_q); in ccw_device_quiesce_done()
1010 cdev->private->state = DEV_STATE_NOT_OPER; in ccw_device_quiesce_timeout()
1011 wake_up(&cdev->private->wait_q); in ccw_device_quiesce_timeout()