Lines Matching refs:new_fcport

2640 	fc_port_t	*fcport, *new_fcport;  in qla2x00_configure_local_loop()  local
2650 new_fcport = NULL; in qla2x00_configure_local_loop()
2672 new_fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL); in qla2x00_configure_local_loop()
2673 if (new_fcport == NULL) { in qla2x00_configure_local_loop()
2679 new_fcport->flags &= ~FCF_FABRIC_DEVICE; in qla2x00_configure_local_loop()
2725 new_fcport->d_id.b.domain = domain; in qla2x00_configure_local_loop()
2726 new_fcport->d_id.b.area = area; in qla2x00_configure_local_loop()
2727 new_fcport->d_id.b.al_pa = al_pa; in qla2x00_configure_local_loop()
2728 new_fcport->loop_id = loop_id; in qla2x00_configure_local_loop()
2729 new_fcport->vp_idx = vha->vp_idx; in qla2x00_configure_local_loop()
2730 rval2 = qla2x00_get_port_database(vha, new_fcport, 0); in qla2x00_configure_local_loop()
2735 rval2, new_fcport->loop_id); in qla2x00_configure_local_loop()
2746 if (memcmp(new_fcport->port_name, fcport->port_name, in qla2x00_configure_local_loop()
2751 fcport->loop_id = new_fcport->loop_id; in qla2x00_configure_local_loop()
2752 fcport->port_type = new_fcport->port_type; in qla2x00_configure_local_loop()
2753 fcport->d_id.b24 = new_fcport->d_id.b24; in qla2x00_configure_local_loop()
2754 memcpy(fcport->node_name, new_fcport->node_name, in qla2x00_configure_local_loop()
2764 new_fcport->vha = vha; in qla2x00_configure_local_loop()
2765 new_fcport->vp_idx = vha->vp_idx; in qla2x00_configure_local_loop()
2767 list_add_tail(&new_fcport->list, &vha->vp_fcports); in qla2x00_configure_local_loop()
2770 fcport = new_fcport; in qla2x00_configure_local_loop()
2771 new_fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL); in qla2x00_configure_local_loop()
2772 if (new_fcport == NULL) { in qla2x00_configure_local_loop()
2778 new_fcport->flags &= ~FCF_FABRIC_DEVICE; in qla2x00_configure_local_loop()
2790 kfree(new_fcport); in qla2x00_configure_local_loop()
3128 fc_port_t *fcport, *new_fcport, *fcptemp; in qla2x00_find_all_fabric_devs() local
3170 new_fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL); in qla2x00_find_all_fabric_devs()
3171 if (new_fcport == NULL) { in qla2x00_find_all_fabric_devs()
3176 new_fcport->flags |= (FCF_FABRIC_DEVICE | FCF_LOGIN_NEEDED); in qla2x00_find_all_fabric_devs()
3198 wrap.b24 = new_fcport->d_id.b24; in qla2x00_find_all_fabric_devs()
3200 new_fcport->d_id.b24 = swl[swl_idx].d_id.b24; in qla2x00_find_all_fabric_devs()
3201 memcpy(new_fcport->node_name, in qla2x00_find_all_fabric_devs()
3203 memcpy(new_fcport->port_name, in qla2x00_find_all_fabric_devs()
3205 memcpy(new_fcport->fabric_port_name, in qla2x00_find_all_fabric_devs()
3207 new_fcport->fp_speed = swl[swl_idx].fp_speed; in qla2x00_find_all_fabric_devs()
3208 new_fcport->fc4_type = swl[swl_idx].fc4_type; in qla2x00_find_all_fabric_devs()
3217 rval = qla2x00_ga_nxt(vha, new_fcport); in qla2x00_find_all_fabric_devs()
3234 wrap.b24 = new_fcport->d_id.b24; in qla2x00_find_all_fabric_devs()
3236 } else if (new_fcport->d_id.b24 == wrap.b24) { in qla2x00_find_all_fabric_devs()
3239 new_fcport->d_id.b.domain, in qla2x00_find_all_fabric_devs()
3240 new_fcport->d_id.b.area, in qla2x00_find_all_fabric_devs()
3241 new_fcport->d_id.b.al_pa); in qla2x00_find_all_fabric_devs()
3246 if (new_fcport->d_id.b24 == base_vha->d_id.b24) in qla2x00_find_all_fabric_devs()
3256 if (new_fcport->d_id.b24 == vp->d_id.b24) { in qla2x00_find_all_fabric_devs()
3268 if (((new_fcport->d_id.b24 & 0xffff00) == in qla2x00_find_all_fabric_devs()
3274 if ((new_fcport->d_id.b.domain & 0xf0) == 0xf0) in qla2x00_find_all_fabric_devs()
3279 (new_fcport->fc4_type != FC4_TYPE_FCP_SCSI && in qla2x00_find_all_fabric_devs()
3280 new_fcport->fc4_type != FC4_TYPE_UNKNOWN)) in qla2x00_find_all_fabric_devs()
3286 if (memcmp(new_fcport->port_name, fcport->port_name, in qla2x00_find_all_fabric_devs()
3296 new_fcport->fabric_port_name, WWN_SIZE); in qla2x00_find_all_fabric_devs()
3297 fcport->fp_speed = new_fcport->fp_speed; in qla2x00_find_all_fabric_devs()
3303 if (fcport->d_id.b24 == new_fcport->d_id.b24 && in qla2x00_find_all_fabric_devs()
3312 fcport->d_id.b24 = new_fcport->d_id.b24; in qla2x00_find_all_fabric_devs()
3324 fcport->d_id.b24 = new_fcport->d_id.b24; in qla2x00_find_all_fabric_devs()
3343 list_add_tail(&new_fcport->list, new_fcports); in qla2x00_find_all_fabric_devs()
3346 nxt_d_id.b24 = new_fcport->d_id.b24; in qla2x00_find_all_fabric_devs()
3347 new_fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL); in qla2x00_find_all_fabric_devs()
3348 if (new_fcport == NULL) { in qla2x00_find_all_fabric_devs()
3353 new_fcport->flags |= (FCF_FABRIC_DEVICE | FCF_LOGIN_NEEDED); in qla2x00_find_all_fabric_devs()
3354 new_fcport->d_id.b24 = nxt_d_id.b24; in qla2x00_find_all_fabric_devs()
3357 kfree(new_fcport); in qla2x00_find_all_fabric_devs()