Lines Matching refs:fcport
1533 fc_port_t *fcport = sp->fcport; in qla2x00_abort_command() local
1534 scsi_qla_host_t *vha = fcport->vha; in qla2x00_abort_command()
1561 mcp->mb[1] = fcport->loop_id; in qla2x00_abort_command()
1563 mcp->mb[1] = fcport->loop_id << 8; in qla2x00_abort_command()
1584 qla2x00_abort_target(struct fc_port *fcport, uint64_t l, int tag) in qla2x00_abort_target() argument
1591 vha = fcport->vha; in qla2x00_abort_target()
1599 mcp->mb[1] = fcport->loop_id; in qla2x00_abort_target()
1603 mcp->mb[1] = fcport->loop_id << 8; in qla2x00_abort_target()
1618 rval2 = qla2x00_marker(vha, vha->hw->base_qpair, fcport->loop_id, 0, in qla2x00_abort_target()
1632 qla2x00_lun_reset(struct fc_port *fcport, uint64_t l, int tag) in qla2x00_lun_reset() argument
1639 vha = fcport->vha; in qla2x00_lun_reset()
1647 mcp->mb[1] = fcport->loop_id; in qla2x00_lun_reset()
1649 mcp->mb[1] = fcport->loop_id << 8; in qla2x00_lun_reset()
1663 rval2 = qla2x00_marker(vha, vha->hw->base_qpair, fcport->loop_id, l, in qla2x00_lun_reset()
1965 qla2x00_get_port_database(scsi_qla_host_t *vha, fc_port_t *fcport, uint8_t opt) in qla2x00_get_port_database() argument
1983 fcport->query = 0; in qla2x00_get_port_database()
1998 mcp->mb[1] = fcport->loop_id; in qla2x00_get_port_database()
2003 mcp->mb[1] = fcport->loop_id; in qla2x00_get_port_database()
2007 mcp->mb[1] = fcport->loop_id << 8 | opt; in qla2x00_get_port_database()
2025 if (NVME_TARGET(ha, fcport)) { in qla2x00_get_port_database()
2032 fcport->current_login_state = pd24->current_login_state; in qla2x00_get_port_database()
2033 fcport->last_login_state = pd24->last_login_state; in qla2x00_get_port_database()
2041 fcport->loop_id); in qla2x00_get_port_database()
2044 if (!fcport->query) in qla2x00_get_port_database()
2048 if (fcport->loop_id == FC_NO_LOOP_ID || in qla2x00_get_port_database()
2049 (memcmp(fcport->port_name, (uint8_t *)&zero, 8) && in qla2x00_get_port_database()
2050 memcmp(fcport->port_name, pd24->port_name, 8))) { in qla2x00_get_port_database()
2057 memcpy(fcport->node_name, pd24->node_name, WWN_SIZE); in qla2x00_get_port_database()
2058 memcpy(fcport->port_name, pd24->port_name, WWN_SIZE); in qla2x00_get_port_database()
2061 fcport->d_id.b.domain = pd24->port_id[0]; in qla2x00_get_port_database()
2062 fcport->d_id.b.area = pd24->port_id[1]; in qla2x00_get_port_database()
2063 fcport->d_id.b.al_pa = pd24->port_id[2]; in qla2x00_get_port_database()
2064 fcport->d_id.b.rsvd_1 = 0; in qla2x00_get_port_database()
2068 fcport->port_type = FCT_INITIATOR; in qla2x00_get_port_database()
2070 fcport->port_type = FCT_TARGET; in qla2x00_get_port_database()
2073 fcport->supported_classes = (pd24->flags & PDF_CLASS_2) ? in qla2x00_get_port_database()
2077 fcport->flags |= FCF_CONF_COMP_SUPPORTED; in qla2x00_get_port_database()
2087 pd->slave_state, fcport->d_id.b.domain, in qla2x00_get_port_database()
2088 fcport->d_id.b.area, fcport->d_id.b.al_pa); in qla2x00_get_port_database()
2093 if (fcport->loop_id == FC_NO_LOOP_ID || in qla2x00_get_port_database()
2094 (memcmp(fcport->port_name, (uint8_t *)&zero, 8) && in qla2x00_get_port_database()
2095 memcmp(fcport->port_name, pd->port_name, 8))) { in qla2x00_get_port_database()
2102 memcpy(fcport->node_name, pd->node_name, WWN_SIZE); in qla2x00_get_port_database()
2103 memcpy(fcport->port_name, pd->port_name, WWN_SIZE); in qla2x00_get_port_database()
2106 fcport->d_id.b.domain = pd->port_id[0]; in qla2x00_get_port_database()
2107 fcport->d_id.b.area = pd->port_id[3]; in qla2x00_get_port_database()
2108 fcport->d_id.b.al_pa = pd->port_id[2]; in qla2x00_get_port_database()
2109 fcport->d_id.b.rsvd_1 = 0; in qla2x00_get_port_database()
2113 fcport->port_type = FCT_INITIATOR; in qla2x00_get_port_database()
2115 fcport->port_type = FCT_TARGET; in qla2x00_get_port_database()
2118 fcport->supported_classes = (pd->options & BIT_4) ? in qla2x00_get_port_database()
2124 fcport->query = 0; in qla2x00_get_port_database()
2717 qla2x00_login_local_device(scsi_qla_host_t *vha, fc_port_t *fcport, in qla2x00_login_local_device() argument
2729 return qla24xx_login_fabric(vha, fcport->loop_id, in qla2x00_login_local_device()
2730 fcport->d_id.b.domain, fcport->d_id.b.area, in qla2x00_login_local_device()
2731 fcport->d_id.b.al_pa, mb_ret, opt); in qla2x00_login_local_device()
2735 mcp->mb[1] = fcport->loop_id; in qla2x00_login_local_device()
2737 mcp->mb[1] = fcport->loop_id << 8; in qla2x00_login_local_device()
3253 fc_port_t *fcport = sp->fcport; in qla24xx_abort_command() local
3254 struct scsi_qla_host *vha = fcport->vha; in qla24xx_abort_command()
3291 abt->nport_handle = cpu_to_le16(fcport->loop_id); in qla24xx_abort_command()
3293 abt->port_id[0] = fcport->d_id.b.al_pa; in qla24xx_abort_command()
3294 abt->port_id[1] = fcport->d_id.b.area; in qla24xx_abort_command()
3295 abt->port_id[2] = fcport->d_id.b.domain; in qla24xx_abort_command()
3296 abt->vp_index = fcport->vha->vp_idx; in qla24xx_abort_command()
3341 __qla24xx_issue_tmf(char *name, uint32_t type, struct fc_port *fcport, in __qla24xx_issue_tmf() argument
3353 vha = fcport->vha; in __qla24xx_issue_tmf()
3376 tsk->p.tsk.nport_handle = cpu_to_le16(fcport->loop_id); in __qla24xx_issue_tmf()
3379 tsk->p.tsk.port_id[0] = fcport->d_id.b.al_pa; in __qla24xx_issue_tmf()
3380 tsk->p.tsk.port_id[1] = fcport->d_id.b.area; in __qla24xx_issue_tmf()
3381 tsk->p.tsk.port_id[2] = fcport->d_id.b.domain; in __qla24xx_issue_tmf()
3382 tsk->p.tsk.vp_index = fcport->vha->vp_idx; in __qla24xx_issue_tmf()
3420 rval2 = qla2x00_marker(vha, ha->base_qpair, fcport->loop_id, l, in __qla24xx_issue_tmf()
3436 qla24xx_abort_target(struct fc_port *fcport, uint64_t l, int tag) in qla24xx_abort_target() argument
3438 struct qla_hw_data *ha = fcport->vha->hw; in qla24xx_abort_target()
3441 return qla2x00_async_tm_cmd(fcport, TCF_TARGET_RESET, l, tag); in qla24xx_abort_target()
3443 return __qla24xx_issue_tmf("Target", TCF_TARGET_RESET, fcport, l, tag); in qla24xx_abort_target()
3447 qla24xx_lun_reset(struct fc_port *fcport, uint64_t l, int tag) in qla24xx_lun_reset() argument
3449 struct qla_hw_data *ha = fcport->vha->hw; in qla24xx_lun_reset()
3452 return qla2x00_async_tm_cmd(fcport, TCF_LUN_RESET, l, tag); in qla24xx_lun_reset()
3454 return __qla24xx_issue_tmf("Lun", TCF_LUN_RESET, fcport, l, tag); in qla24xx_lun_reset()
3988 struct fc_port *fcport; in qla24xx_report_id_acquisition() local
4035 list_for_each_entry(fcport, &vha->vp_fcports, list) { in qla24xx_report_id_acquisition()
4036 fcport->scan_state = QLA_FCPORT_SCAN; in qla24xx_report_id_acquisition()
4037 fcport->n2n_flag = 0; in qla24xx_report_id_acquisition()
4057 fcport = qla2x00_find_fcport_by_wwpn(vha, in qla24xx_report_id_acquisition()
4062 if (fcport) { in qla24xx_report_id_acquisition()
4063 fcport->plogi_nack_done_deadline = jiffies + HZ; in qla24xx_report_id_acquisition()
4064 fcport->dm_login_expire = jiffies + in qla24xx_report_id_acquisition()
4066 fcport->scan_state = QLA_FCPORT_FOUND; in qla24xx_report_id_acquisition()
4067 fcport->n2n_flag = 1; in qla24xx_report_id_acquisition()
4068 fcport->keep_nport_handle = 1; in qla24xx_report_id_acquisition()
4069 fcport->login_retry = vha->hw->login_retry_count; in qla24xx_report_id_acquisition()
4070 fcport->fc4_type = FS_FC4TYPE_FCP; in qla24xx_report_id_acquisition()
4072 fcport->fc4_type |= FS_FC4TYPE_NVME; in qla24xx_report_id_acquisition()
4075 wwn_to_u64(fcport->port_name)) { in qla24xx_report_id_acquisition()
4076 fcport->d_id = id; in qla24xx_report_id_acquisition()
4079 switch (fcport->disc_state) { in qla24xx_report_id_acquisition()
4087 qlt_schedule_sess_for_deletion(fcport); in qla24xx_report_id_acquisition()
4190 list_for_each_entry(fcport, &vha->vp_fcports, list) { in qla24xx_report_id_acquisition()
4191 fcport->scan_state = QLA_FCPORT_SCAN; in qla24xx_report_id_acquisition()
4192 fcport->n2n_flag = 0; in qla24xx_report_id_acquisition()
4195 fcport = qla2x00_find_fcport_by_wwpn(vha, in qla24xx_report_id_acquisition()
4198 if (fcport) { in qla24xx_report_id_acquisition()
4199 fcport->login_retry = vha->hw->login_retry_count; in qla24xx_report_id_acquisition()
4200 fcport->plogi_nack_done_deadline = jiffies + HZ; in qla24xx_report_id_acquisition()
4201 fcport->scan_state = QLA_FCPORT_FOUND; in qla24xx_report_id_acquisition()
4202 fcport->keep_nport_handle = 1; in qla24xx_report_id_acquisition()
4203 fcport->n2n_flag = 1; in qla24xx_report_id_acquisition()
4204 fcport->d_id.b.domain = in qla24xx_report_id_acquisition()
4206 fcport->d_id.b.area = in qla24xx_report_id_acquisition()
4208 fcport->d_id.b.al_pa = in qla24xx_report_id_acquisition()
4218 if (atomic_read(&fcport->state) == FCS_ONLINE) in qla24xx_report_id_acquisition()
4219 qlt_schedule_sess_for_deletion(fcport); in qla24xx_report_id_acquisition()
6208 qla2x00_port_logout(scsi_qla_host_t *vha, struct fc_port *fcport) in qla2x00_port_logout() argument
6227 mcp->mb[1] = fcport->loop_id; in qla2x00_port_logout()
6605 int qla24xx_gpdb_wait(struct scsi_qla_host *vha, fc_port_t *fcport, u8 opt) in qla24xx_gpdb_wait() argument
6625 mc.mb[1] = fcport->loop_id; in qla24xx_gpdb_wait()
6636 "%s: %8phC fail\n", __func__, fcport->port_name); in qla24xx_gpdb_wait()
6640 rval = __qla24xx_parse_gpdb(vha, fcport, pd); in qla24xx_gpdb_wait()
6643 __func__, fcport->port_name); in qla24xx_gpdb_wait()
6652 int __qla24xx_parse_gpdb(struct scsi_qla_host *vha, fc_port_t *fcport, in __qla24xx_parse_gpdb() argument
6659 if (NVME_TARGET(vha->hw, fcport)) { in __qla24xx_parse_gpdb()
6671 current_login_state, last_login_state, fcport->loop_id); in __qla24xx_parse_gpdb()
6676 if (fcport->loop_id == FC_NO_LOOP_ID || in __qla24xx_parse_gpdb()
6677 (memcmp(fcport->port_name, (uint8_t *)&zero, 8) && in __qla24xx_parse_gpdb()
6678 memcmp(fcport->port_name, pd->port_name, 8))) { in __qla24xx_parse_gpdb()
6685 memcpy(fcport->node_name, pd->node_name, WWN_SIZE); in __qla24xx_parse_gpdb()
6686 memcpy(fcport->port_name, pd->port_name, WWN_SIZE); in __qla24xx_parse_gpdb()
6689 fcport->d_id.b.domain = pd->port_id[0]; in __qla24xx_parse_gpdb()
6690 fcport->d_id.b.area = pd->port_id[1]; in __qla24xx_parse_gpdb()
6691 fcport->d_id.b.al_pa = pd->port_id[2]; in __qla24xx_parse_gpdb()
6692 fcport->d_id.b.rsvd_1 = 0; in __qla24xx_parse_gpdb()
6696 fcport->port_name, in __qla24xx_parse_gpdb()
6700 if (NVME_TARGET(vha->hw, fcport)) { in __qla24xx_parse_gpdb()
6701 fcport->port_type = FCT_NVME; in __qla24xx_parse_gpdb()
6703 fcport->port_type |= FCT_NVME_INITIATOR; in __qla24xx_parse_gpdb()
6705 fcport->port_type |= FCT_NVME_TARGET; in __qla24xx_parse_gpdb()
6707 fcport->port_type |= FCT_NVME_DISCOVERY; in __qla24xx_parse_gpdb()
6711 fcport->port_type = FCT_INITIATOR; in __qla24xx_parse_gpdb()
6713 fcport->port_type = FCT_TARGET; in __qla24xx_parse_gpdb()
6716 fcport->supported_classes = (pd->flags & PDF_CLASS_2) ? in __qla24xx_parse_gpdb()
6720 fcport->flags |= FCF_CONF_COMP_SUPPORTED; in __qla24xx_parse_gpdb()
6721 fcport->conf_compl_supported = 1; in __qla24xx_parse_gpdb()