Lines Matching defs:shost

331 			iscsi_host_remove(chba->shost, false);
333 iscsi_host_free(chba->shost);
344 struct Scsi_Host *shost;
350 shost = iscsi_host_alloc(sht, sizeof(*chba), 1);
351 if (!shost) {
358 shost->transportt = stt;
359 shost->max_lun = max_lun;
360 shost->max_id = max_conns - 1;
361 shost->max_channel = 0;
362 shost->max_cmd_len = SCSI_MAX_VARLEN_CDB_SIZE;
364 chba = iscsi_host_priv(shost);
367 chba->shost = shost;
369 shost->can_queue = sht->can_queue - ISCSI_MGMT_CMDS_MAX;
376 err = iscsi_host_add(shost, &cdev->pdev->dev);
381 scsi_host_put(shost);
2732 struct Scsi_Host *shost;
2743 shost = chba->shost;
2745 BUG_ON(chba != iscsi_host_priv(shost));
2747 cls_session = iscsi_session_setup(chba->cdev->itp, shost,
2779 int cxgbi_set_host_param(struct Scsi_Host *shost, enum iscsi_host_param param,
2782 struct cxgbi_hba *chba = iscsi_host_priv(shost);
2785 shost_printk(KERN_ERR, shost, "Could not get host param. "
2791 "shost 0x%p, hba 0x%p,%s, param %d, buf(%d) %s.\n",
2792 shost, chba, chba->ndev->name, param, buflen, buf);
2807 return iscsi_host_set_param(shost, param, buf, buflen);
2812 int cxgbi_get_host_param(struct Scsi_Host *shost, enum iscsi_host_param param,
2815 struct cxgbi_hba *chba = iscsi_host_priv(shost);
2819 shost_printk(KERN_ERR, shost, "Could not get host param. "
2825 "shost 0x%p, hba 0x%p,%s, param %d.\n",
2826 shost, chba, chba->ndev->name, param);
2848 return iscsi_host_get_param(shost, param, buf);
2855 struct iscsi_endpoint *cxgbi_ep_connect(struct Scsi_Host *shost,
2867 "shost 0x%p, non_blocking %d, dst_addr 0x%p.\n",
2868 shost, non_blocking, dst_addr);
2870 if (shost) {
2871 hba = iscsi_host_priv(shost);
2873 pr_info("shost 0x%p, priv NULL.\n", shost);
2908 shost->host_no, hba,