Lines Matching refs:shost

62 	struct Scsi_Host *shost		= csio_ln_to_shost(ln);  in csio_reg_rnode()  local
78 rn->rport = fc_remote_port_add(shost, 0, &ids); in csio_reg_rnode()
87 spin_lock_irq(shost->host_lock); in csio_reg_rnode()
89 spin_unlock_irq(shost->host_lock); in csio_reg_rnode()
184 struct Scsi_Host *shost = csio_ln_to_shost(ln); in csio_fchost_attr_init() local
186 fc_host_node_name(shost) = wwn_to_u64(csio_ln_wwnn(ln)); in csio_fchost_attr_init()
187 fc_host_port_name(shost) = wwn_to_u64(csio_ln_wwpn(ln)); in csio_fchost_attr_init()
189 fc_host_supported_classes(shost) = FC_COS_CLASS3; in csio_fchost_attr_init()
190 fc_host_max_npiv_vports(shost) = in csio_fchost_attr_init()
192 fc_host_supported_speeds(shost) = FC_PORTSPEED_10GBIT | in csio_fchost_attr_init()
195 fc_host_maxframe_size(shost) = ntohs(ln->ln_sparm.csp.sp_bb_data); in csio_fchost_attr_init()
196 memset(fc_host_supported_fc4s(shost), 0, in csio_fchost_attr_init()
197 sizeof(fc_host_supported_fc4s(shost))); in csio_fchost_attr_init()
198 fc_host_supported_fc4s(shost)[7] = 1; in csio_fchost_attr_init() local
200 memset(fc_host_active_fc4s(shost), 0, in csio_fchost_attr_init()
201 sizeof(fc_host_active_fc4s(shost))); in csio_fchost_attr_init()
202 fc_host_active_fc4s(shost)[7] = 1; in csio_fchost_attr_init() local
210 csio_get_host_port_id(struct Scsi_Host *shost) in csio_get_host_port_id() argument
212 struct csio_lnode *ln = shost_priv(shost); in csio_get_host_port_id()
216 fc_host_port_id(shost) = ln->nport_id; in csio_get_host_port_id()
226 csio_get_host_port_type(struct Scsi_Host *shost) in csio_get_host_port_type() argument
228 struct csio_lnode *ln = shost_priv(shost); in csio_get_host_port_type()
233 fc_host_port_type(shost) = FC_PORTTYPE_NPIV; in csio_get_host_port_type()
235 fc_host_port_type(shost) = FC_PORTTYPE_NPORT; in csio_get_host_port_type()
245 csio_get_host_port_state(struct Scsi_Host *shost) in csio_get_host_port_state() argument
247 struct csio_lnode *ln = shost_priv(shost); in csio_get_host_port_state()
255 fc_host_port_state(shost) = FC_PORTSTATE_ONLINE; in csio_get_host_port_state()
257 fc_host_port_state(shost) = FC_PORTSTATE_LINKDOWN; in csio_get_host_port_state()
259 fc_host_port_state(shost) = FC_PORTSTATE_UNKNOWN; in csio_get_host_port_state()
270 csio_get_host_speed(struct Scsi_Host *shost) in csio_get_host_speed() argument
272 struct csio_lnode *ln = shost_priv(shost); in csio_get_host_speed()
278 fc_host_speed(shost) = FC_PORTSPEED_1GBIT; in csio_get_host_speed()
281 fc_host_speed(shost) = FC_PORTSPEED_10GBIT; in csio_get_host_speed()
284 fc_host_speed(shost) = FC_PORTSPEED_25GBIT; in csio_get_host_speed()
287 fc_host_speed(shost) = FC_PORTSPEED_40GBIT; in csio_get_host_speed()
290 fc_host_speed(shost) = FC_PORTSPEED_50GBIT; in csio_get_host_speed()
293 fc_host_speed(shost) = FC_PORTSPEED_100GBIT; in csio_get_host_speed()
296 fc_host_speed(shost) = FC_PORTSPEED_UNKNOWN; in csio_get_host_speed()
308 csio_get_host_fabric_name(struct Scsi_Host *shost) in csio_get_host_fabric_name() argument
310 struct csio_lnode *ln = shost_priv(shost); in csio_get_host_fabric_name()
317 fc_host_fabric_name(shost) = wwn_to_u64(csio_rn_wwnn(rn)); in csio_get_host_fabric_name()
319 fc_host_fabric_name(shost) = 0; in csio_get_host_fabric_name()
329 csio_get_stats(struct Scsi_Host *shost) in csio_get_stats() argument
331 struct csio_lnode *ln = shost_priv(shost); in csio_get_stats()
554 struct Scsi_Host *shost = fc_vport->shost; in csio_vport_create() local
555 struct csio_lnode *pln = shost_priv(shost); in csio_vport_create()
617 struct Scsi_Host *shost = csio_ln_to_shost(ln); in csio_vport_delete() local
631 scsi_block_requests(shost); in csio_vport_delete()
636 scsi_unblock_requests(shost); in csio_vport_delete()
650 struct Scsi_Host *shost = csio_ln_to_shost(ln); in csio_vport_disable() local
656 scsi_block_requests(shost); in csio_vport_disable()
661 scsi_unblock_requests(shost); in csio_vport_disable()