Lines Matching refs:shp

3876 static const char *gdth_info(struct Scsi_Host *shp)  in gdth_info()  argument
3878 gdth_ha_str *ha = shost_priv(shp); in gdth_info()
4692 struct Scsi_Host *shp; in gdth_isa_probe_one() local
4700 shp = scsi_host_alloc(&gdth_template, sizeof(gdth_ha_str)); in gdth_isa_probe_one()
4701 if (!shp) in gdth_isa_probe_one()
4703 ha = shost_priv(shp); in gdth_isa_probe_one()
4727 shp->unchecked_isa_dma = 1; in gdth_isa_probe_one()
4728 shp->irq = ha->irq; in gdth_isa_probe_one()
4729 shp->dma_channel = ha->drq; in gdth_isa_probe_one()
4732 ha->shost = shp; in gdth_isa_probe_one()
4781 shp->max_cmd_len = 16; in gdth_isa_probe_one()
4783 shp->max_id = ha->tid_cnt; in gdth_isa_probe_one()
4784 shp->max_lun = MAXLUN; in gdth_isa_probe_one()
4785 shp->max_channel = ha->bus_cnt; in gdth_isa_probe_one()
4790 error = scsi_add_host(shp, NULL); in gdth_isa_probe_one()
4796 scsi_scan_host(shp); in gdth_isa_probe_one()
4816 scsi_host_put(shp); in gdth_isa_probe_one()
4824 struct Scsi_Host *shp; in gdth_eisa_probe_one() local
4832 shp = scsi_host_alloc(&gdth_template, sizeof(gdth_ha_str)); in gdth_eisa_probe_one()
4833 if (!shp) in gdth_eisa_probe_one()
4835 ha = shost_priv(shp); in gdth_eisa_probe_one()
4851 shp->unchecked_isa_dma = 0; in gdth_eisa_probe_one()
4852 shp->irq = ha->irq; in gdth_eisa_probe_one()
4853 shp->dma_channel = 0xff; in gdth_eisa_probe_one()
4856 ha->shost = shp; in gdth_eisa_probe_one()
4912 shp->max_cmd_len = 16; in gdth_eisa_probe_one()
4914 shp->max_id = ha->tid_cnt; in gdth_eisa_probe_one()
4915 shp->max_lun = MAXLUN; in gdth_eisa_probe_one()
4916 shp->max_channel = ha->bus_cnt; in gdth_eisa_probe_one()
4921 error = scsi_add_host(shp, NULL); in gdth_eisa_probe_one()
4927 scsi_scan_host(shp); in gdth_eisa_probe_one()
4949 scsi_host_put(shp); in gdth_eisa_probe_one()
4957 struct Scsi_Host *shp; in gdth_pci_probe_one() local
4965 shp = scsi_host_alloc(&gdth_template, sizeof(gdth_ha_str)); in gdth_pci_probe_one()
4966 if (!shp) in gdth_pci_probe_one()
4968 ha = shost_priv(shp); in gdth_pci_probe_one()
4987 shp->unchecked_isa_dma = 0; in gdth_pci_probe_one()
4988 shp->irq = ha->irq; in gdth_pci_probe_one()
4989 shp->dma_channel = 0xff; in gdth_pci_probe_one()
4992 ha->shost = shp; in gdth_pci_probe_one()
5048 shp->max_cmd_len = 16; in gdth_pci_probe_one()
5058 shp->max_id = ha->tid_cnt; in gdth_pci_probe_one()
5059 shp->max_lun = MAXLUN; in gdth_pci_probe_one()
5060 shp->max_channel = ha->bus_cnt; in gdth_pci_probe_one()
5065 error = scsi_add_host(shp, &pdev->dev); in gdth_pci_probe_one()
5073 scsi_scan_host(shp); in gdth_pci_probe_one()
5094 scsi_host_put(shp); in gdth_pci_probe_one()
5101 struct Scsi_Host *shp = ha->shost; in gdth_remove_one() local
5105 scsi_remove_host(shp); in gdth_remove_one()
5114 if (shp->irq) in gdth_remove_one()
5115 free_irq(shp->irq,ha); in gdth_remove_one()
5118 if (shp->dma_channel != 0xff) in gdth_remove_one()
5119 free_dma(shp->dma_channel); in gdth_remove_one()
5136 scsi_host_put(shp); in gdth_remove_one()