Lines Matching defs:shost

32 static inline int myrb_logical_channel(struct Scsi_Host *shost)
34 return shost->max_channel - 1;
391 struct Scsi_Host *shost = cb->host;
403 sdev = scsi_device_lookup(shost, myrb_logical_channel(shost),
408 shost_printk(KERN_INFO, shost,
411 scsi_add_device(shost, myrb_logical_channel(shost),
417 shost_printk(KERN_INFO, shost,
917 struct Scsi_Host *shost = cb->host;
1096 shost->max_channel = pchan_cur;
1097 shost->max_id = enquiry2->max_targets;
1108 shost->can_queue = cb->enquiry->max_tcq;
1109 if (shost->can_queue < 3)
1110 shost->can_queue = enquiry2->max_cmds;
1111 if (shost->can_queue < 3)
1113 shost->can_queue = 1;
1115 if (shost->can_queue > MYRB_CMD_MBOX_COUNT - 2)
1116 shost->can_queue = MYRB_CMD_MBOX_COUNT - 2;
1117 shost->max_sectors = enquiry2->max_sectors;
1118 shost->sg_tablesize = enquiry2->max_sge;
1119 if (shost->sg_tablesize > MYRB_SCATTER_GATHER_LIMIT)
1120 shost->sg_tablesize = MYRB_SCATTER_GATHER_LIMIT;
1257 struct Scsi_Host *shost = scmd->device->host;
1258 struct myrb_hba *cb = shost_priv(shost);
1264 static int myrb_pthru_queuecommand(struct Scsi_Host *shost,
1268 struct myrb_hba *cb = shost_priv(shost);
1420 static int myrb_ldev_queuecommand(struct Scsi_Host *shost,
1423 struct myrb_hba *cb = shost_priv(shost);
1437 dev_dbg(&shost->shost_gendev, "ldev %u in state %x, skip\n",
1607 static int myrb_queuecommand(struct Scsi_Host *shost,
1612 if (sdev->channel > myrb_logical_channel(shost)) {
1617 if (sdev->channel == myrb_logical_channel(shost))
1618 return myrb_ldev_queuecommand(shost, scmd);
1620 return myrb_pthru_queuecommand(shost, scmd);
2140 struct Scsi_Host *shost = class_to_shost(dev);
2141 struct myrb_hba *cb = shost_priv(shost);
2150 struct Scsi_Host *shost = class_to_shost(dev);
2151 struct myrb_hba *cb = shost_priv(shost);
2160 struct Scsi_Host *shost = class_to_shost(dev);
2161 struct myrb_hba *cb = shost_priv(shost);
2170 struct Scsi_Host *shost = class_to_shost(dev);
2171 struct myrb_hba *cb = shost_priv(shost);
2176 shost_printk(KERN_INFO, shost,
2180 shost_printk(KERN_INFO, shost,
2387 struct Scsi_Host *shost = cb->host;
2390 dev_dbg(&shost->shost_gendev, "monitor tick\n");
2395 dev_dbg(&shost->shost_gendev,
2403 dev_dbg(&shost->shost_gendev, "get error table\n");
2408 dev_dbg(&shost->shost_gendev,
2414 dev_dbg(&shost->shost_gendev,
2420 dev_dbg(&shost->shost_gendev,
2426 dev_dbg(&shost->shost_gendev,
2432 dev_dbg(&shost->shost_gendev, "get background init status\n");
2436 dev_dbg(&shost->shost_gendev, "new enquiry\n");
2444 dev_dbg(&shost->shost_gendev,
3403 struct Scsi_Host *shost;
3406 shost = scsi_host_alloc(&myrb_template, sizeof(struct myrb_hba));
3407 if (!shost) {
3411 shost->max_cmd_len = 12;
3412 shost->max_lun = 256;
3413 cb = shost_priv(shost);
3417 cb->host = shost;
3421 scsi_host_put(shost);