Lines Matching refs:host
300 struct Scsi_Host *host; member
427 dst->max_sg_count = cpu_to_le16(hba->host->sg_tablesize); in stex_map_sg()
459 dst->max_sg_count = cpu_to_le16(hba->host->sg_tablesize); in stex_ss_map_sg()
560 struct Scsi_Host *host; in stex_queuecommand_lck() local
565 host = cmd->device->host; in stex_queuecommand_lck()
568 hba = (struct st_hba *) &host->hostdata[0]; in stex_queuecommand_lck()
596 if (hba->cardtype == st_shasta || id == host->max_id - 1) { in stex_queuecommand_lck()
602 if (id == host->max_id - 1) { in stex_queuecommand_lck()
609 if (lun >= host->max_lun) { in stex_queuecommand_lck()
614 if (id != host->max_id - 1) in stex_queuecommand_lck()
635 ver.console_id = host->max_id - 1; in stex_queuecommand_lck()
636 ver.host_no = hba->host->host_no; in stex_queuecommand_lck()
652 if (unlikely(tag >= host->can_queue)) in stex_queuecommand_lck()
788 if (unlikely(tag >= hba->host->can_queue)) { in stex_mu_intr()
845 spin_lock_irqsave(hba->host->host_lock, flags); in stex_intr()
854 spin_unlock_irqrestore(hba->host->host_lock, flags); in stex_intr()
861 spin_unlock_irqrestore(hba->host->host_lock, flags); in stex_intr()
893 if (unlikely(tag >= hba->host->can_queue)) { in stex_ss_mu_intr()
946 spin_lock_irqsave(hba->host->host_lock, flags); in stex_ss_intr()
953 spin_unlock_irqrestore(hba->host->host_lock, flags); in stex_ss_intr()
959 spin_unlock_irqrestore(hba->host->host_lock, flags); in stex_ss_intr()
993 if (hba->host->can_queue > data) { in stex_common_handshake()
994 hba->host->can_queue = data; in stex_common_handshake()
995 hba->host->cmd_per_lun = data; in stex_common_handshake()
1120 spin_lock_irqsave(hba->host->host_lock, flags); in stex_handshake()
1133 spin_unlock_irqrestore(hba->host->host_lock, flags); in stex_handshake()
1139 struct Scsi_Host *host = cmd->device->host; in stex_abort() local
1140 struct st_hba *hba = (struct st_hba *)host->hostdata; in stex_abort()
1150 spin_lock_irqsave(host->host_lock, flags); in stex_abort()
1151 if (tag < host->can_queue && in stex_abort()
1186 spin_unlock_irqrestore(host->host_lock, flags); in stex_abort()
1249 spin_lock_irqsave(hba->host->host_lock, flags); in stex_yos_reset()
1255 spin_unlock_irqrestore(hba->host->host_lock, flags); in stex_yos_reset()
1274 spin_lock_irqsave(hba->host->host_lock, flags); in stex_do_reset()
1276 spin_unlock_irqrestore(hba->host->host_lock, flags); in stex_do_reset()
1282 spin_unlock_irqrestore(hba->host->host_lock, flags); in stex_do_reset()
1286 spin_lock_irqsave(hba->host->host_lock, flags); in stex_do_reset()
1291 spin_unlock_irqrestore(hba->host->host_lock, flags); in stex_do_reset()
1296 spin_unlock_irqrestore(hba->host->host_lock, flags); in stex_do_reset()
1306 spin_lock_irqsave(hba->host->host_lock, flags); in stex_do_reset()
1307 for (tag = 0; tag < hba->host->can_queue; tag++) { in stex_do_reset()
1319 spin_unlock_irqrestore(hba->host->host_lock, flags); in stex_do_reset()
1333 hba = (struct st_hba *) &cmd->device->host->hostdata[0]; in stex_reset()
1335 shost_printk(KERN_INFO, cmd->device->host, in stex_reset()
1524 struct Scsi_Host *host; in stex_probe() local
1535 host = scsi_host_alloc(&driver_template, sizeof(struct st_hba)); in stex_probe()
1537 if (!host) { in stex_probe()
1544 hba = (struct st_hba *)host->hostdata; in stex_probe()
1625 host->sg_tablesize = 38; in stex_probe()
1627 host->sg_tablesize = 32; in stex_probe()
1628 host->can_queue = ci->rq_count; in stex_probe()
1629 host->cmd_per_lun = ci->rq_count; in stex_probe()
1630 host->max_id = ci->max_id; in stex_probe()
1631 host->max_lun = ci->max_lun; in stex_probe()
1632 host->max_channel = ci->max_channel; in stex_probe()
1633 host->unique_id = host->host_no; in stex_probe()
1634 host->max_cmd_len = STEX_CDB_LENGTH; in stex_probe()
1636 hba->host = host; in stex_probe()
1641 "stex_wq_%d", host->host_no); in stex_probe()
1662 err = scsi_init_shared_tag_map(host, host->can_queue); in stex_probe()
1671 err = scsi_add_host(host, &pdev->dev); in stex_probe()
1678 scsi_scan_host(host); in stex_probe()
1696 scsi_host_put(host); in stex_probe()
1711 spin_lock_irqsave(hba->host->host_lock, flags); in stex_hba_stop()
1737 spin_unlock_irqrestore(hba->host->host_lock, flags); in stex_hba_stop()
1769 scsi_remove_host(hba->host); in stex_remove()
1775 scsi_host_put(hba->host); in stex_remove()