Lines Matching defs:if_info
515 struct be_cmd_get_if_info_resp *if_info)
534 req->ip_params.ip_record.ip_addr.ip_type = if_info->ip_addr.ip_type;
536 if_info->ip_addr.addr,
537 sizeof(if_info->ip_addr.addr));
539 if_info->ip_addr.subnet_mask,
540 sizeof(if_info->ip_addr.subnet_mask));
599 struct be_cmd_get_if_info_resp *if_info;
604 rc = beiscsi_if_get_info(phba, ip_type, &if_info);
608 if (if_info->dhcp_state) {
630 if (!beiscsi_if_zero_ip(if_info->ip_addr.addr, ip_type)) {
631 rc = beiscsi_if_clr_ip(phba, if_info);
640 kfree(if_info);
647 struct be_cmd_get_if_info_resp *if_info;
653 rc = beiscsi_if_get_info(phba, ip_type, &if_info);
657 if (if_info->dhcp_state) {
664 if (!beiscsi_if_zero_ip(if_info->ip_addr.addr, ip_type)) {
665 rc = beiscsi_if_clr_ip(phba, if_info);
672 /* use ip_type provided in if_info */
673 rc = beiscsi_if_get_gw(phba, if_info->ip_addr.ip_type, &gw_resp);
680 if (!beiscsi_if_zero_ip(gw, if_info->ip_addr.ip_type)) {
682 if_info->ip_addr.ip_type, gw);
704 kfree(if_info);
745 struct be_cmd_get_if_info_resp **if_info)
768 /* Allocate memory for if_info */
769 *if_info = kzalloc(ioctl_size, GFP_KERNEL);
770 if (!*if_info) {
780 rc = beiscsi_exec_nemb_cmd(phba, &nonemb_cmd, NULL, *if_info,
793 kfree(*if_info);