Lines Matching defs:fcport

1479 	fc_port_t	*fcport = sp->fcport;
1480 scsi_qla_host_t *vha = fcport->vha;
1507 mcp->mb[1] = fcport->loop_id;
1509 mcp->mb[1] = fcport->loop_id << 8;
1530 qla2x00_abort_target(struct fc_port *fcport, uint64_t l, int tag)
1537 vha = fcport->vha;
1545 mcp->mb[1] = fcport->loop_id;
1549 mcp->mb[1] = fcport->loop_id << 8;
1564 rval2 = qla2x00_marker(vha, vha->hw->base_qpair, fcport->loop_id, 0,
1578 qla2x00_lun_reset(struct fc_port *fcport, uint64_t l, int tag)
1585 vha = fcport->vha;
1593 mcp->mb[1] = fcport->loop_id;
1595 mcp->mb[1] = fcport->loop_id << 8;
1609 rval2 = qla2x00_marker(vha, vha->hw->base_qpair, fcport->loop_id, l,
1911 qla2x00_get_port_database(scsi_qla_host_t *vha, fc_port_t *fcport, uint8_t opt)
1929 fcport->query = 0;
1944 mcp->mb[1] = fcport->loop_id;
1949 mcp->mb[1] = fcport->loop_id;
1953 mcp->mb[1] = fcport->loop_id << 8 | opt;
1971 if (NVME_TARGET(ha, fcport)) {
1978 fcport->current_login_state = pd24->current_login_state;
1979 fcport->last_login_state = pd24->last_login_state;
1987 fcport->loop_id);
1990 if (!fcport->query)
1994 if (fcport->loop_id == FC_NO_LOOP_ID ||
1995 (memcmp(fcport->port_name, (uint8_t *)&zero, 8) &&
1996 memcmp(fcport->port_name, pd24->port_name, 8))) {
2003 memcpy(fcport->node_name, pd24->node_name, WWN_SIZE);
2004 memcpy(fcport->port_name, pd24->port_name, WWN_SIZE);
2007 fcport->d_id.b.domain = pd24->port_id[0];
2008 fcport->d_id.b.area = pd24->port_id[1];
2009 fcport->d_id.b.al_pa = pd24->port_id[2];
2010 fcport->d_id.b.rsvd_1 = 0;
2014 fcport->port_type = FCT_INITIATOR;
2016 fcport->port_type = FCT_TARGET;
2019 fcport->supported_classes = (pd24->flags & PDF_CLASS_2) ?
2023 fcport->flags |= FCF_CONF_COMP_SUPPORTED;
2033 pd->slave_state, fcport->d_id.b.domain,
2034 fcport->d_id.b.area, fcport->d_id.b.al_pa);
2039 if (fcport->loop_id == FC_NO_LOOP_ID ||
2040 (memcmp(fcport->port_name, (uint8_t *)&zero, 8) &&
2041 memcmp(fcport->port_name, pd->port_name, 8))) {
2048 memcpy(fcport->node_name, pd->node_name, WWN_SIZE);
2049 memcpy(fcport->port_name, pd->port_name, WWN_SIZE);
2052 fcport->d_id.b.domain = pd->port_id[0];
2053 fcport->d_id.b.area = pd->port_id[3];
2054 fcport->d_id.b.al_pa = pd->port_id[2];
2055 fcport->d_id.b.rsvd_1 = 0;
2059 fcport->port_type = FCT_INITIATOR;
2061 fcport->port_type = FCT_TARGET;
2064 fcport->supported_classes = (pd->options & BIT_4) ?
2070 fcport->query = 0;
2663 qla2x00_login_local_device(scsi_qla_host_t *vha, fc_port_t *fcport,
2675 return qla24xx_login_fabric(vha, fcport->loop_id,
2676 fcport->d_id.b.domain, fcport->d_id.b.area,
2677 fcport->d_id.b.al_pa, mb_ret, opt);
2681 mcp->mb[1] = fcport->loop_id;
2683 mcp->mb[1] = fcport->loop_id << 8;
3199 fc_port_t *fcport = sp->fcport;
3200 struct scsi_qla_host *vha = fcport->vha;
3237 abt->nport_handle = cpu_to_le16(fcport->loop_id);
3239 abt->port_id[0] = fcport->d_id.b.al_pa;
3240 abt->port_id[1] = fcport->d_id.b.area;
3241 abt->port_id[2] = fcport->d_id.b.domain;
3242 abt->vp_index = fcport->vha->vp_idx;
3281 __qla24xx_issue_tmf(char *name, uint32_t type, struct fc_port *fcport,
3293 vha = fcport->vha;
3316 tsk->p.tsk.nport_handle = cpu_to_le16(fcport->loop_id);
3319 tsk->p.tsk.port_id[0] = fcport->d_id.b.al_pa;
3320 tsk->p.tsk.port_id[1] = fcport->d_id.b.area;
3321 tsk->p.tsk.port_id[2] = fcport->d_id.b.domain;
3322 tsk->p.tsk.vp_index = fcport->vha->vp_idx;
3360 rval2 = qla2x00_marker(vha, ha->base_qpair, fcport->loop_id, l,
3376 qla24xx_abort_target(struct fc_port *fcport, uint64_t l, int tag)
3378 struct qla_hw_data *ha = fcport->vha->hw;
3381 return qla2x00_async_tm_cmd(fcport, TCF_TARGET_RESET, l, tag);
3383 return __qla24xx_issue_tmf("Target", TCF_TARGET_RESET, fcport, l, tag);
3387 qla24xx_lun_reset(struct fc_port *fcport, uint64_t l, int tag)
3389 struct qla_hw_data *ha = fcport->vha->hw;
3392 return qla2x00_async_tm_cmd(fcport, TCF_LUN_RESET, l, tag);
3394 return __qla24xx_issue_tmf("Lun", TCF_LUN_RESET, fcport, l, tag);
3928 struct fc_port *fcport;
3975 list_for_each_entry(fcport, &vha->vp_fcports, list) {
3976 fcport->scan_state = QLA_FCPORT_SCAN;
3977 fcport->n2n_flag = 0;
3997 fcport = qla2x00_find_fcport_by_wwpn(vha,
4002 if (fcport) {
4003 fcport->plogi_nack_done_deadline = jiffies + HZ;
4004 fcport->dm_login_expire = jiffies +
4006 fcport->scan_state = QLA_FCPORT_FOUND;
4007 fcport->n2n_flag = 1;
4008 fcport->keep_nport_handle = 1;
4011 wwn_to_u64(fcport->port_name)) {
4012 fcport->d_id = id;
4015 switch (fcport->disc_state) {
4023 qlt_schedule_sess_for_deletion(fcport);
4127 list_for_each_entry(fcport, &vha->vp_fcports, list) {
4128 fcport->scan_state = QLA_FCPORT_SCAN;
4129 fcport->n2n_flag = 0;
4132 fcport = qla2x00_find_fcport_by_wwpn(vha,
4135 if (fcport) {
4136 fcport->login_retry = vha->hw->login_retry_count;
4137 fcport->plogi_nack_done_deadline = jiffies + HZ;
4138 fcport->scan_state = QLA_FCPORT_FOUND;
4139 fcport->keep_nport_handle = 1;
4140 fcport->n2n_flag = 1;
4141 fcport->d_id.b.domain =
4143 fcport->d_id.b.area =
4145 fcport->d_id.b.al_pa =
6124 qla2x00_port_logout(scsi_qla_host_t *vha, struct fc_port *fcport)
6143 mcp->mb[1] = fcport->loop_id;
6474 int qla24xx_gpdb_wait(struct scsi_qla_host *vha, fc_port_t *fcport, u8 opt)
6494 mc.mb[1] = fcport->loop_id;
6505 "%s: %8phC fail\n", __func__, fcport->port_name);
6509 rval = __qla24xx_parse_gpdb(vha, fcport, pd);
6512 __func__, fcport->port_name);
6521 int __qla24xx_parse_gpdb(struct scsi_qla_host *vha, fc_port_t *fcport,
6528 if (NVME_TARGET(vha->hw, fcport)) {
6540 current_login_state, last_login_state, fcport->loop_id);
6545 if (fcport->loop_id == FC_NO_LOOP_ID ||
6546 (memcmp(fcport->port_name, (uint8_t *)&zero, 8) &&
6547 memcmp(fcport->port_name, pd->port_name, 8))) {
6554 memcpy(fcport->node_name, pd->node_name, WWN_SIZE);
6555 memcpy(fcport->port_name, pd->port_name, WWN_SIZE);
6558 fcport->d_id.b.domain = pd->port_id[0];
6559 fcport->d_id.b.area = pd->port_id[1];
6560 fcport->d_id.b.al_pa = pd->port_id[2];
6561 fcport->d_id.b.rsvd_1 = 0;
6563 if (NVME_TARGET(vha->hw, fcport)) {
6564 fcport->port_type = FCT_NVME;
6566 fcport->port_type |= FCT_NVME_INITIATOR;
6568 fcport->port_type |= FCT_NVME_TARGET;
6570 fcport->port_type |= FCT_NVME_DISCOVERY;
6574 fcport->port_type = FCT_INITIATOR;
6576 fcport->port_type = FCT_TARGET;
6579 fcport->supported_classes = (pd->flags & PDF_CLASS_2) ?
6583 fcport->flags |= FCF_CONF_COMP_SUPPORTED;
6584 fcport->conf_compl_supported = 1;