Lines Matching refs:fcport
730 qlafx00_abort_target(fc_port_t *fcport, uint64_t l, int tag)
732 return qla2x00_async_tm_cmd(fcport, TCF_TARGET_RESET, l, tag);
736 qlafx00_lun_reset(fc_port_t *fcport, uint64_t l, int tag)
738 return qla2x00_async_tm_cmd(fcport, TCF_LUN_RESET, l, tag);
1099 fc_port_t *fcport, *new_fcport;
1141 list_for_each_entry(fcport, &vha->vp_fcports, list) {
1143 fcport->port_name, WWN_SIZE))
1152 if (fcport->tgt_id == new_fcport->tgt_id &&
1153 atomic_read(&fcport->state) == FCS_ONLINE)
1163 __func__, fcport->tgt_id,
1164 atomic_read(&fcport->state),
1165 (unsigned long long)wwn_to_u64(fcport->node_name),
1166 (unsigned long long)wwn_to_u64(fcport->port_name));
1177 if (atomic_read(&fcport->state) != FCS_ONLINE) {
1178 fcport->old_tgt_id = fcport->tgt_id;
1179 fcport->tgt_id = new_fcport->tgt_id;
1181 "TGT-ID: New fcport Added: %p\n", fcport);
1182 qla2x00_update_fcport(vha, fcport);
1187 fcport->old_tgt_id);
1188 qla2x00_mark_device_lost(vha, fcport, 0);
1202 /* Allocate a new replacement fcport. */
1227 fc_port_t *fcport, *rmptemp;
1230 rval = qlafx00_fx_disc(vha, &vha->hw->mr.fcport,
1246 list_for_each_entry(fcport, &vha->vp_fcports, list) {
1250 if (atomic_read(&fcport->state) == FCS_DEVICE_LOST) {
1251 if (fcport->port_type != FCT_INITIATOR)
1252 qla2x00_mark_device_lost(vha, fcport, 0);
1259 list_for_each_entry_safe(fcport, rmptemp, &new_fcports, list) {
1263 qla2x00_update_fcport(vha, fcport);
1264 list_move_tail(&fcport->list, &vha->vp_fcports);
1268 fcport->tgt_id,
1269 (unsigned long long)wwn_to_u64(fcport->node_name),
1270 (unsigned long long)wwn_to_u64(fcport->port_name));
1274 list_for_each_entry_safe(fcport, rmptemp, &new_fcports, list) {
1275 list_del(&fcport->list);
1276 qla2x00_free_fcport(fcport);
1333 fc_port_t *fcport;
1358 list_for_each_entry(fcport, &vha->vp_fcports, list) {
1359 fcport->flags = 0;
1360 if (atomic_read(&fcport->state) == FCS_ONLINE)
1361 qla2x00_set_fcport_state(fcport, FCS_DEVICE_LOST);
1449 &vha->hw->mr.fcport, FXDISC_REG_HOST_INFO))
1657 fc_port_t *fcport;
1660 list_for_each_entry(fcport, &vha->vp_fcports, list) {
1661 if (fcport->tgt_id == tgt_id) {
1663 "Matching fcport(%p) found with TGT-ID: 0x%x "
1665 fcport, fcport->tgt_id, tgt_id);
1666 return fcport;
1675 fc_port_t *fcport;
1680 fcport = qlafx00_get_fcport(vha, tgt_id);
1681 if (!fcport)
1684 qla2x00_mark_device_lost(vha, fcport, 0);
1780 qlafx00_fx_disc(scsi_qla_host_t *vha, fc_port_t *fcport, uint16_t fx_type)
1790 sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
1811 fdisc->u.fxiocb.req_data = cpu_to_le32(fcport->port_id);
1817 fdisc->u.fxiocb.req_data = cpu_to_le32(fcport->tgt_id);
1948 memcpy(fcport->node_name, pinfo->tgt_node_wwnn, WWN_SIZE);
1949 memcpy(fcport->port_name, pinfo->tgt_node_wwpn, WWN_SIZE);
1950 fcport->port_type = FCT_TARGET;
2252 fc_port_t *fcport;
2319 fcport = sp->fcport;
2356 ql_dbg(ql_dbg_io, fcport->vha, 0x3050,
2369 ql_dbg(ql_dbg_io, fcport->vha, 0x3051,
2395 ql_dbg(ql_dbg_io, fcport->vha, 0x3052,
2408 ql_dbg(ql_dbg_io, fcport->vha, 0x3053,
2425 ql_dbg(ql_dbg_io, fcport->vha, 0x3054,
2433 ql_dbg(ql_dbg_io, fcport->vha, 0x3055,
2449 ql_dbg(ql_dbg_io, fcport->vha, 0x3056,
2483 ql_dbg(ql_dbg_io, fcport->vha, 0x3057,
2485 atomic_read(&fcport->state));
2487 if (atomic_read(&fcport->state) == FCS_ONLINE)
2488 qla2x00_mark_device_lost(fcport->vha, fcport, 1);
2501 ql_dbg(ql_dbg_io, fcport->vha, 0x3058,
2507 cp->device->id, cp->device->lun, fcport->tgt_id,
3116 lcmd_pkt.tgt_idx = cpu_to_le16(sp->fcport->tgt_id);
3183 tm_iocb.tgt_id = cpu_to_le16(sp->fcport->tgt_id);
3209 abt_iocb.tgt_id_sts = cpu_to_le16(sp->fcport->tgt_id);