Lines Matching refs:host
301 struct Scsi_Host *host; member
420 dst->max_sg_count = cpu_to_le16(hba->host->sg_tablesize); in stex_map_sg()
452 dst->max_sg_count = cpu_to_le16(hba->host->sg_tablesize); in stex_ss_map_sg()
553 struct Scsi_Host *host; in stex_queuecommand_lck() local
558 host = cmd->device->host; in stex_queuecommand_lck()
561 hba = (struct st_hba *) &host->hostdata[0]; in stex_queuecommand_lck()
589 if (hba->cardtype == st_shasta || id == host->max_id - 1) { in stex_queuecommand_lck()
595 if (id == host->max_id - 1) { in stex_queuecommand_lck()
602 if (lun >= host->max_lun) { in stex_queuecommand_lck()
607 if (id != host->max_id - 1) in stex_queuecommand_lck()
628 ver.console_id = host->max_id - 1; in stex_queuecommand_lck()
629 ver.host_no = hba->host->host_no; in stex_queuecommand_lck()
645 if (unlikely(tag >= host->can_queue)) in stex_queuecommand_lck()
781 if (unlikely(tag >= hba->host->can_queue)) { in stex_mu_intr()
838 spin_lock_irqsave(hba->host->host_lock, flags); in stex_intr()
847 spin_unlock_irqrestore(hba->host->host_lock, flags); in stex_intr()
854 spin_unlock_irqrestore(hba->host->host_lock, flags); in stex_intr()
886 if (unlikely(tag >= hba->host->can_queue)) { in stex_ss_mu_intr()
939 spin_lock_irqsave(hba->host->host_lock, flags); in stex_ss_intr()
946 spin_unlock_irqrestore(hba->host->host_lock, flags); in stex_ss_intr()
952 spin_unlock_irqrestore(hba->host->host_lock, flags); in stex_ss_intr()
986 if (hba->host->can_queue > data) { in stex_common_handshake()
987 hba->host->can_queue = data; in stex_common_handshake()
988 hba->host->cmd_per_lun = data; in stex_common_handshake()
1113 spin_lock_irqsave(hba->host->host_lock, flags); in stex_handshake()
1126 spin_unlock_irqrestore(hba->host->host_lock, flags); in stex_handshake()
1132 struct Scsi_Host *host = cmd->device->host; in stex_abort() local
1133 struct st_hba *hba = (struct st_hba *)host->hostdata; in stex_abort()
1143 spin_lock_irqsave(host->host_lock, flags); in stex_abort()
1144 if (tag < host->can_queue && in stex_abort()
1179 spin_unlock_irqrestore(host->host_lock, flags); in stex_abort()
1242 spin_lock_irqsave(hba->host->host_lock, flags); in stex_yos_reset()
1248 spin_unlock_irqrestore(hba->host->host_lock, flags); in stex_yos_reset()
1267 spin_lock_irqsave(hba->host->host_lock, flags); in stex_do_reset()
1269 spin_unlock_irqrestore(hba->host->host_lock, flags); in stex_do_reset()
1275 spin_unlock_irqrestore(hba->host->host_lock, flags); in stex_do_reset()
1279 spin_lock_irqsave(hba->host->host_lock, flags); in stex_do_reset()
1284 spin_unlock_irqrestore(hba->host->host_lock, flags); in stex_do_reset()
1289 spin_unlock_irqrestore(hba->host->host_lock, flags); in stex_do_reset()
1299 spin_lock_irqsave(hba->host->host_lock, flags); in stex_do_reset()
1300 for (tag = 0; tag < hba->host->can_queue; tag++) { in stex_do_reset()
1312 spin_unlock_irqrestore(hba->host->host_lock, flags); in stex_do_reset()
1326 hba = (struct st_hba *) &cmd->device->host->hostdata[0]; in stex_reset()
1328 shost_printk(KERN_INFO, cmd->device->host, in stex_reset()
1516 struct Scsi_Host *host; in stex_probe() local
1527 host = scsi_host_alloc(&driver_template, sizeof(struct st_hba)); in stex_probe()
1529 if (!host) { in stex_probe()
1536 hba = (struct st_hba *)host->hostdata; in stex_probe()
1617 host->sg_tablesize = 38; in stex_probe()
1619 host->sg_tablesize = 32; in stex_probe()
1620 host->can_queue = ci->rq_count; in stex_probe()
1621 host->cmd_per_lun = ci->rq_count; in stex_probe()
1622 host->max_id = ci->max_id; in stex_probe()
1623 host->max_lun = ci->max_lun; in stex_probe()
1624 host->max_channel = ci->max_channel; in stex_probe()
1625 host->unique_id = host->host_no; in stex_probe()
1626 host->max_cmd_len = STEX_CDB_LENGTH; in stex_probe()
1628 hba->host = host; in stex_probe()
1633 "stex_wq_%d", host->host_no); in stex_probe()
1656 err = scsi_add_host(host, &pdev->dev); in stex_probe()
1663 scsi_scan_host(host); in stex_probe()
1681 scsi_host_put(host); in stex_probe()
1696 spin_lock_irqsave(hba->host->host_lock, flags); in stex_hba_stop()
1722 spin_unlock_irqrestore(hba->host->host_lock, flags); in stex_hba_stop()
1754 scsi_remove_host(hba->host); in stex_remove()
1760 scsi_host_put(hba->host); in stex_remove()