Lines Matching refs:shost
31 struct Scsi_Host *shost; in bfad_im_get_starget_port_id() local
38 shost = dev_to_shost(starget->dev.parent); in bfad_im_get_starget_port_id()
39 im_port = (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_starget_port_id()
57 struct Scsi_Host *shost; in bfad_im_get_starget_node_name() local
64 shost = dev_to_shost(starget->dev.parent); in bfad_im_get_starget_node_name()
65 im_port = (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_starget_node_name()
83 struct Scsi_Host *shost; in bfad_im_get_starget_port_name() local
90 shost = dev_to_shost(starget->dev.parent); in bfad_im_get_starget_port_name()
91 im_port = (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_starget_port_name()
107 bfad_im_get_host_port_id(struct Scsi_Host *shost) in bfad_im_get_host_port_id() argument
110 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_host_port_id()
113 fc_host_port_id(shost) = in bfad_im_get_host_port_id()
121 bfad_im_get_host_port_type(struct Scsi_Host *shost) in bfad_im_get_host_port_type() argument
124 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_host_port_type()
132 fc_host_port_type(shost) = FC_PORTTYPE_NPORT; in bfad_im_get_host_port_type()
135 fc_host_port_type(shost) = FC_PORTTYPE_NLPORT; in bfad_im_get_host_port_type()
138 fc_host_port_type(shost) = FC_PORTTYPE_PTP; in bfad_im_get_host_port_type()
141 fc_host_port_type(shost) = FC_PORTTYPE_LPORT; in bfad_im_get_host_port_type()
144 fc_host_port_type(shost) = FC_PORTTYPE_UNKNOWN; in bfad_im_get_host_port_type()
153 bfad_im_get_host_port_state(struct Scsi_Host *shost) in bfad_im_get_host_port_state() argument
156 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_host_port_state()
164 fc_host_port_state(shost) = FC_PORTSTATE_LINKDOWN; in bfad_im_get_host_port_state()
167 fc_host_port_state(shost) = FC_PORTSTATE_ONLINE; in bfad_im_get_host_port_state()
173 fc_host_port_state(shost) = FC_PORTSTATE_OFFLINE; in bfad_im_get_host_port_state()
181 fc_host_port_state(shost) = FC_PORTSTATE_UNKNOWN; in bfad_im_get_host_port_state()
190 bfad_im_get_host_active_fc4s(struct Scsi_Host *shost) in bfad_im_get_host_active_fc4s() argument
193 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_host_active_fc4s()
196 memset(fc_host_active_fc4s(shost), 0, in bfad_im_get_host_active_fc4s()
197 sizeof(fc_host_active_fc4s(shost))); in bfad_im_get_host_active_fc4s()
200 fc_host_active_fc4s(shost)[2] = 1; in bfad_im_get_host_active_fc4s() local
202 fc_host_active_fc4s(shost)[7] = 1; in bfad_im_get_host_active_fc4s() local
209 bfad_im_get_host_speed(struct Scsi_Host *shost) in bfad_im_get_host_speed() argument
212 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_host_speed()
219 fc_host_speed(shost) = FC_PORTSPEED_10GBIT; in bfad_im_get_host_speed()
222 fc_host_speed(shost) = FC_PORTSPEED_16GBIT; in bfad_im_get_host_speed()
225 fc_host_speed(shost) = FC_PORTSPEED_8GBIT; in bfad_im_get_host_speed()
228 fc_host_speed(shost) = FC_PORTSPEED_4GBIT; in bfad_im_get_host_speed()
231 fc_host_speed(shost) = FC_PORTSPEED_2GBIT; in bfad_im_get_host_speed()
234 fc_host_speed(shost) = FC_PORTSPEED_1GBIT; in bfad_im_get_host_speed()
237 fc_host_speed(shost) = FC_PORTSPEED_UNKNOWN; in bfad_im_get_host_speed()
246 bfad_im_get_host_fabric_name(struct Scsi_Host *shost) in bfad_im_get_host_fabric_name() argument
249 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_host_fabric_name()
255 fc_host_fabric_name(shost) = cpu_to_be64(fabric_nwwn); in bfad_im_get_host_fabric_name()
263 bfad_im_get_stats(struct Scsi_Host *shost) in bfad_im_get_stats() argument
266 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_stats()
314 bfad_im_reset_stats(struct Scsi_Host *shost) in bfad_im_reset_stats() argument
317 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_reset_stats()
360 struct Scsi_Host *shost = fc_vport->shost; in bfad_im_vport_create() local
362 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_vport_create()
409 vshost = vport->drv_port.im_port->shost; in bfad_im_vport_create()
446 bfad_im_issue_fc_host_lip(struct Scsi_Host *shost) in bfad_im_issue_fc_host_lip() argument
449 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_issue_fc_host_lip()
506 vshost = vport->drv_port.im_port->shost; in bfad_im_vport_delete()
552 vshost = vport->drv_port.im_port->shost; in bfad_im_vport_disable()
580 struct Scsi_Host *vshost = vport->drv_port.im_port->shost; in bfad_im_vport_set_symbolic_name()
715 struct Scsi_Host *shost = class_to_shost(dev); in bfad_im_serial_num_show() local
717 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_serial_num_show()
729 struct Scsi_Host *shost = class_to_shost(dev); in bfad_im_model_show() local
731 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_model_show()
743 struct Scsi_Host *shost = class_to_shost(dev); in bfad_im_model_desc_show() local
745 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_model_desc_show()
823 struct Scsi_Host *shost = class_to_shost(dev); in bfad_im_node_name_show() local
825 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_node_name_show()
837 struct Scsi_Host *shost = class_to_shost(dev); in bfad_im_symbolic_name_show() local
839 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_symbolic_name_show()
854 struct Scsi_Host *shost = class_to_shost(dev); in bfad_im_hw_version_show() local
856 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_hw_version_show()
875 struct Scsi_Host *shost = class_to_shost(dev); in bfad_im_optionrom_version_show() local
877 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_optionrom_version_show()
889 struct Scsi_Host *shost = class_to_shost(dev); in bfad_im_fw_version_show() local
891 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_fw_version_show()
903 struct Scsi_Host *shost = class_to_shost(dev); in bfad_im_num_of_ports_show() local
905 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_num_of_ports_show()
923 struct Scsi_Host *shost = class_to_shost(dev); in bfad_im_num_of_discovered_ports_show() local
925 (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_num_of_discovered_ports_show()