Lines Matching defs:fcport

1529 	fc_port_t	*fcport = sp->fcport;
1530 scsi_qla_host_t *vha = fcport->vha;
1557 mcp->mb[1] = fcport->loop_id;
1559 mcp->mb[1] = fcport->loop_id << 8;
1580 qla2x00_abort_target(struct fc_port *fcport, uint64_t l, int tag)
1587 vha = fcport->vha;
1595 mcp->mb[1] = fcport->loop_id;
1599 mcp->mb[1] = fcport->loop_id << 8;
1614 rval2 = qla2x00_marker(vha, vha->hw->base_qpair, fcport->loop_id, 0,
1628 qla2x00_lun_reset(struct fc_port *fcport, uint64_t l, int tag)
1635 vha = fcport->vha;
1643 mcp->mb[1] = fcport->loop_id;
1645 mcp->mb[1] = fcport->loop_id << 8;
1659 rval2 = qla2x00_marker(vha, vha->hw->base_qpair, fcport->loop_id, l,
1961 qla2x00_get_port_database(scsi_qla_host_t *vha, fc_port_t *fcport, uint8_t opt)
1979 fcport->query = 0;
1994 mcp->mb[1] = fcport->loop_id;
1999 mcp->mb[1] = fcport->loop_id;
2003 mcp->mb[1] = fcport->loop_id << 8 | opt;
2021 if (NVME_TARGET(ha, fcport)) {
2028 fcport->current_login_state = pd24->current_login_state;
2029 fcport->last_login_state = pd24->last_login_state;
2037 fcport->loop_id);
2040 if (!fcport->query)
2044 if (fcport->loop_id == FC_NO_LOOP_ID ||
2045 (memcmp(fcport->port_name, (uint8_t *)&zero, 8) &&
2046 memcmp(fcport->port_name, pd24->port_name, 8))) {
2053 memcpy(fcport->node_name, pd24->node_name, WWN_SIZE);
2054 memcpy(fcport->port_name, pd24->port_name, WWN_SIZE);
2057 fcport->d_id.b.domain = pd24->port_id[0];
2058 fcport->d_id.b.area = pd24->port_id[1];
2059 fcport->d_id.b.al_pa = pd24->port_id[2];
2060 fcport->d_id.b.rsvd_1 = 0;
2064 fcport->port_type = FCT_INITIATOR;
2066 fcport->port_type = FCT_TARGET;
2069 fcport->supported_classes = (pd24->flags & PDF_CLASS_2) ?
2073 fcport->flags |= FCF_CONF_COMP_SUPPORTED;
2083 pd->slave_state, fcport->d_id.b.domain,
2084 fcport->d_id.b.area, fcport->d_id.b.al_pa);
2089 if (fcport->loop_id == FC_NO_LOOP_ID ||
2090 (memcmp(fcport->port_name, (uint8_t *)&zero, 8) &&
2091 memcmp(fcport->port_name, pd->port_name, 8))) {
2098 memcpy(fcport->node_name, pd->node_name, WWN_SIZE);
2099 memcpy(fcport->port_name, pd->port_name, WWN_SIZE);
2102 fcport->d_id.b.domain = pd->port_id[0];
2103 fcport->d_id.b.area = pd->port_id[3];
2104 fcport->d_id.b.al_pa = pd->port_id[2];
2105 fcport->d_id.b.rsvd_1 = 0;
2109 fcport->port_type = FCT_INITIATOR;
2111 fcport->port_type = FCT_TARGET;
2114 fcport->supported_classes = (pd->options & BIT_4) ?
2120 fcport->query = 0;
2716 qla2x00_login_local_device(scsi_qla_host_t *vha, fc_port_t *fcport,
2728 return qla24xx_login_fabric(vha, fcport->loop_id,
2729 fcport->d_id.b.domain, fcport->d_id.b.area,
2730 fcport->d_id.b.al_pa, mb_ret, opt);
2734 mcp->mb[1] = fcport->loop_id;
2736 mcp->mb[1] = fcport->loop_id << 8;
3252 fc_port_t *fcport = sp->fcport;
3253 struct scsi_qla_host *vha = fcport->vha;
3290 abt->nport_handle = cpu_to_le16(fcport->loop_id);
3292 abt->port_id[0] = fcport->d_id.b.al_pa;
3293 abt->port_id[1] = fcport->d_id.b.area;
3294 abt->port_id[2] = fcport->d_id.b.domain;
3295 abt->vp_index = fcport->vha->vp_idx;
3340 __qla24xx_issue_tmf(char *name, uint32_t type, struct fc_port *fcport,
3352 vha = fcport->vha;
3375 tsk->p.tsk.nport_handle = cpu_to_le16(fcport->loop_id);
3378 tsk->p.tsk.port_id[0] = fcport->d_id.b.al_pa;
3379 tsk->p.tsk.port_id[1] = fcport->d_id.b.area;
3380 tsk->p.tsk.port_id[2] = fcport->d_id.b.domain;
3381 tsk->p.tsk.vp_index = fcport->vha->vp_idx;
3419 rval2 = qla2x00_marker(vha, ha->base_qpair, fcport->loop_id, l,
3435 qla24xx_abort_target(struct fc_port *fcport, uint64_t l, int tag)
3437 struct qla_hw_data *ha = fcport->vha->hw;
3440 return qla2x00_async_tm_cmd(fcport, TCF_TARGET_RESET, l, tag);
3442 return __qla24xx_issue_tmf("Target", TCF_TARGET_RESET, fcport, l, tag);
3446 qla24xx_lun_reset(struct fc_port *fcport, uint64_t l, int tag)
3448 struct qla_hw_data *ha = fcport->vha->hw;
3451 return qla2x00_async_tm_cmd(fcport, TCF_LUN_RESET, l, tag);
3453 return __qla24xx_issue_tmf("Lun", TCF_LUN_RESET, fcport, l, tag);
3987 struct fc_port *fcport;
4034 list_for_each_entry(fcport, &vha->vp_fcports, list) {
4035 fcport->scan_state = QLA_FCPORT_SCAN;
4036 fcport->n2n_flag = 0;
4056 fcport = qla2x00_find_fcport_by_wwpn(vha,
4061 if (fcport) {
4062 fcport->plogi_nack_done_deadline = jiffies + HZ;
4063 fcport->dm_login_expire = jiffies +
4065 fcport->scan_state = QLA_FCPORT_FOUND;
4066 fcport->n2n_flag = 1;
4067 fcport->keep_nport_handle = 1;
4068 fcport->login_retry = vha->hw->login_retry_count;
4069 fcport->fc4_type = FS_FC4TYPE_FCP;
4071 fcport->fc4_type |= FS_FC4TYPE_NVME;
4074 wwn_to_u64(fcport->port_name)) {
4075 fcport->d_id = id;
4078 switch (fcport->disc_state) {
4086 qlt_schedule_sess_for_deletion(fcport);
4189 list_for_each_entry(fcport, &vha->vp_fcports, list) {
4190 fcport->scan_state = QLA_FCPORT_SCAN;
4191 fcport->n2n_flag = 0;
4194 fcport = qla2x00_find_fcport_by_wwpn(vha,
4197 if (fcport) {
4198 fcport->login_retry = vha->hw->login_retry_count;
4199 fcport->plogi_nack_done_deadline = jiffies + HZ;
4200 fcport->scan_state = QLA_FCPORT_FOUND;
4201 fcport->keep_nport_handle = 1;
4202 fcport->n2n_flag = 1;
4203 fcport->d_id.b.domain =
4205 fcport->d_id.b.area =
4207 fcport->d_id.b.al_pa =
4217 if (atomic_read(&fcport->state) == FCS_ONLINE)
4218 qlt_schedule_sess_for_deletion(fcport);
6207 qla2x00_port_logout(scsi_qla_host_t *vha, struct fc_port *fcport)
6226 mcp->mb[1] = fcport->loop_id;
6604 int qla24xx_gpdb_wait(struct scsi_qla_host *vha, fc_port_t *fcport, u8 opt)
6624 mc.mb[1] = fcport->loop_id;
6635 "%s: %8phC fail\n", __func__, fcport->port_name);
6639 rval = __qla24xx_parse_gpdb(vha, fcport, pd);
6642 __func__, fcport->port_name);
6651 int __qla24xx_parse_gpdb(struct scsi_qla_host *vha, fc_port_t *fcport,
6658 if (NVME_TARGET(vha->hw, fcport)) {
6670 current_login_state, last_login_state, fcport->loop_id);
6675 if (fcport->loop_id == FC_NO_LOOP_ID ||
6676 (memcmp(fcport->port_name, (uint8_t *)&zero, 8) &&
6677 memcmp(fcport->port_name, pd->port_name, 8))) {
6684 memcpy(fcport->node_name, pd->node_name, WWN_SIZE);
6685 memcpy(fcport->port_name, pd->port_name, WWN_SIZE);
6688 fcport->d_id.b.domain = pd->port_id[0];
6689 fcport->d_id.b.area = pd->port_id[1];
6690 fcport->d_id.b.al_pa = pd->port_id[2];
6691 fcport->d_id.b.rsvd_1 = 0;
6695 fcport->port_name,
6699 if (NVME_TARGET(vha->hw, fcport)) {
6700 fcport->port_type = FCT_NVME;
6702 fcport->port_type |= FCT_NVME_INITIATOR;
6704 fcport->port_type |= FCT_NVME_TARGET;
6706 fcport->port_type |= FCT_NVME_DISCOVERY;
6710 fcport->port_type = FCT_INITIATOR;
6712 fcport->port_type = FCT_TARGET;
6715 fcport->supported_classes = (pd->flags & PDF_CLASS_2) ?
6719 fcport->flags |= FCF_CONF_COMP_SUPPORTED;
6720 fcport->conf_compl_supported = 1;