Lines Matching refs:sh
201 static int wd719x_queuecommand(struct Scsi_Host *sh, struct scsi_cmnd *cmd) in wd719x_queuecommand() argument
206 struct wd719x *wd = shost_priv(sh); in wd719x_queuecommand()
212 spin_lock_irqsave(wd->sh->host_lock, flags); in wd719x_queuecommand()
218 spin_unlock_irqrestore(wd->sh->host_lock, flags); in wd719x_queuecommand()
221 spin_lock_irqsave(wd->sh->host_lock, flags); in wd719x_queuecommand()
225 spin_unlock_irqrestore(wd->sh->host_lock, flags); in wd719x_queuecommand()
263 spin_unlock_irqrestore(wd->sh->host_lock, flags); in wd719x_queuecommand()
288 spin_unlock_irqrestore(wd->sh->host_lock, flags); in wd719x_queuecommand()
297 spin_unlock_irqrestore(wd->sh->host_lock, flags); in wd719x_queuecommand()
474 spin_lock_irqsave(wd->sh->host_lock, flags); in wd719x_abort()
477 spin_unlock_irqrestore(wd->sh->host_lock, flags); in wd719x_abort()
493 spin_lock_irqsave(wd->sh->host_lock, flags); in wd719x_reset()
496 spin_unlock_irqrestore(wd->sh->host_lock, flags); in wd719x_reset()
521 spin_lock_irqsave(wd->sh->host_lock, flags); in wd719x_host_reset()
533 spin_unlock_irqrestore(wd->sh->host_lock, flags); in wd719x_host_reset()
658 spin_lock_irqsave(wd->sh->host_lock, flags); in wd719x_interrupt()
666 spin_unlock_irqrestore(wd->sh->host_lock, flags); in wd719x_interrupt()
703 spin_unlock_irqrestore(wd->sh->host_lock, flags); in wd719x_interrupt()
803 static int wd719x_board_found(struct Scsi_Host *sh) in wd719x_board_found() argument
805 struct wd719x *wd = shost_priv(sh); in wd719x_board_found()
812 sh->base = pci_resource_start(wd->pdev, 0); in wd719x_board_found()
816 wd->sh = sh; in wd719x_board_found()
817 sh->irq = wd->pdev->irq; in wd719x_board_found()
853 sh->this_id = wd->params->own_scsi_id & WD719X_EE_SCSI_ID_MASK; in wd719x_board_found()
856 card_types[wd->type], sh->base, sh->irq, sh->this_id); in wd719x_board_found()
891 struct Scsi_Host *sh; in wd719x_pci_probe() local
913 sh = scsi_host_alloc(&wd719x_template, sizeof(struct wd719x)); in wd719x_pci_probe()
914 if (!sh) in wd719x_pci_probe()
917 wd = shost_priv(sh); in wd719x_pci_probe()
923 err = wd719x_board_found(sh); in wd719x_pci_probe()
927 err = scsi_add_host(sh, &wd->pdev->dev); in wd719x_pci_probe()
931 scsi_scan_host(sh); in wd719x_pci_probe()
933 pci_set_drvdata(pdev, sh); in wd719x_pci_probe()
941 scsi_host_put(sh); in wd719x_pci_probe()
953 struct Scsi_Host *sh = pci_get_drvdata(pdev); in wd719x_pci_remove() local
954 struct wd719x *wd = shost_priv(sh); in wd719x_pci_remove()
956 scsi_remove_host(sh); in wd719x_pci_remove()
962 scsi_host_put(sh); in wd719x_pci_remove()