Lines Matching refs:shost

67 int zfcp_scsi_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *scpnt)  in zfcp_scsi_queuecommand()  argument
347 struct Scsi_Host *shost = rport_to_shost(rport); in zfcp_scsi_eh_target_reset_handler() local
350 (struct zfcp_adapter *)shost->hostdata[0]; in zfcp_scsi_eh_target_reset_handler()
353 shost_for_each_device(tmp_sdev, shost) { in zfcp_scsi_eh_target_reset_handler()
403 static int zfcp_scsi_sysfs_host_reset(struct Scsi_Host *shost, int reset_type) in zfcp_scsi_sysfs_host_reset() argument
406 (struct zfcp_adapter *)shost->hostdata[0]; in zfcp_scsi_sysfs_host_reset()
521 struct Scsi_Host *shost; in zfcp_scsi_adapter_unregister() local
524 shost = adapter->scsi_host; in zfcp_scsi_adapter_unregister()
525 if (!shost) in zfcp_scsi_adapter_unregister()
533 fc_remove_host(shost); in zfcp_scsi_adapter_unregister()
534 scsi_remove_host(shost); in zfcp_scsi_adapter_unregister()
535 scsi_host_put(shost); in zfcp_scsi_adapter_unregister()
647 static void zfcp_scsi_reset_fc_host_stats(struct Scsi_Host *shost) in zfcp_scsi_reset_fc_host_stats() argument
653 adapter = (struct zfcp_adapter *)shost->hostdata[0]; in zfcp_scsi_reset_fc_host_stats()
669 static void zfcp_scsi_get_host_port_state(struct Scsi_Host *shost) in zfcp_scsi_get_host_port_state() argument
672 (struct zfcp_adapter *)shost->hostdata[0]; in zfcp_scsi_get_host_port_state()
677 fc_host_port_state(shost) = FC_PORTSTATE_ONLINE; in zfcp_scsi_get_host_port_state()
679 fc_host_port_state(shost) = FC_PORTSTATE_LINKDOWN; in zfcp_scsi_get_host_port_state()
681 fc_host_port_state(shost) = FC_PORTSTATE_ERROR; in zfcp_scsi_get_host_port_state()
683 fc_host_port_state(shost) = FC_PORTSTATE_UNKNOWN; in zfcp_scsi_get_host_port_state()
705 struct Scsi_Host *shost = rport_to_shost(rport); in zfcp_scsi_terminate_rport_io() local
707 (struct zfcp_adapter *)shost->hostdata[0]; in zfcp_scsi_terminate_rport_io()
828 struct Scsi_Host *shost = adapter->scsi_host; in zfcp_scsi_set_prot() local
840 scsi_host_set_guard(shost, SHOST_DIX_GUARD_IP); in zfcp_scsi_set_prot()
841 shost->sg_prot_tablesize = adapter->qdio->max_sbale_per_req / 2; in zfcp_scsi_set_prot()
842 shost->sg_tablesize = adapter->qdio->max_sbale_per_req / 2; in zfcp_scsi_set_prot()
843 shost->max_sectors = shost->sg_tablesize * 8; in zfcp_scsi_set_prot()
846 scsi_host_set_prot(shost, mask); in zfcp_scsi_set_prot()
868 struct Scsi_Host *const shost = adapter->scsi_host; in zfcp_scsi_shost_update_config_data() local
871 if (shost == NULL) in zfcp_scsi_shost_update_config_data()
874 snprintf(fc_host_firmware_version(shost), FC_VERSION_STRING_SIZE, in zfcp_scsi_shost_update_config_data()
878 snprintf(fc_host_hardware_version(shost), in zfcp_scsi_shost_update_config_data()
881 memcpy(fc_host_serial_number(shost), bottom->serial_number, in zfcp_scsi_shost_update_config_data()
883 EBCASC(fc_host_serial_number(shost), in zfcp_scsi_shost_update_config_data()
893 snprintf(fc_host_manufacturer(shost), FC_SERIAL_NUMBER_SIZE, "%s", in zfcp_scsi_shost_update_config_data()
895 fc_host_port_name(shost) = be64_to_cpu(nsp->fl_wwpn); in zfcp_scsi_shost_update_config_data()
896 fc_host_node_name(shost) = be64_to_cpu(nsp->fl_wwnn); in zfcp_scsi_shost_update_config_data()
897 fc_host_supported_classes(shost) = FC_COS_CLASS2 | FC_COS_CLASS3; in zfcp_scsi_shost_update_config_data()
905 fc_host_port_id(shost) = ntoh24(bottom->s_id); in zfcp_scsi_shost_update_config_data()
906 fc_host_speed(shost) = in zfcp_scsi_shost_update_config_data()
909 snprintf(fc_host_model(shost), FC_SYMBOLIC_NAME_SIZE, "0x%04x", in zfcp_scsi_shost_update_config_data()
914 fc_host_port_type(shost) = FC_PORTTYPE_PTP; in zfcp_scsi_shost_update_config_data()
915 fc_host_fabric_name(shost) = 0; in zfcp_scsi_shost_update_config_data()
918 fc_host_fabric_name(shost) = be64_to_cpu(plogi->fl_wwnn); in zfcp_scsi_shost_update_config_data()
920 fc_host_port_type(shost) = FC_PORTTYPE_NPIV; in zfcp_scsi_shost_update_config_data()
922 fc_host_port_type(shost) = FC_PORTTYPE_NPORT; in zfcp_scsi_shost_update_config_data()
925 fc_host_port_type(shost) = FC_PORTTYPE_NLPORT; in zfcp_scsi_shost_update_config_data()
928 fc_host_fabric_name(shost) = 0; in zfcp_scsi_shost_update_config_data()
937 struct Scsi_Host *const shost = adapter->scsi_host; in zfcp_scsi_shost_update_port_data() local
939 if (shost == NULL) in zfcp_scsi_shost_update_port_data()
942 fc_host_permanent_port_name(shost) = bottom->wwpn; in zfcp_scsi_shost_update_port_data()
943 fc_host_maxframe_size(shost) = bottom->maximum_frame_size; in zfcp_scsi_shost_update_port_data()
944 fc_host_supported_speeds(shost) = in zfcp_scsi_shost_update_port_data()
946 memcpy(fc_host_supported_fc4s(shost), bottom->supported_fc4_types, in zfcp_scsi_shost_update_port_data()
948 memcpy(fc_host_active_fc4s(shost), bottom->active_fc4_types, in zfcp_scsi_shost_update_port_data()