Lines Matching refs:irb
339 memset(&cdev->private->dma_area->irb, 0, sizeof(struct irb)); in ccw_device_done()
453 static void create_fake_irb(struct irb *irb, int type) in create_fake_irb() argument
455 memset(irb, 0, sizeof(*irb)); in create_fake_irb()
457 struct cmd_scsw *scsw = &irb->scsw.cmd; in create_fake_irb()
463 struct tm_scsw *scsw = &irb->scsw.tm; in create_fake_irb()
506 create_fake_irb(&cdev->private->dma_area->irb, 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()
513 sizeof(struct irb)); in ccw_device_verify_done()
670 (scsw_stctl(&cdev->private->dma_area->irb.scsw) & in ccw_device_online_verify()
718 stctl = scsw_stctl(&cdev->private->dma_area->irb.scsw); 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()
746 struct irb *irb; in ccw_device_irq() local
749 irb = this_cpu_ptr(&cio_irb); in ccw_device_irq()
750 is_cmd = !scsw_is_tm(&irb->scsw); in ccw_device_irq()
752 if (!scsw_is_solicited(&irb->scsw)) { in ccw_device_irq()
753 if (is_cmd && (irb->scsw.cmd.dstat & DEV_STAT_UNIT_CHECK) && in ccw_device_irq()
754 !irb->esw.esw0.erw.cons) { in ccw_device_irq()
756 if (ccw_device_do_sense(cdev, irb) != 0) in ccw_device_irq()
758 memcpy(&cdev->private->dma_area->irb, irb, in ccw_device_irq()
759 sizeof(struct irb)); in ccw_device_irq()
766 cdev->handler (cdev, 0, irb); in ccw_device_irq()
772 ccw_device_accumulate_irb(cdev, irb); in ccw_device_irq()
774 if (ccw_device_do_sense(cdev, irb) == 0) { in ccw_device_irq()
815 struct irb *irb; in ccw_device_w4sense() local
817 irb = this_cpu_ptr(&cio_irb); in ccw_device_w4sense()
819 if (scsw_stctl(&irb->scsw) == in ccw_device_w4sense()
821 if (scsw_cc(&irb->scsw) == 1) in ccw_device_w4sense()
823 ccw_device_do_sense(cdev, irb); in ccw_device_w4sense()
830 cdev->handler (cdev, 0, irb); in ccw_device_w4sense()
839 if (scsw_fctl(&irb->scsw) & in ccw_device_w4sense()
842 memset(&cdev->private->dma_area->irb, 0, sizeof(struct irb)); in ccw_device_w4sense()
843 ccw_device_accumulate_irb(cdev, irb); in ccw_device_w4sense()
847 ccw_device_accumulate_basic_sense(cdev, irb); in ccw_device_w4sense()
850 ccw_device_do_sense(cdev, irb); in ccw_device_w4sense()