Lines Matching refs:alen
1601 uint16_t alen; in qla2x00_hba_attributes() local
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()
1611 size += alen; in qla2x00_hba_attributes()
1617 alen = scnprintf( in qla2x00_hba_attributes()
1620 alen += FDMI_ATTR_ALIGNMENT(alen); 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()
1623 size += alen; in qla2x00_hba_attributes()
1629 alen = 0; in qla2x00_hba_attributes()
1631 alen = qla2xxx_get_vpd_field(vha, "SN", in qla2x00_hba_attributes()
1634 if (!alen) { in qla2x00_hba_attributes()
1637 alen = scnprintf( in qla2x00_hba_attributes()
1641 alen += FDMI_ATTR_ALIGNMENT(alen); 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()
1644 size += alen; in qla2x00_hba_attributes()
1650 alen = scnprintf( in qla2x00_hba_attributes()
1653 alen += FDMI_ATTR_ALIGNMENT(alen); 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()
1656 size += alen; in qla2x00_hba_attributes()
1662 alen = scnprintf( in qla2x00_hba_attributes()
1665 alen += FDMI_ATTR_ALIGNMENT(alen); 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()
1668 size += alen; in qla2x00_hba_attributes()
1674 alen = 0; in qla2x00_hba_attributes()
1676 if (!alen) { in qla2x00_hba_attributes()
1677 alen = qla2xxx_get_vpd_field(vha, "MN", in qla2x00_hba_attributes()
1680 if (!alen) { in qla2x00_hba_attributes()
1681 alen = qla2xxx_get_vpd_field(vha, "EC", in qla2x00_hba_attributes()
1685 if (!alen) { in qla2x00_hba_attributes()
1686 alen = scnprintf( in qla2x00_hba_attributes()
1690 alen += FDMI_ATTR_ALIGNMENT(alen); 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()
1693 size += alen; in qla2x00_hba_attributes()
1699 alen = scnprintf( in qla2x00_hba_attributes()
1702 alen += FDMI_ATTR_ALIGNMENT(alen); 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()
1705 size += alen; in qla2x00_hba_attributes()
1711 alen = scnprintf( in qla2x00_hba_attributes()
1714 alen += FDMI_ATTR_ALIGNMENT(alen); 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()
1717 size += alen; in qla2x00_hba_attributes()
1727 alen += FDMI_ATTR_ALIGNMENT(alen); 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()
1730 size += alen; in qla2x00_hba_attributes()
1736 alen = 0; in qla2x00_hba_attributes()
1738 alen = scnprintf( in qla2x00_hba_attributes()
1743 if (!alen) { in qla2x00_hba_attributes()
1744 alen = scnprintf( in qla2x00_hba_attributes()
1749 alen += FDMI_ATTR_ALIGNMENT(alen); 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()
1752 size += alen; 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()
1765 size += alen; in qla2x00_hba_attributes()
1771 alen = qla2x00_get_sym_node_name(vha, eiter->a.sym_name, in qla2x00_hba_attributes()
1773 alen += FDMI_ATTR_ALIGNMENT(alen); 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()
1776 size += alen; 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()
1786 size += alen; 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()
1797 size += alen; 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()
1808 size += alen; in qla2x00_hba_attributes()
1814 alen = scnprintf( in qla2x00_hba_attributes()
1817 alen += FDMI_ATTR_ALIGNMENT(alen); 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()
1820 size += alen; in qla2x00_hba_attributes()
1826 alen = scnprintf( in qla2x00_hba_attributes()
1829 alen += FDMI_ATTR_ALIGNMENT(alen); 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()
1832 size += alen; in qla2x00_hba_attributes()
1857 uint16_t alen; in qla2x00_port_attributes() local
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()
1870 size += alen; 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()
1887 size += alen; 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()
1898 size += alen; 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()
1908 size += alen; in qla2x00_port_attributes()
1914 alen = scnprintf( in qla2x00_port_attributes()
1917 alen += FDMI_ATTR_ALIGNMENT(alen); 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()
1920 size += alen; in qla2x00_port_attributes()
1928 alen = scnprintf( in qla2x00_port_attributes()
1931 alen += FDMI_ATTR_ALIGNMENT(alen); 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()
1934 size += alen; 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()
1948 size += alen; 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()
1959 size += alen; in qla2x00_port_attributes()
1966 alen = qla2x00_get_sym_node_name(vha, eiter->a.port_sym_name, in qla2x00_port_attributes()
1968 alen += FDMI_ATTR_ALIGNMENT(alen); 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()
1971 size += alen; 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()
1982 size += alen; 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()
1993 size += alen; 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()
2005 size += alen; 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()
2019 size += alen; 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()
2031 size += alen; 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()
2042 size += alen; 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()
2053 size += alen; in qla2x00_port_attributes()
2063 alen = scnprintf( in qla2x00_port_attributes()
2066 alen += FDMI_ATTR_ALIGNMENT(alen); 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()
2069 size += alen; 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()
2081 size += alen; in qla2x00_port_attributes()
2090 alen = scnprintf( in qla2x00_port_attributes()
2093 alen += FDMI_ATTR_ALIGNMENT(alen); 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()
2096 size += alen; in qla2x00_port_attributes()
2103 alen = scnprintf(eiter->a.smartsan_prod_name, in qla2x00_port_attributes()
2106 alen += FDMI_ATTR_ALIGNMENT(alen); 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()
2109 size += alen; 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()
2120 size += alen; 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()
2131 size += alen; in qla2x00_port_attributes()