Lines Matching refs:eiter

1600 	struct ct_fdmi_hba_attr *eiter;  in qla2x00_hba_attributes()  local
1605 eiter = entries + size; in qla2x00_hba_attributes()
1606 eiter->type = cpu_to_be16(FDMI_HBA_NODE_NAME); in qla2x00_hba_attributes()
1607 memcpy(eiter->a.node_name, vha->node_name, sizeof(eiter->a.node_name)); in qla2x00_hba_attributes()
1608 alen = sizeof(eiter->a.node_name); in qla2x00_hba_attributes()
1609 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_hba_attributes()
1610 eiter->len = cpu_to_be16(alen); in qla2x00_hba_attributes()
1613 "NODENAME = %016llx.\n", wwn_to_u64(eiter->a.node_name)); in qla2x00_hba_attributes()
1615 eiter = entries + size; in qla2x00_hba_attributes()
1616 eiter->type = cpu_to_be16(FDMI_HBA_MANUFACTURER); in qla2x00_hba_attributes()
1618 eiter->a.manufacturer, sizeof(eiter->a.manufacturer), in qla2x00_hba_attributes()
1621 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_hba_attributes()
1622 eiter->len = cpu_to_be16(alen); in qla2x00_hba_attributes()
1625 "MANUFACTURER = %s.\n", eiter->a.manufacturer); in qla2x00_hba_attributes()
1627 eiter = entries + size; in qla2x00_hba_attributes()
1628 eiter->type = cpu_to_be16(FDMI_HBA_SERIAL_NUMBER); in qla2x00_hba_attributes()
1632 eiter->a.serial_num, sizeof(eiter->a.serial_num)); in qla2x00_hba_attributes()
1638 eiter->a.serial_num, sizeof(eiter->a.serial_num), in qla2x00_hba_attributes()
1642 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_hba_attributes()
1643 eiter->len = cpu_to_be16(alen); in qla2x00_hba_attributes()
1646 "SERIAL NUMBER = %s.\n", eiter->a.serial_num); in qla2x00_hba_attributes()
1648 eiter = entries + size; in qla2x00_hba_attributes()
1649 eiter->type = cpu_to_be16(FDMI_HBA_MODEL); in qla2x00_hba_attributes()
1651 eiter->a.model, sizeof(eiter->a.model), in qla2x00_hba_attributes()
1654 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_hba_attributes()
1655 eiter->len = cpu_to_be16(alen); in qla2x00_hba_attributes()
1658 "MODEL NAME = %s.\n", eiter->a.model); in qla2x00_hba_attributes()
1660 eiter = entries + size; in qla2x00_hba_attributes()
1661 eiter->type = cpu_to_be16(FDMI_HBA_MODEL_DESCRIPTION); in qla2x00_hba_attributes()
1663 eiter->a.model_desc, sizeof(eiter->a.model_desc), in qla2x00_hba_attributes()
1666 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_hba_attributes()
1667 eiter->len = cpu_to_be16(alen); in qla2x00_hba_attributes()
1670 "MODEL DESCRIPTION = %s.\n", eiter->a.model_desc); in qla2x00_hba_attributes()
1672 eiter = entries + size; in qla2x00_hba_attributes()
1673 eiter->type = cpu_to_be16(FDMI_HBA_HARDWARE_VERSION); in qla2x00_hba_attributes()
1678 eiter->a.hw_version, sizeof(eiter->a.hw_version)); in qla2x00_hba_attributes()
1682 eiter->a.hw_version, sizeof(eiter->a.hw_version)); in qla2x00_hba_attributes()
1687 eiter->a.hw_version, sizeof(eiter->a.hw_version), in qla2x00_hba_attributes()
1691 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_hba_attributes()
1692 eiter->len = cpu_to_be16(alen); in qla2x00_hba_attributes()
1695 "HARDWARE VERSION = %s.\n", eiter->a.hw_version); in qla2x00_hba_attributes()
1697 eiter = entries + size; in qla2x00_hba_attributes()
1698 eiter->type = cpu_to_be16(FDMI_HBA_DRIVER_VERSION); in qla2x00_hba_attributes()
1700 eiter->a.driver_version, sizeof(eiter->a.driver_version), in qla2x00_hba_attributes()
1703 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_hba_attributes()
1704 eiter->len = cpu_to_be16(alen); in qla2x00_hba_attributes()
1707 "DRIVER VERSION = %s.\n", eiter->a.driver_version); in qla2x00_hba_attributes()
1709 eiter = entries + size; in qla2x00_hba_attributes()
1710 eiter->type = cpu_to_be16(FDMI_HBA_OPTION_ROM_VERSION); in qla2x00_hba_attributes()
1712 eiter->a.orom_version, sizeof(eiter->a.orom_version), in qla2x00_hba_attributes()
1715 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_hba_attributes()
1716 eiter->len = cpu_to_be16(alen); in qla2x00_hba_attributes()
1721 eiter->a.orom_version[1], eiter->a.orom_version[0]); in qla2x00_hba_attributes()
1723 eiter = entries + size; in qla2x00_hba_attributes()
1724 eiter->type = cpu_to_be16(FDMI_HBA_FIRMWARE_VERSION); in qla2x00_hba_attributes()
1725 ha->isp_ops->fw_version_str(vha, eiter->a.fw_version, in qla2x00_hba_attributes()
1726 sizeof(eiter->a.fw_version)); in qla2x00_hba_attributes()
1728 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_hba_attributes()
1729 eiter->len = cpu_to_be16(alen); in qla2x00_hba_attributes()
1732 "FIRMWARE VERSION = %s.\n", eiter->a.fw_version); in qla2x00_hba_attributes()
1734 eiter = entries + size; in qla2x00_hba_attributes()
1735 eiter->type = cpu_to_be16(FDMI_HBA_OS_NAME_AND_VERSION); in qla2x00_hba_attributes()
1739 eiter->a.os_version, sizeof(eiter->a.os_version), in qla2x00_hba_attributes()
1745 eiter->a.os_version, sizeof(eiter->a.os_version), in qla2x00_hba_attributes()
1750 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_hba_attributes()
1751 eiter->len = cpu_to_be16(alen); in qla2x00_hba_attributes()
1754 "OS VERSION = %s.\n", eiter->a.os_version); in qla2x00_hba_attributes()
1758 eiter = entries + size; in qla2x00_hba_attributes()
1759 eiter->type = cpu_to_be16(FDMI_HBA_MAXIMUM_CT_PAYLOAD_LENGTH); in qla2x00_hba_attributes()
1760 eiter->a.max_ct_len = cpu_to_be32(ha->frame_payload_size >> 2); in qla2x00_hba_attributes()
1762 alen = sizeof(eiter->a.max_ct_len); in qla2x00_hba_attributes()
1763 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_hba_attributes()
1764 eiter->len = cpu_to_be16(alen); in qla2x00_hba_attributes()
1767 "CT PAYLOAD LENGTH = 0x%x.\n", be32_to_cpu(eiter->a.max_ct_len)); in qla2x00_hba_attributes()
1769 eiter = entries + size; in qla2x00_hba_attributes()
1770 eiter->type = cpu_to_be16(FDMI_HBA_NODE_SYMBOLIC_NAME); in qla2x00_hba_attributes()
1771 alen = qla2x00_get_sym_node_name(vha, eiter->a.sym_name, in qla2x00_hba_attributes()
1772 sizeof(eiter->a.sym_name)); in qla2x00_hba_attributes()
1774 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_hba_attributes()
1775 eiter->len = cpu_to_be16(alen); in qla2x00_hba_attributes()
1778 "SYMBOLIC NAME = %s.\n", eiter->a.sym_name); in qla2x00_hba_attributes()
1780 eiter = entries + size; in qla2x00_hba_attributes()
1781 eiter->type = cpu_to_be16(FDMI_HBA_VENDOR_SPECIFIC_INFO); in qla2x00_hba_attributes()
1782 eiter->a.vendor_specific_info = cpu_to_be32(PCI_VENDOR_ID_QLOGIC); in qla2x00_hba_attributes()
1783 alen = sizeof(eiter->a.vendor_specific_info); in qla2x00_hba_attributes()
1784 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_hba_attributes()
1785 eiter->len = cpu_to_be16(alen); in qla2x00_hba_attributes()
1789 be32_to_cpu(eiter->a.vendor_specific_info)); in qla2x00_hba_attributes()
1791 eiter = entries + size; in qla2x00_hba_attributes()
1792 eiter->type = cpu_to_be16(FDMI_HBA_NUM_PORTS); in qla2x00_hba_attributes()
1793 eiter->a.num_ports = cpu_to_be32(1); in qla2x00_hba_attributes()
1794 alen = sizeof(eiter->a.num_ports); in qla2x00_hba_attributes()
1795 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_hba_attributes()
1796 eiter->len = cpu_to_be16(alen); in qla2x00_hba_attributes()
1799 "PORT COUNT = %x.\n", be32_to_cpu(eiter->a.num_ports)); in qla2x00_hba_attributes()
1801 eiter = entries + size; in qla2x00_hba_attributes()
1802 eiter->type = cpu_to_be16(FDMI_HBA_FABRIC_NAME); in qla2x00_hba_attributes()
1803 memcpy(eiter->a.fabric_name, vha->fabric_node_name, in qla2x00_hba_attributes()
1804 sizeof(eiter->a.fabric_name)); in qla2x00_hba_attributes()
1805 alen = sizeof(eiter->a.fabric_name); in qla2x00_hba_attributes()
1806 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_hba_attributes()
1807 eiter->len = cpu_to_be16(alen); in qla2x00_hba_attributes()
1810 "FABRIC NAME = %016llx.\n", wwn_to_u64(eiter->a.fabric_name)); in qla2x00_hba_attributes()
1812 eiter = entries + size; in qla2x00_hba_attributes()
1813 eiter->type = cpu_to_be16(FDMI_HBA_BOOT_BIOS_NAME); in qla2x00_hba_attributes()
1815 eiter->a.bios_name, sizeof(eiter->a.bios_name), in qla2x00_hba_attributes()
1818 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_hba_attributes()
1819 eiter->len = cpu_to_be16(alen); in qla2x00_hba_attributes()
1822 "BIOS NAME = %s\n", eiter->a.bios_name); in qla2x00_hba_attributes()
1824 eiter = entries + size; in qla2x00_hba_attributes()
1825 eiter->type = cpu_to_be16(FDMI_HBA_VENDOR_IDENTIFIER); in qla2x00_hba_attributes()
1827 eiter->a.vendor_identifier, sizeof(eiter->a.vendor_identifier), in qla2x00_hba_attributes()
1830 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_hba_attributes()
1831 eiter->len = cpu_to_be16(alen); in qla2x00_hba_attributes()
1834 "VENDOR IDENTIFIER = %s.\n", eiter->a.vendor_identifier); in qla2x00_hba_attributes()
1856 struct ct_fdmi_port_attr *eiter; in qla2x00_port_attributes() local
1861 eiter = entries + size; in qla2x00_port_attributes()
1862 eiter->type = cpu_to_be16(FDMI_PORT_FC4_TYPES); in qla2x00_port_attributes()
1863 eiter->a.fc4_types[0] = 0x00; in qla2x00_port_attributes()
1864 eiter->a.fc4_types[1] = 0x00; in qla2x00_port_attributes()
1865 eiter->a.fc4_types[2] = 0x01; in qla2x00_port_attributes()
1866 eiter->a.fc4_types[3] = 0x00; in qla2x00_port_attributes()
1867 alen = sizeof(eiter->a.fc4_types); in qla2x00_port_attributes()
1868 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_port_attributes()
1869 eiter->len = cpu_to_be16(alen); in qla2x00_port_attributes()
1872 "FC4 TYPES = %016llx.\n", *(uint64_t *)eiter->a.fc4_types); in qla2x00_port_attributes()
1874 eiter->a.fc4_types[6] = 1; /* NVMe type 28h */ in qla2x00_port_attributes()
1877 eiter->a.fc4_types[6]); in qla2x00_port_attributes()
1880 eiter = entries + size; in qla2x00_port_attributes()
1881 eiter->type = cpu_to_be16(FDMI_PORT_SUPPORT_SPEED); in qla2x00_port_attributes()
1882 eiter->a.sup_speed = cpu_to_be32( in qla2x00_port_attributes()
1884 alen = sizeof(eiter->a.sup_speed); in qla2x00_port_attributes()
1885 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_port_attributes()
1886 eiter->len = cpu_to_be16(alen); in qla2x00_port_attributes()
1889 "SUPPORTED SPEED = %x.\n", be32_to_cpu(eiter->a.sup_speed)); in qla2x00_port_attributes()
1891 eiter = entries + size; in qla2x00_port_attributes()
1892 eiter->type = cpu_to_be16(FDMI_PORT_CURRENT_SPEED); in qla2x00_port_attributes()
1893 eiter->a.cur_speed = cpu_to_be32( in qla2x00_port_attributes()
1895 alen = sizeof(eiter->a.cur_speed); in qla2x00_port_attributes()
1896 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_port_attributes()
1897 eiter->len = cpu_to_be16(alen); in qla2x00_port_attributes()
1900 "CURRENT SPEED = %x.\n", be32_to_cpu(eiter->a.cur_speed)); in qla2x00_port_attributes()
1902 eiter = entries + size; in qla2x00_port_attributes()
1903 eiter->type = cpu_to_be16(FDMI_PORT_MAX_FRAME_SIZE); in qla2x00_port_attributes()
1904 eiter->a.max_frame_size = cpu_to_be32(ha->frame_payload_size); in qla2x00_port_attributes()
1905 alen = sizeof(eiter->a.max_frame_size); in qla2x00_port_attributes()
1906 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_port_attributes()
1907 eiter->len = cpu_to_be16(alen); in qla2x00_port_attributes()
1910 "MAX FRAME SIZE = %x.\n", be32_to_cpu(eiter->a.max_frame_size)); in qla2x00_port_attributes()
1912 eiter = entries + size; in qla2x00_port_attributes()
1913 eiter->type = cpu_to_be16(FDMI_PORT_OS_DEVICE_NAME); in qla2x00_port_attributes()
1915 eiter->a.os_dev_name, sizeof(eiter->a.os_dev_name), in qla2x00_port_attributes()
1918 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_port_attributes()
1919 eiter->len = cpu_to_be16(alen); in qla2x00_port_attributes()
1922 "OS DEVICE NAME = %s.\n", eiter->a.os_dev_name); in qla2x00_port_attributes()
1924 eiter = entries + size; in qla2x00_port_attributes()
1925 eiter->type = cpu_to_be16(FDMI_PORT_HOST_NAME); in qla2x00_port_attributes()
1929 eiter->a.host_name, sizeof(eiter->a.host_name), in qla2x00_port_attributes()
1932 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_port_attributes()
1933 eiter->len = cpu_to_be16(alen); in qla2x00_port_attributes()
1936 "HOSTNAME = %s.\n", eiter->a.host_name); in qla2x00_port_attributes()
1942 eiter = entries + size; in qla2x00_port_attributes()
1943 eiter->type = cpu_to_be16(FDMI_PORT_NODE_NAME); in qla2x00_port_attributes()
1944 memcpy(eiter->a.node_name, vha->node_name, sizeof(eiter->a.node_name)); in qla2x00_port_attributes()
1945 alen = sizeof(eiter->a.node_name); in qla2x00_port_attributes()
1946 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_port_attributes()
1947 eiter->len = cpu_to_be16(alen); in qla2x00_port_attributes()
1950 "NODENAME = %016llx.\n", wwn_to_u64(eiter->a.node_name)); in qla2x00_port_attributes()
1953 eiter = entries + size; in qla2x00_port_attributes()
1954 eiter->type = cpu_to_be16(FDMI_PORT_NAME); in qla2x00_port_attributes()
1955 memcpy(eiter->a.port_name, vha->port_name, sizeof(eiter->a.port_name)); in qla2x00_port_attributes()
1956 alen = sizeof(eiter->a.port_name); in qla2x00_port_attributes()
1957 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_port_attributes()
1958 eiter->len = cpu_to_be16(alen); in qla2x00_port_attributes()
1961 "PORTNAME = %016llx.\n", wwn_to_u64(eiter->a.port_name)); in qla2x00_port_attributes()
1964 eiter = entries + size; in qla2x00_port_attributes()
1965 eiter->type = cpu_to_be16(FDMI_PORT_SYM_NAME); in qla2x00_port_attributes()
1966 alen = qla2x00_get_sym_node_name(vha, eiter->a.port_sym_name, in qla2x00_port_attributes()
1967 sizeof(eiter->a.port_sym_name)); in qla2x00_port_attributes()
1969 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_port_attributes()
1970 eiter->len = cpu_to_be16(alen); in qla2x00_port_attributes()
1973 "PORT SYMBOLIC NAME = %s\n", eiter->a.port_sym_name); in qla2x00_port_attributes()
1976 eiter = entries + size; in qla2x00_port_attributes()
1977 eiter->type = cpu_to_be16(FDMI_PORT_TYPE); in qla2x00_port_attributes()
1978 eiter->a.port_type = cpu_to_be32(NS_NX_PORT_TYPE); in qla2x00_port_attributes()
1979 alen = sizeof(eiter->a.port_type); in qla2x00_port_attributes()
1980 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_port_attributes()
1981 eiter->len = cpu_to_be16(alen); in qla2x00_port_attributes()
1984 "PORT TYPE = %x.\n", be32_to_cpu(eiter->a.port_type)); in qla2x00_port_attributes()
1987 eiter = entries + size; in qla2x00_port_attributes()
1988 eiter->type = cpu_to_be16(FDMI_PORT_SUPP_COS); in qla2x00_port_attributes()
1989 eiter->a.port_supported_cos = cpu_to_be32(FC_CLASS_3); in qla2x00_port_attributes()
1990 alen = sizeof(eiter->a.port_supported_cos); in qla2x00_port_attributes()
1991 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_port_attributes()
1992 eiter->len = cpu_to_be16(alen); in qla2x00_port_attributes()
1995 "SUPPORTED COS = %08x\n", be32_to_cpu(eiter->a.port_supported_cos)); in qla2x00_port_attributes()
1998 eiter = entries + size; in qla2x00_port_attributes()
1999 eiter->type = cpu_to_be16(FDMI_PORT_FABRIC_NAME); in qla2x00_port_attributes()
2000 memcpy(eiter->a.fabric_name, vha->fabric_node_name, in qla2x00_port_attributes()
2001 sizeof(eiter->a.fabric_name)); in qla2x00_port_attributes()
2002 alen = sizeof(eiter->a.fabric_name); in qla2x00_port_attributes()
2003 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_port_attributes()
2004 eiter->len = cpu_to_be16(alen); in qla2x00_port_attributes()
2007 "FABRIC NAME = %016llx.\n", wwn_to_u64(eiter->a.fabric_name)); in qla2x00_port_attributes()
2010 eiter = entries + size; in qla2x00_port_attributes()
2011 eiter->type = cpu_to_be16(FDMI_PORT_FC4_TYPE); in qla2x00_port_attributes()
2012 eiter->a.port_fc4_type[0] = 0x00; in qla2x00_port_attributes()
2013 eiter->a.port_fc4_type[1] = 0x00; in qla2x00_port_attributes()
2014 eiter->a.port_fc4_type[2] = 0x01; in qla2x00_port_attributes()
2015 eiter->a.port_fc4_type[3] = 0x00; in qla2x00_port_attributes()
2016 alen = sizeof(eiter->a.port_fc4_type); in qla2x00_port_attributes()
2017 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_port_attributes()
2018 eiter->len = cpu_to_be16(alen); in qla2x00_port_attributes()
2022 *(uint64_t *)eiter->a.port_fc4_type); in qla2x00_port_attributes()
2025 eiter = entries + size; in qla2x00_port_attributes()
2026 eiter->type = cpu_to_be16(FDMI_PORT_STATE); in qla2x00_port_attributes()
2027 eiter->a.port_state = cpu_to_be32(2); in qla2x00_port_attributes()
2028 alen = sizeof(eiter->a.port_state); in qla2x00_port_attributes()
2029 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_port_attributes()
2030 eiter->len = cpu_to_be16(alen); in qla2x00_port_attributes()
2033 "PORT_STATE = %x.\n", be32_to_cpu(eiter->a.port_state)); in qla2x00_port_attributes()
2036 eiter = entries + size; in qla2x00_port_attributes()
2037 eiter->type = cpu_to_be16(FDMI_PORT_COUNT); in qla2x00_port_attributes()
2038 eiter->a.num_ports = cpu_to_be32(1); in qla2x00_port_attributes()
2039 alen = sizeof(eiter->a.num_ports); in qla2x00_port_attributes()
2040 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_port_attributes()
2041 eiter->len = cpu_to_be16(alen); in qla2x00_port_attributes()
2044 "PORT COUNT = %x.\n", be32_to_cpu(eiter->a.num_ports)); in qla2x00_port_attributes()
2047 eiter = entries + size; in qla2x00_port_attributes()
2048 eiter->type = cpu_to_be16(FDMI_PORT_IDENTIFIER); in qla2x00_port_attributes()
2049 eiter->a.port_id = cpu_to_be32(vha->d_id.b24); in qla2x00_port_attributes()
2050 alen = sizeof(eiter->a.port_id); in qla2x00_port_attributes()
2051 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_port_attributes()
2052 eiter->len = cpu_to_be16(alen); in qla2x00_port_attributes()
2055 "PORT ID = %x.\n", be32_to_cpu(eiter->a.port_id)); in qla2x00_port_attributes()
2061 eiter = entries + size; in qla2x00_port_attributes()
2062 eiter->type = cpu_to_be16(FDMI_SMARTSAN_SERVICE); in qla2x00_port_attributes()
2064 eiter->a.smartsan_service, sizeof(eiter->a.smartsan_service), in qla2x00_port_attributes()
2067 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_port_attributes()
2068 eiter->len = cpu_to_be16(alen); in qla2x00_port_attributes()
2071 "SMARTSAN SERVICE CATEGORY = %s.\n", eiter->a.smartsan_service); in qla2x00_port_attributes()
2074 eiter = entries + size; in qla2x00_port_attributes()
2075 eiter->type = cpu_to_be16(FDMI_SMARTSAN_GUID); in qla2x00_port_attributes()
2076 memcpy(eiter->a.smartsan_guid, vha->node_name, WWN_SIZE); in qla2x00_port_attributes()
2077 memcpy(eiter->a.smartsan_guid + WWN_SIZE, vha->port_name, WWN_SIZE); in qla2x00_port_attributes()
2078 alen = sizeof(eiter->a.smartsan_guid); in qla2x00_port_attributes()
2079 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_port_attributes()
2080 eiter->len = cpu_to_be16(alen); in qla2x00_port_attributes()
2084 wwn_to_u64(eiter->a.smartsan_guid), in qla2x00_port_attributes()
2085 wwn_to_u64(eiter->a.smartsan_guid + WWN_SIZE)); in qla2x00_port_attributes()
2088 eiter = entries + size; in qla2x00_port_attributes()
2089 eiter->type = cpu_to_be16(FDMI_SMARTSAN_VERSION); in qla2x00_port_attributes()
2091 eiter->a.smartsan_version, sizeof(eiter->a.smartsan_version), in qla2x00_port_attributes()
2094 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_port_attributes()
2095 eiter->len = cpu_to_be16(alen); in qla2x00_port_attributes()
2098 "SMARTSAN VERSION = %s\n", eiter->a.smartsan_version); in qla2x00_port_attributes()
2101 eiter = entries + size; in qla2x00_port_attributes()
2102 eiter->type = cpu_to_be16(FDMI_SMARTSAN_PROD_NAME); in qla2x00_port_attributes()
2103 alen = scnprintf(eiter->a.smartsan_prod_name, in qla2x00_port_attributes()
2104 sizeof(eiter->a.smartsan_prod_name), in qla2x00_port_attributes()
2107 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_port_attributes()
2108 eiter->len = cpu_to_be16(alen); in qla2x00_port_attributes()
2111 "SMARTSAN PRODUCT NAME = %s\n", eiter->a.smartsan_prod_name); in qla2x00_port_attributes()
2114 eiter = entries + size; in qla2x00_port_attributes()
2115 eiter->type = cpu_to_be16(FDMI_SMARTSAN_PORT_INFO); in qla2x00_port_attributes()
2116 eiter->a.smartsan_port_info = cpu_to_be32(vha->vp_idx ? 2 : 1); in qla2x00_port_attributes()
2117 alen = sizeof(eiter->a.smartsan_port_info); in qla2x00_port_attributes()
2118 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_port_attributes()
2119 eiter->len = cpu_to_be16(alen); in qla2x00_port_attributes()
2122 "SMARTSAN PORT INFO = %x\n", eiter->a.smartsan_port_info); in qla2x00_port_attributes()
2125 eiter = entries + size; in qla2x00_port_attributes()
2126 eiter->type = cpu_to_be16(FDMI_SMARTSAN_SECURITY_SUPPORT); in qla2x00_port_attributes()
2127 eiter->a.smartsan_security_support = cpu_to_be32(1); in qla2x00_port_attributes()
2128 alen = sizeof(eiter->a.smartsan_security_support); in qla2x00_port_attributes()
2129 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_port_attributes()
2130 eiter->len = cpu_to_be16(alen); in qla2x00_port_attributes()
2134 be32_to_cpu(eiter->a.smartsan_security_support)); in qla2x00_port_attributes()