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