Lines Matching defs:host
205 static struct fc_host_statistics *fnic_get_stats(struct Scsi_Host *host)
208 struct fc_lport *lp = shost_priv(host);
223 FNIC_MAIN_DBG(KERN_DEBUG, fnic->lport->host,
248 void fnic_dump_fchost_stats(struct Scsi_Host *host,
251 FNIC_MAIN_NOTE(KERN_NOTICE, host,
254 FNIC_MAIN_NOTE(KERN_NOTICE, host,
257 FNIC_MAIN_NOTE(KERN_NOTICE, host,
260 FNIC_MAIN_NOTE(KERN_NOTICE, host,
263 FNIC_MAIN_NOTE(KERN_NOTICE, host,
266 FNIC_MAIN_NOTE(KERN_NOTICE, host,
269 FNIC_MAIN_NOTE(KERN_NOTICE, host,
272 FNIC_MAIN_NOTE(KERN_NOTICE, host,
275 FNIC_MAIN_NOTE(KERN_NOTICE, host,
278 FNIC_MAIN_NOTE(KERN_NOTICE, host,
281 FNIC_MAIN_NOTE(KERN_NOTICE, host,
284 FNIC_MAIN_NOTE(KERN_NOTICE, host,
287 FNIC_MAIN_NOTE(KERN_NOTICE, host,
290 FNIC_MAIN_NOTE(KERN_NOTICE, host,
293 FNIC_MAIN_NOTE(KERN_NOTICE, host,
296 FNIC_MAIN_NOTE(KERN_NOTICE, host,
299 FNIC_MAIN_NOTE(KERN_NOTICE, host,
302 FNIC_MAIN_NOTE(KERN_NOTICE, host,
305 FNIC_MAIN_NOTE(KERN_NOTICE, host,
308 FNIC_MAIN_NOTE(KERN_NOTICE, host,
315 * fnic_reset_host_stats : clears host stats
318 static void fnic_reset_host_stats(struct Scsi_Host *host)
321 struct fc_lport *lp = shost_priv(host);
327 stats = fnic_get_stats(host);
328 fnic_dump_fchost_stats(host, stats);
335 FNIC_MAIN_DBG(KERN_DEBUG, fnic->lport->host,
354 shost_printk(KERN_ERR, fnic->lport->host,
362 shost_printk(KERN_ERR, fnic->lport->host,
370 shost_printk(KERN_ERR, fnic->lport->host,
406 shost_printk(KERN_ERR, fnic->lport->host,
560 struct Scsi_Host *host;
569 * Allocate SCSI Host and set up association between host,
578 host = lp->host;
584 host->host_no);
586 host->transportt = fnic_fc_transport;
597 shost_printk(KERN_ERR, fnic->lport->host,
604 shost_printk(KERN_ERR, fnic->lport->host,
619 shost_printk(KERN_ERR, fnic->lport->host,
628 shost_printk(KERN_ERR, fnic->lport->host,
639 shost_printk(KERN_ERR, fnic->lport->host,
648 shost_printk(KERN_ERR, fnic->lport->host,
657 shost_printk(KERN_ERR, fnic->lport->host,
666 shost_printk(KERN_ERR, fnic->lport->host,
673 shost_printk(KERN_ERR, fnic->lport->host,
680 shost_printk(KERN_ERR, fnic->lport->host,
690 shost_printk(KERN_ERR, fnic->lport->host,
698 host->can_queue = min_t(u32, FNIC_MAX_IO_REQ,
702 fnic->fnic_max_tag_id = host->can_queue;
704 host->max_lun = fnic->config.luns_per_tgt;
705 host->max_id = FNIC_MAX_FCP_TARGET;
706 host->max_cmd_len = FCOE_MAX_CMD_LEN;
712 shost_printk(KERN_ERR, fnic->lport->host,
720 shost_printk(KERN_ERR, fnic->lport->host,
767 shost_printk(KERN_INFO, fnic->lport->host,
783 shost_printk(KERN_INFO, fnic->lport->host,
799 shost_printk(KERN_ERR, fnic->lport->host,
813 shost_printk(KERN_ERR, fnic->lport->host,
822 * Add host to SCSI
824 err = scsi_add_host(lp->host, &pdev->dev);
826 shost_printk(KERN_ERR, fnic->lport->host,
867 fc_host_maxframe_size(lp->host) = lp->mfs;
868 fc_host_dev_loss_tmo(lp->host) = fnic->config.port_down_timeout / 1000;
870 sprintf(fc_host_symbolic_name(lp->host),
892 shost_printk(KERN_ERR, fnic->lport->host,
909 fc_remove_host(lp->host);
910 scsi_remove_host(lp->host);
938 scsi_host_put(lp->host);
1006 fc_remove_host(fnic->lport->host);
1007 scsi_remove_host(fnic->lport->host);
1018 scsi_host_put(lp->host);