Lines Matching refs:iface_param

2031 			     struct iscsi_iface_param_info *iface_param,  in qla4xxx_set_ipv6()  argument
2038 switch (iface_param->param) { in qla4xxx_set_ipv6()
2040 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2042 memcpy(init_fw_cb->ipv6_addr1, iface_param->value, in qla4xxx_set_ipv6()
2046 memcpy(init_fw_cb->ipv6_addr0, iface_param->value, in qla4xxx_set_ipv6()
2050 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2052 memcpy(init_fw_cb->ipv6_if_id, &iface_param->value[8], in qla4xxx_set_ipv6()
2056 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2058 memcpy(init_fw_cb->ipv6_dflt_rtr_addr, iface_param->value, in qla4xxx_set_ipv6()
2063 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2066 if (iface_param->value[0] == ISCSI_IPV6_AUTOCFG_DISABLE) in qla4xxx_set_ipv6()
2070 else if (iface_param->value[0] == ISCSI_IPV6_AUTOCFG_ND_ENABLE) in qla4xxx_set_ipv6()
2080 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2083 if (iface_param->value[0] == in qla4xxx_set_ipv6()
2087 else if (iface_param->value[0] == in qla4xxx_set_ipv6()
2097 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2100 if (iface_param->value[0] == ISCSI_IPV6_ROUTER_AUTOCFG_ENABLE) in qla4xxx_set_ipv6()
2105 if (iface_param->value[0] == ISCSI_IFACE_ENABLE) { in qla4xxx_set_ipv6()
2117 if (iface_param->len != sizeof(init_fw_cb->ipv6_vlan_tag)) in qla4xxx_set_ipv6()
2120 cpu_to_be16(*(uint16_t *)iface_param->value); in qla4xxx_set_ipv6()
2123 if (iface_param->value[0] == ISCSI_VLAN_ENABLE) in qla4xxx_set_ipv6()
2132 cpu_to_le16(*(uint16_t *)iface_param->value); in qla4xxx_set_ipv6()
2136 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2140 cpu_to_le16(*(uint16_t *)iface_param->value); in qla4xxx_set_ipv6()
2143 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2145 if (iface_param->value[0] == ISCSI_NET_PARAM_DISABLE) in qla4xxx_set_ipv6()
2154 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2156 if (iface_param->value[0] == ISCSI_NET_PARAM_DISABLE) in qla4xxx_set_ipv6()
2164 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2166 if (iface_param->value[0] == ISCSI_NET_PARAM_DISABLE) in qla4xxx_set_ipv6()
2174 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2176 init_fw_cb->ipv6_tcp_wsf = iface_param->value[0]; in qla4xxx_set_ipv6()
2179 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2184 cpu_to_le16((iface_param->value[0] << 1) & in qla4xxx_set_ipv6()
2188 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2190 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_ipv6()
2198 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2200 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_ipv6()
2208 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2210 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_ipv6()
2218 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2220 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_ipv6()
2228 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2231 cpu_to_le16(*(uint16_t *)iface_param->value); in qla4xxx_set_ipv6()
2234 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2236 init_fw_cb->ipv6_traffic_class = iface_param->value[0]; in qla4xxx_set_ipv6()
2239 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2241 init_fw_cb->ipv6_hop_limit = iface_param->value[0]; in qla4xxx_set_ipv6()
2244 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2247 cpu_to_le32(*(uint32_t *)iface_param->value); in qla4xxx_set_ipv6()
2250 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2253 cpu_to_le32(*(uint32_t *)iface_param->value); in qla4xxx_set_ipv6()
2256 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2259 cpu_to_le32(*(uint32_t *)iface_param->value); in qla4xxx_set_ipv6()
2262 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2264 init_fw_cb->ipv6_dup_addr_detect_count = iface_param->value[0]; in qla4xxx_set_ipv6()
2267 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv6()
2270 cpu_to_le32(*(uint32_t *)iface_param->value); in qla4xxx_set_ipv6()
2274 iface_param->param); in qla4xxx_set_ipv6()
2280 struct iscsi_iface_param_info *iface_param, in qla4xxx_set_ipv4() argument
2283 switch (iface_param->param) { in qla4xxx_set_ipv4()
2285 memcpy(init_fw_cb->ipv4_addr, iface_param->value, in qla4xxx_set_ipv4()
2289 memcpy(init_fw_cb->ipv4_subnet, iface_param->value, in qla4xxx_set_ipv4()
2293 memcpy(init_fw_cb->ipv4_gw_addr, iface_param->value, in qla4xxx_set_ipv4()
2297 if (iface_param->value[0] == ISCSI_BOOTPROTO_DHCP) in qla4xxx_set_ipv4()
2300 else if (iface_param->value[0] == ISCSI_BOOTPROTO_STATIC) in qla4xxx_set_ipv4()
2307 if (iface_param->value[0] == ISCSI_IFACE_ENABLE) { in qla4xxx_set_ipv4()
2319 if (iface_param->len != sizeof(init_fw_cb->ipv4_vlan_tag)) in qla4xxx_set_ipv4()
2322 cpu_to_be16(*(uint16_t *)iface_param->value); in qla4xxx_set_ipv4()
2325 if (iface_param->value[0] == ISCSI_VLAN_ENABLE) in qla4xxx_set_ipv4()
2334 cpu_to_le16(*(uint16_t *)iface_param->value); in qla4xxx_set_ipv4()
2338 cpu_to_le16(*(uint16_t *)iface_param->value); in qla4xxx_set_ipv4()
2341 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2343 if (iface_param->value[0] == ISCSI_NET_PARAM_DISABLE) in qla4xxx_set_ipv4()
2352 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2354 if (iface_param->value[0] == ISCSI_NET_PARAM_DISABLE) in qla4xxx_set_ipv4()
2362 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2364 if (iface_param->value[0] == ISCSI_NET_PARAM_DISABLE) in qla4xxx_set_ipv4()
2372 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2374 init_fw_cb->ipv4_tcp_wsf = iface_param->value[0]; in qla4xxx_set_ipv4()
2377 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2381 cpu_to_le16((iface_param->value[0] << 1) & in qla4xxx_set_ipv4()
2385 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2387 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_ipv4()
2395 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2397 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_ipv4()
2405 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2407 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_ipv4()
2415 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2417 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_ipv4()
2425 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2427 init_fw_cb->ipv4_tos = iface_param->value[0]; in qla4xxx_set_ipv4()
2430 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2432 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_ipv4()
2440 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2442 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_ipv4()
2450 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2452 memcpy(init_fw_cb->ipv4_dhcp_alt_cid, iface_param->value, in qla4xxx_set_ipv4()
2458 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2460 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_ipv4()
2468 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2470 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_ipv4()
2478 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2480 memcpy(init_fw_cb->ipv4_dhcp_vid, iface_param->value, in qla4xxx_set_ipv4()
2486 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2488 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_ipv4()
2496 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2498 if (iface_param->value[0] == ISCSI_NET_PARAM_DISABLE) in qla4xxx_set_ipv4()
2506 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2508 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_ipv4()
2516 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2518 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_ipv4()
2526 if (iface_param->iface_num & 0x1) in qla4xxx_set_ipv4()
2528 init_fw_cb->ipv4_ttl = iface_param->value[0]; in qla4xxx_set_ipv4()
2532 iface_param->param); in qla4xxx_set_ipv4()
2538 struct iscsi_iface_param_info *iface_param, in qla4xxx_set_iscsi_param() argument
2541 switch (iface_param->param) { in qla4xxx_set_iscsi_param()
2543 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2546 cpu_to_le16(*(uint16_t *)iface_param->value); in qla4xxx_set_iscsi_param()
2549 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2551 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_iscsi_param()
2559 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2561 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_iscsi_param()
2569 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2571 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_iscsi_param()
2579 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2581 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_iscsi_param()
2589 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2591 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_iscsi_param()
2599 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2601 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_iscsi_param()
2609 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2612 init_fw_cb->iscsi_opts |= cpu_to_le16(iface_param->value[0] & in qla4xxx_set_iscsi_param()
2616 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2619 cpu_to_le32(*(uint32_t *)iface_param->value) / in qla4xxx_set_iscsi_param()
2623 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2626 cpu_to_le32(*(uint32_t *)iface_param->value) / in qla4xxx_set_iscsi_param()
2630 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2633 cpu_to_le16(*(uint16_t *)iface_param->value); in qla4xxx_set_iscsi_param()
2636 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2639 cpu_to_le32(*(uint32_t *)iface_param->value) / in qla4xxx_set_iscsi_param()
2643 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2645 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_iscsi_param()
2653 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2655 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_iscsi_param()
2663 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2665 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_iscsi_param()
2673 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2675 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_iscsi_param()
2683 if (iface_param->iface_num & 0x1) in qla4xxx_set_iscsi_param()
2685 if (iface_param->value[0] == ISCSI_NET_PARAM_ENABLE) in qla4xxx_set_iscsi_param()
2694 iface_param->param); in qla4xxx_set_iscsi_param()
2726 struct iscsi_iface_param_info *iface_param = NULL; in qla4xxx_iface_set_param() local
2753 iface_param = nla_data(attr); in qla4xxx_iface_set_param()
2755 if (iface_param->param_type == ISCSI_NET_PARAM) { in qla4xxx_iface_set_param()
2756 switch (iface_param->iface_type) { in qla4xxx_iface_set_param()
2758 switch (iface_param->iface_num) { in qla4xxx_iface_set_param()
2760 qla4xxx_set_ipv4(ha, iface_param, in qla4xxx_iface_set_param()
2767 iface_param->iface_num); in qla4xxx_iface_set_param()
2772 switch (iface_param->iface_num) { in qla4xxx_iface_set_param()
2775 qla4xxx_set_ipv6(ha, iface_param, in qla4xxx_iface_set_param()
2782 iface_param->iface_num); in qla4xxx_iface_set_param()
2791 } else if (iface_param->param_type == ISCSI_IFACE_PARAM) { in qla4xxx_iface_set_param()
2792 qla4xxx_set_iscsi_param(ha, iface_param, in qla4xxx_iface_set_param()