Lines Matching refs:reset_scb
769 struct scb *reset_scb; in ahd_linux_dev_reset() local
777 reset_scb = NULL; in ahd_linux_dev_reset()
806 reset_scb = ahd_get_scb(ahd, AHD_NEVER_COL_IDX); in ahd_linux_dev_reset()
807 if (!reset_scb) { in ahd_linux_dev_reset()
814 reset_scb->io_ctx = cmd; in ahd_linux_dev_reset()
815 reset_scb->platform_data->dev = dev; in ahd_linux_dev_reset()
816 reset_scb->sg_count = 0; in ahd_linux_dev_reset()
817 ahd_set_residual(reset_scb, 0); in ahd_linux_dev_reset()
818 ahd_set_sense_residual(reset_scb, 0); in ahd_linux_dev_reset()
819 reset_scb->platform_data->xfer_len = 0; in ahd_linux_dev_reset()
820 reset_scb->hscb->control = 0; in ahd_linux_dev_reset()
821 reset_scb->hscb->scsiid = BUILD_SCSIID(ahd,cmd); in ahd_linux_dev_reset()
822 reset_scb->hscb->lun = cmd->device->lun; in ahd_linux_dev_reset()
823 reset_scb->hscb->cdb_len = 0; in ahd_linux_dev_reset()
824 reset_scb->hscb->task_management = SIU_TASKMGMT_LUN_RESET; in ahd_linux_dev_reset()
825 reset_scb->flags |= SCB_DEVICE_RESET|SCB_RECOVERY_SCB|SCB_ACTIVE; in ahd_linux_dev_reset()
827 reset_scb->flags |= SCB_PACKETIZED; in ahd_linux_dev_reset()
829 reset_scb->hscb->control |= MK_MESSAGE; in ahd_linux_dev_reset()
837 LIST_INSERT_HEAD(&ahd->pending_scbs, reset_scb, pending_links); in ahd_linux_dev_reset()
838 ahd_queue_scb(ahd, reset_scb); in ahd_linux_dev_reset()