Lines Matching defs:shost

32 static inline int myrb_logical_channel(struct Scsi_Host *shost)
34 return shost->max_channel - 1;
392 struct Scsi_Host *shost = cb->host;
404 sdev = scsi_device_lookup(shost, myrb_logical_channel(shost),
409 shost_printk(KERN_INFO, shost,
412 scsi_add_device(shost, myrb_logical_channel(shost),
418 shost_printk(KERN_INFO, shost,
919 struct Scsi_Host *shost = cb->host;
1098 shost->max_channel = pchan_cur;
1099 shost->max_id = enquiry2->max_targets;
1110 shost->can_queue = cb->enquiry->max_tcq;
1111 if (shost->can_queue < 3)
1112 shost->can_queue = enquiry2->max_cmds;
1113 if (shost->can_queue < 3)
1115 shost->can_queue = 1;
1117 if (shost->can_queue > MYRB_CMD_MBOX_COUNT - 2)
1118 shost->can_queue = MYRB_CMD_MBOX_COUNT - 2;
1119 shost->max_sectors = enquiry2->max_sectors;
1120 shost->sg_tablesize = enquiry2->max_sge;
1121 if (shost->sg_tablesize > MYRB_SCATTER_GATHER_LIMIT)
1122 shost->sg_tablesize = MYRB_SCATTER_GATHER_LIMIT;
1259 struct Scsi_Host *shost = scmd->device->host;
1260 struct myrb_hba *cb = shost_priv(shost);
1266 static int myrb_pthru_queuecommand(struct Scsi_Host *shost,
1269 struct myrb_hba *cb = shost_priv(shost);
1422 static int myrb_ldev_queuecommand(struct Scsi_Host *shost,
1425 struct myrb_hba *cb = shost_priv(shost);
1439 dev_dbg(&shost->shost_gendev, "ldev %u in state %x, skip\n",
1635 static int myrb_queuecommand(struct Scsi_Host *shost,
1640 if (sdev->channel > myrb_logical_channel(shost)) {
1645 if (sdev->channel == myrb_logical_channel(shost))
1646 return myrb_ldev_queuecommand(shost, scmd);
1648 return myrb_pthru_queuecommand(shost, scmd);
2168 struct Scsi_Host *shost = class_to_shost(dev);
2169 struct myrb_hba *cb = shost_priv(shost);
2178 struct Scsi_Host *shost = class_to_shost(dev);
2179 struct myrb_hba *cb = shost_priv(shost);
2188 struct Scsi_Host *shost = class_to_shost(dev);
2189 struct myrb_hba *cb = shost_priv(shost);
2198 struct Scsi_Host *shost = class_to_shost(dev);
2199 struct myrb_hba *cb = shost_priv(shost);
2204 shost_printk(KERN_INFO, shost,
2208 shost_printk(KERN_INFO, shost,
2418 struct Scsi_Host *shost = cb->host;
2421 dev_dbg(&shost->shost_gendev, "monitor tick\n");
2426 dev_dbg(&shost->shost_gendev,
2434 dev_dbg(&shost->shost_gendev, "get error table\n");
2439 dev_dbg(&shost->shost_gendev,
2445 dev_dbg(&shost->shost_gendev,
2451 dev_dbg(&shost->shost_gendev,
2457 dev_dbg(&shost->shost_gendev,
2463 dev_dbg(&shost->shost_gendev, "get background init status\n");
2467 dev_dbg(&shost->shost_gendev, "new enquiry\n");
2475 dev_dbg(&shost->shost_gendev,
3505 struct Scsi_Host *shost;
3508 shost = scsi_host_alloc(&myrb_template, sizeof(struct myrb_hba));
3509 if (!shost) {
3513 shost->max_cmd_len = 12;
3514 shost->max_lun = 256;
3515 cb = shost_priv(shost);
3519 cb->host = shost;
3523 scsi_host_put(shost);