Lines Matching refs:fcport

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