Lines Matching defs:new_fcport
5316 fc_port_t *fcport, *new_fcport;
5330 new_fcport = NULL;
5376 new_fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL);
5377 if (new_fcport == NULL) {
5383 new_fcport->flags &= ~FCF_FABRIC_DEVICE;
5412 memset(new_fcport->port_name, 0, WWN_SIZE);
5415 new_fcport->d_id.b.domain = domain;
5416 new_fcport->d_id.b.area = area;
5417 new_fcport->d_id.b.al_pa = al_pa;
5418 new_fcport->loop_id = loop_id;
5419 new_fcport->scan_state = QLA_FCPORT_FOUND;
5421 rval2 = qla2x00_get_port_database(vha, new_fcport, 0);
5426 rval2, new_fcport->loop_id);
5441 if (memcmp(new_fcport->port_name, fcport->port_name,
5446 fcport->loop_id = new_fcport->loop_id;
5447 fcport->port_type = new_fcport->port_type;
5448 fcport->d_id.b24 = new_fcport->d_id.b24;
5449 memcpy(fcport->node_name, new_fcport->node_name,
5465 list_add_tail(&new_fcport->list, &vha->vp_fcports);
5468 fcport = new_fcport;
5472 new_fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL);
5474 if (new_fcport == NULL) {
5481 new_fcport->flags &= ~FCF_FABRIC_DEVICE;
5521 qla2x00_free_fcport(new_fcport);
5923 fc_port_t *fcport, *new_fcport;
5975 new_fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL);
5976 if (new_fcport == NULL) {
5981 new_fcport->flags |= (FCF_FABRIC_DEVICE | FCF_LOGIN_NEEDED);
6003 wrap.b24 = new_fcport->d_id.b24;
6005 new_fcport->d_id.b24 = swl[swl_idx].d_id.b24;
6006 memcpy(new_fcport->node_name,
6008 memcpy(new_fcport->port_name,
6010 memcpy(new_fcport->fabric_port_name,
6012 new_fcport->fp_speed = swl[swl_idx].fp_speed;
6013 new_fcport->fc4_type = swl[swl_idx].fc4_type;
6015 new_fcport->nvme_flag = 0;
6020 new_fcport->port_name);
6030 rval = qla2x00_ga_nxt(vha, new_fcport);
6042 wrap.b24 = new_fcport->d_id.b24;
6044 } else if (new_fcport->d_id.b24 == wrap.b24) {
6047 new_fcport->d_id.b.domain,
6048 new_fcport->d_id.b.area,
6049 new_fcport->d_id.b.al_pa);
6054 if (new_fcport->d_id.b24 == base_vha->d_id.b24)
6058 if (qla2x00_is_a_vp_did(vha, new_fcport->d_id.b24))
6062 if (((new_fcport->d_id.b24 & 0xffff00) ==
6068 if ((new_fcport->d_id.b.domain & 0xf0) == 0xf0)
6073 (!(new_fcport->fc4_type & FS_FC4TYPE_FCP) &&
6074 new_fcport->fc4_type != 0))
6082 if (memcmp(new_fcport->port_name, fcport->port_name,
6092 new_fcport->fabric_port_name, WWN_SIZE);
6093 fcport->fp_speed = new_fcport->fp_speed;
6099 if (fcport->d_id.b24 == new_fcport->d_id.b24 &&
6109 fcport->d_id.b24 = new_fcport->d_id.b24;
6130 new_fcport->d_id.b.domain,
6131 new_fcport->d_id.b.area,
6132 new_fcport->d_id.b.al_pa);
6133 fcport->d_id.b24 = new_fcport->d_id.b24;
6137 fcport->d_id.b24 = new_fcport->d_id.b24;
6155 new_fcport->scan_state = QLA_FCPORT_FOUND;
6156 list_add_tail(&new_fcport->list, &vha->vp_fcports);
6162 nxt_d_id.b24 = new_fcport->d_id.b24;
6163 new_fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL);
6164 if (new_fcport == NULL) {
6169 new_fcport->flags |= (FCF_FABRIC_DEVICE | FCF_LOGIN_NEEDED);
6170 new_fcport->d_id.b24 = nxt_d_id.b24;
6173 qla2x00_free_fcport(new_fcport);