Lines Matching refs:shost

24 	struct Scsi_Host *shost;  in bfad_im_get_starget_port_id()  local
31 shost = dev_to_shost(starget->dev.parent); in bfad_im_get_starget_port_id()
32 im_port = (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_starget_port_id()
50 struct Scsi_Host *shost; in bfad_im_get_starget_node_name() local
57 shost = dev_to_shost(starget->dev.parent); in bfad_im_get_starget_node_name()
58 im_port = (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_starget_node_name()
76 struct Scsi_Host *shost; in bfad_im_get_starget_port_name() local
83 shost = dev_to_shost(starget->dev.parent); in bfad_im_get_starget_port_name()
84 im_port = (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_starget_port_name()
100 bfad_im_get_host_port_id(struct Scsi_Host *shost) in bfad_im_get_host_port_id() argument
103 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_host_port_id()
106 fc_host_port_id(shost) = in bfad_im_get_host_port_id()
114 bfad_im_get_host_port_type(struct Scsi_Host *shost) in bfad_im_get_host_port_type() argument
117 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_host_port_type()
125 fc_host_port_type(shost) = FC_PORTTYPE_NPORT; in bfad_im_get_host_port_type()
128 fc_host_port_type(shost) = FC_PORTTYPE_NLPORT; in bfad_im_get_host_port_type()
131 fc_host_port_type(shost) = FC_PORTTYPE_PTP; in bfad_im_get_host_port_type()
134 fc_host_port_type(shost) = FC_PORTTYPE_LPORT; in bfad_im_get_host_port_type()
137 fc_host_port_type(shost) = FC_PORTTYPE_UNKNOWN; in bfad_im_get_host_port_type()
146 bfad_im_get_host_port_state(struct Scsi_Host *shost) in bfad_im_get_host_port_state() argument
149 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_host_port_state()
157 fc_host_port_state(shost) = FC_PORTSTATE_LINKDOWN; in bfad_im_get_host_port_state()
160 fc_host_port_state(shost) = FC_PORTSTATE_ONLINE; in bfad_im_get_host_port_state()
166 fc_host_port_state(shost) = FC_PORTSTATE_OFFLINE; in bfad_im_get_host_port_state()
174 fc_host_port_state(shost) = FC_PORTSTATE_UNKNOWN; in bfad_im_get_host_port_state()
183 bfad_im_get_host_active_fc4s(struct Scsi_Host *shost) in bfad_im_get_host_active_fc4s() argument
186 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_host_active_fc4s()
189 memset(fc_host_active_fc4s(shost), 0, in bfad_im_get_host_active_fc4s()
190 sizeof(fc_host_active_fc4s(shost))); in bfad_im_get_host_active_fc4s()
193 fc_host_active_fc4s(shost)[2] = 1; in bfad_im_get_host_active_fc4s() local
195 fc_host_active_fc4s(shost)[7] = 1; in bfad_im_get_host_active_fc4s() local
202 bfad_im_get_host_speed(struct Scsi_Host *shost) in bfad_im_get_host_speed() argument
205 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_host_speed()
212 fc_host_speed(shost) = FC_PORTSPEED_10GBIT; in bfad_im_get_host_speed()
215 fc_host_speed(shost) = FC_PORTSPEED_16GBIT; in bfad_im_get_host_speed()
218 fc_host_speed(shost) = FC_PORTSPEED_8GBIT; in bfad_im_get_host_speed()
221 fc_host_speed(shost) = FC_PORTSPEED_4GBIT; in bfad_im_get_host_speed()
224 fc_host_speed(shost) = FC_PORTSPEED_2GBIT; in bfad_im_get_host_speed()
227 fc_host_speed(shost) = FC_PORTSPEED_1GBIT; in bfad_im_get_host_speed()
230 fc_host_speed(shost) = FC_PORTSPEED_UNKNOWN; in bfad_im_get_host_speed()
239 bfad_im_get_host_fabric_name(struct Scsi_Host *shost) in bfad_im_get_host_fabric_name() argument
242 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_host_fabric_name()
248 fc_host_fabric_name(shost) = cpu_to_be64(fabric_nwwn); in bfad_im_get_host_fabric_name()
256 bfad_im_get_stats(struct Scsi_Host *shost) in bfad_im_get_stats() argument
259 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_stats()
309 bfad_im_reset_stats(struct Scsi_Host *shost) in bfad_im_reset_stats() argument
312 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_reset_stats()
355 struct Scsi_Host *shost = fc_vport->shost; in bfad_im_vport_create() local
357 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_vport_create()
404 vshost = vport->drv_port.im_port->shost; in bfad_im_vport_create()
441 bfad_im_issue_fc_host_lip(struct Scsi_Host *shost) in bfad_im_issue_fc_host_lip() argument
444 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_issue_fc_host_lip()
498 vshost = vport->drv_port.im_port->shost; in bfad_im_vport_delete()
544 vshost = vport->drv_port.im_port->shost; in bfad_im_vport_disable()
572 struct Scsi_Host *vshost = vport->drv_port.im_port->shost; in bfad_im_vport_set_symbolic_name()
707 struct Scsi_Host *shost = class_to_shost(dev); in bfad_im_serial_num_show() local
709 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_serial_num_show()
721 struct Scsi_Host *shost = class_to_shost(dev); in bfad_im_model_show() local
723 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_model_show()
735 struct Scsi_Host *shost = class_to_shost(dev); in bfad_im_model_desc_show() local
737 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_model_desc_show()
815 struct Scsi_Host *shost = class_to_shost(dev); in bfad_im_node_name_show() local
817 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_node_name_show()
829 struct Scsi_Host *shost = class_to_shost(dev); in bfad_im_symbolic_name_show() local
831 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_symbolic_name_show()
846 struct Scsi_Host *shost = class_to_shost(dev); in bfad_im_hw_version_show() local
848 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_hw_version_show()
867 struct Scsi_Host *shost = class_to_shost(dev); in bfad_im_optionrom_version_show() local
869 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_optionrom_version_show()
881 struct Scsi_Host *shost = class_to_shost(dev); in bfad_im_fw_version_show() local
883 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_fw_version_show()
895 struct Scsi_Host *shost = class_to_shost(dev); in bfad_im_num_of_ports_show() local
897 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_num_of_ports_show()
915 struct Scsi_Host *shost = class_to_shost(dev); in bfad_im_num_of_discovered_ports_show() local
917 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_num_of_discovered_ports_show()