Lines Matching refs:irb

340 	memset(&cdev->private->dma_area->irb, 0, sizeof(struct irb));  in ccw_device_done()
454 static void create_fake_irb(struct irb *irb, int type) in create_fake_irb() argument
456 memset(irb, 0, sizeof(*irb)); in create_fake_irb()
458 struct cmd_scsw *scsw = &irb->scsw.cmd; in create_fake_irb()
464 struct tm_scsw *scsw = &irb->scsw.tm; in create_fake_irb()
512 create_fake_irb(&cdev->private->dma_area->irb, 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()
519 sizeof(struct irb)); in ccw_device_verify_done()
676 (scsw_stctl(&cdev->private->dma_area->irb.scsw) & in ccw_device_online_verify()
724 stctl = scsw_stctl(&cdev->private->dma_area->irb.scsw); 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()
752 struct irb *irb; in ccw_device_irq() local
755 irb = this_cpu_ptr(&cio_irb); in ccw_device_irq()
756 is_cmd = !scsw_is_tm(&irb->scsw); in ccw_device_irq()
758 if (!scsw_is_solicited(&irb->scsw)) { in ccw_device_irq()
759 if (is_cmd && (irb->scsw.cmd.dstat & DEV_STAT_UNIT_CHECK) && in ccw_device_irq()
760 !irb->esw.esw0.erw.cons) { in ccw_device_irq()
762 if (ccw_device_do_sense(cdev, irb) != 0) in ccw_device_irq()
764 memcpy(&cdev->private->dma_area->irb, irb, in ccw_device_irq()
765 sizeof(struct irb)); in ccw_device_irq()
772 cdev->handler (cdev, 0, irb); in ccw_device_irq()
778 ccw_device_accumulate_irb(cdev, irb); in ccw_device_irq()
780 if (ccw_device_do_sense(cdev, irb) == 0) { in ccw_device_irq()
821 struct irb *irb; in ccw_device_w4sense() local
823 irb = this_cpu_ptr(&cio_irb); in ccw_device_w4sense()
825 if (scsw_stctl(&irb->scsw) == in ccw_device_w4sense()
827 if (scsw_cc(&irb->scsw) == 1) in ccw_device_w4sense()
829 ccw_device_do_sense(cdev, irb); in ccw_device_w4sense()
836 cdev->handler (cdev, 0, irb); in ccw_device_w4sense()
845 if (scsw_fctl(&irb->scsw) & in ccw_device_w4sense()
848 memset(&cdev->private->dma_area->irb, 0, sizeof(struct irb)); in ccw_device_w4sense()
849 ccw_device_accumulate_irb(cdev, irb); in ccw_device_w4sense()
853 ccw_device_accumulate_basic_sense(cdev, irb); in ccw_device_w4sense()
856 ccw_device_do_sense(cdev, irb); in ccw_device_w4sense()