• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/cxgb3i/

Lines Matching refs:shost

214 	struct Scsi_Host *shost;
217 shost = iscsi_host_alloc(&cxgb3i_host_template,
219 if (!shost) {
225 shost->transportt = cxgb3i_scsi_transport;
226 shost->max_lun = CXGB3I_MAX_LUN;
227 shost->max_id = CXGB3I_MAX_TARGET;
228 shost->max_channel = 0;
229 shost->max_cmd_len = 16;
231 hba = iscsi_host_priv(shost);
234 hba->shost = shost;
237 err = iscsi_host_add(shost, &snic->pdev->dev);
244 cxgb3i_api_debug("shost 0x%p, hba 0x%p, no %u.\n",
245 shost, hba, shost->host_no);
251 scsi_host_put(shost);
261 cxgb3i_api_debug("shost 0x%p, hba 0x%p, no %u.\n",
262 hba->shost, hba, hba->shost->host_no);
263 iscsi_host_remove(hba->shost);
265 iscsi_host_free(hba->shost);
270 * @shost: scsi host to use
276 static struct iscsi_endpoint *cxgb3i_ep_connect(struct Scsi_Host *shost,
286 if (shost)
287 hba = iscsi_host_priv(shost);
289 cxgb3i_api_debug("shost 0x%p, hba 0x%p.\n", shost, hba);
312 if (shost && hba != iscsi_host_priv(shost)) {
315 shost->host_no);
410 struct Scsi_Host *shost;
421 shost = hba->shost;
423 BUG_ON(hba != iscsi_host_priv(shost));
425 cls_session = iscsi_session_setup(&cxgb3i_iscsi_transport, shost,
702 * @shost: scsi host pointer
706 static int cxgb3i_host_set_param(struct Scsi_Host *shost,
710 struct cxgb3i_hba *hba = iscsi_host_priv(shost);
713 shost_printk(KERN_ERR, shost, "Could not set host param. "
732 return iscsi_host_set_param(shost, param, buf, buflen);
738 * @shost: scsi host pointer
742 static int cxgb3i_host_get_param(struct Scsi_Host *shost,
745 struct cxgb3i_hba *hba = iscsi_host_priv(shost);
749 shost_printk(KERN_ERR, shost, "Could not set host param. "
772 return iscsi_host_get_param(shost, param, buf);