Searched refs:if_info (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/drivers/scsi/be2iscsi/
H A Dbe_iscsi.c280 struct be_cmd_get_if_info_resp *if_info; beiscsi_create_def_ifaces() local
282 if (!mgmt_get_if_info(phba, BE2_IPV4, &if_info)) { beiscsi_create_def_ifaces()
284 kfree(if_info); beiscsi_create_def_ifaces()
287 if (!mgmt_get_if_info(phba, BE2_IPV6, &if_info)) { beiscsi_create_def_ifaces()
289 kfree(if_info); beiscsi_create_def_ifaces()
537 struct be_cmd_get_if_info_resp *if_info; be2iscsi_get_if_param() local
543 len = mgmt_get_if_info(phba, ip_type, &if_info); be2iscsi_get_if_param()
549 len = sprintf(buf, "%pI4\n", if_info->ip_addr.addr); be2iscsi_get_if_param()
552 len = sprintf(buf, "%pI6\n", if_info->ip_addr.addr); be2iscsi_get_if_param()
555 if (!if_info->dhcp_state) be2iscsi_get_if_param()
561 len = sprintf(buf, "%pI4\n", if_info->ip_addr.subnet_mask); be2iscsi_get_if_param()
565 (if_info->vlan_priority == BEISCSI_VLAN_DISABLE) be2iscsi_get_if_param()
569 if (if_info->vlan_priority == BEISCSI_VLAN_DISABLE) be2iscsi_get_if_param()
573 (if_info->vlan_priority & be2iscsi_get_if_param()
577 if (if_info->vlan_priority == BEISCSI_VLAN_DISABLE) be2iscsi_get_if_param()
581 ((if_info->vlan_priority >> 13) & be2iscsi_get_if_param()
588 kfree(if_info); be2iscsi_get_if_param()
H A Dbe_mgmt.c916 struct be_cmd_get_if_info_resp *if_info, mgmt_static_ip_modify()
954 if_info->ip_addr.addr, mgmt_static_ip_modify()
958 if_info->ip_addr.subnet_mask, mgmt_static_ip_modify()
998 struct be_cmd_get_if_info_resp *if_info; mgmt_set_ip() local
1012 rc = mgmt_get_if_info(phba, ip_type, &if_info); mgmt_set_ip()
1017 if (if_info->dhcp_state) { mgmt_set_ip()
1030 if (if_info->dhcp_state) { mgmt_set_ip()
1032 memset(if_info, 0, sizeof(*if_info)); mgmt_set_ip()
1055 if (if_info->ip_addr.addr[0]) { mgmt_set_ip()
1056 rc = mgmt_static_ip_modify(phba, if_info, ip_param, NULL, mgmt_set_ip()
1102 rc = mgmt_static_ip_modify(phba, if_info, ip_param, mgmt_set_ip()
1107 kfree(if_info); mgmt_set_ip()
1169 struct be_cmd_get_if_info_resp **if_info) mgmt_get_if_info()
1190 /* Allocate memory for if_info */ mgmt_get_if_info()
1191 *if_info = kzalloc(ioctl_size, GFP_KERNEL); mgmt_get_if_info()
1192 if (!*if_info) { mgmt_get_if_info()
1205 rc = mgmt_exec_nonemb_cmd(phba, &nonemb_cmd, *if_info, mgmt_get_if_info()
1222 kfree(*if_info); mgmt_get_if_info()
915 mgmt_static_ip_modify(struct beiscsi_hba *phba, struct be_cmd_get_if_info_resp *if_info, struct iscsi_iface_param_info *ip_param, struct iscsi_iface_param_info *subnet_param, uint32_t ip_action) mgmt_static_ip_modify() argument
1168 mgmt_get_if_info(struct beiscsi_hba *phba, int ip_type, struct be_cmd_get_if_info_resp **if_info) mgmt_get_if_info() argument
H A Dbe_mgmt.h297 struct be_cmd_get_if_info_resp **if_info);

Completed in 80 milliseconds