Lines Matching refs:templen
1905 u16 templen; in bfa_fcs_lport_fdmi_build_rhba_pyld() local
1931 templen = sizeof(wwn_t); in bfa_fcs_lport_fdmi_build_rhba_pyld()
1932 memcpy(attr->value, &bfa_fcs_lport_get_nwwn(port), templen); in bfa_fcs_lport_fdmi_build_rhba_pyld()
1933 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
1934 len += templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
1936 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_rhba_pyld()
1937 sizeof(templen)); in bfa_fcs_lport_fdmi_build_rhba_pyld()
1944 templen = (u16) strlen(fcs_hba_attr->manufacturer); in bfa_fcs_lport_fdmi_build_rhba_pyld()
1945 memcpy(attr->value, fcs_hba_attr->manufacturer, templen); in bfa_fcs_lport_fdmi_build_rhba_pyld()
1946 templen = fc_roundup(templen, sizeof(u32)); in bfa_fcs_lport_fdmi_build_rhba_pyld()
1947 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
1948 len += templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
1950 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_rhba_pyld()
1951 sizeof(templen)); in bfa_fcs_lport_fdmi_build_rhba_pyld()
1958 templen = (u16) strlen(fcs_hba_attr->serial_num); in bfa_fcs_lport_fdmi_build_rhba_pyld()
1959 memcpy(attr->value, fcs_hba_attr->serial_num, templen); in bfa_fcs_lport_fdmi_build_rhba_pyld()
1960 templen = fc_roundup(templen, sizeof(u32)); in bfa_fcs_lport_fdmi_build_rhba_pyld()
1961 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
1962 len += templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
1964 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_rhba_pyld()
1965 sizeof(templen)); in bfa_fcs_lport_fdmi_build_rhba_pyld()
1972 templen = (u16) strlen(fcs_hba_attr->model); in bfa_fcs_lport_fdmi_build_rhba_pyld()
1973 memcpy(attr->value, fcs_hba_attr->model, templen); in bfa_fcs_lport_fdmi_build_rhba_pyld()
1974 templen = fc_roundup(templen, sizeof(u32)); in bfa_fcs_lport_fdmi_build_rhba_pyld()
1975 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
1976 len += templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
1978 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_rhba_pyld()
1979 sizeof(templen)); in bfa_fcs_lport_fdmi_build_rhba_pyld()
1986 templen = (u16) strlen(fcs_hba_attr->model_desc); in bfa_fcs_lport_fdmi_build_rhba_pyld()
1987 memcpy(attr->value, fcs_hba_attr->model_desc, templen); in bfa_fcs_lport_fdmi_build_rhba_pyld()
1988 templen = fc_roundup(templen, sizeof(u32)); in bfa_fcs_lport_fdmi_build_rhba_pyld()
1989 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
1990 len += templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
1992 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_rhba_pyld()
1993 sizeof(templen)); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2001 templen = (u16) strlen(fcs_hba_attr->hw_version); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2002 memcpy(attr->value, fcs_hba_attr->hw_version, templen); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2003 templen = fc_roundup(templen, sizeof(u32)); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2004 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
2005 len += templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
2007 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_rhba_pyld()
2008 sizeof(templen)); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2016 templen = (u16) strlen(fcs_hba_attr->driver_version); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2017 memcpy(attr->value, fcs_hba_attr->driver_version, templen); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2018 templen = fc_roundup(templen, sizeof(u32)); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2019 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
2020 len += templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
2022 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_rhba_pyld()
2023 sizeof(templen)); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2031 templen = (u16) strlen(fcs_hba_attr->option_rom_ver); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2032 memcpy(attr->value, fcs_hba_attr->option_rom_ver, templen); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2033 templen = fc_roundup(templen, sizeof(u32)); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2034 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
2035 len += templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
2037 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_rhba_pyld()
2038 sizeof(templen)); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2043 templen = (u16) strlen(fcs_hba_attr->fw_version); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2044 memcpy(attr->value, fcs_hba_attr->fw_version, templen); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2045 templen = fc_roundup(templen, sizeof(u32)); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2046 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
2047 len += templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
2049 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_rhba_pyld()
2050 sizeof(templen)); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2058 templen = (u16) strlen(fcs_hba_attr->os_name); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2059 memcpy(attr->value, fcs_hba_attr->os_name, templen); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2060 templen = fc_roundup(templen, sizeof(u32)); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2061 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
2062 len += templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
2064 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_rhba_pyld()
2065 sizeof(templen)); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2073 templen = sizeof(fcs_hba_attr->max_ct_pyld); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2074 memcpy(attr->value, &fcs_hba_attr->max_ct_pyld, templen); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2075 templen = fc_roundup(templen, sizeof(u32)); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2076 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
2077 len += templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
2079 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_rhba_pyld()
2080 sizeof(templen)); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2087 templen = sizeof(fcs_hba_attr->node_sym_name); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2088 memcpy(attr->value, &fcs_hba_attr->node_sym_name, templen); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2089 templen = fc_roundup(templen, sizeof(u32)); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2090 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
2091 len += templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
2093 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_rhba_pyld()
2094 sizeof(templen)); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2098 templen = sizeof(fcs_hba_attr->vendor_info); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2099 memcpy(attr->value, &fcs_hba_attr->vendor_info, templen); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2100 templen = fc_roundup(templen, sizeof(u32)); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2101 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
2102 len += templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
2104 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_rhba_pyld()
2105 sizeof(templen)); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2109 templen = sizeof(fcs_hba_attr->num_ports); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2110 memcpy(attr->value, &fcs_hba_attr->num_ports, templen); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2111 templen = fc_roundup(templen, sizeof(u32)); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2112 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
2113 len += templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
2115 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_rhba_pyld()
2116 sizeof(templen)); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2120 templen = sizeof(fcs_hba_attr->fabric_name); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2121 memcpy(attr->value, &fcs_hba_attr->fabric_name, templen); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2122 templen = fc_roundup(templen, sizeof(u32)); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2123 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
2124 len += templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
2126 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_rhba_pyld()
2127 sizeof(templen)); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2131 templen = sizeof(fcs_hba_attr->bios_ver); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2132 memcpy(attr->value, &fcs_hba_attr->bios_ver, templen); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2133 templen = fc_roundup(attr->len, sizeof(u32)); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2134 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
2135 len += templen; in bfa_fcs_lport_fdmi_build_rhba_pyld()
2137 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_rhba_pyld()
2138 sizeof(templen)); in bfa_fcs_lport_fdmi_build_rhba_pyld()
2241 u16 templen; in bfa_fcs_lport_fdmi_build_portattr_block() local
2260 templen = sizeof(fcs_port_attr.supp_fc4_types); in bfa_fcs_lport_fdmi_build_portattr_block()
2261 memcpy(attr->value, fcs_port_attr.supp_fc4_types, templen); in bfa_fcs_lport_fdmi_build_portattr_block()
2262 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; in bfa_fcs_lport_fdmi_build_portattr_block()
2263 len += templen; in bfa_fcs_lport_fdmi_build_portattr_block()
2266 cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_portattr_block()
2267 sizeof(templen)); in bfa_fcs_lport_fdmi_build_portattr_block()
2274 templen = sizeof(fcs_port_attr.supp_speed); in bfa_fcs_lport_fdmi_build_portattr_block()
2275 memcpy(attr->value, &fcs_port_attr.supp_speed, templen); in bfa_fcs_lport_fdmi_build_portattr_block()
2276 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; in bfa_fcs_lport_fdmi_build_portattr_block()
2277 len += templen; in bfa_fcs_lport_fdmi_build_portattr_block()
2280 cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_portattr_block()
2281 sizeof(templen)); in bfa_fcs_lport_fdmi_build_portattr_block()
2288 templen = sizeof(fcs_port_attr.curr_speed); in bfa_fcs_lport_fdmi_build_portattr_block()
2289 memcpy(attr->value, &fcs_port_attr.curr_speed, templen); in bfa_fcs_lport_fdmi_build_portattr_block()
2290 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; in bfa_fcs_lport_fdmi_build_portattr_block()
2291 len += templen; in bfa_fcs_lport_fdmi_build_portattr_block()
2293 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_portattr_block()
2294 sizeof(templen)); in bfa_fcs_lport_fdmi_build_portattr_block()
2301 templen = sizeof(fcs_port_attr.max_frm_size); in bfa_fcs_lport_fdmi_build_portattr_block()
2302 memcpy(attr->value, &fcs_port_attr.max_frm_size, templen); in bfa_fcs_lport_fdmi_build_portattr_block()
2303 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; in bfa_fcs_lport_fdmi_build_portattr_block()
2304 len += templen; in bfa_fcs_lport_fdmi_build_portattr_block()
2306 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_portattr_block()
2307 sizeof(templen)); in bfa_fcs_lport_fdmi_build_portattr_block()
2315 templen = (u16) strlen(fcs_port_attr.os_device_name); in bfa_fcs_lport_fdmi_build_portattr_block()
2316 memcpy(attr->value, fcs_port_attr.os_device_name, templen); in bfa_fcs_lport_fdmi_build_portattr_block()
2317 templen = fc_roundup(templen, sizeof(u32)); in bfa_fcs_lport_fdmi_build_portattr_block()
2318 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; in bfa_fcs_lport_fdmi_build_portattr_block()
2319 len += templen; in bfa_fcs_lport_fdmi_build_portattr_block()
2321 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_portattr_block()
2322 sizeof(templen)); in bfa_fcs_lport_fdmi_build_portattr_block()
2330 templen = (u16) strlen(fcs_port_attr.host_name); in bfa_fcs_lport_fdmi_build_portattr_block()
2331 memcpy(attr->value, fcs_port_attr.host_name, templen); in bfa_fcs_lport_fdmi_build_portattr_block()
2332 templen = fc_roundup(templen, sizeof(u32)); in bfa_fcs_lport_fdmi_build_portattr_block()
2333 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; in bfa_fcs_lport_fdmi_build_portattr_block()
2334 len += templen; in bfa_fcs_lport_fdmi_build_portattr_block()
2336 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_portattr_block()
2337 sizeof(templen)); in bfa_fcs_lport_fdmi_build_portattr_block()
2343 templen = sizeof(fcs_port_attr.node_name); in bfa_fcs_lport_fdmi_build_portattr_block()
2344 memcpy(attr->value, &fcs_port_attr.node_name, templen); in bfa_fcs_lport_fdmi_build_portattr_block()
2345 templen = fc_roundup(templen, sizeof(u32)); in bfa_fcs_lport_fdmi_build_portattr_block()
2346 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; in bfa_fcs_lport_fdmi_build_portattr_block()
2347 len += templen; in bfa_fcs_lport_fdmi_build_portattr_block()
2349 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_portattr_block()
2350 sizeof(templen)); in bfa_fcs_lport_fdmi_build_portattr_block()
2354 templen = sizeof(fcs_port_attr.port_name); in bfa_fcs_lport_fdmi_build_portattr_block()
2355 memcpy(attr->value, &fcs_port_attr.port_name, templen); in bfa_fcs_lport_fdmi_build_portattr_block()
2356 templen = fc_roundup(templen, sizeof(u32)); in bfa_fcs_lport_fdmi_build_portattr_block()
2357 curr_ptr += sizeof(attr->type) + sizeof(attr->len) + templen; in bfa_fcs_lport_fdmi_build_portattr_block()
2358 len += templen; in bfa_fcs_lport_fdmi_build_portattr_block()
2360 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_portattr_block()
2361 sizeof(templen)); in bfa_fcs_lport_fdmi_build_portattr_block()
2367 templen = sizeof(fcs_port_attr.port_sym_name); in bfa_fcs_lport_fdmi_build_portattr_block()
2369 &fcs_port_attr.port_sym_name, templen); in bfa_fcs_lport_fdmi_build_portattr_block()
2370 templen = fc_roundup(templen, sizeof(u32)); in bfa_fcs_lport_fdmi_build_portattr_block()
2372 sizeof(templen) + templen; in bfa_fcs_lport_fdmi_build_portattr_block()
2373 len += templen; in bfa_fcs_lport_fdmi_build_portattr_block()
2375 attr->len = cpu_to_be16(templen + in bfa_fcs_lport_fdmi_build_portattr_block()
2376 sizeof(attr->type) + sizeof(templen)); in bfa_fcs_lport_fdmi_build_portattr_block()
2381 templen = sizeof(fcs_port_attr.port_type); in bfa_fcs_lport_fdmi_build_portattr_block()
2382 memcpy(attr->value, &fcs_port_attr.port_type, templen); in bfa_fcs_lport_fdmi_build_portattr_block()
2383 templen = fc_roundup(templen, sizeof(u32)); in bfa_fcs_lport_fdmi_build_portattr_block()
2384 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; in bfa_fcs_lport_fdmi_build_portattr_block()
2385 len += templen; in bfa_fcs_lport_fdmi_build_portattr_block()
2387 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_portattr_block()
2388 sizeof(templen)); in bfa_fcs_lport_fdmi_build_portattr_block()
2392 templen = sizeof(fcs_port_attr.scos); in bfa_fcs_lport_fdmi_build_portattr_block()
2393 memcpy(attr->value, &fcs_port_attr.scos, templen); in bfa_fcs_lport_fdmi_build_portattr_block()
2394 templen = fc_roundup(templen, sizeof(u32)); in bfa_fcs_lport_fdmi_build_portattr_block()
2395 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; in bfa_fcs_lport_fdmi_build_portattr_block()
2396 len += templen; in bfa_fcs_lport_fdmi_build_portattr_block()
2398 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_portattr_block()
2399 sizeof(templen)); in bfa_fcs_lport_fdmi_build_portattr_block()
2403 templen = sizeof(fcs_port_attr.port_fabric_name); in bfa_fcs_lport_fdmi_build_portattr_block()
2404 memcpy(attr->value, &fcs_port_attr.port_fabric_name, templen); in bfa_fcs_lport_fdmi_build_portattr_block()
2405 templen = fc_roundup(templen, sizeof(u32)); in bfa_fcs_lport_fdmi_build_portattr_block()
2406 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; in bfa_fcs_lport_fdmi_build_portattr_block()
2407 len += templen; in bfa_fcs_lport_fdmi_build_portattr_block()
2409 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_portattr_block()
2410 sizeof(templen)); in bfa_fcs_lport_fdmi_build_portattr_block()
2414 templen = sizeof(fcs_port_attr.port_act_fc4_type); in bfa_fcs_lport_fdmi_build_portattr_block()
2416 templen); in bfa_fcs_lport_fdmi_build_portattr_block()
2417 templen = fc_roundup(templen, sizeof(u32)); in bfa_fcs_lport_fdmi_build_portattr_block()
2418 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; in bfa_fcs_lport_fdmi_build_portattr_block()
2419 len += templen; in bfa_fcs_lport_fdmi_build_portattr_block()
2421 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_portattr_block()
2422 sizeof(templen)); in bfa_fcs_lport_fdmi_build_portattr_block()
2426 templen = sizeof(fcs_port_attr.port_state); in bfa_fcs_lport_fdmi_build_portattr_block()
2427 memcpy(attr->value, &fcs_port_attr.port_state, templen); in bfa_fcs_lport_fdmi_build_portattr_block()
2428 templen = fc_roundup(templen, sizeof(u32)); in bfa_fcs_lport_fdmi_build_portattr_block()
2429 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; in bfa_fcs_lport_fdmi_build_portattr_block()
2430 len += templen; in bfa_fcs_lport_fdmi_build_portattr_block()
2432 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_portattr_block()
2433 sizeof(templen)); in bfa_fcs_lport_fdmi_build_portattr_block()
2437 templen = sizeof(fcs_port_attr.num_ports); in bfa_fcs_lport_fdmi_build_portattr_block()
2438 memcpy(attr->value, &fcs_port_attr.num_ports, templen); in bfa_fcs_lport_fdmi_build_portattr_block()
2439 templen = fc_roundup(templen, sizeof(u32)); in bfa_fcs_lport_fdmi_build_portattr_block()
2440 curr_ptr += sizeof(attr->type) + sizeof(templen) + templen; in bfa_fcs_lport_fdmi_build_portattr_block()
2441 len += templen; in bfa_fcs_lport_fdmi_build_portattr_block()
2443 attr->len = cpu_to_be16(templen + sizeof(attr->type) + in bfa_fcs_lport_fdmi_build_portattr_block()
2444 sizeof(templen)); in bfa_fcs_lport_fdmi_build_portattr_block()