Lines Matching refs:host
187 static struct fc_host_statistics *fnic_get_stats(struct Scsi_Host *host) in fnic_get_stats() argument
190 struct fc_lport *lp = shost_priv(host); in fnic_get_stats()
205 FNIC_MAIN_DBG(KERN_DEBUG, fnic->lport->host, in fnic_get_stats()
230 void fnic_dump_fchost_stats(struct Scsi_Host *host, in fnic_dump_fchost_stats() argument
233 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
236 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
239 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
242 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
245 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
248 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
251 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
254 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
257 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
260 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
263 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
266 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
269 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
272 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
275 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
278 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
281 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
284 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
287 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
290 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
300 static void fnic_reset_host_stats(struct Scsi_Host *host) in fnic_reset_host_stats() argument
303 struct fc_lport *lp = shost_priv(host); in fnic_reset_host_stats()
309 stats = fnic_get_stats(host); in fnic_reset_host_stats()
310 fnic_dump_fchost_stats(host, stats); in fnic_reset_host_stats()
317 FNIC_MAIN_DBG(KERN_DEBUG, fnic->lport->host, in fnic_reset_host_stats()
336 shost_printk(KERN_ERR, fnic->lport->host, in fnic_log_q_error()
344 shost_printk(KERN_ERR, fnic->lport->host, in fnic_log_q_error()
352 shost_printk(KERN_ERR, fnic->lport->host, in fnic_log_q_error()
388 shost_printk(KERN_ERR, fnic->lport->host, in fnic_notify_set()
543 struct Scsi_Host *host; in fnic_probe() local
561 host = lp->host; in fnic_probe()
567 host->host_no); in fnic_probe()
569 host->transportt = fnic_fc_transport; in fnic_probe()
573 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
585 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
592 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
607 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
614 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
622 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
631 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
642 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
651 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
661 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
668 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
675 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
685 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
693 host->can_queue = min_t(u32, FNIC_MAX_IO_REQ, in fnic_probe()
697 fnic->fnic_max_tag_id = host->can_queue; in fnic_probe()
699 host->max_lun = fnic->config.luns_per_tgt; in fnic_probe()
700 host->max_id = FNIC_MAX_FCP_TARGET; in fnic_probe()
701 host->max_cmd_len = FCOE_MAX_CMD_LEN; in fnic_probe()
707 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
715 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
761 shost_printk(KERN_INFO, fnic->lport->host, in fnic_probe()
778 shost_printk(KERN_INFO, fnic->lport->host, in fnic_probe()
794 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
808 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
819 err = scsi_add_host(lp->host, &pdev->dev); in fnic_probe()
821 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
862 fc_host_maxframe_size(lp->host) = lp->mfs; in fnic_probe()
863 fc_host_dev_loss_tmo(lp->host) = fnic->config.port_down_timeout / 1000; in fnic_probe()
865 sprintf(fc_host_symbolic_name(lp->host), in fnic_probe()
891 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
906 fc_remove_host(lp->host); in fnic_probe()
907 scsi_remove_host(lp->host); in fnic_probe()
934 scsi_host_put(lp->host); in fnic_probe()
1002 fc_remove_host(fnic->lport->host); in fnic_remove()
1003 scsi_remove_host(fnic->lport->host); in fnic_remove()
1014 scsi_host_put(lp->host); in fnic_remove()