Lines Matching refs:iface_param
2035 struct iscsi_iface_param_info *iface_param, in qla4xxx_set_ipv6() argument
2042 switch (iface_param->param) { in qla4xxx_set_ipv6()
2044 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2046 memcpy(init_fw_cb->ipv6_addr1, iface_param->value, in qla4xxx_set_ipv6()
2050 memcpy(init_fw_cb->ipv6_addr0, iface_param->value, in qla4xxx_set_ipv6()
2054 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2056 memcpy(init_fw_cb->ipv6_if_id, &iface_param->value[8], in qla4xxx_set_ipv6()
2060 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2062 memcpy(init_fw_cb->ipv6_dflt_rtr_addr, iface_param->value, in qla4xxx_set_ipv6()
2067 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2070 if (iface_param->value[0] == ISCSI_IPV6_AUTOCFG_DISABLE) in qla4xxx_set_ipv6()
2074 else if (iface_param->value[0] == ISCSI_IPV6_AUTOCFG_ND_ENABLE) in qla4xxx_set_ipv6()
2084 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2087 if (iface_param->value[0] == in qla4xxx_set_ipv6()
2091 else if (iface_param->value[0] == in qla4xxx_set_ipv6()
2101 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2104 if (iface_param->value[0] == ISCSI_IPV6_ROUTER_AUTOCFG_ENABLE) in qla4xxx_set_ipv6()
2109 if (iface_param->value[0] == ISCSI_IFACE_ENABLE) { in qla4xxx_set_ipv6()
2121 if (iface_param->len != sizeof(init_fw_cb->ipv6_vlan_tag)) in qla4xxx_set_ipv6()
2124 cpu_to_be16(*(uint16_t *)iface_param->value); in qla4xxx_set_ipv6()
2127 if (iface_param->value[0] == ISCSI_VLAN_ENABLE) in qla4xxx_set_ipv6()
2136 cpu_to_le16(*(uint16_t *)iface_param->value); in qla4xxx_set_ipv6()
2140 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2144 cpu_to_le16(*(uint16_t *)iface_param->value); in qla4xxx_set_ipv6()
2147 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2149 if (iface_param->value[0] == ISCSI_NET_PARAM_DISABLE) in qla4xxx_set_ipv6()
2158 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2160 if (iface_param->value[0] == ISCSI_NET_PARAM_DISABLE) in qla4xxx_set_ipv6()
2168 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2170 if (iface_param->value[0] == ISCSI_NET_PARAM_DISABLE) in qla4xxx_set_ipv6()
2178 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2180 init_fw_cb->ipv6_tcp_wsf = iface_param->value[0]; in qla4xxx_set_ipv6()
2183 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2188 cpu_to_le16((iface_param->value[0] << 1) & in qla4xxx_set_ipv6()
2192 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2194 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_ipv6()
2202 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2204 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_ipv6()
2212 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2214 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_ipv6()
2222 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2224 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_ipv6()
2232 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2235 cpu_to_le16(*(uint16_t *)iface_param->value); in qla4xxx_set_ipv6()
2238 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2240 init_fw_cb->ipv6_traffic_class = iface_param->value[0]; in qla4xxx_set_ipv6()
2243 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2245 init_fw_cb->ipv6_hop_limit = iface_param->value[0]; in qla4xxx_set_ipv6()
2248 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2251 cpu_to_le32(*(uint32_t *)iface_param->value); in qla4xxx_set_ipv6()
2254 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2257 cpu_to_le32(*(uint32_t *)iface_param->value); in qla4xxx_set_ipv6()
2260 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2263 cpu_to_le32(*(uint32_t *)iface_param->value); in qla4xxx_set_ipv6()
2266 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2268 init_fw_cb->ipv6_dup_addr_detect_count = iface_param->value[0]; in qla4xxx_set_ipv6()
2271 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2274 cpu_to_le32(*(uint32_t *)iface_param->value); in qla4xxx_set_ipv6()
2278 iface_param->param); in qla4xxx_set_ipv6()
2284 struct iscsi_iface_param_info *iface_param, in qla4xxx_set_ipv4() argument
2287 switch (iface_param->param) { in qla4xxx_set_ipv4()
2289 memcpy(init_fw_cb->ipv4_addr, iface_param->value, in qla4xxx_set_ipv4()
2293 memcpy(init_fw_cb->ipv4_subnet, iface_param->value, in qla4xxx_set_ipv4()
2297 memcpy(init_fw_cb->ipv4_gw_addr, iface_param->value, in qla4xxx_set_ipv4()
2301 if (iface_param->value[0] == ISCSI_BOOTPROTO_DHCP) in qla4xxx_set_ipv4()
2304 else if (iface_param->value[0] == ISCSI_BOOTPROTO_STATIC) in qla4xxx_set_ipv4()
2311 if (iface_param->value[0] == ISCSI_IFACE_ENABLE) { in qla4xxx_set_ipv4()
2323 if (iface_param->len != sizeof(init_fw_cb->ipv4_vlan_tag)) in qla4xxx_set_ipv4()
2326 cpu_to_be16(*(uint16_t *)iface_param->value); in qla4xxx_set_ipv4()
2329 if (iface_param->value[0] == ISCSI_VLAN_ENABLE) in qla4xxx_set_ipv4()
2338 cpu_to_le16(*(uint16_t *)iface_param->value); in qla4xxx_set_ipv4()
2342 cpu_to_le16(*(uint16_t *)iface_param->value); in qla4xxx_set_ipv4()
2345 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2347 if (iface_param->value[0] == ISCSI_NET_PARAM_DISABLE) in qla4xxx_set_ipv4()
2356 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2358 if (iface_param->value[0] == ISCSI_NET_PARAM_DISABLE) in qla4xxx_set_ipv4()
2366 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2368 if (iface_param->value[0] == ISCSI_NET_PARAM_DISABLE) in qla4xxx_set_ipv4()
2376 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2378 init_fw_cb->ipv4_tcp_wsf = iface_param->value[0]; in qla4xxx_set_ipv4()
2381 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2385 cpu_to_le16((iface_param->value[0] << 1) & in qla4xxx_set_ipv4()
2389 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2391 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_ipv4()
2399 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2401 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_ipv4()
2409 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2411 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_ipv4()
2419 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2421 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_ipv4()
2429 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2431 init_fw_cb->ipv4_tos = iface_param->value[0]; in qla4xxx_set_ipv4()
2434 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2436 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_ipv4()
2444 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2446 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_ipv4()
2454 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2456 memcpy(init_fw_cb->ipv4_dhcp_alt_cid, iface_param->value, in qla4xxx_set_ipv4()
2462 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2464 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_ipv4()
2472 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2474 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_ipv4()
2482 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2484 memcpy(init_fw_cb->ipv4_dhcp_vid, iface_param->value, in qla4xxx_set_ipv4()
2490 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2492 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_ipv4()
2500 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2502 if (iface_param->value[0] == ISCSI_NET_PARAM_DISABLE) in qla4xxx_set_ipv4()
2510 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2512 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_ipv4()
2520 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2522 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_ipv4()
2530 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2532 init_fw_cb->ipv4_ttl = iface_param->value[0]; in qla4xxx_set_ipv4()
2536 iface_param->param); in qla4xxx_set_ipv4()
2542 struct iscsi_iface_param_info *iface_param, in qla4xxx_set_iscsi_param() argument
2545 switch (iface_param->param) { in qla4xxx_set_iscsi_param()
2547 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2550 cpu_to_le16(*(uint16_t *)iface_param->value); in qla4xxx_set_iscsi_param()
2553 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2555 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_iscsi_param()
2563 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2565 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_iscsi_param()
2573 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2575 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_iscsi_param()
2583 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2585 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_iscsi_param()
2593 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2595 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_iscsi_param()
2603 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2605 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_iscsi_param()
2613 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2616 init_fw_cb->iscsi_opts |= cpu_to_le16(iface_param->value[0] & in qla4xxx_set_iscsi_param()
2620 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2623 cpu_to_le32(*(uint32_t *)iface_param->value) / in qla4xxx_set_iscsi_param()
2627 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2630 cpu_to_le32(*(uint32_t *)iface_param->value) / in qla4xxx_set_iscsi_param()
2634 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2637 cpu_to_le16(*(uint16_t *)iface_param->value); in qla4xxx_set_iscsi_param()
2640 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2643 cpu_to_le32(*(uint32_t *)iface_param->value) / in qla4xxx_set_iscsi_param()
2647 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2649 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_iscsi_param()
2657 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2659 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_iscsi_param()
2667 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2669 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_iscsi_param()
2677 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2679 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_iscsi_param()
2687 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2689 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_iscsi_param()
2698 iface_param->param); in qla4xxx_set_iscsi_param()
2730 struct iscsi_iface_param_info *iface_param = NULL; in qla4xxx_iface_set_param() local
2757 iface_param = nla_data(attr); in qla4xxx_iface_set_param()
2759 if (iface_param->param_type == ISCSI_NET_PARAM) { in qla4xxx_iface_set_param()
2760 switch (iface_param->iface_type) { in qla4xxx_iface_set_param()
2762 switch (iface_param->iface_num) { in qla4xxx_iface_set_param()
2764 qla4xxx_set_ipv4(ha, iface_param, in qla4xxx_iface_set_param()
2771 iface_param->iface_num); in qla4xxx_iface_set_param()
2776 switch (iface_param->iface_num) { in qla4xxx_iface_set_param()
2779 qla4xxx_set_ipv6(ha, iface_param, in qla4xxx_iface_set_param()
2786 iface_param->iface_num); in qla4xxx_iface_set_param()
2795 } else if (iface_param->param_type == ISCSI_IFACE_PARAM) { in qla4xxx_iface_set_param()
2796 qla4xxx_set_iscsi_param(ha, iface_param, in qla4xxx_iface_set_param()