Lines Matching refs:host
188 static struct fc_host_statistics *fnic_get_stats(struct Scsi_Host *host) in fnic_get_stats() argument
191 struct fc_lport *lp = shost_priv(host); in fnic_get_stats()
206 FNIC_MAIN_DBG(KERN_DEBUG, fnic->lport->host, in fnic_get_stats()
231 void fnic_dump_fchost_stats(struct Scsi_Host *host, in fnic_dump_fchost_stats() argument
234 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
237 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
240 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
243 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
246 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
249 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
252 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
255 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
258 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
261 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
264 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
267 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
270 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
273 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
276 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
279 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
282 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
285 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
288 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
291 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats()
301 static void fnic_reset_host_stats(struct Scsi_Host *host) in fnic_reset_host_stats() argument
304 struct fc_lport *lp = shost_priv(host); in fnic_reset_host_stats()
310 stats = fnic_get_stats(host); in fnic_reset_host_stats()
311 fnic_dump_fchost_stats(host, stats); in fnic_reset_host_stats()
318 FNIC_MAIN_DBG(KERN_DEBUG, fnic->lport->host, in fnic_reset_host_stats()
337 shost_printk(KERN_ERR, fnic->lport->host, in fnic_log_q_error()
345 shost_printk(KERN_ERR, fnic->lport->host, in fnic_log_q_error()
353 shost_printk(KERN_ERR, fnic->lport->host, in fnic_log_q_error()
389 shost_printk(KERN_ERR, fnic->lport->host, in fnic_notify_set()
544 struct Scsi_Host *host; in fnic_probe() local
562 host = lp->host; in fnic_probe()
568 host->host_no); in fnic_probe()
570 host->transportt = fnic_fc_transport; in fnic_probe()
574 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
586 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
593 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
608 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
615 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
623 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
632 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
643 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
652 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
662 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
669 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
676 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
686 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
694 host->can_queue = min_t(u32, FNIC_MAX_IO_REQ, in fnic_probe()
698 fnic->fnic_max_tag_id = host->can_queue; in fnic_probe()
700 err = scsi_init_shared_tag_map(host, fnic->fnic_max_tag_id); in fnic_probe()
702 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
707 host->max_lun = fnic->config.luns_per_tgt; in fnic_probe()
708 host->max_id = FNIC_MAX_FCP_TARGET; in fnic_probe()
709 host->max_cmd_len = FCOE_MAX_CMD_LEN; in fnic_probe()
715 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
723 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
769 shost_printk(KERN_INFO, fnic->lport->host, in fnic_probe()
786 shost_printk(KERN_INFO, fnic->lport->host, in fnic_probe()
802 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
816 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
827 err = scsi_add_host(lp->host, &pdev->dev); in fnic_probe()
829 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
870 fc_host_maxframe_size(lp->host) = lp->mfs; in fnic_probe()
871 fc_host_dev_loss_tmo(lp->host) = fnic->config.port_down_timeout / 1000; in fnic_probe()
873 sprintf(fc_host_symbolic_name(lp->host), in fnic_probe()
899 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe()
914 fc_remove_host(lp->host); in fnic_probe()
915 scsi_remove_host(lp->host); in fnic_probe()
942 scsi_host_put(lp->host); in fnic_probe()
1010 fc_remove_host(fnic->lport->host); in fnic_remove()
1011 scsi_remove_host(fnic->lport->host); in fnic_remove()
1022 scsi_host_put(lp->host); in fnic_remove()