iface_param 309 drivers/scsi/be2iscsi/be_iscsi.c struct iscsi_iface_param_info *iface_param) iface_param 314 drivers/scsi/be2iscsi/be_iscsi.c switch (iface_param->param) { iface_param 317 drivers/scsi/be2iscsi/be_iscsi.c if (iface_param->value[0] != ISCSI_VLAN_ENABLE) iface_param 322 drivers/scsi/be2iscsi/be_iscsi.c *((uint16_t *)iface_param->value)); iface_param 396 drivers/scsi/be2iscsi/be_iscsi.c struct iscsi_iface_param_info *iface_param, iface_param 402 drivers/scsi/be2iscsi/be_iscsi.c switch (iface_param->param) { iface_param 404 drivers/scsi/be2iscsi/be_iscsi.c if (iface_param->value[0] == ISCSI_IFACE_ENABLE) iface_param 413 drivers/scsi/be2iscsi/be_iscsi.c iface_param->value, NULL); iface_param 423 drivers/scsi/be2iscsi/be_iscsi.c struct iscsi_iface_param_info *iface_param = NULL; iface_param 444 drivers/scsi/be2iscsi/be_iscsi.c iface_param = nla_data(attrib); iface_param 446 drivers/scsi/be2iscsi/be_iscsi.c if (iface_param->param_type != ISCSI_NET_PARAM) iface_param 452 drivers/scsi/be2iscsi/be_iscsi.c if (iface_param->iface_num) { iface_param 456 drivers/scsi/be2iscsi/be_iscsi.c iface_param->iface_num); iface_param 463 drivers/scsi/be2iscsi/be_iscsi.c (iface_param->iface_type == ISCSI_IFACE_TYPE_IPV4) ? iface_param 464 drivers/scsi/be2iscsi/be_iscsi.c "ipv4" : "ipv6", iface_param->param); iface_param 467 drivers/scsi/be2iscsi/be_iscsi.c switch (iface_param->param) { iface_param 470 drivers/scsi/be2iscsi/be_iscsi.c ret = beiscsi_iface_config_vlan(shost, iface_param); iface_param 473 drivers/scsi/be2iscsi/be_iscsi.c switch (iface_param->iface_type) { iface_param 476 drivers/scsi/be2iscsi/be_iscsi.c iface_param, iface_param 481 drivers/scsi/be2iscsi/be_iscsi.c iface_param, iface_param 490 drivers/scsi/be2iscsi/be_iscsi.c (iface_param->iface_type == iface_param 492 drivers/scsi/be2iscsi/be_iscsi.c iface_param->param); iface_param 2004 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_iface_param_info *iface_param, iface_param 2011 drivers/scsi/qla4xxx/ql4_os.c switch (iface_param->param) { iface_param 2013 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2015 drivers/scsi/qla4xxx/ql4_os.c memcpy(init_fw_cb->ipv6_addr1, iface_param->value, iface_param 2019 drivers/scsi/qla4xxx/ql4_os.c memcpy(init_fw_cb->ipv6_addr0, iface_param->value, iface_param 2023 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2025 drivers/scsi/qla4xxx/ql4_os.c memcpy(init_fw_cb->ipv6_if_id, &iface_param->value[8], iface_param 2029 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2031 drivers/scsi/qla4xxx/ql4_os.c memcpy(init_fw_cb->ipv6_dflt_rtr_addr, iface_param->value, iface_param 2036 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2039 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_IPV6_AUTOCFG_DISABLE) iface_param 2043 drivers/scsi/qla4xxx/ql4_os.c else if (iface_param->value[0] == ISCSI_IPV6_AUTOCFG_ND_ENABLE) iface_param 2053 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2056 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == iface_param 2060 drivers/scsi/qla4xxx/ql4_os.c else if (iface_param->value[0] == iface_param 2070 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2073 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_IPV6_ROUTER_AUTOCFG_ENABLE) iface_param 2078 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_IFACE_ENABLE) { iface_param 2090 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->len != sizeof(init_fw_cb->ipv6_vlan_tag)) iface_param 2093 drivers/scsi/qla4xxx/ql4_os.c cpu_to_be16(*(uint16_t *)iface_param->value); iface_param 2096 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_VLAN_ENABLE) iface_param 2105 drivers/scsi/qla4xxx/ql4_os.c cpu_to_le16(*(uint16_t *)iface_param->value); iface_param 2109 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2113 drivers/scsi/qla4xxx/ql4_os.c cpu_to_le16(*(uint16_t *)iface_param->value); iface_param 2116 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2118 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_DISABLE) iface_param 2127 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2129 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_DISABLE) iface_param 2137 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2139 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_DISABLE) iface_param 2147 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2149 drivers/scsi/qla4xxx/ql4_os.c init_fw_cb->ipv6_tcp_wsf = iface_param->value[0]; iface_param 2152 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2157 drivers/scsi/qla4xxx/ql4_os.c cpu_to_le16((iface_param->value[0] << 1) & iface_param 2161 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2163 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) iface_param 2171 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2173 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) iface_param 2181 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2183 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) iface_param 2191 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2193 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) iface_param 2201 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2204 drivers/scsi/qla4xxx/ql4_os.c cpu_to_le16(*(uint16_t *)iface_param->value); iface_param 2207 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2209 drivers/scsi/qla4xxx/ql4_os.c init_fw_cb->ipv6_traffic_class = iface_param->value[0]; iface_param 2212 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2214 drivers/scsi/qla4xxx/ql4_os.c init_fw_cb->ipv6_hop_limit = iface_param->value[0]; iface_param 2217 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2220 drivers/scsi/qla4xxx/ql4_os.c cpu_to_le32(*(uint32_t *)iface_param->value); iface_param 2223 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2226 drivers/scsi/qla4xxx/ql4_os.c cpu_to_le32(*(uint32_t *)iface_param->value); iface_param 2229 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2232 drivers/scsi/qla4xxx/ql4_os.c cpu_to_le32(*(uint32_t *)iface_param->value); iface_param 2235 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2237 drivers/scsi/qla4xxx/ql4_os.c init_fw_cb->ipv6_dup_addr_detect_count = iface_param->value[0]; iface_param 2240 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2243 drivers/scsi/qla4xxx/ql4_os.c cpu_to_le32(*(uint32_t *)iface_param->value); iface_param 2247 drivers/scsi/qla4xxx/ql4_os.c iface_param->param); iface_param 2253 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_iface_param_info *iface_param, iface_param 2256 drivers/scsi/qla4xxx/ql4_os.c switch (iface_param->param) { iface_param 2258 drivers/scsi/qla4xxx/ql4_os.c memcpy(init_fw_cb->ipv4_addr, iface_param->value, iface_param 2262 drivers/scsi/qla4xxx/ql4_os.c memcpy(init_fw_cb->ipv4_subnet, iface_param->value, iface_param 2266 drivers/scsi/qla4xxx/ql4_os.c memcpy(init_fw_cb->ipv4_gw_addr, iface_param->value, iface_param 2270 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_BOOTPROTO_DHCP) iface_param 2273 drivers/scsi/qla4xxx/ql4_os.c else if (iface_param->value[0] == ISCSI_BOOTPROTO_STATIC) iface_param 2280 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_IFACE_ENABLE) { iface_param 2292 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->len != sizeof(init_fw_cb->ipv4_vlan_tag)) iface_param 2295 drivers/scsi/qla4xxx/ql4_os.c cpu_to_be16(*(uint16_t *)iface_param->value); iface_param 2298 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_VLAN_ENABLE) iface_param 2307 drivers/scsi/qla4xxx/ql4_os.c cpu_to_le16(*(uint16_t *)iface_param->value); iface_param 2311 drivers/scsi/qla4xxx/ql4_os.c cpu_to_le16(*(uint16_t *)iface_param->value); iface_param 2314 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2316 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_DISABLE) iface_param 2325 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2327 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_DISABLE) iface_param 2335 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2337 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_DISABLE) iface_param 2345 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2347 drivers/scsi/qla4xxx/ql4_os.c init_fw_cb->ipv4_tcp_wsf = iface_param->value[0]; iface_param 2350 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2354 drivers/scsi/qla4xxx/ql4_os.c cpu_to_le16((iface_param->value[0] << 1) & iface_param 2358 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2360 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) iface_param 2368 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2370 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) iface_param 2378 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2380 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) iface_param 2388 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2390 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) iface_param 2398 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2400 drivers/scsi/qla4xxx/ql4_os.c init_fw_cb->ipv4_tos = iface_param->value[0]; iface_param 2403 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2405 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) iface_param 2413 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2415 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) iface_param 2423 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2425 drivers/scsi/qla4xxx/ql4_os.c memcpy(init_fw_cb->ipv4_dhcp_alt_cid, iface_param->value, iface_param 2431 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2433 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) iface_param 2441 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2443 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) iface_param 2451 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2453 drivers/scsi/qla4xxx/ql4_os.c memcpy(init_fw_cb->ipv4_dhcp_vid, iface_param->value, iface_param 2459 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2461 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) iface_param 2469 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2471 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_DISABLE) iface_param 2479 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2481 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) iface_param 2489 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2491 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) iface_param 2499 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2501 drivers/scsi/qla4xxx/ql4_os.c init_fw_cb->ipv4_ttl = iface_param->value[0]; iface_param 2505 drivers/scsi/qla4xxx/ql4_os.c iface_param->param); iface_param 2511 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_iface_param_info *iface_param, iface_param 2514 drivers/scsi/qla4xxx/ql4_os.c switch (iface_param->param) { iface_param 2516 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2519 drivers/scsi/qla4xxx/ql4_os.c cpu_to_le16(*(uint16_t *)iface_param->value); iface_param 2522 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2524 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) iface_param 2532 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2534 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) iface_param 2542 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2544 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) iface_param 2552 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2554 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) iface_param 2562 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2564 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) iface_param 2572 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2574 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) iface_param 2582 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2585 drivers/scsi/qla4xxx/ql4_os.c init_fw_cb->iscsi_opts |= cpu_to_le16(iface_param->value[0] & iface_param 2589 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2592 drivers/scsi/qla4xxx/ql4_os.c cpu_to_le32(*(uint32_t *)iface_param->value) / iface_param 2596 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2599 drivers/scsi/qla4xxx/ql4_os.c cpu_to_le32(*(uint32_t *)iface_param->value) / iface_param 2603 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2606 drivers/scsi/qla4xxx/ql4_os.c cpu_to_le16(*(uint16_t *)iface_param->value); iface_param 2609 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2612 drivers/scsi/qla4xxx/ql4_os.c cpu_to_le32(*(uint32_t *)iface_param->value) / iface_param 2616 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2618 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) iface_param 2626 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2628 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) iface_param 2636 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2638 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) iface_param 2646 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2648 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) iface_param 2656 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->iface_num & 0x1) iface_param 2658 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) iface_param 2667 drivers/scsi/qla4xxx/ql4_os.c iface_param->param); iface_param 2699 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_iface_param_info *iface_param = NULL; iface_param 2726 drivers/scsi/qla4xxx/ql4_os.c iface_param = nla_data(attr); iface_param 2728 drivers/scsi/qla4xxx/ql4_os.c if (iface_param->param_type == ISCSI_NET_PARAM) { iface_param 2729 drivers/scsi/qla4xxx/ql4_os.c switch (iface_param->iface_type) { iface_param 2731 drivers/scsi/qla4xxx/ql4_os.c switch (iface_param->iface_num) { iface_param 2733 drivers/scsi/qla4xxx/ql4_os.c qla4xxx_set_ipv4(ha, iface_param, iface_param 2740 drivers/scsi/qla4xxx/ql4_os.c iface_param->iface_num); iface_param 2745 drivers/scsi/qla4xxx/ql4_os.c switch (iface_param->iface_num) { iface_param 2748 drivers/scsi/qla4xxx/ql4_os.c qla4xxx_set_ipv6(ha, iface_param, iface_param 2755 drivers/scsi/qla4xxx/ql4_os.c iface_param->iface_num); iface_param 2764 drivers/scsi/qla4xxx/ql4_os.c } else if (iface_param->param_type == ISCSI_IFACE_PARAM) { iface_param 2765 drivers/scsi/qla4xxx/ql4_os.c qla4xxx_set_iscsi_param(ha, iface_param,