rport 14 arch/um/drivers/umcast.h unsigned short rport; rport 22 arch/um/drivers/umcast_kern.c int rport; rport 37 arch/um/drivers/umcast_kern.c dpri->rport = init->rport; rport 44 arch/um/drivers/umcast_kern.c "%u\n", dpri->addr, dpri->rport, dpri->lport); rport 108 arch/um/drivers/umcast_kern.c init->rport = init->lport; rport 125 arch/um/drivers/umcast_kern.c .rport = 1102 }); rport 145 arch/um/drivers/umcast_kern.c init->rport = simple_strtoul(rport_str, &last, 10); rport 156 arch/um/drivers/umcast_kern.c init->lport, init->addr, init->rport); rport 45 arch/um/drivers/umcast_user.c pri->remote_addr = new_addr(pri->addr, pri->rport); rport 1407 drivers/gpu/drm/drm_dp_mst_topology.c struct drm_dp_mst_port *rport = NULL; rport 1411 drivers/gpu/drm/drm_dp_mst_topology.c rport = drm_dp_mst_topology_get_port_validated_locked( rport 1414 drivers/gpu/drm/drm_dp_mst_topology.c if (rport && !drm_dp_mst_topology_try_get_port(rport)) rport 1415 drivers/gpu/drm/drm_dp_mst_topology.c rport = NULL; rport 1418 drivers/gpu/drm/drm_dp_mst_topology.c return rport; rport 3994 drivers/infiniband/hw/cxgb4/cm.c __be32 raddr, __be16 rport, rport 4012 drivers/infiniband/hw/cxgb4/cm.c req->le.pport = rport; rport 1107 drivers/infiniband/ulp/srp/ib_srp.c srp_rport_get(target->rport); rport 1110 drivers/infiniband/ulp/srp/ib_srp.c srp_stop_rport_timers(target->rport); rport 1118 drivers/infiniband/ulp/srp/ib_srp.c srp_rport_put(target->rport); rport 1143 drivers/infiniband/ulp/srp/ib_srp.c static void srp_rport_delete(struct srp_rport *rport) rport 1145 drivers/infiniband/ulp/srp/ib_srp.c struct srp_target_port *target = rport->lld_data; rport 1346 drivers/infiniband/ulp/srp/ib_srp.c static void srp_terminate_io(struct srp_rport *rport) rport 1348 drivers/infiniband/ulp/srp/ib_srp.c struct srp_target_port *target = rport->lld_data; rport 1387 drivers/infiniband/ulp/srp/ib_srp.c static int srp_rport_reconnect(struct srp_rport *rport) rport 1389 drivers/infiniband/ulp/srp/ib_srp.c struct srp_target_port *target = rport->lld_data; rport 2320 drivers/infiniband/ulp/srp/ib_srp.c if (target->rport) rport 2321 drivers/infiniband/ulp/srp/ib_srp.c srp_start_tl_fail_timers(target->rport); rport 2353 drivers/infiniband/ulp/srp/ib_srp.c scmnd->result = srp_chkready(target->rport); rport 2913 drivers/infiniband/ulp/srp/ib_srp.c struct srp_rport *rport = target->rport; rport 2926 drivers/infiniband/ulp/srp/ib_srp.c mutex_lock(&rport->mutex); rport 2932 drivers/infiniband/ulp/srp/ib_srp.c mutex_unlock(&rport->mutex); rport 2960 drivers/infiniband/ulp/srp/ib_srp.c mutex_unlock(&rport->mutex); rport 2968 drivers/infiniband/ulp/srp/ib_srp.c mutex_unlock(&rport->mutex); rport 3000 drivers/infiniband/ulp/srp/ib_srp.c else if (target->rport->state == SRP_RPORT_LOST) rport 3037 drivers/infiniband/ulp/srp/ib_srp.c return srp_reconnect_rport(target->rport) == 0 ? SUCCESS : FAILED; rport 3290 drivers/infiniband/ulp/srp/ib_srp.c struct srp_rport *rport; rport 3302 drivers/infiniband/ulp/srp/ib_srp.c rport = srp_rport_add(target->scsi_host, &ids); rport 3303 drivers/infiniband/ulp/srp/ib_srp.c if (IS_ERR(rport)) { rport 3305 drivers/infiniband/ulp/srp/ib_srp.c return PTR_ERR(rport); rport 3308 drivers/infiniband/ulp/srp/ib_srp.c rport->lld_data = target; rport 3309 drivers/infiniband/ulp/srp/ib_srp.c target->rport = rport; rport 224 drivers/infiniband/ulp/srp/ib_srp.h struct srp_rport *rport; rport 552 drivers/message/fusion/mptbase.h struct fc_rport *rport; rport 102 drivers/message/fusion/mptfc.c static void mptfc_set_rport_loss_tmo(struct fc_rport *rport, uint32_t timeout); rport 193 drivers/message/fusion/mptfc.c struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); rport 202 drivers/message/fusion/mptfc.c while ((ready = fc_remote_port_chkready(rport) >> 16) == DID_IMM_RETRY rport 256 drivers/message/fusion/mptfc.c mptfc_set_rport_loss_tmo(struct fc_rport *rport, uint32_t timeout) rport 259 drivers/message/fusion/mptfc.c rport->dev_loss_tmo = timeout; rport 261 drivers/message/fusion/mptfc.c rport->dev_loss_tmo = mptfc_dev_loss_tmo; rport 425 drivers/message/fusion/mptfc.c struct fc_rport *rport; rport 461 drivers/message/fusion/mptfc.c rport = fc_remote_port_add(ioc->sh, channel, &rport_ids); rport 462 drivers/message/fusion/mptfc.c if (rport) { rport 463 drivers/message/fusion/mptfc.c ri->rport = rport; rport 465 drivers/message/fusion/mptfc.c rport->dev_loss_tmo = mptfc_dev_loss_tmo; rport 479 drivers/message/fusion/mptfc.c *((struct mptfc_rport_info **)rport->dd_data) = ri; rport 481 drivers/message/fusion/mptfc.c fc_remote_port_rolechg(rport,roles); rport 494 drivers/message/fusion/mptfc.c ri->rport->scsi_target_id, rport 495 drivers/message/fusion/mptfc.c ri->rport->dev_loss_tmo)); rport 511 drivers/message/fusion/mptfc.c struct fc_rport *rport; rport 514 drivers/message/fusion/mptfc.c rport = starget_to_rport(starget); rport 515 drivers/message/fusion/mptfc.c if (rport) { rport 516 drivers/message/fusion/mptfc.c ri = *((struct mptfc_rport_info **)rport->dd_data); rport 533 drivers/message/fusion/mptfc.c struct fc_rport *rport; rport 543 drivers/message/fusion/mptfc.c rport = starget_to_rport(starget); rport 544 drivers/message/fusion/mptfc.c if (rport) { rport 545 drivers/message/fusion/mptfc.c ri = *((struct mptfc_rport_info **)rport->dd_data); rport 568 drivers/message/fusion/mptfc.c mptfc_dump_lun_info(MPT_ADAPTER *ioc, struct fc_rport *rport, struct scsi_device *sdev, rport 574 drivers/message/fusion/mptfc.c ri = *((struct mptfc_rport_info **)rport->dd_data); rport 603 drivers/message/fusion/mptfc.c struct fc_rport *rport; rport 607 drivers/message/fusion/mptfc.c rport = starget_to_rport(starget); rport 609 drivers/message/fusion/mptfc.c if (!rport || fc_remote_port_chkready(rport)) rport 637 drivers/message/fusion/mptfc.c mptfc_dump_lun_info(ioc, rport, sdev, vtarget); rport 646 drivers/message/fusion/mptfc.c struct fc_rport *rport = starget_to_rport(scsi_target(SCpnt->device)); rport 656 drivers/message/fusion/mptfc.c err = fc_remote_port_chkready(rport); rport 664 drivers/message/fusion/mptfc.c ri = *((struct mptfc_rport_info **)rport->dd_data); rport 1093 drivers/message/fusion/mptfc.c fc_remote_port_delete(ri->rport); /* won't sleep */ rport 1094 drivers/message/fusion/mptfc.c ri->rport = NULL; rport 1148 drivers/message/fusion/mptfc.c fc_remote_port_delete(ri->rport); /* won't sleep */ rport 1149 drivers/message/fusion/mptfc.c ri->rport = NULL; rport 1990 drivers/net/ethernet/sfc/falcon/farch.c __be16 rport, port1, port2; rport 2018 drivers/net/ethernet/sfc/falcon/farch.c rport = is_full ? gen_spec->rem_port : 0; rport 2023 drivers/net/ethernet/sfc/falcon/farch.c port2 = rport; rport 2025 drivers/net/ethernet/sfc/falcon/farch.c port1 = rport; rport 206 drivers/net/ethernet/sfc/falcon/filter.h __be32 rhost, __be16 rport) rport 217 drivers/net/ethernet/sfc/falcon/filter.h spec->rem_port = rport; rport 2049 drivers/net/ethernet/sfc/farch.c __be16 rport, port1, port2; rport 2077 drivers/net/ethernet/sfc/farch.c rport = is_full ? gen_spec->rem_port : 0; rport 2082 drivers/net/ethernet/sfc/farch.c port2 = rport; rport 2084 drivers/net/ethernet/sfc/farch.c port1 = rport; rport 232 drivers/net/ethernet/sfc/filter.h __be32 rhost, __be16 rport) rport 243 drivers/net/ethernet/sfc/filter.h spec->rem_port = rport; rport 53 drivers/nvme/host/fc.c struct nvme_fc_rport *rport; rport 138 drivers/nvme/host/fc.c struct nvme_fc_rport *rport; rport 476 drivers/nvme/host/fc.c struct nvme_fc_rport *rport) rport 482 drivers/nvme/host/fc.c if (!(rport->remoteport.port_role & FC_PORT_ROLE_NVME_DISCOVERY)) rport 490 drivers/nvme/host/fc.c rport->remoteport.node_name, rport->remoteport.port_name); rport 497 drivers/nvme/host/fc.c struct nvme_fc_rport *rport = rport 500 drivers/nvme/host/fc.c localport_to_lport(rport->remoteport.localport); rport 503 drivers/nvme/host/fc.c WARN_ON(rport->remoteport.port_state != FC_OBJSTATE_DELETED); rport 504 drivers/nvme/host/fc.c WARN_ON(!list_empty(&rport->ctrl_list)); rport 508 drivers/nvme/host/fc.c list_del(&rport->endp_list); rport 511 drivers/nvme/host/fc.c WARN_ON(!list_empty(&rport->disc_list)); rport 512 drivers/nvme/host/fc.c ida_simple_remove(&lport->endp_cnt, rport->remoteport.port_num); rport 514 drivers/nvme/host/fc.c kfree(rport); rport 520 drivers/nvme/host/fc.c nvme_fc_rport_put(struct nvme_fc_rport *rport) rport 522 drivers/nvme/host/fc.c kref_put(&rport->ref, nvme_fc_free_rport); rport 526 drivers/nvme/host/fc.c nvme_fc_rport_get(struct nvme_fc_rport *rport) rport 528 drivers/nvme/host/fc.c return kref_get_unless_zero(&rport->ref); rport 566 drivers/nvme/host/fc.c struct nvme_fc_rport *rport; rport 572 drivers/nvme/host/fc.c list_for_each_entry(rport, &lport->endp_list, endp_list) { rport 573 drivers/nvme/host/fc.c if (rport->remoteport.node_name != pinfo->node_name || rport 574 drivers/nvme/host/fc.c rport->remoteport.port_name != pinfo->port_name) rport 577 drivers/nvme/host/fc.c if (!nvme_fc_rport_get(rport)) { rport 578 drivers/nvme/host/fc.c rport = ERR_PTR(-ENOLCK); rport 584 drivers/nvme/host/fc.c spin_lock_irqsave(&rport->lock, flags); rport 587 drivers/nvme/host/fc.c if (rport->remoteport.port_state != FC_OBJSTATE_DELETED) { rport 589 drivers/nvme/host/fc.c spin_unlock_irqrestore(&rport->lock, flags); rport 590 drivers/nvme/host/fc.c nvme_fc_rport_put(rport); rport 594 drivers/nvme/host/fc.c rport->remoteport.port_role = pinfo->port_role; rport 595 drivers/nvme/host/fc.c rport->remoteport.port_id = pinfo->port_id; rport 596 drivers/nvme/host/fc.c rport->remoteport.port_state = FC_OBJSTATE_ONLINE; rport 597 drivers/nvme/host/fc.c rport->dev_loss_end = 0; rport 603 drivers/nvme/host/fc.c list_for_each_entry(ctrl, &rport->ctrl_list, ctrl_list) rport 606 drivers/nvme/host/fc.c spin_unlock_irqrestore(&rport->lock, flags); rport 608 drivers/nvme/host/fc.c return rport; rport 611 drivers/nvme/host/fc.c rport = NULL; rport 616 drivers/nvme/host/fc.c return rport; rport 620 drivers/nvme/host/fc.c __nvme_fc_set_dev_loss_tmo(struct nvme_fc_rport *rport, rport 624 drivers/nvme/host/fc.c rport->remoteport.dev_loss_tmo = pinfo->dev_loss_tmo; rport 626 drivers/nvme/host/fc.c rport->remoteport.dev_loss_tmo = NVME_FC_DEFAULT_DEV_LOSS_TMO; rport 735 drivers/nvme/host/fc.c nvme_fc_abort_lsops(struct nvme_fc_rport *rport) rport 741 drivers/nvme/host/fc.c spin_lock_irqsave(&rport->lock, flags); rport 743 drivers/nvme/host/fc.c list_for_each_entry(lsop, &rport->ls_req_list, lsreq_list) { rport 746 drivers/nvme/host/fc.c spin_unlock_irqrestore(&rport->lock, flags); rport 747 drivers/nvme/host/fc.c rport->lport->ops->ls_abort(&rport->lport->localport, rport 748 drivers/nvme/host/fc.c &rport->remoteport, rport 753 drivers/nvme/host/fc.c spin_unlock_irqrestore(&rport->lock, flags); rport 823 drivers/nvme/host/fc.c struct nvme_fc_rport *rport = remoteport_to_rport(portptr); rport 830 drivers/nvme/host/fc.c spin_lock_irqsave(&rport->lock, flags); rport 833 drivers/nvme/host/fc.c spin_unlock_irqrestore(&rport->lock, flags); rport 838 drivers/nvme/host/fc.c rport->dev_loss_end = jiffies + (portptr->dev_loss_tmo * HZ); rport 840 drivers/nvme/host/fc.c list_for_each_entry(ctrl, &rport->ctrl_list, ctrl_list) { rport 851 drivers/nvme/host/fc.c spin_unlock_irqrestore(&rport->lock, flags); rport 853 drivers/nvme/host/fc.c nvme_fc_abort_lsops(rport); rport 855 drivers/nvme/host/fc.c if (atomic_read(&rport->act_ctrl_cnt) == 0) rport 856 drivers/nvme/host/fc.c rport->lport->ops->remoteport_delete(portptr); rport 863 drivers/nvme/host/fc.c nvme_fc_rport_put(rport); rport 880 drivers/nvme/host/fc.c struct nvme_fc_rport *rport = remoteport_to_rport(remoteport); rport 882 drivers/nvme/host/fc.c nvme_fc_signal_discovery_scan(rport->lport, rport); rport 890 drivers/nvme/host/fc.c struct nvme_fc_rport *rport = remoteport_to_rport(portptr); rport 893 drivers/nvme/host/fc.c spin_lock_irqsave(&rport->lock, flags); rport 896 drivers/nvme/host/fc.c spin_unlock_irqrestore(&rport->lock, flags); rport 901 drivers/nvme/host/fc.c rport->remoteport.dev_loss_tmo = dev_loss_tmo; rport 903 drivers/nvme/host/fc.c spin_unlock_irqrestore(&rport->lock, flags); rport 1007 drivers/nvme/host/fc.c struct nvme_fc_rport *rport = lsop->rport; rport 1011 drivers/nvme/host/fc.c spin_lock_irqsave(&rport->lock, flags); rport 1014 drivers/nvme/host/fc.c spin_unlock_irqrestore(&rport->lock, flags); rport 1022 drivers/nvme/host/fc.c spin_unlock_irqrestore(&rport->lock, flags); rport 1024 drivers/nvme/host/fc.c fc_dma_unmap_single(rport->dev, lsreq->rqstdma, rport 1028 drivers/nvme/host/fc.c nvme_fc_rport_put(rport); rport 1032 drivers/nvme/host/fc.c __nvme_fc_send_ls_req(struct nvme_fc_rport *rport, rport 1040 drivers/nvme/host/fc.c if (rport->remoteport.port_state != FC_OBJSTATE_ONLINE) rport 1043 drivers/nvme/host/fc.c if (!nvme_fc_rport_get(rport)) rport 1047 drivers/nvme/host/fc.c lsop->rport = rport; rport 1052 drivers/nvme/host/fc.c lsreq->rqstdma = fc_dma_map_single(rport->dev, lsreq->rqstaddr, rport 1055 drivers/nvme/host/fc.c if (fc_dma_mapping_error(rport->dev, lsreq->rqstdma)) { rport 1061 drivers/nvme/host/fc.c spin_lock_irqsave(&rport->lock, flags); rport 1063 drivers/nvme/host/fc.c list_add_tail(&lsop->lsreq_list, &rport->ls_req_list); rport 1067 drivers/nvme/host/fc.c spin_unlock_irqrestore(&rport->lock, flags); rport 1069 drivers/nvme/host/fc.c ret = rport->lport->ops->ls_req(&rport->lport->localport, rport 1070 drivers/nvme/host/fc.c &rport->remoteport, lsreq); rport 1078 drivers/nvme/host/fc.c spin_lock_irqsave(&rport->lock, flags); rport 1081 drivers/nvme/host/fc.c spin_unlock_irqrestore(&rport->lock, flags); rport 1082 drivers/nvme/host/fc.c fc_dma_unmap_single(rport->dev, lsreq->rqstdma, rport 1086 drivers/nvme/host/fc.c nvme_fc_rport_put(rport); rport 1101 drivers/nvme/host/fc.c nvme_fc_send_ls_req(struct nvme_fc_rport *rport, struct nvmefc_ls_req_op *lsop) rport 1107 drivers/nvme/host/fc.c ret = __nvme_fc_send_ls_req(rport, lsop, nvme_fc_send_ls_req_done); rport 1134 drivers/nvme/host/fc.c nvme_fc_send_ls_req_async(struct nvme_fc_rport *rport, rport 1140 drivers/nvme/host/fc.c return __nvme_fc_send_ls_req(rport, lsop, done); rport 1229 drivers/nvme/host/fc.c ret = nvme_fc_send_ls_req(ctrl->rport, lsop); rport 1337 drivers/nvme/host/fc.c ret = nvme_fc_send_ls_req(ctrl->rport, lsop); rport 1463 drivers/nvme/host/fc.c ret = nvme_fc_send_ls_req_async(ctrl->rport, lsop, rport 1516 drivers/nvme/host/fc.c &ctrl->rport->remoteport, rport 2026 drivers/nvme/host/fc.c spin_lock_irqsave(&ctrl->rport->lock, flags); rport 2028 drivers/nvme/host/fc.c spin_unlock_irqrestore(&ctrl->rport->lock, flags); rport 2038 drivers/nvme/host/fc.c nvme_fc_rport_put(ctrl->rport); rport 2219 drivers/nvme/host/fc.c if (ctrl->rport->remoteport.port_state != FC_OBJSTATE_ONLINE) rport 2286 drivers/nvme/host/fc.c &ctrl->rport->remoteport, rport 2310 drivers/nvme/host/fc.c if (ctrl->rport->remoteport.port_state == FC_OBJSTATE_ONLINE && rport 2336 drivers/nvme/host/fc.c if (ctrl->rport->remoteport.port_state != FC_OBJSTATE_ONLINE || rport 2564 drivers/nvme/host/fc.c nvme_fc_rport_active_on_lport(struct nvme_fc_rport *rport) rport 2566 drivers/nvme/host/fc.c struct nvme_fc_lport *lport = rport->lport; rport 2572 drivers/nvme/host/fc.c nvme_fc_rport_inactive_on_lport(struct nvme_fc_rport *rport) rport 2574 drivers/nvme/host/fc.c struct nvme_fc_lport *lport = rport->lport; rport 2585 drivers/nvme/host/fc.c struct nvme_fc_rport *rport = ctrl->rport; rport 2592 drivers/nvme/host/fc.c cnt = atomic_inc_return(&rport->act_ctrl_cnt); rport 2594 drivers/nvme/host/fc.c nvme_fc_rport_active_on_lport(rport); rport 2602 drivers/nvme/host/fc.c struct nvme_fc_rport *rport = ctrl->rport; rport 2603 drivers/nvme/host/fc.c struct nvme_fc_lport *lport = rport->lport; rport 2608 drivers/nvme/host/fc.c cnt = atomic_dec_return(&rport->act_ctrl_cnt); rport 2610 drivers/nvme/host/fc.c if (rport->remoteport.port_state == FC_OBJSTATE_DELETED) rport 2611 drivers/nvme/host/fc.c lport->ops->remoteport_delete(&rport->remoteport); rport 2612 drivers/nvme/host/fc.c nvme_fc_rport_inactive_on_lport(rport); rport 2631 drivers/nvme/host/fc.c if (ctrl->rport->remoteport.port_state != FC_OBJSTATE_ONLINE) rport 2641 drivers/nvme/host/fc.c ctrl->rport->remoteport.port_name, ctrl->ctrl.opts->subsysnqn); rport 2867 drivers/nvme/host/fc.c struct nvme_fc_rport *rport = ctrl->rport; rport 2868 drivers/nvme/host/fc.c struct nvme_fc_remote_port *portptr = &rport->remoteport; rport 2879 drivers/nvme/host/fc.c else if (time_after_eq(jiffies, rport->dev_loss_end)) rport 2888 drivers/nvme/host/fc.c else if (time_after(jiffies + recon_delay, rport->dev_loss_end)) rport 2889 drivers/nvme/host/fc.c recon_delay = rport->dev_loss_end - jiffies; rport 2945 drivers/nvme/host/fc.c if (ctrl->rport->remoteport.port_state == FC_OBJSTATE_ONLINE) rport 3027 drivers/nvme/host/fc.c nvme_fc_existing_controller(struct nvme_fc_rport *rport, rport 3034 drivers/nvme/host/fc.c spin_lock_irqsave(&rport->lock, flags); rport 3035 drivers/nvme/host/fc.c list_for_each_entry(ctrl, &rport->ctrl_list, ctrl_list) { rport 3040 drivers/nvme/host/fc.c spin_unlock_irqrestore(&rport->lock, flags); rport 3047 drivers/nvme/host/fc.c struct nvme_fc_lport *lport, struct nvme_fc_rport *rport) rport 3053 drivers/nvme/host/fc.c if (!(rport->remoteport.port_role & rport 3060 drivers/nvme/host/fc.c nvme_fc_existing_controller(rport, opts)) { rport 3085 drivers/nvme/host/fc.c ctrl->rport = rport; rport 3162 drivers/nvme/host/fc.c spin_lock_irqsave(&rport->lock, flags); rport 3163 drivers/nvme/host/fc.c list_add_tail(&ctrl->ctrl_list, &rport->ctrl_list); rport 3164 drivers/nvme/host/fc.c spin_unlock_irqrestore(&rport->lock, flags); rport 3212 drivers/nvme/host/fc.c nvme_fc_rport_get(rport); rport 3304 drivers/nvme/host/fc.c struct nvme_fc_rport *rport; rport 3326 drivers/nvme/host/fc.c list_for_each_entry(rport, &lport->endp_list, endp_list) { rport 3327 drivers/nvme/host/fc.c if (rport->remoteport.node_name != raddr.nn || rport 3328 drivers/nvme/host/fc.c rport->remoteport.port_name != raddr.pn) rport 3332 drivers/nvme/host/fc.c if (!nvme_fc_rport_get(rport)) rport 3337 drivers/nvme/host/fc.c ctrl = nvme_fc_init_ctrl(dev, opts, lport, rport); rport 3339 drivers/nvme/host/fc.c nvme_fc_rport_put(rport); rport 3368 drivers/nvme/host/fc.c struct nvme_fc_rport *rport; rport 3374 drivers/nvme/host/fc.c list_for_each_entry(rport, &lport->endp_list, endp_list) { rport 3377 drivers/nvme/host/fc.c if (!nvme_fc_rport_get(rport)) { rport 3396 drivers/nvme/host/fc.c if (list_empty(&rport->disc_list)) rport 3397 drivers/nvme/host/fc.c list_add_tail(&rport->disc_list, rport 3404 drivers/nvme/host/fc.c rport = list_first_entry(&local_disc_list, rport 3406 drivers/nvme/host/fc.c list_del_init(&rport->disc_list); rport 3409 drivers/nvme/host/fc.c lport = rport->lport; rport 3411 drivers/nvme/host/fc.c nvme_fc_signal_discovery_scan(lport, rport); rport 3412 drivers/nvme/host/fc.c nvme_fc_rport_put(rport); rport 3499 drivers/nvme/host/fc.c nvme_fc_delete_controllers(struct nvme_fc_rport *rport) rport 3503 drivers/nvme/host/fc.c spin_lock(&rport->lock); rport 3504 drivers/nvme/host/fc.c list_for_each_entry(ctrl, &rport->ctrl_list, ctrl_list) { rport 3510 drivers/nvme/host/fc.c spin_unlock(&rport->lock); rport 3517 drivers/nvme/host/fc.c struct nvme_fc_rport *rport; rport 3520 drivers/nvme/host/fc.c list_for_each_entry(rport, &lport->endp_list, endp_list) { rport 3521 drivers/nvme/host/fc.c nvme_fc_delete_controllers(rport); rport 215 drivers/nvme/target/fcloop.c struct fcloop_rport *rport; rport 318 drivers/nvme/target/fcloop.c struct fcloop_rport *rport = remoteport->private; rport 324 drivers/nvme/target/fcloop.c if (!rport->targetport) { rport 332 drivers/nvme/target/fcloop.c tls_req->tport = rport->targetport->private; rport 333 drivers/nvme/target/fcloop.c ret = nvmet_fc_rcv_ls_req(rport->targetport, &tls_req->tgt_ls_req, rport 531 drivers/nvme/target/fcloop.c struct fcloop_rport *rport = remoteport->private; rport 535 drivers/nvme/target/fcloop.c if (!rport->targetport) rport 547 drivers/nvme/target/fcloop.c tfcp_req->tport = rport->targetport->private; rport 835 drivers/nvme/target/fcloop.c struct fcloop_rport *rport = remoteport->private; rport 837 drivers/nvme/target/fcloop.c fcloop_nport_put(rport->nport); rport 1064 drivers/nvme/target/fcloop.c if ((remoteport && nport->rport) || rport 1106 drivers/nvme/target/fcloop.c struct fcloop_rport *rport; rport 1128 drivers/nvme/target/fcloop.c rport = remoteport->private; rport 1129 drivers/nvme/target/fcloop.c rport->remoteport = remoteport; rport 1130 drivers/nvme/target/fcloop.c rport->targetport = (nport->tport) ? nport->tport->targetport : NULL; rport 1135 drivers/nvme/target/fcloop.c rport->nport = nport; rport 1136 drivers/nvme/target/fcloop.c rport->lport = nport->lport; rport 1137 drivers/nvme/target/fcloop.c nport->rport = rport; rport 1146 drivers/nvme/target/fcloop.c struct fcloop_rport *rport = nport->rport; rport 1148 drivers/nvme/target/fcloop.c if (rport && nport->tport) rport 1150 drivers/nvme/target/fcloop.c nport->rport = NULL; rport 1152 drivers/nvme/target/fcloop.c return rport; rport 1156 drivers/nvme/target/fcloop.c __remoteport_unreg(struct fcloop_nport *nport, struct fcloop_rport *rport) rport 1158 drivers/nvme/target/fcloop.c if (!rport) rport 1161 drivers/nvme/target/fcloop.c return nvme_fc_unregister_remoteport(rport->remoteport); rport 1169 drivers/nvme/target/fcloop.c static struct fcloop_rport *rport; rport 1182 drivers/nvme/target/fcloop.c tmpport->port_name == portname && tmpport->rport) { rport 1184 drivers/nvme/target/fcloop.c rport = __unlink_remote_port(nport); rport 1194 drivers/nvme/target/fcloop.c ret = __remoteport_unreg(nport, rport); rport 1227 drivers/nvme/target/fcloop.c tport->remoteport = (nport->rport) ? nport->rport->remoteport : NULL; rport 1228 drivers/nvme/target/fcloop.c if (nport->rport) rport 1229 drivers/nvme/target/fcloop.c nport->rport->targetport = targetport; rport 1243 drivers/nvme/target/fcloop.c if (tport && nport->rport) rport 1244 drivers/nvme/target/fcloop.c nport->rport->targetport = NULL; rport 1359 drivers/nvme/target/fcloop.c struct fcloop_rport *rport; rport 1372 drivers/nvme/target/fcloop.c rport = __unlink_remote_port(nport); rport 1380 drivers/nvme/target/fcloop.c ret = __remoteport_unreg(nport, rport); rport 405 drivers/phy/rockchip/phy-rockchip-inno-usb2.c struct rockchip_usb2phy_port *rport = phy_get_drvdata(phy); rport 409 drivers/phy/rockchip/phy-rockchip-inno-usb2.c mutex_lock(&rport->mutex); rport 411 drivers/phy/rockchip/phy-rockchip-inno-usb2.c if (rport->port_id == USB2PHY_PORT_OTG) { rport 412 drivers/phy/rockchip/phy-rockchip-inno-usb2.c if (rport->mode != USB_DR_MODE_HOST && rport 413 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->mode != USB_DR_MODE_UNKNOWN) { rport 416 drivers/phy/rockchip/phy-rockchip-inno-usb2.c &rport->port_cfg->bvalid_det_clr, rport 422 drivers/phy/rockchip/phy-rockchip-inno-usb2.c &rport->port_cfg->bvalid_det_en, rport 427 drivers/phy/rockchip/phy-rockchip-inno-usb2.c schedule_delayed_work(&rport->otg_sm_work, rport 431 drivers/phy/rockchip/phy-rockchip-inno-usb2.c dev_dbg(&rport->phy->dev, "mode %d\n", rport->mode); rport 433 drivers/phy/rockchip/phy-rockchip-inno-usb2.c } else if (rport->port_id == USB2PHY_PORT_HOST) { rport 436 drivers/phy/rockchip/phy-rockchip-inno-usb2.c &rport->port_cfg->ls_det_clr, true); rport 441 drivers/phy/rockchip/phy-rockchip-inno-usb2.c &rport->port_cfg->ls_det_en, true); rport 445 drivers/phy/rockchip/phy-rockchip-inno-usb2.c schedule_delayed_work(&rport->sm_work, SCHEDULE_DELAY); rport 449 drivers/phy/rockchip/phy-rockchip-inno-usb2.c mutex_unlock(&rport->mutex); rport 455 drivers/phy/rockchip/phy-rockchip-inno-usb2.c struct rockchip_usb2phy_port *rport = phy_get_drvdata(phy); rport 460 drivers/phy/rockchip/phy-rockchip-inno-usb2.c dev_dbg(&rport->phy->dev, "port power on\n"); rport 462 drivers/phy/rockchip/phy-rockchip-inno-usb2.c if (!rport->suspended) rport 469 drivers/phy/rockchip/phy-rockchip-inno-usb2.c ret = property_enable(base, &rport->port_cfg->phy_sus, false); rport 476 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->suspended = false; rport 482 drivers/phy/rockchip/phy-rockchip-inno-usb2.c struct rockchip_usb2phy_port *rport = phy_get_drvdata(phy); rport 487 drivers/phy/rockchip/phy-rockchip-inno-usb2.c dev_dbg(&rport->phy->dev, "port power off\n"); rport 489 drivers/phy/rockchip/phy-rockchip-inno-usb2.c if (rport->suspended) rport 492 drivers/phy/rockchip/phy-rockchip-inno-usb2.c ret = property_enable(base, &rport->port_cfg->phy_sus, true); rport 496 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->suspended = true; rport 504 drivers/phy/rockchip/phy-rockchip-inno-usb2.c struct rockchip_usb2phy_port *rport = phy_get_drvdata(phy); rport 506 drivers/phy/rockchip/phy-rockchip-inno-usb2.c if (rport->port_id == USB2PHY_PORT_OTG && rport 507 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->mode != USB_DR_MODE_HOST && rport 508 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->mode != USB_DR_MODE_UNKNOWN) { rport 509 drivers/phy/rockchip/phy-rockchip-inno-usb2.c cancel_delayed_work_sync(&rport->otg_sm_work); rport 510 drivers/phy/rockchip/phy-rockchip-inno-usb2.c cancel_delayed_work_sync(&rport->chg_work); rport 511 drivers/phy/rockchip/phy-rockchip-inno-usb2.c } else if (rport->port_id == USB2PHY_PORT_HOST) rport 512 drivers/phy/rockchip/phy-rockchip-inno-usb2.c cancel_delayed_work_sync(&rport->sm_work); rport 527 drivers/phy/rockchip/phy-rockchip-inno-usb2.c struct rockchip_usb2phy_port *rport = rport 530 drivers/phy/rockchip/phy-rockchip-inno-usb2.c struct rockchip_usb2phy *rphy = dev_get_drvdata(rport->phy->dev.parent); rport 536 drivers/phy/rockchip/phy-rockchip-inno-usb2.c &rport->port_cfg->utmi_bvalid); rport 541 drivers/phy/rockchip/phy-rockchip-inno-usb2.c dev_dbg(&rport->phy->dev, "%s otg sm work\n", rport 542 drivers/phy/rockchip/phy-rockchip-inno-usb2.c usb_otg_state_string(rport->state)); rport 544 drivers/phy/rockchip/phy-rockchip-inno-usb2.c switch (rport->state) { rport 546 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->state = OTG_STATE_B_IDLE; rport 548 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rockchip_usb2phy_power_off(rport->phy); rport 552 drivers/phy/rockchip/phy-rockchip-inno-usb2.c dev_dbg(&rport->phy->dev, "usb otg host connect\n"); rport 553 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->state = OTG_STATE_A_HOST; rport 554 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rockchip_usb2phy_power_on(rport->phy); rport 557 drivers/phy/rockchip/phy-rockchip-inno-usb2.c dev_dbg(&rport->phy->dev, "vbus_attach\n"); rport 560 drivers/phy/rockchip/phy-rockchip-inno-usb2.c schedule_delayed_work(&rport->chg_work, 0); rport 565 drivers/phy/rockchip/phy-rockchip-inno-usb2.c dev_dbg(&rport->phy->dev, "sdp cable is connected\n"); rport 566 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rockchip_usb2phy_power_on(rport->phy); rport 567 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->state = OTG_STATE_B_PERIPHERAL; rport 573 drivers/phy/rockchip/phy-rockchip-inno-usb2.c dev_dbg(&rport->phy->dev, "dcp cable is connected\n"); rport 574 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rockchip_usb2phy_power_off(rport->phy); rport 580 drivers/phy/rockchip/phy-rockchip-inno-usb2.c dev_dbg(&rport->phy->dev, "cdp cable is connected\n"); rport 581 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rockchip_usb2phy_power_on(rport->phy); rport 582 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->state = OTG_STATE_B_PERIPHERAL; rport 600 drivers/phy/rockchip/phy-rockchip-inno-usb2.c if (rport->vbus_attached != vbus_attach) { rport 601 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->vbus_attached = vbus_attach; rport 615 drivers/phy/rockchip/phy-rockchip-inno-usb2.c dev_dbg(&rport->phy->dev, "usb disconnect\n"); rport 618 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->state = OTG_STATE_B_IDLE; rport 620 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rockchip_usb2phy_power_off(rport->phy); rport 626 drivers/phy/rockchip/phy-rockchip-inno-usb2.c dev_dbg(&rport->phy->dev, "usb otg host disconnect\n"); rport 627 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->state = OTG_STATE_B_IDLE; rport 628 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rockchip_usb2phy_power_off(rport->phy); rport 636 drivers/phy/rockchip/phy-rockchip-inno-usb2.c schedule_delayed_work(&rport->otg_sm_work, delay); rport 686 drivers/phy/rockchip/phy-rockchip-inno-usb2.c struct rockchip_usb2phy_port *rport = rport 688 drivers/phy/rockchip/phy-rockchip-inno-usb2.c struct rockchip_usb2phy *rphy = dev_get_drvdata(rport->phy->dev.parent); rport 693 drivers/phy/rockchip/phy-rockchip-inno-usb2.c dev_dbg(&rport->phy->dev, "chg detection work state = %d\n", rport 697 drivers/phy/rockchip/phy-rockchip-inno-usb2.c if (!rport->suspended) rport 698 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rockchip_usb2phy_power_off(rport->phy); rport 765 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rockchip_usb2phy_otg_sm_work(&rport->otg_sm_work.work); rport 766 drivers/phy/rockchip/phy-rockchip-inno-usb2.c dev_info(&rport->phy->dev, "charger = %s\n", rport 773 drivers/phy/rockchip/phy-rockchip-inno-usb2.c schedule_delayed_work(&rport->chg_work, delay); rport 791 drivers/phy/rockchip/phy-rockchip-inno-usb2.c struct rockchip_usb2phy_port *rport = rport 793 drivers/phy/rockchip/phy-rockchip-inno-usb2.c struct rockchip_usb2phy *rphy = dev_get_drvdata(rport->phy->dev.parent); rport 794 drivers/phy/rockchip/phy-rockchip-inno-usb2.c unsigned int sh = rport->port_cfg->utmi_hstdet.bitend - rport 795 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->port_cfg->utmi_hstdet.bitstart + 1; rport 800 drivers/phy/rockchip/phy-rockchip-inno-usb2.c mutex_lock(&rport->mutex); rport 802 drivers/phy/rockchip/phy-rockchip-inno-usb2.c ret = regmap_read(rphy->grf, rport->port_cfg->utmi_ls.offset, &ul); rport 806 drivers/phy/rockchip/phy-rockchip-inno-usb2.c ret = regmap_read(rphy->grf, rport->port_cfg->utmi_hstdet.offset, &uhd); rport 810 drivers/phy/rockchip/phy-rockchip-inno-usb2.c uhd_mask = GENMASK(rport->port_cfg->utmi_hstdet.bitend, rport 811 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->port_cfg->utmi_hstdet.bitstart); rport 812 drivers/phy/rockchip/phy-rockchip-inno-usb2.c ul_mask = GENMASK(rport->port_cfg->utmi_ls.bitend, rport 813 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->port_cfg->utmi_ls.bitstart); rport 816 drivers/phy/rockchip/phy-rockchip-inno-usb2.c state = ((uhd & uhd_mask) >> rport->port_cfg->utmi_hstdet.bitstart) | rport 817 drivers/phy/rockchip/phy-rockchip-inno-usb2.c (((ul & ul_mask) >> rport->port_cfg->utmi_ls.bitstart) << sh); rport 821 drivers/phy/rockchip/phy-rockchip-inno-usb2.c dev_dbg(&rport->phy->dev, "HS online\n"); rport 833 drivers/phy/rockchip/phy-rockchip-inno-usb2.c if (!rport->suspended) { rport 835 drivers/phy/rockchip/phy-rockchip-inno-usb2.c dev_dbg(&rport->phy->dev, "FS/LS online\n"); rport 840 drivers/phy/rockchip/phy-rockchip-inno-usb2.c if (rport->suspended) { rport 841 drivers/phy/rockchip/phy-rockchip-inno-usb2.c dev_dbg(&rport->phy->dev, "Connected\n"); rport 842 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rockchip_usb2phy_power_on(rport->phy); rport 843 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->suspended = false; rport 846 drivers/phy/rockchip/phy-rockchip-inno-usb2.c dev_dbg(&rport->phy->dev, "FS/LS online\n"); rport 850 drivers/phy/rockchip/phy-rockchip-inno-usb2.c if (!rport->suspended) { rport 851 drivers/phy/rockchip/phy-rockchip-inno-usb2.c dev_dbg(&rport->phy->dev, "Disconnected\n"); rport 852 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rockchip_usb2phy_power_off(rport->phy); rport 853 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->suspended = true; rport 860 drivers/phy/rockchip/phy-rockchip-inno-usb2.c property_enable(rphy->grf, &rport->port_cfg->ls_det_clr, true); rport 861 drivers/phy/rockchip/phy-rockchip-inno-usb2.c property_enable(rphy->grf, &rport->port_cfg->ls_det_en, true); rport 867 drivers/phy/rockchip/phy-rockchip-inno-usb2.c mutex_unlock(&rport->mutex); rport 870 drivers/phy/rockchip/phy-rockchip-inno-usb2.c dev_dbg(&rport->phy->dev, "unknown phy state\n"); rport 875 drivers/phy/rockchip/phy-rockchip-inno-usb2.c mutex_unlock(&rport->mutex); rport 876 drivers/phy/rockchip/phy-rockchip-inno-usb2.c schedule_delayed_work(&rport->sm_work, SCHEDULE_DELAY); rport 881 drivers/phy/rockchip/phy-rockchip-inno-usb2.c struct rockchip_usb2phy_port *rport = data; rport 882 drivers/phy/rockchip/phy-rockchip-inno-usb2.c struct rockchip_usb2phy *rphy = dev_get_drvdata(rport->phy->dev.parent); rport 884 drivers/phy/rockchip/phy-rockchip-inno-usb2.c if (!property_enabled(rphy->grf, &rport->port_cfg->ls_det_st)) rport 887 drivers/phy/rockchip/phy-rockchip-inno-usb2.c mutex_lock(&rport->mutex); rport 890 drivers/phy/rockchip/phy-rockchip-inno-usb2.c property_enable(rphy->grf, &rport->port_cfg->ls_det_en, false); rport 891 drivers/phy/rockchip/phy-rockchip-inno-usb2.c property_enable(rphy->grf, &rport->port_cfg->ls_det_clr, true); rport 893 drivers/phy/rockchip/phy-rockchip-inno-usb2.c mutex_unlock(&rport->mutex); rport 900 drivers/phy/rockchip/phy-rockchip-inno-usb2.c if (rport->suspended && rport->port_id == USB2PHY_PORT_HOST) rport 901 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rockchip_usb2phy_sm_work(&rport->sm_work.work); rport 908 drivers/phy/rockchip/phy-rockchip-inno-usb2.c struct rockchip_usb2phy_port *rport = data; rport 909 drivers/phy/rockchip/phy-rockchip-inno-usb2.c struct rockchip_usb2phy *rphy = dev_get_drvdata(rport->phy->dev.parent); rport 911 drivers/phy/rockchip/phy-rockchip-inno-usb2.c if (!property_enabled(rphy->grf, &rport->port_cfg->bvalid_det_st)) rport 914 drivers/phy/rockchip/phy-rockchip-inno-usb2.c mutex_lock(&rport->mutex); rport 917 drivers/phy/rockchip/phy-rockchip-inno-usb2.c property_enable(rphy->grf, &rport->port_cfg->bvalid_det_clr, true); rport 919 drivers/phy/rockchip/phy-rockchip-inno-usb2.c mutex_unlock(&rport->mutex); rport 921 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rockchip_usb2phy_otg_sm_work(&rport->otg_sm_work.work); rport 928 drivers/phy/rockchip/phy-rockchip-inno-usb2.c struct rockchip_usb2phy_port *rport = data; rport 929 drivers/phy/rockchip/phy-rockchip-inno-usb2.c struct rockchip_usb2phy *rphy = dev_get_drvdata(rport->phy->dev.parent); rport 931 drivers/phy/rockchip/phy-rockchip-inno-usb2.c if (property_enabled(rphy->grf, &rport->port_cfg->bvalid_det_st)) rport 938 drivers/phy/rockchip/phy-rockchip-inno-usb2.c struct rockchip_usb2phy_port *rport, rport 943 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->port_id = USB2PHY_PORT_HOST; rport 944 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->port_cfg = &rphy->phy_cfg->port_cfgs[USB2PHY_PORT_HOST]; rport 945 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->suspended = true; rport 947 drivers/phy/rockchip/phy-rockchip-inno-usb2.c mutex_init(&rport->mutex); rport 948 drivers/phy/rockchip/phy-rockchip-inno-usb2.c INIT_DELAYED_WORK(&rport->sm_work, rockchip_usb2phy_sm_work); rport 950 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->ls_irq = of_irq_get_byname(child_np, "linestate"); rport 951 drivers/phy/rockchip/phy-rockchip-inno-usb2.c if (rport->ls_irq < 0) { rport 953 drivers/phy/rockchip/phy-rockchip-inno-usb2.c return rport->ls_irq; rport 956 drivers/phy/rockchip/phy-rockchip-inno-usb2.c ret = devm_request_threaded_irq(rphy->dev, rport->ls_irq, NULL, rport 959 drivers/phy/rockchip/phy-rockchip-inno-usb2.c "rockchip_usb2phy", rport); rport 971 drivers/phy/rockchip/phy-rockchip-inno-usb2.c struct rockchip_usb2phy_port *rport = rport 974 drivers/phy/rockchip/phy-rockchip-inno-usb2.c schedule_delayed_work(&rport->otg_sm_work, OTG_SCHEDULE_DELAY); rport 980 drivers/phy/rockchip/phy-rockchip-inno-usb2.c struct rockchip_usb2phy_port *rport, rport 985 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->port_id = USB2PHY_PORT_OTG; rport 986 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->port_cfg = &rphy->phy_cfg->port_cfgs[USB2PHY_PORT_OTG]; rport 987 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->state = OTG_STATE_UNDEFINED; rport 995 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->suspended = true; rport 996 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->vbus_attached = false; rport 998 drivers/phy/rockchip/phy-rockchip-inno-usb2.c mutex_init(&rport->mutex); rport 1000 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->mode = of_usb_get_dr_mode_by_phy(child_np, -1); rport 1001 drivers/phy/rockchip/phy-rockchip-inno-usb2.c if (rport->mode == USB_DR_MODE_HOST || rport 1002 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->mode == USB_DR_MODE_UNKNOWN) { rport 1007 drivers/phy/rockchip/phy-rockchip-inno-usb2.c INIT_DELAYED_WORK(&rport->chg_work, rockchip_chg_detect_work); rport 1008 drivers/phy/rockchip/phy-rockchip-inno-usb2.c INIT_DELAYED_WORK(&rport->otg_sm_work, rockchip_usb2phy_otg_sm_work); rport 1015 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->otg_mux_irq = of_irq_get_byname(child_np, "otg-mux"); rport 1016 drivers/phy/rockchip/phy-rockchip-inno-usb2.c if (rport->otg_mux_irq > 0) { rport 1017 drivers/phy/rockchip/phy-rockchip-inno-usb2.c ret = devm_request_threaded_irq(rphy->dev, rport->otg_mux_irq, rport 1022 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport); rport 1029 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->bvalid_irq = of_irq_get_byname(child_np, "otg-bvalid"); rport 1030 drivers/phy/rockchip/phy-rockchip-inno-usb2.c if (rport->bvalid_irq < 0) { rport 1032 drivers/phy/rockchip/phy-rockchip-inno-usb2.c ret = rport->bvalid_irq; rport 1036 drivers/phy/rockchip/phy-rockchip-inno-usb2.c ret = devm_request_threaded_irq(rphy->dev, rport->bvalid_irq, rport 1041 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport); rport 1050 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->event_nb.notifier_call = rockchip_otg_event; rport 1053 drivers/phy/rockchip/phy-rockchip-inno-usb2.c EXTCON_USB_HOST, &rport->event_nb); rport 1150 drivers/phy/rockchip/phy-rockchip-inno-usb2.c struct rockchip_usb2phy_port *rport = &rphy->ports[index]; rport 1165 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->phy = phy; rport 1166 drivers/phy/rockchip/phy-rockchip-inno-usb2.c phy_set_drvdata(rport->phy, rport); rport 1170 drivers/phy/rockchip/phy-rockchip-inno-usb2.c ret = rockchip_usb2phy_host_port_init(rphy, rport, rport 1175 drivers/phy/rockchip/phy-rockchip-inno-usb2.c ret = rockchip_usb2phy_otg_port_init(rphy, rport, rport 190 drivers/pnp/resource.c int rport = pnp_reserve_io[i << 1]; rport 191 drivers/pnp/resource.c int rend = pnp_reserve_io[(i << 1) + 1] + rport - 1; rport 192 drivers/pnp/resource.c if (ranged_conflict(port, end, &rport, &rend)) rport 204 drivers/s390/scsi/zfcp_def.h struct fc_rport *rport; /* rport of fc transport class */ rport 964 drivers/s390/scsi/zfcp_fc.c struct fc_rport *rport = fc_bsg_to_rport(job); rport 970 drivers/s390/scsi/zfcp_fc.c shost = rport ? rport_to_shost(rport) : fc_bsg_to_shost(job); rport 1004 drivers/s390/scsi/zfcp_fc.c struct fc_rport *rport = fc_bsg_to_rport(job); rport 1009 drivers/s390/scsi/zfcp_fc.c if (rport) { rport 1010 drivers/s390/scsi/zfcp_fc.c port = zfcp_get_port_by_wwpn(adapter, rport->port_name); rport 1052 drivers/s390/scsi/zfcp_fc.c struct fc_rport *rport = fc_bsg_to_rport(job); rport 1054 drivers/s390/scsi/zfcp_fc.c shost = rport ? rport_to_shost(rport) : fc_bsg_to_shost(job); rport 70 drivers/s390/scsi/zfcp_scsi.c struct fc_rport *rport = starget_to_rport(scsi_target(scpnt->device)); rport 77 drivers/s390/scsi/zfcp_scsi.c scsi_result = fc_remote_port_chkready(rport); rport 115 drivers/s390/scsi/zfcp_scsi.c struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); rport 126 drivers/s390/scsi/zfcp_scsi.c port = zfcp_get_port_by_wwpn(adapter, rport->port_name); rport 293 drivers/s390/scsi/zfcp_scsi.c struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); rport 305 drivers/s390/scsi/zfcp_scsi.c ret = fc_block_rport(rport); rport 346 drivers/s390/scsi/zfcp_scsi.c struct fc_rport *rport = starget_to_rport(starget); rport 347 drivers/s390/scsi/zfcp_scsi.c struct Scsi_Host *shost = rport_to_shost(rport); rport 508 drivers/s390/scsi/zfcp_scsi.c port->rport = NULL; rport 664 drivers/s390/scsi/zfcp_scsi.c static void zfcp_scsi_set_rport_dev_loss_tmo(struct fc_rport *rport, rport 667 drivers/s390/scsi/zfcp_scsi.c rport->dev_loss_tmo = timeout; rport 680 drivers/s390/scsi/zfcp_scsi.c static void zfcp_scsi_terminate_rport_io(struct fc_rport *rport) rport 683 drivers/s390/scsi/zfcp_scsi.c struct Scsi_Host *shost = rport_to_shost(rport); rport 687 drivers/s390/scsi/zfcp_scsi.c port = zfcp_get_port_by_wwpn(adapter, rport->port_name); rport 695 drivers/s390/scsi/zfcp_scsi.c rport->port_name /* zfcp_scsi_rport_register */, rport 696 drivers/s390/scsi/zfcp_scsi.c rport->port_id /* zfcp_scsi_rport_register */); rport 703 drivers/s390/scsi/zfcp_scsi.c struct fc_rport *rport; rport 705 drivers/s390/scsi/zfcp_scsi.c if (port->rport) rport 716 drivers/s390/scsi/zfcp_scsi.c rport = fc_remote_port_add(port->adapter->scsi_host, 0, &ids); rport 717 drivers/s390/scsi/zfcp_scsi.c if (!rport) { rport 724 drivers/s390/scsi/zfcp_scsi.c rport->maxframe_size = port->maxframe_size; rport 725 drivers/s390/scsi/zfcp_scsi.c rport->supported_classes = port->supported_classes; rport 726 drivers/s390/scsi/zfcp_scsi.c port->rport = rport; rport 727 drivers/s390/scsi/zfcp_scsi.c port->starget_id = rport->scsi_target_id; rport 734 drivers/s390/scsi/zfcp_scsi.c struct fc_rport *rport = port->rport; rport 736 drivers/s390/scsi/zfcp_scsi.c if (rport) { rport 740 drivers/s390/scsi/zfcp_scsi.c fc_remote_port_delete(rport); rport 741 drivers/s390/scsi/zfcp_scsi.c port->rport = NULL; rport 759 drivers/s390/scsi/zfcp_scsi.c if (port->rport && queue_work(port->adapter->work_queue, rport 24 drivers/s390/scsi/zfcp_unit.c struct fc_rport *rport = unit->port->rport; rport 29 drivers/s390/scsi/zfcp_unit.c if (rport && rport->port_state == FC_PORTSTATE_ONLINE) rport 30 drivers/s390/scsi/zfcp_unit.c scsi_scan_target(&rport->dev, 0, rport->scsi_target_id, lun, rport 1437 drivers/scsi/bfa/bfa_defs_svc.h struct bfa_rport_aen_data_s rport; rport 432 drivers/scsi/bfa/bfa_fcpim.c if (itnim->rport->rport_info.lp_tag != lp_tag) rport 510 drivers/scsi/bfa/bfa_fcpim.c bfa_trc(itnim->bfa, itnim->rport->rport_tag); rport 531 drivers/scsi/bfa/bfa_fcpim.c bfa_trc(itnim->bfa, itnim->rport->rport_tag); rport 562 drivers/scsi/bfa/bfa_fcpim.c bfa_trc(itnim->bfa, itnim->rport->rport_tag); rport 597 drivers/scsi/bfa/bfa_fcpim.c bfa_trc(itnim->bfa, itnim->rport->rport_tag); rport 635 drivers/scsi/bfa/bfa_fcpim.c bfa_trc(itnim->bfa, itnim->rport->rport_tag); rport 662 drivers/scsi/bfa/bfa_fcpim.c bfa_trc(itnim->bfa, itnim->rport->rport_tag); rport 704 drivers/scsi/bfa/bfa_fcpim.c bfa_trc(itnim->bfa, itnim->rport->rport_tag); rport 736 drivers/scsi/bfa/bfa_fcpim.c bfa_trc(itnim->bfa, itnim->rport->rport_tag); rport 773 drivers/scsi/bfa/bfa_fcpim.c bfa_trc(itnim->bfa, itnim->rport->rport_tag); rport 800 drivers/scsi/bfa/bfa_fcpim.c bfa_trc(itnim->bfa, itnim->rport->rport_tag); rport 827 drivers/scsi/bfa/bfa_fcpim.c bfa_trc(itnim->bfa, itnim->rport->rport_tag); rport 857 drivers/scsi/bfa/bfa_fcpim.c bfa_trc(itnim->bfa, itnim->rport->rport_tag); rport 887 drivers/scsi/bfa/bfa_fcpim.c bfa_trc(itnim->bfa, itnim->rport->rport_tag); rport 922 drivers/scsi/bfa/bfa_fcpim.c bfa_trc(itnim->bfa, itnim->rport->rport_tag); rport 941 drivers/scsi/bfa/bfa_fcpim.c bfa_trc(itnim->bfa, itnim->rport->rport_tag); rport 1123 drivers/scsi/bfa/bfa_fcpim.c itnim->rport = BFA_RPORT_FROM_TAG(bfa, i); rport 1165 drivers/scsi/bfa/bfa_fcpim.c m->fw_handle = itnim->rport->fw_handle; rport 1194 drivers/scsi/bfa/bfa_fcpim.c m->fw_handle = itnim->rport->fw_handle; rport 1400 drivers/scsi/bfa/bfa_fcpim.c bfa_itnim_create(struct bfa_s *bfa, struct bfa_rport_s *rport, void *ditn) rport 1405 drivers/scsi/bfa/bfa_fcpim.c bfa_itn_create(bfa, rport, bfa_itnim_isr); rport 1407 drivers/scsi/bfa/bfa_fcpim.c itnim = BFA_ITNIM_FROM_TAG(fcpim, rport->rport_tag); rport 1408 drivers/scsi/bfa/bfa_fcpim.c WARN_ON(itnim->rport != rport); rport 2479 drivers/scsi/bfa/bfa_fcpim.c m->rport_hdl = ioim->itnim->rport->fw_handle; rport 3402 drivers/scsi/bfa/bfa_fcpim.c m->itn_fhdl = tskim->itnim->rport->fw_handle; rport 3765 drivers/scsi/bfa/bfa_fcpim.c bfa_itn_create(struct bfa_s *bfa, struct bfa_rport_s *rport, rport 3771 drivers/scsi/bfa/bfa_fcpim.c itn = BFA_ITN_FROM_TAG(fcp, rport->rport_tag); rport 34 drivers/scsi/bfa/bfa_fcpim.h void bfa_itn_create(struct bfa_s *bfa, struct bfa_rport_s *rport, rport 218 drivers/scsi/bfa/bfa_fcpim.h struct bfa_rport_s *rport; /* bfa rport */ rport 325 drivers/scsi/bfa/bfa_fcpim.h struct bfa_rport_s *rport, void *itnim); rport 285 drivers/scsi/bfa/bfa_fcs.h struct bfa_rport_qualifier_s rport[], int *nrports); rport 334 drivers/scsi/bfa/bfa_fcs.h struct bfa_fcs_rport_s *rport); rport 336 drivers/scsi/bfa/bfa_fcs.h struct bfa_fcs_rport_s *rport); rport 406 drivers/scsi/bfa/bfa_fcs.h struct bfa_fcs_rport_s *rport; /* parent rport */ rport 453 drivers/scsi/bfa/bfa_fcs.h bfa_fcs_rport_get_halrport(struct bfa_fcs_rport_s *rport) rport 455 drivers/scsi/bfa/bfa_fcs.h return rport->bfa_rport; rport 461 drivers/scsi/bfa/bfa_fcs.h void bfa_fcs_rport_get_attr(struct bfa_fcs_rport_s *rport, rport 469 drivers/scsi/bfa/bfa_fcs.h void bfa_fcs_rport_uf_recv(struct bfa_fcs_rport_s *rport, rport 471 drivers/scsi/bfa/bfa_fcs.h void bfa_fcs_rport_scn(struct bfa_fcs_rport_s *rport); rport 480 drivers/scsi/bfa/bfa_fcs.h void bfa_fcs_rport_plogi(struct bfa_fcs_rport_s *rport, struct fchs_s *fchs, rport 482 drivers/scsi/bfa/bfa_fcs.h void bfa_fcs_rport_prlo(struct bfa_fcs_rport_s *rport, __be16 ox_id); rport 484 drivers/scsi/bfa/bfa_fcs.h void bfa_fcs_rport_itntm_ack(struct bfa_fcs_rport_s *rport); rport 485 drivers/scsi/bfa/bfa_fcs.h void bfa_fcs_rport_fcptm_offline_done(struct bfa_fcs_rport_s *rport); rport 486 drivers/scsi/bfa/bfa_fcs.h int bfa_fcs_rport_get_state(struct bfa_fcs_rport_s *rport); rport 489 drivers/scsi/bfa/bfa_fcs.h void bfa_fcs_rpf_init(struct bfa_fcs_rport_s *rport); rport 490 drivers/scsi/bfa/bfa_fcs.h void bfa_fcs_rpf_rport_online(struct bfa_fcs_rport_s *rport); rport 491 drivers/scsi/bfa/bfa_fcs.h void bfa_fcs_rpf_rport_offline(struct bfa_fcs_rport_s *rport); rport 500 drivers/scsi/bfa/bfa_fcs.h struct bfa_fcs_rport_s *rport; /* parent remote rport */ rport 525 drivers/scsi/bfa/bfa_fcs.h return itnim->rport->port->bfad_port; rport 532 drivers/scsi/bfa/bfa_fcs.h return itnim->rport->port; rport 539 drivers/scsi/bfa/bfa_fcs.h return itnim->rport->nwwn; rport 546 drivers/scsi/bfa/bfa_fcs.h return itnim->rport->pwwn; rport 553 drivers/scsi/bfa/bfa_fcs.h return itnim->rport->pid; rport 560 drivers/scsi/bfa/bfa_fcs.h return itnim->rport->maxfrsize; rport 567 drivers/scsi/bfa/bfa_fcs.h return itnim->rport->fc_cos; rport 599 drivers/scsi/bfa/bfa_fcs.h struct bfa_fcs_itnim_s *bfa_fcs_itnim_create(struct bfa_fcs_rport_s *rport); rport 859 drivers/scsi/bfa/bfa_fcs.h struct bfa_fcs_rport_s **rport, rport 74 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_trc(itnim->fcs, itnim->rport->pwwn); rport 85 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE); rport 106 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_trc(itnim->fcs, itnim->rport->pwwn); rport 117 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_FCS_ONLINE); rport 123 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE); rport 141 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_trc(itnim->fcs, itnim->rport->pwwn); rport 146 drivers/scsi/bfa/bfa_fcs_fcpim.c if (itnim->rport->scsi_function == BFA_RPORT_INITIATOR) rport 152 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_FCS_ONLINE); rport 169 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE); rport 175 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_FCS_ONLINE); rport 193 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_trc(itnim->fcs, itnim->rport->pwwn); rport 200 drivers/scsi/bfa/bfa_fcs_fcpim.c itnim->rport->bfa_rport, itnim); rport 207 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_sm_send_event(itnim->rport, RPSM_EVENT_DELETE); rport 214 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE); rport 231 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_trc(itnim->fcs, itnim->rport->pwwn); rport 244 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_sm_send_event(itnim->rport, RPSM_EVENT_LOGO_IMP); rport 252 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE); rport 258 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_FCS_ONLINE); rport 280 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_trc(itnim->fcs, itnim->rport->pwwn); rport 287 drivers/scsi/bfa/bfa_fcs_fcpim.c wwn2str(lpwwn_buf, bfa_fcs_lport_get_pwwn(itnim->rport->port)); rport 288 drivers/scsi/bfa/bfa_fcs_fcpim.c wwn2str(rpwwn_buf, itnim->rport->pwwn); rport 318 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_trc(itnim->fcs, itnim->rport->pwwn); rport 326 drivers/scsi/bfa/bfa_fcs_fcpim.c wwn2str(lpwwn_buf, bfa_fcs_lport_get_pwwn(itnim->rport->port)); rport 327 drivers/scsi/bfa/bfa_fcs_fcpim.c wwn2str(rpwwn_buf, itnim->rport->pwwn); rport 328 drivers/scsi/bfa/bfa_fcs_fcpim.c if (bfa_fcs_lport_is_online(itnim->rport->port) == BFA_TRUE) { rport 355 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_trc(itnim->fcs, itnim->rport->pwwn); rport 361 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE); rport 383 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_trc(itnim->fcs, itnim->rport->pwwn); rport 389 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE); rport 396 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_FCS_ONLINE); rport 417 drivers/scsi/bfa/bfa_fcs_fcpim.c struct bfa_fcs_rport_s *rport = itnim->rport; rport 422 drivers/scsi/bfa/bfa_fcs_fcpim.c if (BFA_FCS_PID_IS_WKA(rport->pid)) rport 429 drivers/scsi/bfa/bfa_fcs_fcpim.c aen_entry->aen_data.itnim.vf_id = rport->port->fabric->vf_id; rport 432 drivers/scsi/bfa/bfa_fcs_fcpim.c aen_entry->aen_data.itnim.lpwwn = bfa_fcs_lport_get_pwwn(rport->port); rport 433 drivers/scsi/bfa/bfa_fcs_fcpim.c aen_entry->aen_data.itnim.rpwwn = rport->pwwn; rport 436 drivers/scsi/bfa/bfa_fcs_fcpim.c bfad_im_post_vendor_event(aen_entry, bfad, ++rport->fcs->fcs_aen_seq, rport 444 drivers/scsi/bfa/bfa_fcs_fcpim.c struct bfa_fcs_rport_s *rport = itnim->rport; rport 445 drivers/scsi/bfa/bfa_fcs_fcpim.c struct bfa_fcs_lport_s *port = rport->port; rport 450 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_trc(itnim->fcs, itnim->rport->pwwn); rport 463 drivers/scsi/bfa/bfa_fcs_fcpim.c itnim->rport->pid, bfa_fcs_lport_get_fcid(port), 0); rport 465 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_fcxp_send(fcxp, rport->bfa_rport, port->fabric->vf_id, port->lp_tag, rport 509 drivers/scsi/bfa/bfa_fcs_fcpim.c itnim->rport->scsi_function = rport 521 drivers/scsi/bfa/bfa_fcs_fcpim.c itnim->rport->scsi_function = BFA_RPORT_TARGET; rport 578 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_fcs_itnim_create(struct bfa_fcs_rport_s *rport) rport 580 drivers/scsi/bfa/bfa_fcs_fcpim.c struct bfa_fcs_lport_s *port = rport->port; rport 590 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_trc(port->fcs, rport->pwwn); rport 597 drivers/scsi/bfa/bfa_fcs_fcpim.c itnim->rport = rport; rport 598 drivers/scsi/bfa/bfa_fcs_fcpim.c itnim->fcs = rport->fcs; rport 623 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_trc(itnim->fcs, itnim->rport->pid); rport 635 drivers/scsi/bfa/bfa_fcs_fcpim.c if (!BFA_FCS_PID_IS_WKA(itnim->rport->pid)) rport 656 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_trc(itnim->fcs, itnim->rport->pid); rport 667 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_trc(itnim->fcs, itnim->rport->pid); rport 686 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_trc(itnim->fcs, itnim->rport->pwwn); rport 698 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_trc(itnim->fcs, itnim->rport->pwwn); rport 711 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_trc(itnim->fcs, itnim->rport->pwwn); rport 723 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_trc(itnim->fcs, itnim->rport->pwwn); rport 740 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_trc(itnim->fcs, itnim->rport->pwwn); rport 741 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_sm_send_event(itnim->rport, RPSM_EVENT_LOGO_IMP); rport 747 drivers/scsi/bfa/bfa_fcs_fcpim.c struct bfa_fcs_rport_s *rport; rport 748 drivers/scsi/bfa/bfa_fcs_fcpim.c rport = bfa_fcs_rport_lookup(port, rpwwn); rport 750 drivers/scsi/bfa/bfa_fcs_fcpim.c if (!rport) rport 753 drivers/scsi/bfa/bfa_fcs_fcpim.c WARN_ON(rport->itnim == NULL); rport 754 drivers/scsi/bfa/bfa_fcs_fcpim.c return rport->itnim; rport 827 drivers/scsi/bfa/bfa_fcs_fcpim.c bfa_fcs_rport_prlo(itnim->rport, fchs->ox_id); rport 189 drivers/scsi/bfa/bfa_fcs_lport.c struct bfa_fcs_rport_s *rport; rport 214 drivers/scsi/bfa/bfa_fcs_lport.c rport = (struct bfa_fcs_rport_s *) qe; rport 215 drivers/scsi/bfa/bfa_fcs_lport.c bfa_sm_send_event(rport, RPSM_EVENT_DELETE); rport 230 drivers/scsi/bfa/bfa_fcs_lport.c rport = (struct bfa_fcs_rport_s *) qe; rport 231 drivers/scsi/bfa/bfa_fcs_lport.c bfa_sm_send_event(rport, RPSM_EVENT_DELETE); rport 249 drivers/scsi/bfa/bfa_fcs_lport.c struct bfa_fcs_rport_s *rport; rport 272 drivers/scsi/bfa/bfa_fcs_lport.c rport = (struct bfa_fcs_rport_s *) qe; rport 273 drivers/scsi/bfa/bfa_fcs_lport.c bfa_sm_send_event(rport, RPSM_EVENT_DELETE); rport 285 drivers/scsi/bfa/bfa_fcs_lport.c rport = (struct bfa_fcs_rport_s *) qe; rport 286 drivers/scsi/bfa/bfa_fcs_lport.c bfa_sm_send_event(rport, RPSM_EVENT_DELETE); rport 443 drivers/scsi/bfa/bfa_fcs_lport.c struct bfa_fcs_rport_s *rport; rport 487 drivers/scsi/bfa/bfa_fcs_lport.c rport = bfa_fcs_lport_get_rport_by_pwwn(port, plogi->port_name); rport 488 drivers/scsi/bfa/bfa_fcs_lport.c if (rport) { rport 497 drivers/scsi/bfa/bfa_fcs_lport.c rport->pid = rx_fchs->s_id; rport 499 drivers/scsi/bfa/bfa_fcs_lport.c bfa_fcs_rport_plogi(rport, rx_fchs, plogi); rport 506 drivers/scsi/bfa/bfa_fcs_lport.c rport = bfa_fcs_lport_get_rport_by_pid(port, rx_fchs->s_id); rport 507 drivers/scsi/bfa/bfa_fcs_lport.c if (!rport) { rport 518 drivers/scsi/bfa/bfa_fcs_lport.c if (rport->pwwn) { rport 523 drivers/scsi/bfa/bfa_fcs_lport.c WARN_ON(rport->pwwn == plogi->port_name); rport 524 drivers/scsi/bfa/bfa_fcs_lport.c bfa_sm_send_event(rport, RPSM_EVENT_LOGO_IMP); rport 536 drivers/scsi/bfa/bfa_fcs_lport.c WARN_ON(rport->pwwn != WWN_NULL); rport 537 drivers/scsi/bfa/bfa_fcs_lport.c bfa_fcs_rport_plogi(rport, rx_fchs, plogi); rport 677 drivers/scsi/bfa/bfa_fcs_lport.c struct bfa_fcs_rport_s *rport; rport 700 drivers/scsi/bfa/bfa_fcs_lport.c rport = (struct bfa_fcs_rport_s *) qe; rport 701 drivers/scsi/bfa/bfa_fcs_lport.c bfa_sm_send_event(rport, RPSM_EVENT_LOGO_IMP); rport 773 drivers/scsi/bfa/bfa_fcs_lport.c struct bfa_fcs_rport_s *rport = NULL; rport 846 drivers/scsi/bfa/bfa_fcs_lport.c rport = bfa_fcs_lport_get_rport_by_pid(lport, pid); rport 847 drivers/scsi/bfa/bfa_fcs_lport.c if (rport) { rport 848 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(rport->fcs, fchs->s_id); rport 849 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(rport->fcs, fchs->d_id); rport 850 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(rport->fcs, fchs->type); rport 852 drivers/scsi/bfa/bfa_fcs_lport.c bfa_fcs_rport_uf_recv(rport, fchs, len); rport 902 drivers/scsi/bfa/bfa_fcs_lport.c struct bfa_fcs_rport_s *rport; rport 906 drivers/scsi/bfa/bfa_fcs_lport.c rport = (struct bfa_fcs_rport_s *) qe; rport 907 drivers/scsi/bfa/bfa_fcs_lport.c if (rport->pid == pid) rport 908 drivers/scsi/bfa/bfa_fcs_lport.c return rport; rport 921 drivers/scsi/bfa/bfa_fcs_lport.c struct bfa_fcs_rport_s *rport; rport 925 drivers/scsi/bfa/bfa_fcs_lport.c rport = (struct bfa_fcs_rport_s *) qe; rport 926 drivers/scsi/bfa/bfa_fcs_lport.c if (rport->old_pid == pid) rport 927 drivers/scsi/bfa/bfa_fcs_lport.c return rport; rport 940 drivers/scsi/bfa/bfa_fcs_lport.c struct bfa_fcs_rport_s *rport; rport 944 drivers/scsi/bfa/bfa_fcs_lport.c rport = (struct bfa_fcs_rport_s *) qe; rport 945 drivers/scsi/bfa/bfa_fcs_lport.c if (wwn_is_equal(rport->pwwn, pwwn)) rport 946 drivers/scsi/bfa/bfa_fcs_lport.c return rport; rport 959 drivers/scsi/bfa/bfa_fcs_lport.c struct bfa_fcs_rport_s *rport; rport 963 drivers/scsi/bfa/bfa_fcs_lport.c rport = (struct bfa_fcs_rport_s *) qe; rport 964 drivers/scsi/bfa/bfa_fcs_lport.c if (wwn_is_equal(rport->nwwn, nwwn)) rport 965 drivers/scsi/bfa/bfa_fcs_lport.c return rport; rport 979 drivers/scsi/bfa/bfa_fcs_lport.c struct bfa_fcs_rport_s *rport; rport 983 drivers/scsi/bfa/bfa_fcs_lport.c rport = (struct bfa_fcs_rport_s *) qe; rport 984 drivers/scsi/bfa/bfa_fcs_lport.c if (wwn_is_equal(rport->pwwn, pwwn) && rport->pid == pid) rport 985 drivers/scsi/bfa/bfa_fcs_lport.c return rport; rport 998 drivers/scsi/bfa/bfa_fcs_lport.c struct bfa_fcs_rport_s *rport) rport 1000 drivers/scsi/bfa/bfa_fcs_lport.c list_add_tail(&rport->qe, &port->rport_q); rport 1010 drivers/scsi/bfa/bfa_fcs_lport.c struct bfa_fcs_rport_s *rport) rport 1012 drivers/scsi/bfa/bfa_fcs_lport.c WARN_ON(!bfa_q_is_on_q(&port->rport_q, rport)); rport 1013 drivers/scsi/bfa/bfa_fcs_lport.c list_del(&rport->qe); rport 1226 drivers/scsi/bfa/bfa_fcs_lport.c struct bfa_fcs_rport_s *rport; rport 1246 drivers/scsi/bfa/bfa_fcs_lport.c rport = bfa_fcs_lport_get_rport_by_pwwn(port, rport 1248 drivers/scsi/bfa/bfa_fcs_lport.c if (rport) { rport 1249 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(port->fcs, rport->pid); rport 1250 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(port->fcs, rport->pwwn); rport 1251 drivers/scsi/bfa/bfa_fcs_lport.c rport->pid = N2N_REMOTE_PID; rport 1252 drivers/scsi/bfa/bfa_fcs_lport.c bfa_sm_send_event(rport, RPSM_EVENT_PLOGI_SEND); rport 1261 drivers/scsi/bfa/bfa_fcs_lport.c rport = bfa_fcs_lport_get_rport_by_pid(port, 0); rport 1262 drivers/scsi/bfa/bfa_fcs_lport.c WARN_ON(rport == NULL); rport 1263 drivers/scsi/bfa/bfa_fcs_lport.c if (rport) { rport 1264 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(port->fcs, rport->pwwn); rport 1265 drivers/scsi/bfa/bfa_fcs_lport.c bfa_sm_send_event(rport, RPSM_EVENT_DELETE); rport 1329 drivers/scsi/bfa/bfa_fcs_lport.c struct bfa_fcs_rport_s *rport; rport 1348 drivers/scsi/bfa/bfa_fcs_lport.c rport = bfa_fcs_lport_get_rport_by_pid(port, rport 1350 drivers/scsi/bfa/bfa_fcs_lport.c if (!rport) rport 1351 drivers/scsi/bfa/bfa_fcs_lport.c rport = bfa_fcs_rport_create(port, rport 1360 drivers/scsi/bfa/bfa_fcs_lport.c rport = bfa_fcs_lport_get_rport_by_pid(port, rport 1362 drivers/scsi/bfa/bfa_fcs_lport.c if (!rport) rport 1363 drivers/scsi/bfa/bfa_fcs_lport.c rport = bfa_fcs_rport_create(port, rport 5028 drivers/scsi/bfa/bfa_fcs_lport.c struct bfa_fcs_rport_s *rport; rport 5067 drivers/scsi/bfa/bfa_fcs_lport.c rport = bfa_fcs_lport_get_rport_by_pid(port, gidft_entry->pid); rport 5068 drivers/scsi/bfa/bfa_fcs_lport.c if (rport == NULL) { rport 5072 drivers/scsi/bfa/bfa_fcs_lport.c rport = bfa_fcs_rport_create(port, gidft_entry->pid); rport 5077 drivers/scsi/bfa/bfa_fcs_lport.c bfa_fcs_rport_scn(rport); rport 5139 drivers/scsi/bfa/bfa_fcs_lport.c struct bfa_fcs_rport_s *rport; rport 5147 drivers/scsi/bfa/bfa_fcs_lport.c rport = bfa_fcs_rport_create_by_wwn(port, wwns[ii]); rport 5148 drivers/scsi/bfa/bfa_fcs_lport.c WARN_ON(!rport); rport 5540 drivers/scsi/bfa/bfa_fcs_lport.c struct bfa_fcs_rport_s *rport; rport 5564 drivers/scsi/bfa/bfa_fcs_lport.c rport = bfa_fcs_lport_get_rport_by_pid(port, rpid); rport 5565 drivers/scsi/bfa/bfa_fcs_lport.c if (!rport) rport 5566 drivers/scsi/bfa/bfa_fcs_lport.c rport = bfa_fcs_lport_get_rport_by_old_pid(port, rpid); rport 5568 drivers/scsi/bfa/bfa_fcs_lport.c if (rport == NULL) { rport 5574 drivers/scsi/bfa/bfa_fcs_lport.c rport = bfa_fcs_rport_create(port, rpid); rport 5576 drivers/scsi/bfa/bfa_fcs_lport.c bfa_fcs_rport_scn(rport); rport 5595 drivers/scsi/bfa/bfa_fcs_lport.c struct bfa_fcs_rport_s *rport; rport 5605 drivers/scsi/bfa/bfa_fcs_lport.c rport = (struct bfa_fcs_rport_s *) qe; rport 5606 drivers/scsi/bfa/bfa_fcs_lport.c c1 = (u8 *) &rport->pid; rport 5608 drivers/scsi/bfa/bfa_fcs_lport.c bfa_fcs_rport_scn(rport); rport 5716 drivers/scsi/bfa/bfa_fcs_lport.c struct bfa_fcs_rport_s *rport = NULL; rport 5731 drivers/scsi/bfa/bfa_fcs_lport.c rport = (struct bfa_fcs_rport_s *) qe; rport 5732 drivers/scsi/bfa/bfa_fcs_lport.c if (bfa_ntoh3b(rport->pid) > 0xFFF000) { rport 5734 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(fcs, (u32) rport->pwwn); rport 5735 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(fcs, rport->pid); rport 5741 drivers/scsi/bfa/bfa_fcs_lport.c if (!memcmp(&wwn, &rport->pwwn, 8)) rport 5753 drivers/scsi/bfa/bfa_fcs_lport.c if (rport) rport 5754 drivers/scsi/bfa/bfa_fcs_lport.c return rport->pwwn; rport 5764 drivers/scsi/bfa/bfa_fcs_lport.c struct bfa_fcs_rport_s *rport = NULL; rport 5779 drivers/scsi/bfa/bfa_fcs_lport.c rport = (struct bfa_fcs_rport_s *) qe; rport 5780 drivers/scsi/bfa/bfa_fcs_lport.c if (bfa_ntoh3b(rport->pid) > 0xFFF000) { rport 5782 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(fcs, (u32) rport->pwwn); rport 5783 drivers/scsi/bfa/bfa_fcs_lport.c bfa_trc(fcs, rport->pid); rport 5788 drivers/scsi/bfa/bfa_fcs_lport.c if (!rport->pwwn && !rport->pid) { rport 5793 drivers/scsi/bfa/bfa_fcs_lport.c rports[i].pwwn = rport->pwwn; rport 5794 drivers/scsi/bfa/bfa_fcs_lport.c rports[i].pid = rport->pid; rport 5814 drivers/scsi/bfa/bfa_fcs_lport.c struct bfa_fcs_rport_s *rport = NULL; rport 5836 drivers/scsi/bfa/bfa_fcs_lport.c rport = (struct bfa_fcs_rport_s *) qe; rport 5837 drivers/scsi/bfa/bfa_fcs_lport.c if ((bfa_ntoh3b(rport->pid) > 0xFFF000) || rport 5838 drivers/scsi/bfa/bfa_fcs_lport.c (bfa_fcs_rport_get_state(rport) == BFA_RPORT_OFFLINE) || rport 5839 drivers/scsi/bfa/bfa_fcs_lport.c (rport->scsi_function != BFA_RPORT_TARGET)) { rport 5844 drivers/scsi/bfa/bfa_fcs_lport.c rport_speed = rport->rpf.rpsc_speed; rport 36 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_free(struct bfa_fcs_rport_s *rport); rport 37 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_hal_online(struct bfa_fcs_rport_s *rport); rport 38 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_fcs_online_action(struct bfa_fcs_rport_s *rport); rport 39 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_hal_online_action(struct bfa_fcs_rport_s *rport); rport 40 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_fcs_offline_action(struct bfa_fcs_rport_s *rport); rport 41 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_hal_offline_action(struct bfa_fcs_rport_s *rport); rport 42 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_update(struct bfa_fcs_rport_s *rport, rport 72 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_process_prli(struct bfa_fcs_rport_s *rport, rport 74 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_send_ls_rjt(struct bfa_fcs_rport_s *rport, rport 77 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_process_adisc(struct bfa_fcs_rport_s *rport, rport 79 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_send_prlo_acc(struct bfa_fcs_rport_s *rport); rport 80 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_hal_offline(struct bfa_fcs_rport_s *rport); rport 82 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_sm_uninit(struct bfa_fcs_rport_s *rport, rport 84 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_sm_plogi_sending(struct bfa_fcs_rport_s *rport, rport 86 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_sm_plogiacc_sending(struct bfa_fcs_rport_s *rport, rport 88 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_sm_plogi_retry(struct bfa_fcs_rport_s *rport, rport 90 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_sm_plogi(struct bfa_fcs_rport_s *rport, rport 92 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_sm_fc4_fcs_online(struct bfa_fcs_rport_s *rport, rport 94 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_sm_hal_online(struct bfa_fcs_rport_s *rport, rport 96 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_sm_online(struct bfa_fcs_rport_s *rport, rport 98 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_sm_nsquery_sending(struct bfa_fcs_rport_s *rport, rport 100 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_sm_nsquery(struct bfa_fcs_rport_s *rport, rport 103 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport, enum rport_event event); rport 104 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_sm_adisc_online(struct bfa_fcs_rport_s *rport, rport 107 drivers/scsi/bfa/bfa_fcs_rport.c *rport, enum rport_event event); rport 108 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_sm_adisc_offline(struct bfa_fcs_rport_s *rport, rport 110 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_sm_fc4_logorcv(struct bfa_fcs_rport_s *rport, rport 112 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_sm_fc4_logosend(struct bfa_fcs_rport_s *rport, rport 114 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_sm_fc4_offline(struct bfa_fcs_rport_s *rport, rport 116 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_sm_hcb_offline(struct bfa_fcs_rport_s *rport, rport 118 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_sm_hcb_logorcv(struct bfa_fcs_rport_s *rport, rport 120 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_sm_hcb_logosend(struct bfa_fcs_rport_s *rport, rport 122 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_sm_logo_sending(struct bfa_fcs_rport_s *rport, rport 124 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_sm_offline(struct bfa_fcs_rport_s *rport, rport 126 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_sm_nsdisc_sending(struct bfa_fcs_rport_s *rport, rport 128 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_sm_nsdisc_retry(struct bfa_fcs_rport_s *rport, rport 130 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_sm_nsdisc_sent(struct bfa_fcs_rport_s *rport, rport 132 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_sm_nsdisc_sent(struct bfa_fcs_rport_s *rport, rport 134 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_sm_fc4_off_delete(struct bfa_fcs_rport_s *rport, rport 136 drivers/scsi/bfa/bfa_fcs_rport.c static void bfa_fcs_rport_sm_delete_pending(struct bfa_fcs_rport_s *rport, rport 171 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_sm_uninit(struct bfa_fcs_rport_s *rport, enum rport_event event) rport 173 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 174 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 175 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 179 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_plogi_sending); rport 180 drivers/scsi/bfa/bfa_fcs_rport.c rport->plogi_retries = 0; rport 181 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_plogi(rport, NULL); rport 185 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_plogiacc_sending); rport 186 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_plogiacc(rport, NULL); rport 190 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_hal_online); rport 191 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_hal_online(rport); rport 196 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_nsdisc_sending); rport 197 drivers/scsi/bfa/bfa_fcs_rport.c rport->ns_retries = 0; rport 198 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_nsdisc(rport, NULL); rport 201 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 209 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_sm_plogi_sending(struct bfa_fcs_rport_s *rport, rport 212 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 213 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 214 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 218 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_plogi); rport 222 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_uninit); rport 223 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rport->fcxp_wqe); rport 224 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_free(rport); rport 228 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_plogiacc_sending); rport 229 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rport->fcxp_wqe); rport 230 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_plogiacc(rport, NULL); rport 234 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_offline); rport 235 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rport->fcxp_wqe); rport 236 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_start(rport->fcs->bfa, &rport->timer, rport 237 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_timeout, rport, rport 243 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rport->fcxp_wqe); rport 244 drivers/scsi/bfa/bfa_fcs_rport.c WARN_ON(!(bfa_fcport_get_topology(rport->port->fcs->bfa) != rport 246 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_nsdisc_sending); rport 247 drivers/scsi/bfa/bfa_fcs_rport.c rport->ns_retries = 0; rport 248 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_nsdisc(rport, NULL); rport 252 drivers/scsi/bfa/bfa_fcs_rport.c rport->pid = 0; rport 253 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_offline); rport 254 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rport->fcxp_wqe); rport 255 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_start(rport->fcs->bfa, &rport->timer, rport 256 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_timeout, rport, rport 262 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 270 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_sm_plogiacc_sending(struct bfa_fcs_rport_s *rport, rport 273 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 274 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 275 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 279 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_fcs_online); rport 280 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_fcs_online_action(rport); rport 284 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_uninit); rport 285 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rport->fcxp_wqe); rport 286 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_free(rport); rport 298 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_offline); rport 299 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rport->fcxp_wqe); rport 300 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_start(rport->fcs->bfa, &rport->timer, rport 301 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_timeout, rport, rport 306 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rport->fcxp_wqe); rport 307 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_nsdisc_sending); rport 308 drivers/scsi/bfa/bfa_fcs_rport.c rport->ns_retries = 0; rport 309 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_nsdisc(rport, NULL); rport 313 drivers/scsi/bfa/bfa_fcs_rport.c rport->pid = 0; rport 314 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_offline); rport 315 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rport->fcxp_wqe); rport 316 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_start(rport->fcs->bfa, &rport->timer, rport 317 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_timeout, rport, rport 328 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 336 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_sm_plogi_retry(struct bfa_fcs_rport_s *rport, rport 339 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 340 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 341 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 345 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_plogi_sending); rport 346 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_plogi(rport, NULL); rport 350 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_uninit); rport 351 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_stop(&rport->timer); rport 352 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_free(rport); rport 360 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_plogiacc_sending); rport 361 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_stop(&rport->timer); rport 362 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_plogiacc(rport, NULL); rport 366 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_offline); rport 367 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_stop(&rport->timer); rport 368 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_start(rport->fcs->bfa, &rport->timer, rport 369 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_timeout, rport, rport 375 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_stop(&rport->timer); rport 376 drivers/scsi/bfa/bfa_fcs_rport.c WARN_ON(!(bfa_fcport_get_topology(rport->port->fcs->bfa) != rport 378 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_nsdisc_sending); rport 379 drivers/scsi/bfa/bfa_fcs_rport.c rport->ns_retries = 0; rport 380 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_nsdisc(rport, NULL); rport 384 drivers/scsi/bfa/bfa_fcs_rport.c rport->pid = 0; rport 385 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_offline); rport 386 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_stop(&rport->timer); rport 387 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_start(rport->fcs->bfa, &rport->timer, rport 388 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_timeout, rport, rport 393 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_fcs_online); rport 394 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_stop(&rport->timer); rport 395 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_fcs_online_action(rport); rport 399 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 407 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_sm_plogi(struct bfa_fcs_rport_s *rport, enum rport_event event) rport 409 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 410 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 411 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 415 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_fcs_online); rport 416 drivers/scsi/bfa/bfa_fcs_rport.c rport->plogi_retries = 0; rport 417 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_fcs_online_action(rport); rport 421 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_logo_acc(rport); rport 424 drivers/scsi/bfa/bfa_fcs_rport.c if (rport->prlo == BFA_TRUE) rport 425 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_prlo_acc(rport); rport 427 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_discard(rport->fcxp); rport 430 drivers/scsi/bfa/bfa_fcs_rport.c if (rport->plogi_retries < BFA_FCS_RPORT_MAX_RETRIES) { rport 431 drivers/scsi/bfa/bfa_fcs_rport.c rport->plogi_retries++; rport 432 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_plogi_retry); rport 433 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_start(rport->fcs->bfa, &rport->timer, rport 434 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_timeout, rport, rport 437 drivers/scsi/bfa/bfa_fcs_rport.c bfa_stats(rport->port, rport_del_max_plogi_retry); rport 438 drivers/scsi/bfa/bfa_fcs_rport.c rport->old_pid = rport->pid; rport 439 drivers/scsi/bfa/bfa_fcs_rport.c rport->pid = 0; rport 440 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_offline); rport 441 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_start(rport->fcs->bfa, &rport->timer, rport 442 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_timeout, rport, rport 451 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_offline); rport 452 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_discard(rport->fcxp); rport 453 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_start(rport->fcs->bfa, &rport->timer, rport 454 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_timeout, rport, rport 459 drivers/scsi/bfa/bfa_fcs_rport.c rport->plogi_retries = 0; rport 460 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_plogi_retry); rport 461 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_start(rport->fcs->bfa, &rport->timer, rport 462 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_timeout, rport, rport 467 drivers/scsi/bfa/bfa_fcs_rport.c rport->pid = 0; rport 468 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_offline); rport 469 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_discard(rport->fcxp); rport 470 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_start(rport->fcs->bfa, &rport->timer, rport 471 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_timeout, rport, rport 477 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_discard(rport->fcxp); rport 478 drivers/scsi/bfa/bfa_fcs_rport.c WARN_ON(!(bfa_fcport_get_topology(rport->port->fcs->bfa) != rport 480 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_nsdisc_sending); rport 481 drivers/scsi/bfa/bfa_fcs_rport.c rport->ns_retries = 0; rport 482 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_nsdisc(rport, NULL); rport 486 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_plogiacc_sending); rport 487 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_discard(rport->fcxp); rport 488 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_plogiacc(rport, NULL); rport 492 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_uninit); rport 493 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_discard(rport->fcxp); rport 494 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_free(rport); rport 498 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_fcs_online); rport 499 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_discard(rport->fcxp); rport 500 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_fcs_online_action(rport); rport 504 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 512 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_sm_fc4_fcs_online(struct bfa_fcs_rport_s *rport, rport 515 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 516 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 517 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 521 drivers/scsi/bfa/bfa_fcs_rport.c if (rport->scsi_function == BFA_RPORT_INITIATOR) { rport 522 drivers/scsi/bfa/bfa_fcs_rport.c if (!BFA_FCS_PID_IS_WKA(rport->pid)) rport 523 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rpf_rport_online(rport); rport 524 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_online); rport 528 drivers/scsi/bfa/bfa_fcs_rport.c if (!rport->bfa_rport) rport 529 drivers/scsi/bfa/bfa_fcs_rport.c rport->bfa_rport = rport 530 drivers/scsi/bfa/bfa_fcs_rport.c bfa_rport_create(rport->fcs->bfa, rport); rport 532 drivers/scsi/bfa/bfa_fcs_rport.c if (rport->bfa_rport) { rport 533 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_hal_online); rport 534 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_hal_online(rport); rport 536 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_logosend); rport 537 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_fcs_offline_action(rport); rport 542 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_offline); rport 543 drivers/scsi/bfa/bfa_fcs_rport.c rport->plogi_pending = BFA_TRUE; rport 544 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_fcs_offline_action(rport); rport 552 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_offline); rport 553 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_fcs_offline_action(rport); rport 558 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_logorcv); rport 559 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_fcs_offline_action(rport); rport 563 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_logosend); rport 564 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_fcs_offline_action(rport); rport 568 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 578 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_sm_hal_online(struct bfa_fcs_rport_s *rport, rport 581 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 582 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 583 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 587 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_online); rport 588 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_hal_online_action(rport); rport 596 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_logorcv); rport 597 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_fcs_offline_action(rport); rport 604 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_offline); rport 605 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_fcs_offline_action(rport); rport 609 drivers/scsi/bfa/bfa_fcs_rport.c rport->plogi_pending = BFA_TRUE; rport 610 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_offline); rport 611 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_fcs_offline_action(rport); rport 615 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_logosend); rport 616 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_fcs_offline_action(rport); rport 620 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 628 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_sm_online(struct bfa_fcs_rport_s *rport, enum rport_event event) rport 630 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 631 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 632 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 636 drivers/scsi/bfa/bfa_fcs_rport.c if (bfa_fcs_fabric_is_switched(rport->port->fabric)) { rport 637 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, rport 639 drivers/scsi/bfa/bfa_fcs_rport.c rport->ns_retries = 0; rport 640 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_nsdisc(rport, NULL); rport 642 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, rport 644 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_adisc(rport, NULL); rport 652 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_offline); rport 653 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_hal_offline_action(rport); rport 657 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_logosend); rport 658 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_hal_offline_action(rport); rport 663 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_logorcv); rport 664 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_hal_offline_action(rport); rport 672 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 681 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_sm_nsquery_sending(struct bfa_fcs_rport_s *rport, rport 684 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 685 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 686 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 690 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_nsquery); rport 694 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_logosend); rport 695 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rport->fcxp_wqe); rport 696 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_hal_offline_action(rport); rport 707 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_logorcv); rport 708 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rport->fcxp_wqe); rport 709 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_hal_offline_action(rport); rport 716 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_offline); rport 717 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rport->fcxp_wqe); rport 718 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_hal_offline_action(rport); rport 722 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 731 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_sm_nsquery(struct bfa_fcs_rport_s *rport, enum rport_event event) rport 733 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 734 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 735 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 739 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_adisc_online_sending); rport 740 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_adisc(rport, NULL); rport 744 drivers/scsi/bfa/bfa_fcs_rport.c rport->ns_retries++; rport 745 drivers/scsi/bfa/bfa_fcs_rport.c if (rport->ns_retries < BFA_FCS_RPORT_MAX_RETRIES) { rport 746 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, rport 748 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_nsdisc(rport, NULL); rport 750 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_offline); rport 751 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_hal_offline_action(rport); rport 756 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_logosend); rport 757 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_discard(rport->fcxp); rport 758 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_hal_offline_action(rport); rport 766 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_logorcv); rport 767 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_discard(rport->fcxp); rport 768 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_hal_offline_action(rport); rport 775 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_offline); rport 776 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_discard(rport->fcxp); rport 777 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_hal_offline_action(rport); rport 781 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 790 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_sm_adisc_online_sending(struct bfa_fcs_rport_s *rport, rport 793 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 794 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 795 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 799 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_adisc_online); rport 803 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_logosend); rport 804 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rport->fcxp_wqe); rport 805 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_hal_offline_action(rport); rport 810 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_offline); rport 811 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rport->fcxp_wqe); rport 812 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_hal_offline_action(rport); rport 817 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_logorcv); rport 818 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rport->fcxp_wqe); rport 819 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_hal_offline_action(rport); rport 826 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_offline); rport 827 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rport->fcxp_wqe); rport 828 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_hal_offline_action(rport); rport 832 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 841 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_sm_adisc_online(struct bfa_fcs_rport_s *rport, rport 844 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 845 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 846 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 850 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_online); rport 858 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_discard(rport->fcxp); rport 863 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_offline); rport 864 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_hal_offline_action(rport); rport 868 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_logosend); rport 869 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_discard(rport->fcxp); rport 870 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_hal_offline_action(rport); rport 880 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_offline); rport 881 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_discard(rport->fcxp); rport 882 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_hal_offline_action(rport); rport 887 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_logorcv); rport 888 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_discard(rport->fcxp); rport 889 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_hal_offline_action(rport); rport 893 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 902 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_sm_adisc_offline_sending(struct bfa_fcs_rport_s *rport, rport 905 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 906 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 907 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 911 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_adisc_offline); rport 919 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_offline); rport 920 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_walloc_cancel(rport->fcs->bfa, rport 921 drivers/scsi/bfa/bfa_fcs_rport.c &rport->fcxp_wqe); rport 922 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_start(rport->fcs->bfa, &rport->timer, rport 923 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_timeout, rport, rport 928 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_plogiacc_sending); rport 929 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rport->fcxp_wqe); rport 930 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_plogiacc(rport, NULL); rport 934 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 943 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_sm_adisc_offline(struct bfa_fcs_rport_s *rport, rport 946 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 947 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 948 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 952 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_hal_online); rport 953 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_hal_online(rport); rport 957 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_plogiacc_sending); rport 958 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_discard(rport->fcxp); rport 959 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_plogiacc(rport, NULL); rport 963 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_offline); rport 964 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_start(rport->fcs->bfa, &rport->timer, rport 965 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_timeout, rport, rport 974 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_offline); rport 975 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_discard(rport->fcxp); rport 976 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_start(rport->fcs->bfa, &rport->timer, rport 977 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_timeout, rport, rport 982 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 990 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_sm_fc4_logorcv(struct bfa_fcs_rport_s *rport, rport 993 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 994 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 995 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 999 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_hcb_logorcv); rport 1000 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_hal_offline(rport); rport 1004 drivers/scsi/bfa/bfa_fcs_rport.c if (rport->pid && (rport->prlo == BFA_TRUE)) rport 1005 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_prlo_acc(rport); rport 1006 drivers/scsi/bfa/bfa_fcs_rport.c if (rport->pid && (rport->prlo == BFA_FALSE)) rport 1007 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_logo_acc(rport); rport 1009 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_off_delete); rport 1021 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 1030 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_sm_fc4_logosend(struct bfa_fcs_rport_s *rport, rport 1033 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 1034 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 1035 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 1039 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_hcb_logosend); rport 1040 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_hal_offline(rport); rport 1044 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_logo_acc(rport); rport 1047 drivers/scsi/bfa/bfa_fcs_rport.c if (rport->prlo == BFA_TRUE) rport 1048 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_prlo_acc(rport); rport 1049 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_off_delete); rport 1058 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 1066 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_sm_fc4_offline(struct bfa_fcs_rport_s *rport, rport 1069 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 1070 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 1071 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 1075 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_hcb_offline); rport 1076 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_hal_offline(rport); rport 1085 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_logo_acc(rport); rport 1089 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_prlo_acc(rport); rport 1104 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_logosend); rport 1108 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 1117 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_sm_hcb_offline(struct bfa_fcs_rport_s *rport, rport 1120 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 1121 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 1122 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 1126 drivers/scsi/bfa/bfa_fcs_rport.c if (bfa_fcs_lport_is_online(rport->port) && rport 1127 drivers/scsi/bfa/bfa_fcs_rport.c (rport->plogi_pending)) { rport 1128 drivers/scsi/bfa/bfa_fcs_rport.c rport->plogi_pending = BFA_FALSE; rport 1129 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, rport 1131 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_plogiacc(rport, NULL); rport 1137 drivers/scsi/bfa/bfa_fcs_rport.c if (!bfa_fcs_lport_is_online(rport->port)) { rport 1138 drivers/scsi/bfa/bfa_fcs_rport.c rport->pid = 0; rport 1139 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_offline); rport 1140 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_start(rport->fcs->bfa, &rport->timer, rport 1141 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_timeout, rport, rport 1145 drivers/scsi/bfa/bfa_fcs_rport.c if (bfa_fcs_fabric_is_switched(rport->port->fabric)) { rport 1146 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, rport 1148 drivers/scsi/bfa/bfa_fcs_rport.c rport->ns_retries = 0; rport 1149 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_nsdisc(rport, NULL); rport 1150 drivers/scsi/bfa/bfa_fcs_rport.c } else if (bfa_fcport_get_topology(rport->port->fcs->bfa) == rport 1152 drivers/scsi/bfa/bfa_fcs_rport.c if (rport->scn_online) { rport 1153 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, rport 1155 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_adisc(rport, NULL); rport 1157 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, rport 1159 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_start(rport->fcs->bfa, &rport->timer, rport 1160 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_timeout, rport, rport 1164 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_plogi_sending); rport 1165 drivers/scsi/bfa/bfa_fcs_rport.c rport->plogi_retries = 0; rport 1166 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_plogi(rport, NULL); rport 1171 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_uninit); rport 1172 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_free(rport); rport 1188 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 1197 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_sm_hcb_logorcv(struct bfa_fcs_rport_s *rport, rport 1200 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 1201 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 1202 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 1207 drivers/scsi/bfa/bfa_fcs_rport.c if (rport->pid && (rport->prlo == BFA_TRUE)) rport 1208 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_prlo_acc(rport); rport 1209 drivers/scsi/bfa/bfa_fcs_rport.c if (rport->pid && (rport->prlo == BFA_FALSE)) rport 1210 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_logo_acc(rport); rport 1216 drivers/scsi/bfa/bfa_fcs_rport.c if (bfa_fcs_lport_is_online(rport->port) && rport 1217 drivers/scsi/bfa/bfa_fcs_rport.c (!BFA_FCS_PID_IS_WKA(rport->pid))) { rport 1218 drivers/scsi/bfa/bfa_fcs_rport.c if (bfa_fcs_fabric_is_switched(rport->port->fabric)) { rport 1219 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, rport 1221 drivers/scsi/bfa/bfa_fcs_rport.c rport->ns_retries = 0; rport 1222 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_nsdisc(rport, NULL); rport 1225 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, rport 1227 drivers/scsi/bfa/bfa_fcs_rport.c rport->plogi_retries = 0; rport 1228 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_plogi(rport, NULL); rport 1235 drivers/scsi/bfa/bfa_fcs_rport.c if (!BFA_FCS_PID_IS_WKA(rport->pid)) rport 1236 drivers/scsi/bfa/bfa_fcs_rport.c rport->pid = 0; rport 1237 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_offline); rport 1238 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_start(rport->fcs->bfa, &rport->timer, rport 1239 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_timeout, rport, rport 1245 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_delete_pending); rport 1246 drivers/scsi/bfa/bfa_fcs_rport.c if (rport->pid && (rport->prlo == BFA_TRUE)) rport 1247 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_prlo_acc(rport); rport 1248 drivers/scsi/bfa/bfa_fcs_rport.c if (rport->pid && (rport->prlo == BFA_FALSE)) rport 1249 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_logo_acc(rport); rport 1253 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_hcb_offline); rport 1266 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 1276 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_sm_hcb_logosend(struct bfa_fcs_rport_s *rport, rport 1279 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 1280 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 1281 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 1285 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_logo_sending); rport 1286 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_logo(rport, NULL); rport 1290 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_logo_acc(rport); rport 1293 drivers/scsi/bfa/bfa_fcs_rport.c if (rport->prlo == BFA_TRUE) rport 1294 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_prlo_acc(rport); rport 1296 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_delete_pending); rport 1305 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 1313 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_sm_logo_sending(struct bfa_fcs_rport_s *rport, rport 1316 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 1317 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 1318 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 1323 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_uninit); rport 1324 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_free(rport); rport 1334 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_logo_acc(rport); rport 1337 drivers/scsi/bfa/bfa_fcs_rport.c if (rport->prlo == BFA_TRUE) rport 1338 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_prlo_acc(rport); rport 1340 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_uninit); rport 1341 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rport->fcxp_wqe); rport 1342 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_free(rport); rport 1346 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 1355 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_sm_offline(struct bfa_fcs_rport_s *rport, enum rport_event event) rport 1357 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 1358 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 1359 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 1363 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_uninit); rport 1364 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_free(rport); rport 1369 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_stop(&rport->timer); rport 1370 drivers/scsi/bfa/bfa_fcs_rport.c WARN_ON(!(bfa_fcport_get_topology(rport->port->fcs->bfa) != rport 1372 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_nsdisc_sending); rport 1373 drivers/scsi/bfa/bfa_fcs_rport.c rport->ns_retries = 0; rport 1374 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_nsdisc(rport, NULL); rport 1378 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_uninit); rport 1379 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_stop(&rport->timer); rport 1380 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_free(rport); rport 1384 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_plogiacc_sending); rport 1385 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_stop(&rport->timer); rport 1386 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_plogiacc(rport, NULL); rport 1396 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_fcs_online); rport 1397 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_stop(&rport->timer); rport 1398 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_fcs_online_action(rport); rport 1402 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_stop(&rport->timer); rport 1403 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_plogi_sending); rport 1404 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_plogi(rport, NULL); rport 1408 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_stop(&rport->timer); rport 1409 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_plogi_sending); rport 1410 drivers/scsi/bfa/bfa_fcs_rport.c rport->plogi_retries = 0; rport 1411 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_plogi(rport, NULL); rport 1415 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 1423 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_sm_nsdisc_sending(struct bfa_fcs_rport_s *rport, rport 1426 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 1427 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 1428 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 1432 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_nsdisc_sent); rport 1436 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_uninit); rport 1437 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rport->fcxp_wqe); rport 1438 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_free(rport); rport 1442 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_plogiacc_sending); rport 1443 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rport->fcxp_wqe); rport 1444 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_plogiacc(rport, NULL); rport 1454 drivers/scsi/bfa/bfa_fcs_rport.c rport->ns_retries = 0; /* reset the retry count */ rport 1458 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_offline); rport 1459 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rport->fcxp_wqe); rport 1460 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_start(rport->fcs->bfa, &rport->timer, rport 1461 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_timeout, rport, rport 1466 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_fcs_online); rport 1467 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rport->fcxp_wqe); rport 1468 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_fcs_online_action(rport); rport 1472 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 1480 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_sm_nsdisc_retry(struct bfa_fcs_rport_s *rport, rport 1483 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 1484 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 1485 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 1489 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_nsdisc_sending); rport 1490 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_nsdisc(rport, NULL); rport 1495 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_nsdisc_sending); rport 1496 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_stop(&rport->timer); rport 1497 drivers/scsi/bfa/bfa_fcs_rport.c rport->ns_retries = 0; rport 1498 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_nsdisc(rport, NULL); rport 1502 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_uninit); rport 1503 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_stop(&rport->timer); rport 1504 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_free(rport); rport 1508 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_plogiacc_sending); rport 1509 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_stop(&rport->timer); rport 1510 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_plogiacc(rport, NULL); rport 1514 drivers/scsi/bfa/bfa_fcs_rport.c rport->pid = 0; rport 1515 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_offline); rport 1516 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_stop(&rport->timer); rport 1517 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_start(rport->fcs->bfa, &rport->timer, rport 1518 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_timeout, rport, rport 1523 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_logo_acc(rport); rport 1526 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_prlo_acc(rport); rport 1530 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_fcs_online); rport 1531 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_stop(&rport->timer); rport 1532 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_fcs_online_action(rport); rport 1536 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 1544 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_sm_nsdisc_sent(struct bfa_fcs_rport_s *rport, rport 1547 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 1548 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 1549 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 1554 drivers/scsi/bfa/bfa_fcs_rport.c if (rport->pid) { rport 1555 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_plogi_sending); rport 1556 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_plogi(rport, NULL); rport 1558 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, rport 1560 drivers/scsi/bfa/bfa_fcs_rport.c rport->ns_retries = 0; rport 1561 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_nsdisc(rport, NULL); rport 1566 drivers/scsi/bfa/bfa_fcs_rport.c rport->ns_retries++; rport 1567 drivers/scsi/bfa/bfa_fcs_rport.c if (rport->ns_retries < BFA_FCS_RPORT_MAX_RETRIES) { rport 1568 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, rport 1570 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_nsdisc(rport, NULL); rport 1572 drivers/scsi/bfa/bfa_fcs_rport.c rport->old_pid = rport->pid; rport 1573 drivers/scsi/bfa/bfa_fcs_rport.c rport->pid = 0; rport 1574 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_offline); rport 1575 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_start(rport->fcs->bfa, &rport->timer, rport 1576 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_timeout, rport, rport 1582 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_uninit); rport 1583 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_discard(rport->fcxp); rport 1584 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_free(rport); rport 1588 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_plogiacc_sending); rport 1589 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_discard(rport->fcxp); rport 1590 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_plogiacc(rport, NULL); rport 1594 drivers/scsi/bfa/bfa_fcs_rport.c rport->pid = 0; rport 1595 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_offline); rport 1596 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_discard(rport->fcxp); rport 1597 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_start(rport->fcs->bfa, &rport->timer, rport 1598 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_timeout, rport, rport 1604 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_prlo_acc(rport); rport 1616 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_logo_acc(rport); rport 1620 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_fc4_fcs_online); rport 1621 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_discard(rport->fcxp); rport 1622 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_fcs_online_action(rport); rport 1626 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 1635 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_sm_fc4_off_delete(struct bfa_fcs_rport_s *rport, rport 1638 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 1639 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 1640 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 1644 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_delete_pending); rport 1645 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_hal_offline(rport); rport 1654 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 1664 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_sm_delete_pending(struct bfa_fcs_rport_s *rport, rport 1667 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 1668 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 1669 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 1673 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_uninit); rport 1674 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_free(rport); rport 1684 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 1695 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport = rport_cbarg; rport 1696 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_lport_s *port = rport->port; rport 1701 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 1706 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_fcxp_alloc_wait(port->fcs->bfa, &rport->fcxp_wqe, rport 1707 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_plogi, rport, BFA_TRUE); rport 1710 drivers/scsi/bfa/bfa_fcs_rport.c rport->fcxp = fcxp; rport 1712 drivers/scsi/bfa/bfa_fcs_rport.c len = fc_plogi_build(&fchs, bfa_fcxp_get_reqbuf(fcxp), rport->pid, rport 1720 drivers/scsi/bfa/bfa_fcs_rport.c (void *)rport, FC_MAX_PDUSZ, FC_ELS_TOV); rport 1722 drivers/scsi/bfa/bfa_fcs_rport.c rport->stats.plogis++; rport 1723 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_FCXP_SENT); rport 1731 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport = (struct bfa_fcs_rport_s *) cbarg; rport 1737 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 1743 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, req_status); rport 1744 drivers/scsi/bfa/bfa_fcs_rport.c rport->stats.plogi_failed++; rport 1745 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_FAILED); rport 1757 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, ls_rjt->reason_code); rport 1758 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, ls_rjt->reason_code_expl); rport 1762 drivers/scsi/bfa/bfa_fcs_rport.c rport->stats.rjt_insuff_res++; rport 1763 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_PLOGI_RETRY); rport 1767 drivers/scsi/bfa/bfa_fcs_rport.c rport->stats.plogi_rejects++; rport 1768 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_FAILED); rport 1776 drivers/scsi/bfa/bfa_fcs_rport.c list_for_each(qe, &rport->port->rport_q) { rport 1778 drivers/scsi/bfa/bfa_fcs_rport.c if (twin == rport) rport 1780 drivers/scsi/bfa/bfa_fcs_rport.c if (!rport->pwwn && (plogi_rsp->port_name == twin->pwwn)) { rport 1781 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, twin->pid); rport 1782 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 1785 drivers/scsi/bfa/bfa_fcs_rport.c twin->stats.plogis += rport->stats.plogis; rport 1787 drivers/scsi/bfa/bfa_fcs_rport.c rport->stats.plogi_rejects; rport 1789 drivers/scsi/bfa/bfa_fcs_rport.c rport->stats.plogi_timeouts; rport 1791 drivers/scsi/bfa/bfa_fcs_rport.c rport->stats.plogi_failed; rport 1792 drivers/scsi/bfa/bfa_fcs_rport.c twin->stats.plogi_rcvd += rport->stats.plogi_rcvd; rport 1795 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_DELETE); rport 1807 drivers/scsi/bfa/bfa_fcs_rport.c rport->stats.plogi_accs++; rport 1808 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_update(rport, plogi_rsp); rport 1809 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_ACCEPTED); rport 1815 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport = rport_cbarg; rport 1816 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_lport_s *port = rport->port; rport 1821 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 1822 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->reply_oxid); rport 1827 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_fcxp_alloc_wait(port->fcs->bfa, &rport->fcxp_wqe, rport 1828 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_plogiacc, rport, BFA_FALSE); rport 1831 drivers/scsi/bfa/bfa_fcs_rport.c rport->fcxp = fcxp; rport 1834 drivers/scsi/bfa/bfa_fcs_rport.c rport->pid, bfa_fcs_lport_get_fcid(port), rport 1835 drivers/scsi/bfa/bfa_fcs_rport.c rport->reply_oxid, port->port_cfg.pwwn, rport 1843 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_FCXP_SENT); rport 1849 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport = rport_cbarg; rport 1850 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_lport_s *port = rport->port; rport 1855 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 1860 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_fcxp_alloc_wait(port->fcs->bfa, &rport->fcxp_wqe, rport 1861 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_adisc, rport, BFA_TRUE); rport 1864 drivers/scsi/bfa/bfa_fcs_rport.c rport->fcxp = fcxp; rport 1866 drivers/scsi/bfa/bfa_fcs_rport.c len = fc_adisc_build(&fchs, bfa_fcxp_get_reqbuf(fcxp), rport->pid, rport 1872 drivers/scsi/bfa/bfa_fcs_rport.c rport, FC_MAX_PDUSZ, FC_ELS_TOV); rport 1874 drivers/scsi/bfa/bfa_fcs_rport.c rport->stats.adisc_sent++; rport 1875 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_FCXP_SENT); rport 1883 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport = (struct bfa_fcs_rport_s *) cbarg; rport 1888 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, req_status); rport 1889 drivers/scsi/bfa/bfa_fcs_rport.c rport->stats.adisc_failed++; rport 1890 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_FAILED); rport 1894 drivers/scsi/bfa/bfa_fcs_rport.c if (fc_adisc_rsp_parse((struct fc_adisc_s *)pld, rsp_len, rport->pwwn, rport 1895 drivers/scsi/bfa/bfa_fcs_rport.c rport->nwwn) == FC_PARSE_OK) { rport 1896 drivers/scsi/bfa/bfa_fcs_rport.c rport->stats.adisc_accs++; rport 1897 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_ACCEPTED); rport 1901 drivers/scsi/bfa/bfa_fcs_rport.c rport->stats.adisc_rejects++; rport 1903 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, ls_rjt->els_cmd.els_code); rport 1904 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, ls_rjt->reason_code); rport 1905 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, ls_rjt->reason_code_expl); rport 1906 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_FAILED); rport 1912 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport = rport_cbarg; rport 1913 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_lport_s *port = rport->port; rport 1919 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 1924 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_fcxp_alloc_wait(port->fcs->bfa, &rport->fcxp_wqe, rport 1925 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_nsdisc, rport, BFA_TRUE); rport 1928 drivers/scsi/bfa/bfa_fcs_rport.c rport->fcxp = fcxp; rport 1930 drivers/scsi/bfa/bfa_fcs_rport.c if (rport->pwwn) { rport 1932 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_lport_get_fcid(port), 0, rport->pwwn); rport 1936 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_lport_get_fcid(port), 0, rport->pid); rport 1942 drivers/scsi/bfa/bfa_fcs_rport.c (void *)rport, FC_MAX_PDUSZ, FC_FCCT_TOV); rport 1944 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_FCXP_SENT); rport 1952 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport = (struct bfa_fcs_rport_s *) cbarg; rport 1958 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 1967 drivers/scsi/bfa/bfa_fcs_rport.c if (gidpn_rsp->dap == rport->pid) { rport 1969 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_ACCEPTED); rport 1977 drivers/scsi/bfa/bfa_fcs_rport.c list_for_each(qe, &rport->port->rport_q) { rport 1979 drivers/scsi/bfa/bfa_fcs_rport.c if (twin == rport) rport 1982 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, twin->pid); rport 1983 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 1990 drivers/scsi/bfa/bfa_fcs_rport.c rport->pid = gidpn_rsp->dap; rport 1991 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_ADDRESS_CHANGE); rport 2004 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_TIMEOUT); rport 2011 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_FAILED); rport 2015 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_FAILED); rport 2025 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport = (struct bfa_fcs_rport_s *) cbarg; rport 2028 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 2034 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_ACCEPTED); rport 2046 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_TIMEOUT); rport 2053 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_FAILED); rport 2057 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_FAILED); rport 2068 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport = rport_cbarg; rport 2074 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 2076 drivers/scsi/bfa/bfa_fcs_rport.c port = rport->port; rport 2081 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_fcxp_alloc_wait(port->fcs->bfa, &rport->fcxp_wqe, rport 2082 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_logo, rport, BFA_FALSE); rport 2085 drivers/scsi/bfa/bfa_fcs_rport.c rport->fcxp = fcxp; rport 2087 drivers/scsi/bfa/bfa_fcs_rport.c len = fc_logo_build(&fchs, bfa_fcxp_get_reqbuf(fcxp), rport->pid, rport 2093 drivers/scsi/bfa/bfa_fcs_rport.c rport, FC_MAX_PDUSZ, FC_ELS_TOV); rport 2095 drivers/scsi/bfa/bfa_fcs_rport.c rport->stats.logos++; rport 2096 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_discard(rport->fcxp); rport 2097 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_FCXP_SENT); rport 2106 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport = rport_cbarg; rport 2112 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 2114 drivers/scsi/bfa/bfa_fcs_rport.c port = rport->port; rport 2120 drivers/scsi/bfa/bfa_fcs_rport.c rport->stats.logo_rcvd++; rport 2122 drivers/scsi/bfa/bfa_fcs_rport.c rport->pid, bfa_fcs_lport_get_fcid(port), rport 2123 drivers/scsi/bfa/bfa_fcs_rport.c rport->reply_oxid); rport 2146 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport = (struct bfa_fcs_rport_s *) arg; rport 2148 drivers/scsi/bfa/bfa_fcs_rport.c rport->stats.plogi_timeouts++; rport 2149 drivers/scsi/bfa/bfa_fcs_rport.c bfa_stats(rport->port, rport_plogi_timeouts); rport 2150 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_TIMEOUT); rport 2154 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_process_prli(struct bfa_fcs_rport_s *rport, rport 2159 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_lport_s *port = rport->port; rport 2165 drivers/scsi/bfa/bfa_fcs_rport.c rport->stats.prli_rcvd++; rport 2180 drivers/scsi/bfa/bfa_fcs_rport.c rport->scsi_function = BFA_RPORT_TARGET; rport 2182 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, prli->parampage.type); rport 2183 drivers/scsi/bfa/bfa_fcs_rport.c rport->scsi_function = BFA_RPORT_INITIATOR; rport 2184 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_itnim_is_initiator(rport->itnim); rport 2200 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_process_rpsc(struct bfa_fcs_rport_s *rport, rport 2205 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_lport_s *port = rport->port; rport 2212 drivers/scsi/bfa/bfa_fcs_rport.c rport->stats.rpsc_rcvd++; rport 2237 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_process_adisc(struct bfa_fcs_rport_s *rport, rport 2242 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_lport_s *port = rport->port; rport 2248 drivers/scsi/bfa/bfa_fcs_rport.c rport->stats.adisc_rcvd++; rport 2256 drivers/scsi/bfa/bfa_fcs_rport.c if (bfa_fcs_itnim_get_online_state(rport->itnim) == BFA_STATUS_OK) { rport 2271 drivers/scsi/bfa/bfa_fcs_rport.c rport->stats.adisc_rejected++; rport 2272 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_ls_rjt(rport, rx_fchs, rport 2279 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_hal_online(struct bfa_fcs_rport_s *rport) rport 2281 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_lport_s *port = rport->port; rport 2284 drivers/scsi/bfa/bfa_fcs_rport.c rport_info.pid = rport->pid; rport 2289 drivers/scsi/bfa/bfa_fcs_rport.c rport_info.fc_class = rport->fc_cos; rport 2290 drivers/scsi/bfa/bfa_fcs_rport.c rport_info.cisc = rport->cisc; rport 2291 drivers/scsi/bfa/bfa_fcs_rport.c rport_info.max_frmsz = rport->maxfrsize; rport 2292 drivers/scsi/bfa/bfa_fcs_rport.c bfa_rport_online(rport->bfa_rport, &rport_info); rport 2296 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_hal_offline(struct bfa_fcs_rport_s *rport) rport 2298 drivers/scsi/bfa/bfa_fcs_rport.c if (rport->bfa_rport) rport 2299 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport->bfa_rport, BFA_RPORT_SM_OFFLINE); rport 2301 drivers/scsi/bfa/bfa_fcs_rport.c bfa_cb_rport_offline(rport); rport 2308 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport; rport 2319 drivers/scsi/bfa/bfa_fcs_rport.c if (bfa_fcb_rport_alloc(fcs->bfad, &rport, &rport_drv) rport 2328 drivers/scsi/bfa/bfa_fcs_rport.c rport->port = port; rport 2329 drivers/scsi/bfa/bfa_fcs_rport.c rport->fcs = fcs; rport 2330 drivers/scsi/bfa/bfa_fcs_rport.c rport->rp_drv = rport_drv; rport 2331 drivers/scsi/bfa/bfa_fcs_rport.c rport->pid = rpid; rport 2332 drivers/scsi/bfa/bfa_fcs_rport.c rport->pwwn = pwwn; rport 2333 drivers/scsi/bfa/bfa_fcs_rport.c rport->old_pid = 0; rport 2335 drivers/scsi/bfa/bfa_fcs_rport.c rport->bfa_rport = NULL; rport 2343 drivers/scsi/bfa/bfa_fcs_rport.c rport->itnim = bfa_fcs_itnim_create(rport); rport 2344 drivers/scsi/bfa/bfa_fcs_rport.c if (!rport->itnim) { rport 2351 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_lport_add_rport(port, rport); rport 2354 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_set_state(rport, bfa_fcs_rport_sm_uninit); rport 2357 drivers/scsi/bfa/bfa_fcs_rport.c if (!BFA_FCS_PID_IS_WKA(rport->pid)) rport 2358 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rpf_init(rport); rport 2360 drivers/scsi/bfa/bfa_fcs_rport.c return rport; rport 2365 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_free(struct bfa_fcs_rport_s *rport) rport 2367 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_lport_s *port = rport->port; rport 2375 drivers/scsi/bfa/bfa_fcs_rport.c rport->plogi_pending = BFA_FALSE; rport 2378 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_itnim_delete(rport->itnim); rport 2379 drivers/scsi/bfa/bfa_fcs_rport.c if (rport->pid != 0 && !BFA_FCS_PID_IS_WKA(rport->pid)) rport 2380 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rpf_rport_offline(rport); rport 2383 drivers/scsi/bfa/bfa_fcs_rport.c if (rport->bfa_rport) { rport 2384 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport->bfa_rport, BFA_RPORT_SM_DELETE); rport 2385 drivers/scsi/bfa/bfa_fcs_rport.c rport->bfa_rport = NULL; rport 2388 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_lport_del_rport(port, rport); rport 2390 drivers/scsi/bfa/bfa_fcs_rport.c kfree(rport->rp_drv); rport 2394 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_aen_post(struct bfa_fcs_rport_s *rport, rport 2398 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_lport_s *port = rport->port; rport 2407 drivers/scsi/bfa/bfa_fcs_rport.c aen_entry->aen_data.rport.priv.qos = data->priv.qos; rport 2409 drivers/scsi/bfa/bfa_fcs_rport.c aen_entry->aen_data.rport.priv.qos = data->priv.qos; rport 2411 drivers/scsi/bfa/bfa_fcs_rport.c aen_entry->aen_data.rport.vf_id = rport->port->fabric->vf_id; rport 2412 drivers/scsi/bfa/bfa_fcs_rport.c aen_entry->aen_data.rport.ppwwn = bfa_fcs_lport_get_pwwn( rport 2413 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_get_base_port(rport->fcs)); rport 2414 drivers/scsi/bfa/bfa_fcs_rport.c aen_entry->aen_data.rport.lpwwn = bfa_fcs_lport_get_pwwn(rport->port); rport 2415 drivers/scsi/bfa/bfa_fcs_rport.c aen_entry->aen_data.rport.rpwwn = rport->pwwn; rport 2418 drivers/scsi/bfa/bfa_fcs_rport.c bfad_im_post_vendor_event(aen_entry, bfad, ++rport->fcs->fcs_aen_seq, rport 2423 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_fcs_online_action(struct bfa_fcs_rport_s *rport) rport 2425 drivers/scsi/bfa/bfa_fcs_rport.c if ((!rport->pid) || (!rport->pwwn)) { rport 2426 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 2427 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, rport->pid); rport 2430 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport->itnim, BFA_FCS_ITNIM_SM_FCS_ONLINE); rport 2434 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_hal_online_action(struct bfa_fcs_rport_s *rport) rport 2436 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_lport_s *port = rport->port; rport 2441 drivers/scsi/bfa/bfa_fcs_rport.c rport->stats.onlines++; rport 2443 drivers/scsi/bfa/bfa_fcs_rport.c if ((!rport->pid) || (!rport->pwwn)) { rport 2444 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 2445 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, rport->pid); rport 2449 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_itnim_brp_online(rport->itnim); rport 2450 drivers/scsi/bfa/bfa_fcs_rport.c if (!BFA_FCS_PID_IS_WKA(rport->pid)) rport 2451 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rpf_rport_online(rport); rport 2455 drivers/scsi/bfa/bfa_fcs_rport.c wwn2str(rpwwn_buf, rport->pwwn); rport 2456 drivers/scsi/bfa/bfa_fcs_rport.c if (!BFA_FCS_PID_IS_WKA(rport->pid)) { rport 2460 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_aen_post(rport, BFA_RPORT_AEN_ONLINE, NULL); rport 2465 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_fcs_offline_action(struct bfa_fcs_rport_s *rport) rport 2467 drivers/scsi/bfa/bfa_fcs_rport.c if (!BFA_FCS_PID_IS_WKA(rport->pid)) rport 2468 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rpf_rport_offline(rport); rport 2470 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_itnim_rport_offline(rport->itnim); rport 2474 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_hal_offline_action(struct bfa_fcs_rport_s *rport) rport 2476 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_lport_s *port = rport->port; rport 2481 drivers/scsi/bfa/bfa_fcs_rport.c if (!rport->bfa_rport) { rport 2482 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_fcs_offline_action(rport); rport 2486 drivers/scsi/bfa/bfa_fcs_rport.c rport->stats.offlines++; rport 2489 drivers/scsi/bfa/bfa_fcs_rport.c wwn2str(rpwwn_buf, rport->pwwn); rport 2490 drivers/scsi/bfa/bfa_fcs_rport.c if (!BFA_FCS_PID_IS_WKA(rport->pid)) { rport 2491 drivers/scsi/bfa/bfa_fcs_rport.c if (bfa_fcs_lport_is_online(rport->port) == BFA_TRUE) { rport 2496 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_aen_post(rport, rport 2503 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_aen_post(rport, rport 2509 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_itnim_rport_offline(rport->itnim); rport 2510 drivers/scsi/bfa/bfa_fcs_rport.c if (!BFA_FCS_PID_IS_WKA(rport->pid)) rport 2511 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rpf_rport_offline(rport); rport 2519 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_update(struct bfa_fcs_rport_s *rport, struct fc_logi_s *plogi) rport 2521 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_lport_t *port = rport->port; rport 2527 drivers/scsi/bfa/bfa_fcs_rport.c rport->pwwn = plogi->port_name; rport 2528 drivers/scsi/bfa/bfa_fcs_rport.c rport->nwwn = plogi->node_name; rport 2533 drivers/scsi/bfa/bfa_fcs_rport.c rport->fc_cos = 0; rport 2535 drivers/scsi/bfa/bfa_fcs_rport.c rport->fc_cos = FC_CLASS_3; rport 2538 drivers/scsi/bfa/bfa_fcs_rport.c rport->fc_cos |= FC_CLASS_2; rport 2544 drivers/scsi/bfa/bfa_fcs_rport.c rport->cisc = plogi->csp.cisc; rport 2546 drivers/scsi/bfa/bfa_fcs_rport.c rport->maxfrsize = be16_to_cpu(plogi->class3.rxsz); rport 2548 drivers/scsi/bfa/bfa_fcs_rport.c rport->maxfrsize = be16_to_cpu(plogi->csp.rxsz); rport 2577 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_process_logo(struct bfa_fcs_rport_s *rport, struct fchs_s *fchs) rport 2579 drivers/scsi/bfa/bfa_fcs_rport.c rport->reply_oxid = fchs->ox_id; rport 2580 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->reply_oxid); rport 2582 drivers/scsi/bfa/bfa_fcs_rport.c rport->prlo = BFA_FALSE; rport 2583 drivers/scsi/bfa/bfa_fcs_rport.c rport->stats.logo_rcvd++; rport 2584 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_LOGO_RCVD); rport 2605 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport; rport 2608 drivers/scsi/bfa/bfa_fcs_rport.c rport = bfa_fcs_rport_alloc(port, WWN_NULL, rpid); rport 2609 drivers/scsi/bfa/bfa_fcs_rport.c if (!rport) rport 2612 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_PLOGI_SEND); rport 2613 drivers/scsi/bfa/bfa_fcs_rport.c return rport; rport 2627 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport; rport 2629 drivers/scsi/bfa/bfa_fcs_rport.c rport = bfa_fcs_rport_alloc(port, rpwwn, 0); rport 2630 drivers/scsi/bfa/bfa_fcs_rport.c if (!rport) rport 2633 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_ADDRESS_DISC); rport 2634 drivers/scsi/bfa/bfa_fcs_rport.c return rport; rport 2647 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport; rport 2649 drivers/scsi/bfa/bfa_fcs_rport.c rport = bfa_fcs_rport_alloc(port, WWN_NULL, fchs->s_id); rport 2650 drivers/scsi/bfa/bfa_fcs_rport.c if (!rport) rport 2653 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_update(rport, plogi); rport 2655 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_PLOGI_COMP); rport 2666 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport; rport 2668 drivers/scsi/bfa/bfa_fcs_rport.c rport = bfa_fcs_rport_alloc(port, plogi->port_name, fchs->s_id); rport 2669 drivers/scsi/bfa/bfa_fcs_rport.c if (!rport) rport 2672 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_update(rport, plogi); rport 2674 drivers/scsi/bfa/bfa_fcs_rport.c rport->reply_oxid = fchs->ox_id; rport 2675 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->reply_oxid); rport 2677 drivers/scsi/bfa/bfa_fcs_rport.c rport->stats.plogi_rcvd++; rport 2678 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_PLOGI_RCVD); rport 2686 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_plogi(struct bfa_fcs_rport_s *rport, struct fchs_s *rx_fchs, rport 2693 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_update(rport, plogi); rport 2695 drivers/scsi/bfa/bfa_fcs_rport.c rport->reply_oxid = rx_fchs->ox_id; rport 2696 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->reply_oxid); rport 2698 drivers/scsi/bfa/bfa_fcs_rport.c rport->pid = rx_fchs->s_id; rport 2699 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 2701 drivers/scsi/bfa/bfa_fcs_rport.c rport->stats.plogi_rcvd++; rport 2702 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_PLOGI_RCVD); rport 2710 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_scn(struct bfa_fcs_rport_s *rport) rport 2712 drivers/scsi/bfa/bfa_fcs_rport.c rport->stats.rscns++; rport 2713 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_FAB_SCN); rport 2733 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport = (struct bfa_fcs_rport_s *) cbarg; rport 2735 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 2736 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_HCB_ONLINE); rport 2755 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport = (struct bfa_fcs_rport_s *) cbarg; rport 2757 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 2758 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_HCB_OFFLINE); rport 2780 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport = (struct bfa_fcs_rport_s *) cbarg; rport 2783 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 2785 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_aen_post(rport, BFA_RPORT_AEN_QOS_FLOWID, &aen_data); rport 2807 drivers/scsi/bfa/bfa_fcs_rport.c bfa_cb_rport_scn_no_dev(void *rport) rport 2809 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rp = rport; rport 2849 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport = (struct bfa_fcs_rport_s *) cbarg; rport 2852 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 2854 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_aen_post(rport, BFA_RPORT_AEN_QOS_PRIO, &aen_data); rport 2861 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_uf_recv(struct bfa_fcs_rport_s *rport, rport 2864 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_lport_s *port = rport->port; rport 2867 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, fchs->s_id); rport 2868 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, fchs->d_id); rport 2869 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, fchs->type); rport 2876 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, els_cmd->els_code); rport 2881 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_process_logo(rport, fchs); rport 2886 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_process_adisc(rport, fchs, len); rport 2892 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_fcpim_uf_recv(rport->itnim, fchs, len); rport 2897 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_process_prli(rport, fchs, len); rport 2902 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_process_rpsc(rport, fchs, len); rport 2907 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_ls_rjt(rport, fchs, rport 2916 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_prlo_acc(struct bfa_fcs_rport_s *rport) rport 2918 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_lport_s *port = rport->port; rport 2923 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 2929 drivers/scsi/bfa/bfa_fcs_rport.c rport->pid, bfa_fcs_lport_get_fcid(port), rport 2930 drivers/scsi/bfa/bfa_fcs_rport.c rport->reply_oxid, 0); rport 2932 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_send(fcxp, rport->bfa_rport, port->fabric->vf_id, rport 2941 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_send_ls_rjt(struct bfa_fcs_rport_s *rport, struct fchs_s *rx_fchs, rport 2944 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_lport_s *port = rport->port; rport 2949 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rx_fchs->s_id); rport 2951 drivers/scsi/bfa/bfa_fcs_rport.c fcxp = bfa_fcs_fcxp_alloc(rport->fcs, BFA_FALSE); rport 2968 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_get_state(struct bfa_fcs_rport_s *rport) rport 2970 drivers/scsi/bfa/bfa_fcs_rport.c return bfa_sm_to_state(rport_sm_table, rport->sm); rport 2990 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_prlo(struct bfa_fcs_rport_s *rport, __be16 ox_id) rport 2992 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 2994 drivers/scsi/bfa/bfa_fcs_rport.c rport->prlo = BFA_TRUE; rport 2995 drivers/scsi/bfa/bfa_fcs_rport.c rport->reply_oxid = ox_id; rport 2996 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(rport, RPSM_EVENT_PRLO_RCVD); rport 3011 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rport_get_attr(struct bfa_fcs_rport_s *rport, rport 3015 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_lport_s *port = rport->port; rport 3016 drivers/scsi/bfa/bfa_fcs_rport.c bfa_port_speed_t rport_speed = rport->rpf.rpsc_speed; rport 3019 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcport_get_attr(rport->fcs->bfa, &port_attr); rport 3024 drivers/scsi/bfa/bfa_fcs_rport.c rport_attr->pid = rport->pid; rport 3025 drivers/scsi/bfa/bfa_fcs_rport.c rport_attr->pwwn = rport->pwwn; rport 3026 drivers/scsi/bfa/bfa_fcs_rport.c rport_attr->nwwn = rport->nwwn; rport 3027 drivers/scsi/bfa/bfa_fcs_rport.c rport_attr->cos_supported = rport->fc_cos; rport 3028 drivers/scsi/bfa/bfa_fcs_rport.c rport_attr->df_sz = rport->maxfrsize; rport 3029 drivers/scsi/bfa/bfa_fcs_rport.c rport_attr->state = bfa_fcs_rport_get_state(rport); rport 3030 drivers/scsi/bfa/bfa_fcs_rport.c rport_attr->fc_cos = rport->fc_cos; rport 3031 drivers/scsi/bfa/bfa_fcs_rport.c rport_attr->cisc = rport->cisc; rport 3032 drivers/scsi/bfa/bfa_fcs_rport.c rport_attr->scsi_function = rport->scsi_function; rport 3033 drivers/scsi/bfa/bfa_fcs_rport.c rport_attr->curr_speed = rport->rpf.rpsc_speed; rport 3034 drivers/scsi/bfa/bfa_fcs_rport.c rport_attr->assigned_speed = rport->rpf.assigned_speed; rport 3036 drivers/scsi/bfa/bfa_fcs_rport.c if (rport->bfa_rport) { rport 3037 drivers/scsi/bfa/bfa_fcs_rport.c qos_attr.qos_priority = rport->bfa_rport->qos_attr.qos_priority; rport 3039 drivers/scsi/bfa/bfa_fcs_rport.c cpu_to_be32(rport->bfa_rport->qos_attr.qos_flow_id); rport 3045 drivers/scsi/bfa/bfa_fcs_rport.c (rport->scsi_function == BFA_RPORT_TARGET)) { rport 3048 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcport_get_ratelim_speed(rport->fcs->bfa); rport 3067 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport; rport 3069 drivers/scsi/bfa/bfa_fcs_rport.c rport = bfa_fcs_lport_get_rport_by_pwwn(port, rpwwn); rport 3070 drivers/scsi/bfa/bfa_fcs_rport.c if (rport == NULL) { rport 3076 drivers/scsi/bfa/bfa_fcs_rport.c return rport; rport 3082 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport; rport 3084 drivers/scsi/bfa/bfa_fcs_rport.c rport = bfa_fcs_lport_get_rport_by_nwwn(port, rnwwn); rport 3085 drivers/scsi/bfa/bfa_fcs_rport.c if (rport == NULL) { rport 3091 drivers/scsi/bfa/bfa_fcs_rport.c return rport; rport 3143 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport = rpf->rport; rport 3144 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_fabric_s *fabric = &rport->fcs->fabric; rport 3146 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 3147 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 3148 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 3153 drivers/scsi/bfa/bfa_fcs_rport.c if ((!BFA_FCS_PID_IS_WKA(rport->pid)) && rport 3154 drivers/scsi/bfa/bfa_fcs_rport.c ((rport->port->fabric->lps->brcd_switch) || rport 3167 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 3174 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport = rpf->rport; rport 3176 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 3185 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcxp_walloc_cancel(rport->fcs->bfa, &rpf->fcxp_wqe); rport 3190 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 3197 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport = rpf->rport; rport 3199 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 3200 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 3207 drivers/scsi/bfa/bfa_fcs_rport.c bfa_rport_speed(rport->bfa_rport, rpf->rpsc_speed); rport 3209 drivers/scsi/bfa/bfa_fcs_rport.c bfa_rport_speed(rport->bfa_rport, rpf->assigned_speed); rport 3220 drivers/scsi/bfa/bfa_fcs_rport.c bfa_timer_start(rport->fcs->bfa, &rpf->timer, rport 3236 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 3243 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport = rpf->rport; rport 3245 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 3246 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 3262 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 3269 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport = rpf->rport; rport 3271 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 3272 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 3273 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 3282 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 3289 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport = rpf->rport; rport 3291 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 3292 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 3293 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, event); rport 3305 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_fault(rport->fcs, event); rport 3312 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rpf_init(struct bfa_fcs_rport_s *rport) rport 3314 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rpf_s *rpf = &rport->rpf; rport 3316 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 3317 drivers/scsi/bfa/bfa_fcs_rport.c rpf->rport = rport; rport 3326 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rpf_rport_online(struct bfa_fcs_rport_s *rport) rport 3328 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 3330 drivers/scsi/bfa/bfa_fcs_rport.c if (__fcs_min_cfg(rport->port->fcs)) rport 3333 drivers/scsi/bfa/bfa_fcs_rport.c if (bfa_fcs_fabric_is_switched(rport->port->fabric)) rport 3334 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(&rport->rpf, RPFSM_EVENT_RPORT_ONLINE); rport 3341 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_rpf_rport_offline(struct bfa_fcs_rport_s *rport) rport 3343 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 3345 drivers/scsi/bfa/bfa_fcs_rport.c if (__fcs_min_cfg(rport->port->fcs)) rport 3348 drivers/scsi/bfa/bfa_fcs_rport.c rport->rpf.rpsc_speed = 0; rport 3349 drivers/scsi/bfa/bfa_fcs_rport.c bfa_sm_send_event(&rport->rpf, RPFSM_EVENT_RPORT_OFFLINE); rport 3356 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport = rpf->rport; rport 3358 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pid); rport 3366 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport = rpf->rport; rport 3367 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_lport_s *port = rport->port; rport 3372 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport->pwwn); rport 3383 drivers/scsi/bfa/bfa_fcs_rport.c len = fc_rpsc2_build(&fchs, bfa_fcxp_get_reqbuf(fcxp), rport->pid, rport 3384 drivers/scsi/bfa/bfa_fcs_rport.c bfa_fcs_lport_get_fcid(port), &rport->pid, 1); rport 3389 drivers/scsi/bfa/bfa_fcs_rport.c rport->stats.rpsc_sent++; rport 3400 drivers/scsi/bfa/bfa_fcs_rport.c struct bfa_fcs_rport_s *rport = rpf->rport; rport 3405 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, req_status); rport 3408 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, req_status); rport 3410 drivers/scsi/bfa/bfa_fcs_rport.c rport->stats.rpsc_failed++; rport 3417 drivers/scsi/bfa/bfa_fcs_rport.c rport->stats.rpsc_accs++; rport 3419 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, num_ents); rport 3422 drivers/scsi/bfa/bfa_fcs_rport.c bfa_ntoh3b(rport->pid)); rport 3423 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport 3425 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport 3427 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport 3429 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, rport 3444 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, ls_rjt->reason_code); rport 3445 drivers/scsi/bfa/bfa_fcs_rport.c bfa_trc(rport->fcs, ls_rjt->reason_code_expl); rport 3446 drivers/scsi/bfa/bfa_fcs_rport.c rport->stats.rpsc_rejects++; rport 227 drivers/scsi/bfa/bfa_svc.c static void bfa_rport_free(struct bfa_rport_s *rport); rport 798 drivers/scsi/bfa/bfa_svc.c struct bfa_rport_s *rport = reqi->bfa_rport; rport 804 drivers/scsi/bfa/bfa_svc.c if (rport) { rport 805 drivers/scsi/bfa/bfa_svc.c send_req->rport_fw_hndl = rport->fw_handle; rport 806 drivers/scsi/bfa/bfa_svc.c send_req->max_frmsz = cpu_to_be16(rport->rport_info.max_frmsz); rport 1005 drivers/scsi/bfa/bfa_svc.c bfa_fcxp_send(struct bfa_fcxp_s *fcxp, struct bfa_rport_s *rport, rport 1020 drivers/scsi/bfa/bfa_svc.c reqi->bfa_rport = rport; rport 4856 drivers/scsi/bfa/bfa_svc.c struct bfa_rport_s *rport; rport 4863 drivers/scsi/bfa/bfa_svc.c rport = (struct bfa_rport_s *) qe; rport 4864 drivers/scsi/bfa/bfa_svc.c bfa_sm_send_event(rport, BFA_RPORT_SM_HWFAIL); rport 4871 drivers/scsi/bfa/bfa_svc.c struct bfa_rport_s *rport; rport 4873 drivers/scsi/bfa/bfa_svc.c bfa_q_deq(&mod->rp_free_q, &rport); rport 4874 drivers/scsi/bfa/bfa_svc.c if (rport) rport 4875 drivers/scsi/bfa/bfa_svc.c list_add_tail(&rport->qe, &mod->rp_active_q); rport 4877 drivers/scsi/bfa/bfa_svc.c return rport; rport 4881 drivers/scsi/bfa/bfa_svc.c bfa_rport_free(struct bfa_rport_s *rport) rport 4883 drivers/scsi/bfa/bfa_svc.c struct bfa_rport_mod_s *mod = BFA_RPORT_MOD(rport->bfa); rport 4885 drivers/scsi/bfa/bfa_svc.c WARN_ON(!bfa_q_is_on_q(&mod->rp_active_q, rport)); rport 4886 drivers/scsi/bfa/bfa_svc.c list_del(&rport->qe); rport 4887 drivers/scsi/bfa/bfa_svc.c list_add_tail(&rport->qe, &mod->rp_free_q); rport 5075 drivers/scsi/bfa/bfa_svc.c bfa_rport_online(struct bfa_rport_s *rport, struct bfa_rport_info_s *rport_info) rport 5084 drivers/scsi/bfa/bfa_svc.c bfa_trc(rport->bfa, rport->rport_tag); rport 5088 drivers/scsi/bfa/bfa_svc.c rport->rport_info = *rport_info; rport 5089 drivers/scsi/bfa/bfa_svc.c bfa_sm_send_event(rport, BFA_RPORT_SM_ONLINE); rport 5093 drivers/scsi/bfa/bfa_svc.c bfa_rport_speed(struct bfa_rport_s *rport, enum bfa_port_speed speed) rport 5098 drivers/scsi/bfa/bfa_svc.c if (rport) { rport 5099 drivers/scsi/bfa/bfa_svc.c rport->rport_info.speed = speed; rport 5100 drivers/scsi/bfa/bfa_svc.c bfa_sm_send_event(rport, BFA_RPORT_SM_SET_SPEED); rport 576 drivers/scsi/bfa/bfa_svc.h void bfa_rport_online(struct bfa_rport_s *rport, rport 578 drivers/scsi/bfa/bfa_svc.h void bfa_rport_speed(struct bfa_rport_s *rport, enum bfa_port_speed speed); rport 579 drivers/scsi/bfa/bfa_svc.h void bfa_cb_rport_online(void *rport); rport 580 drivers/scsi/bfa/bfa_svc.h void bfa_cb_rport_offline(void *rport); rport 581 drivers/scsi/bfa/bfa_svc.h void bfa_cb_rport_qos_scn_flowid(void *rport, rport 587 drivers/scsi/bfa/bfa_svc.h void bfa_cb_rport_qos_scn_prio(void *rport, rport 627 drivers/scsi/bfa/bfa_svc.h void bfa_fcxp_send(struct bfa_fcxp_s *fcxp, struct bfa_rport_s *rport, rport 471 drivers/scsi/bfa/bfad.c bfa_fcb_rport_alloc(struct bfad_s *bfad, struct bfa_fcs_rport_s **rport, rport 482 drivers/scsi/bfa/bfad.c *rport = &(*rport_drv)->fcs_rport; rport 339 drivers/scsi/bfa/bfad_attr.c bfad_im_set_rport_loss_tmo(struct fc_rport *rport, u32 timeout) rport 341 drivers/scsi/bfa/bfad_attr.c struct bfad_itnim_data_s *itnim_data = rport->dd_data; rport 346 drivers/scsi/bfa/bfad_attr.c rport->dev_loss_tmo = timeout; rport 348 drivers/scsi/bfa/bfad_attr.c rport->dev_loss_tmo = path_tov + 1; rport 516 drivers/scsi/bfa/bfad_bsg.c if (itnim->rport->rport_info.lp_tag != fcs_port->lp_tag) rport 727 drivers/scsi/bfa/bfad_bsg.c struct bfa_rport_s *rport; rport 747 drivers/scsi/bfa/bfad_bsg.c rport = bfa_fcs_rport_get_halrport(fcs_rport); rport 748 drivers/scsi/bfa/bfad_bsg.c if (rport) rport 749 drivers/scsi/bfa/bfad_bsg.c memset(&rport->stats, 0, sizeof(rport->stats)); rport 928 drivers/scsi/bfa/bfad_im.c struct fc_rport *rport) rport 931 drivers/scsi/bfa/bfad_im.c (struct bfad_itnim_data_s *) rport->dd_data; rport 933 drivers/scsi/bfa/bfad_im.c struct bfa_rport_s *bfa_rport = itnim_data->itnim->bfa_itnim->rport; rport 955 drivers/scsi/bfa/bfad_im.c struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); rport 959 drivers/scsi/bfa/bfad_im.c if (!rport || fc_remote_port_chkready(rport)) rport 962 drivers/scsi/bfa/bfad_im.c itnim_data = (struct bfad_itnim_data_s *) rport->dd_data; rport 980 drivers/scsi/bfa/bfad_im.c if (bfad_im_check_if_make_lun_visible(sdev, rport) != rport 985 drivers/scsi/bfa/bfad_im.c sdev->hostdata = rport->dd_data; rport 1214 drivers/scsi/bfa/bfad_im.c struct fc_rport *rport = starget_to_rport(scsi_target(cmnd->device)); rport 1216 drivers/scsi/bfa/bfad_im.c rc = fc_remote_port_chkready(rport); rport 292 drivers/scsi/bnx2fc/bnx2fc.h struct fc_rport *rport; rport 549 drivers/scsi/bnx2fc/bnx2fc.h struct fc_rport_priv *rport, rport 55 drivers/scsi/bnx2fc/bnx2fc_debug.c tgt->rport) rport 58 drivers/scsi/bnx2fc/bnx2fc_debug.c tgt->rport->port_id, &vaf); rport 677 drivers/scsi/bnx2fc/bnx2fc_els.c struct fc_rport *rport = tgt->rport; rport 689 drivers/scsi/bnx2fc/bnx2fc_els.c rc = fc_remote_port_chkready(rport); rport 756 drivers/scsi/bnx2fc/bnx2fc_els.c did = tgt->rport->port_id; rport 2566 drivers/scsi/bnx2fc/bnx2fc_fcoe.c static void bnx2fc_rport_terminate_io(struct fc_rport *rport) rport 184 drivers/scsi/bnx2fc/bnx2fc_hwi.c struct fc_rport *rport = tgt->rport; rport 259 drivers/scsi/bnx2fc/bnx2fc_hwi.c port_id = rport->port_id; rport 365 drivers/scsi/bnx2fc/bnx2fc_hwi.c struct fc_rport *rport = tgt->rport; rport 402 drivers/scsi/bnx2fc/bnx2fc_hwi.c port_id = rport->port_id; rport 434 drivers/scsi/bnx2fc/bnx2fc_hwi.c struct fc_rport *rport = tgt->rport; rport 465 drivers/scsi/bnx2fc/bnx2fc_hwi.c port_id = rport->port_id; rport 664 drivers/scsi/bnx2fc/bnx2fc_io.c struct fc_rport *rport; rport 683 drivers/scsi/bnx2fc/bnx2fc_io.c rport = starget_to_rport(scsi_target(sc_cmd->device)); rport 687 drivers/scsi/bnx2fc/bnx2fc_io.c if (rport == NULL) { rport 692 drivers/scsi/bnx2fc/bnx2fc_io.c rp = rport->dd_data; rport 751 drivers/scsi/bnx2fc/bnx2fc_io.c did = rport->port_id; rport 825 drivers/scsi/bnx2fc/bnx2fc_io.c struct fc_rport *rport = tgt->rport; rport 853 drivers/scsi/bnx2fc/bnx2fc_io.c if (rport == NULL) { rport 889 drivers/scsi/bnx2fc/bnx2fc_io.c did = rport->port_id; rport 1126 drivers/scsi/bnx2fc/bnx2fc_io.c struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); rport 1127 drivers/scsi/bnx2fc/bnx2fc_io.c struct fc_rport_libfc_priv *rp = rport->dd_data; rport 1858 drivers/scsi/bnx2fc/bnx2fc_io.c struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); rport 1859 drivers/scsi/bnx2fc/bnx2fc_io.c struct fc_rport_libfc_priv *rp = rport->dd_data; rport 1865 drivers/scsi/bnx2fc/bnx2fc_io.c rval = fc_remote_port_chkready(rport); rport 84 drivers/scsi/bnx2fc/bnx2fc_tgt.c struct fc_rport *rport = rdata->rport; rport 95 drivers/scsi/bnx2fc/bnx2fc_tgt.c "port_id (%6x)\n", rport->port_id); rport 355 drivers/scsi/bnx2fc/bnx2fc_tgt.c struct fc_rport *rport = rdata->rport; rport 361 drivers/scsi/bnx2fc/bnx2fc_tgt.c tgt->rport = rport; rport 446 drivers/scsi/bnx2fc/bnx2fc_tgt.c struct fc_rport *rport = rdata->rport; rport 455 drivers/scsi/bnx2fc/bnx2fc_tgt.c if (!rport) { rport 460 drivers/scsi/bnx2fc/bnx2fc_tgt.c rp = rport->dd_data; rport 461 drivers/scsi/bnx2fc/bnx2fc_tgt.c if (rport->port_id == FC_FID_DIR_SERV) { rport 532 drivers/scsi/bnx2fc/bnx2fc_tgt.c if (!rport) { rport 537 drivers/scsi/bnx2fc/bnx2fc_tgt.c rp = rport->dd_data; rport 64 drivers/scsi/csiostor/csio_attr.c struct fc_rport *rport; rport 73 drivers/scsi/csiostor/csio_attr.c rport = rn->rport; rport 74 drivers/scsi/csiostor/csio_attr.c CSIO_ASSERT(rport != NULL); rport 78 drivers/scsi/csiostor/csio_attr.c rn->rport = fc_remote_port_add(shost, 0, &ids); rport 79 drivers/scsi/csiostor/csio_attr.c if (!rn->rport) { rport 86 drivers/scsi/csiostor/csio_attr.c rport = rn->rport; rport 88 drivers/scsi/csiostor/csio_attr.c *((struct csio_rnode **)rport->dd_data) = rn; rport 92 drivers/scsi/csiostor/csio_attr.c rport->maxframe_size = ntohs(sp->csp.sp_bb_data); rport 94 drivers/scsi/csiostor/csio_attr.c rport->supported_classes = FC_COS_CLASS3; rport 96 drivers/scsi/csiostor/csio_attr.c rport->supported_classes = FC_COS_UNSPECIFIED; rport 104 drivers/scsi/csiostor/csio_attr.c fc_remote_port_rolechg(rport, ids.roles); rport 106 drivers/scsi/csiostor/csio_attr.c rn->scsi_id = rport->scsi_target_id; rport 124 drivers/scsi/csiostor/csio_attr.c struct fc_rport *rport = rn->rport; rport 127 drivers/scsi/csiostor/csio_attr.c fc_remote_port_delete(rport); rport 380 drivers/scsi/csiostor/csio_attr.c csio_set_rport_loss_tmo(struct fc_rport *rport, uint32_t timeout) rport 383 drivers/scsi/csiostor/csio_attr.c rport->dev_loss_tmo = timeout; rport 385 drivers/scsi/csiostor/csio_attr.c rport->dev_loss_tmo = 1; rport 681 drivers/scsi/csiostor/csio_attr.c csio_dev_loss_tmo_callbk(struct fc_rport *rport) rport 687 drivers/scsi/csiostor/csio_attr.c rn = *((struct csio_rnode **)rport->dd_data); rport 112 drivers/scsi/csiostor/csio_rnode.h struct fc_rport *rport; /* FC transport rport */ rport 1787 drivers/scsi/csiostor/csio_scsi.c struct fc_rport *rport = starget_to_rport(scsi_target(cmnd->device)); rport 1791 drivers/scsi/csiostor/csio_scsi.c nr = fc_remote_port_chkready(rport); rport 2098 drivers/scsi/csiostor/csio_scsi.c if (fc_remote_port_chkready(rn->rport)) { rport 2224 drivers/scsi/csiostor/csio_scsi.c struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); rport 2226 drivers/scsi/csiostor/csio_scsi.c if (!rport || fc_remote_port_chkready(rport)) rport 2229 drivers/scsi/csiostor/csio_scsi.c sdev->hostdata = *((struct csio_lnode **)(rport->dd_data)); rport 101 drivers/scsi/fnic/fnic_main.c struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); rport 103 drivers/scsi/fnic/fnic_main.c if (!rport || fc_remote_port_chkready(rport)) rport 130 drivers/scsi/fnic/fnic_main.c fnic_set_rport_dev_loss_tmo(struct fc_rport *rport, u32 timeout) rport 133 drivers/scsi/fnic/fnic_main.c rport->dev_loss_tmo = timeout; rport 135 drivers/scsi/fnic/fnic_main.c rport->dev_loss_tmo = 1; rport 323 drivers/scsi/fnic/fnic_scsi.c struct fc_rport *rport = starget_to_rport(scsi_target(sc->device)); rport 324 drivers/scsi/fnic/fnic_scsi.c struct fc_rport_libfc_priv *rp = rport->dd_data; rport 404 drivers/scsi/fnic/fnic_scsi.c rport->maxframe_size, rp->r_a_tov, rport 425 drivers/scsi/fnic/fnic_scsi.c struct fc_rport *rport; rport 445 drivers/scsi/fnic/fnic_scsi.c rport = starget_to_rport(scsi_target(sc->device)); rport 446 drivers/scsi/fnic/fnic_scsi.c if (!rport) { rport 454 drivers/scsi/fnic/fnic_scsi.c ret = fc_remote_port_chkready(rport); rport 464 drivers/scsi/fnic/fnic_scsi.c rp = rport->dd_data; rport 468 drivers/scsi/fnic/fnic_scsi.c rport->port_id); rport 479 drivers/scsi/fnic/fnic_scsi.c rport->port_id, rp->rp_state); rport 557 drivers/scsi/fnic/fnic_scsi.c io_req->port_id = rport->port_id; rport 1679 drivers/scsi/fnic/fnic_scsi.c void fnic_terminate_rport_io(struct fc_rport *rport) rport 1697 drivers/scsi/fnic/fnic_scsi.c if (!rport) { rport 1701 drivers/scsi/fnic/fnic_scsi.c rdata = rport->dd_data; rport 1717 drivers/scsi/fnic/fnic_scsi.c rport->port_name, rport->node_name, rport, rport 1718 drivers/scsi/fnic/fnic_scsi.c rport->port_id); rport 1737 drivers/scsi/fnic/fnic_scsi.c if (rport != cmd_rport) { rport 1744 drivers/scsi/fnic/fnic_scsi.c if (!io_req || rport != cmd_rport) { rport 1838 drivers/scsi/fnic/fnic_scsi.c struct fc_rport *rport; rport 1864 drivers/scsi/fnic/fnic_scsi.c rport = starget_to_rport(scsi_target(sc->device)); rport 1869 drivers/scsi/fnic/fnic_scsi.c rport->port_id, sc->device->lun, tag, CMD_FLAGS(sc)); rport 1940 drivers/scsi/fnic/fnic_scsi.c if (fc_remote_port_chkready(rport) == 0) rport 2331 drivers/scsi/fnic/fnic_scsi.c struct fc_rport *rport; rport 2357 drivers/scsi/fnic/fnic_scsi.c rport = starget_to_rport(scsi_target(sc->device)); rport 2360 drivers/scsi/fnic/fnic_scsi.c rport->port_id, sc->device->lun, sc); rport 2366 drivers/scsi/fnic/fnic_scsi.c if (fc_remote_port_chkready(rport)) { rport 2401 drivers/scsi/fnic/fnic_scsi.c io_req->port_id = rport->port_id; rport 1026 drivers/scsi/ibmvscsi/ibmvfc.c static void ibmvfc_set_rport_dev_loss_tmo(struct fc_rport *rport, u32 timeout) rport 1029 drivers/scsi/ibmvscsi/ibmvfc.c rport->dev_loss_tmo = timeout; rport 1031 drivers/scsi/ibmvscsi/ibmvfc.c rport->dev_loss_tmo = 1; rport 1498 drivers/scsi/ibmvscsi/ibmvfc.c struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); rport 1502 drivers/scsi/ibmvscsi/ibmvfc.c if (rport == tgt->rport) { rport 1608 drivers/scsi/ibmvscsi/ibmvfc.c struct fc_rport *rport = starget_to_rport(scsi_target(cmnd->device)); rport 1613 drivers/scsi/ibmvscsi/ibmvfc.c if (unlikely((rc = fc_remote_port_chkready(rport))) || rport 1633 drivers/scsi/ibmvscsi/ibmvfc.c vfc_cmd->tgt_scsi_id = cpu_to_be64(rport->port_id); rport 1812 drivers/scsi/ibmvscsi/ibmvfc.c struct fc_rport *rport = fc_bsg_to_rport(job); rport 1825 drivers/scsi/ibmvscsi/ibmvfc.c if (rport) rport 1826 drivers/scsi/ibmvscsi/ibmvfc.c port_id = rport->port_id; rport 1884 drivers/scsi/ibmvscsi/ibmvfc.c if (unlikely(rc || (rport && (rc = fc_remote_port_chkready(rport)))) || rport 1962 drivers/scsi/ibmvscsi/ibmvfc.c struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); rport 1984 drivers/scsi/ibmvscsi/ibmvfc.c tmf->tgt_scsi_id = cpu_to_be64(rport->port_id); rport 2034 drivers/scsi/ibmvscsi/ibmvfc.c static int ibmvfc_match_rport(struct ibmvfc_event *evt, void *rport) rport 2040 drivers/scsi/ibmvscsi/ibmvfc.c if (cmd_rport == rport) rport 2146 drivers/scsi/ibmvscsi/ibmvfc.c struct fc_rport *rport = starget_to_rport(starget); rport 2180 drivers/scsi/ibmvscsi/ibmvfc.c tmf->scsi_id = cpu_to_be64(rport->port_id); rport 2277 drivers/scsi/ibmvscsi/ibmvfc.c struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); rport 2314 drivers/scsi/ibmvscsi/ibmvfc.c tmf->tgt_scsi_id = cpu_to_be64(rport->port_id); rport 2535 drivers/scsi/ibmvscsi/ibmvfc.c static void ibmvfc_terminate_rport_io(struct fc_rport *rport) rport 2537 drivers/scsi/ibmvscsi/ibmvfc.c struct Scsi_Host *shost = rport_to_shost(rport); rport 2546 drivers/scsi/ibmvscsi/ibmvfc.c if (dev_rport != rport) rport 2551 drivers/scsi/ibmvscsi/ibmvfc.c rc = ibmvfc_wait_for_ops(vhost, rport, ibmvfc_match_rport); rport 2833 drivers/scsi/ibmvscsi/ibmvfc.c struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); rport 2837 drivers/scsi/ibmvscsi/ibmvfc.c if (!rport || fc_remote_port_chkready(rport)) rport 4279 drivers/scsi/ibmvscsi/ibmvfc.c struct fc_rport *rport; rport 4283 drivers/scsi/ibmvscsi/ibmvfc.c rport = fc_remote_port_add(vhost->host, 0, &tgt->ids); rport 4286 drivers/scsi/ibmvscsi/ibmvfc.c if (rport && tgt->action == IBMVFC_TGT_ACTION_DEL_RPORT) { rport 4291 drivers/scsi/ibmvscsi/ibmvfc.c fc_remote_port_delete(rport); rport 4295 drivers/scsi/ibmvscsi/ibmvfc.c } else if (rport && tgt->action == IBMVFC_TGT_ACTION_DELETED_RPORT) { rport 4300 drivers/scsi/ibmvscsi/ibmvfc.c if (rport) { rport 4302 drivers/scsi/ibmvscsi/ibmvfc.c tgt->rport = rport; rport 4303 drivers/scsi/ibmvscsi/ibmvfc.c rport->maxframe_size = be16_to_cpu(tgt->service_parms.common.bb_rcv_sz) & 0x0fff; rport 4304 drivers/scsi/ibmvscsi/ibmvfc.c rport->supported_classes = 0; rport 4305 drivers/scsi/ibmvscsi/ibmvfc.c tgt->target_id = rport->scsi_target_id; rport 4307 drivers/scsi/ibmvscsi/ibmvfc.c rport->supported_classes |= FC_COS_CLASS1; rport 4309 drivers/scsi/ibmvscsi/ibmvfc.c rport->supported_classes |= FC_COS_CLASS2; rport 4311 drivers/scsi/ibmvscsi/ibmvfc.c rport->supported_classes |= FC_COS_CLASS3; rport 4312 drivers/scsi/ibmvscsi/ibmvfc.c if (rport->rqst_q) rport 4313 drivers/scsi/ibmvscsi/ibmvfc.c blk_queue_max_segments(rport->rqst_q, 1); rport 4328 drivers/scsi/ibmvscsi/ibmvfc.c struct fc_rport *rport; rport 4396 drivers/scsi/ibmvscsi/ibmvfc.c rport = tgt->rport; rport 4397 drivers/scsi/ibmvscsi/ibmvfc.c tgt->rport = NULL; rport 4401 drivers/scsi/ibmvscsi/ibmvfc.c if (rport) rport 4402 drivers/scsi/ibmvscsi/ibmvfc.c fc_remote_port_delete(rport); rport 4694 drivers/scsi/ibmvscsi/ibmvfc.c struct fc_rport *rport; rport 4710 drivers/scsi/ibmvscsi/ibmvfc.c rport = tgt->rport; rport 4711 drivers/scsi/ibmvscsi/ibmvfc.c if (!rport) { rport 4714 drivers/scsi/ibmvscsi/ibmvfc.c } else if (get_device(&rport->dev)) { rport 4717 drivers/scsi/ibmvscsi/ibmvfc.c fc_remote_port_rolechg(rport, tgt->ids.roles); rport 4718 drivers/scsi/ibmvscsi/ibmvfc.c put_device(&rport->dev); rport 608 drivers/scsi/ibmvscsi/ibmvfc.h struct fc_rport *rport; rport 2208 drivers/scsi/ibmvscsi/ibmvscsi.c struct srp_rport *rport; rport 2270 drivers/scsi/ibmvscsi/ibmvscsi.c rport = srp_rport_add(host, &ids); rport 2271 drivers/scsi/ibmvscsi/ibmvscsi.c if (IS_ERR(rport)) rport 460 drivers/scsi/libfc/fc_fcp.c struct fc_rport_libfc_priv *rpriv = fsp->rport->dd_data; rport 947 drivers/scsi/libfc/fc_fcp.c fsp->rport->port_id); rport 952 drivers/scsi/libfc/fc_fcp.c fsp->rport->port_id, rport 960 drivers/scsi/libfc/fc_fcp.c fsp->rport->port_id, rport 1173 drivers/scsi/libfc/fc_fcp.c struct fc_rport *rport; rport 1189 drivers/scsi/libfc/fc_fcp.c rport = fsp->rport; rport 1190 drivers/scsi/libfc/fc_fcp.c fsp->max_payload = rport->maxframe_size; rport 1191 drivers/scsi/libfc/fc_fcp.c rpriv = rport->dd_data; rport 1193 drivers/scsi/libfc/fc_fcp.c fc_fill_fc_hdr(fp, FC_RCTL_DD_UNSOL_CMD, rport->port_id, rport 1424 drivers/scsi/libfc/fc_fcp.c struct fc_rport *rport = fsp->rport; rport 1425 drivers/scsi/libfc/fc_fcp.c struct fc_rport_libfc_priv *rpriv = rport->dd_data; rport 1463 drivers/scsi/libfc/fc_fcp.c struct fc_rport *rport; rport 1467 drivers/scsi/libfc/fc_fcp.c rport = fsp->rport; rport 1468 drivers/scsi/libfc/fc_fcp.c rpriv = rport->dd_data; rport 1481 drivers/scsi/libfc/fc_fcp.c fc_fill_fc_hdr(fp, FC_RCTL_ELS_REQ, rport->port_id, rport 1484 drivers/scsi/libfc/fc_fcp.c if (lport->tt.elsct_send(lport, rport->port_id, fp, ELS_REC, rport 1536 drivers/scsi/libfc/fc_fcp.c fsp->rport->port_id, rjt->er_reason, rport 1541 drivers/scsi/libfc/fc_fcp.c rpriv = fsp->rport->dd_data; rport 1552 drivers/scsi/libfc/fc_fcp.c fsp->rport->port_id, rjt->er_reason, rport 1662 drivers/scsi/libfc/fc_fcp.c fsp, fsp->rport->port_id); rport 1668 drivers/scsi/libfc/fc_fcp.c fsp, fsp->rport->port_id, error); rport 1678 drivers/scsi/libfc/fc_fcp.c fsp, fsp->rport->port_id, fsp->recov_retry, rport 1718 drivers/scsi/libfc/fc_fcp.c struct fc_rport *rport; rport 1725 drivers/scsi/libfc/fc_fcp.c rport = fsp->rport; rport 1726 drivers/scsi/libfc/fc_fcp.c rpriv = rport->dd_data; rport 1743 drivers/scsi/libfc/fc_fcp.c fc_fill_fc_hdr(fp, FC_RCTL_ELS4_REQ, rport->port_id, rport 1861 drivers/scsi/libfc/fc_fcp.c struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); rport 1867 drivers/scsi/libfc/fc_fcp.c rval = fc_remote_port_chkready(rport); rport 1874 drivers/scsi/libfc/fc_fcp.c if (!*(struct fc_remote_port **)rport->dd_data) { rport 1906 drivers/scsi/libfc/fc_fcp.c fsp->rport = rport; /* set the remote port ptr */ rport 2157 drivers/scsi/libfc/fc_fcp.c struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); rport 2170 drivers/scsi/libfc/fc_fcp.c FC_SCSI_DBG(lport, "Resetting rport (%6.6x)\n", rport->port_id); rport 2183 drivers/scsi/libfc/fc_fcp.c fsp->rport = rport; /* set the remote port ptr */ rport 2237 drivers/scsi/libfc/fc_fcp.c struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); rport 2239 drivers/scsi/libfc/fc_fcp.c if (!rport || fc_remote_port_chkready(rport)) rport 64 drivers/scsi/libfc/fc_libfc.h (pkt)->rport->port_id, \ rport 69 drivers/scsi/libfc/fc_libfc.h (pkt)->rport->port_id, ##args); \ rport 2060 drivers/scsi/libfc/fc_lport.c struct fc_rport *rport; rport 2071 drivers/scsi/libfc/fc_lport.c rport = fc_bsg_to_rport(job); rport 2072 drivers/scsi/libfc/fc_lport.c if (!rport) rport 2075 drivers/scsi/libfc/fc_lport.c rdata = rport->dd_data; rport 2076 drivers/scsi/libfc/fc_lport.c rc = fc_lport_els_request(job, lport, rport->port_id, rport 2081 drivers/scsi/libfc/fc_lport.c rport = fc_bsg_to_rport(job); rport 2082 drivers/scsi/libfc/fc_lport.c if (!rport) rport 2085 drivers/scsi/libfc/fc_lport.c rdata = rport->dd_data; rport 2086 drivers/scsi/libfc/fc_lport.c rc = fc_lport_ct_request(job, lport, rport->port_id, rport 201 drivers/scsi/libfc/fc_rport.c void fc_set_rport_loss_tmo(struct fc_rport *rport, u32 timeout) rport 204 drivers/scsi/libfc/fc_rport.c rport->dev_loss_tmo = timeout; rport 206 drivers/scsi/libfc/fc_rport.c rport->dev_loss_tmo = 1; rport 266 drivers/scsi/libfc/fc_rport.c struct fc_rport *rport; rport 273 drivers/scsi/libfc/fc_rport.c rport = rdata->rport; rport 285 drivers/scsi/libfc/fc_rport.c if (!rport) { rport 287 drivers/scsi/libfc/fc_rport.c rport = fc_remote_port_add(lport->host, 0, &ids); rport 289 drivers/scsi/libfc/fc_rport.c if (!rport) { rport 296 drivers/scsi/libfc/fc_rport.c if (rdata->rport) rport 298 drivers/scsi/libfc/fc_rport.c rdata->rport = rport; rport 299 drivers/scsi/libfc/fc_rport.c rport->maxframe_size = rdata->maxframe_size; rport 300 drivers/scsi/libfc/fc_rport.c rport->supported_classes = rdata->supported_classes; rport 302 drivers/scsi/libfc/fc_rport.c rpriv = rport->dd_data; rport 353 drivers/scsi/libfc/fc_rport.c if (rport) { rport 354 drivers/scsi/libfc/fc_rport.c rpriv = rport->dd_data; rport 357 drivers/scsi/libfc/fc_rport.c rdata->rport = NULL; rport 359 drivers/scsi/libfc/fc_rport.c fc_remote_port_delete(rport); rport 2276 drivers/scsi/libfc/fc_rport.c void fc_rport_terminate_io(struct fc_rport *rport) rport 2278 drivers/scsi/libfc/fc_rport.c struct fc_rport_libfc_priv *rpriv = rport->dd_data; rport 2281 drivers/scsi/libfc/fc_rport.c lport->tt.exch_mgr_reset(lport, 0, rport->port_id); rport 2282 drivers/scsi/libfc/fc_rport.c lport->tt.exch_mgr_reset(lport, rport->port_id, 0); rport 169 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_nvme_rport *rport; rport 379 drivers/scsi/lpfc/lpfc_attr.c rport = lpfc_ndlp_get_nrport(ndlp); rport 380 drivers/scsi/lpfc/lpfc_attr.c if (rport) rport 381 drivers/scsi/lpfc/lpfc_attr.c nrport = rport->remoteport; rport 3669 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_nvme_rport *rport; rport 3678 drivers/scsi/lpfc/lpfc_attr.c if (ndlp->rport) rport 3679 drivers/scsi/lpfc/lpfc_attr.c ndlp->rport->dev_loss_tmo = vport->cfg_devloss_tmo; rport 3682 drivers/scsi/lpfc/lpfc_attr.c rport = lpfc_ndlp_get_nrport(ndlp); rport 3683 drivers/scsi/lpfc/lpfc_attr.c if (rport) rport 3684 drivers/scsi/lpfc/lpfc_attr.c remoteport = rport->remoteport; rport 3686 drivers/scsi/lpfc/lpfc_attr.c if (rport && remoteport) rport 6858 drivers/scsi/lpfc/lpfc_attr.c lpfc_set_rport_loss_tmo(struct fc_rport *rport, uint32_t timeout) rport 6860 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_rport_data *rdata = rport->dd_data; rport 6867 drivers/scsi/lpfc/lpfc_attr.c rport->dev_loss_tmo = timeout; rport 6869 drivers/scsi/lpfc/lpfc_attr.c rport->dev_loss_tmo = 1; rport 6872 drivers/scsi/lpfc/lpfc_attr.c dev_info(&rport->dev, "Cannot find remote node to " rport 6874 drivers/scsi/lpfc/lpfc_attr.c rport->port_id); rport 6883 drivers/scsi/lpfc/lpfc_attr.c rport->dev_loss_tmo); rport 6905 drivers/scsi/lpfc/lpfc_attr.c struct fc_rport *rport = transport_class_to_rport(dev); \ rport 6906 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_rport_data *rdata = rport->hostdata; \ rport 415 drivers/scsi/lpfc/lpfc_crtn.h void lpfc_dev_loss_tmo_callbk(struct fc_rport *rport); rport 817 drivers/scsi/lpfc/lpfc_debugfs.c struct lpfc_nvme_rport *rport; rport 963 drivers/scsi/lpfc/lpfc_debugfs.c rport = lpfc_ndlp_get_nrport(ndlp); rport 964 drivers/scsi/lpfc/lpfc_debugfs.c if (rport) rport 965 drivers/scsi/lpfc/lpfc_debugfs.c nrport = rport->remoteport; rport 126 drivers/scsi/lpfc/lpfc_disc.h struct fc_rport *rport; /* scsi_transport_fc port structure */ rport 1603 drivers/scsi/lpfc/lpfc_els.c struct fc_rport *rport; rport 1765 drivers/scsi/lpfc/lpfc_els.c rport = ndlp->rport; rport 1766 drivers/scsi/lpfc/lpfc_els.c if (rport) { rport 1767 drivers/scsi/lpfc/lpfc_els.c rdata = rport->dd_data; rport 1770 drivers/scsi/lpfc/lpfc_els.c ndlp->rport = NULL; rport 1773 drivers/scsi/lpfc/lpfc_els.c new_ndlp->rport = rport; rport 1846 drivers/scsi/lpfc/lpfc_els.c rport = ndlp->rport; rport 1847 drivers/scsi/lpfc/lpfc_els.c if (rport) { rport 1848 drivers/scsi/lpfc/lpfc_els.c rdata = rport->dd_data; rport 1850 drivers/scsi/lpfc/lpfc_els.c put_rport = ndlp->rport != NULL; rport 1852 drivers/scsi/lpfc/lpfc_els.c ndlp->rport = NULL; rport 1856 drivers/scsi/lpfc/lpfc_els.c put_device(&rport->dev); rport 78 drivers/scsi/lpfc/lpfc_hbadisc.c lpfc_terminate_rport_io(struct fc_rport *rport) rport 84 drivers/scsi/lpfc/lpfc_hbadisc.c rdata = rport->dd_data; rport 88 drivers/scsi/lpfc/lpfc_hbadisc.c if (rport->roles & FC_RPORT_ROLE_FCP_TARGET) rport 91 drivers/scsi/lpfc/lpfc_hbadisc.c rport->port_id); rport 112 drivers/scsi/lpfc/lpfc_hbadisc.c lpfc_dev_loss_tmo_callbk(struct fc_rport *rport) rport 124 drivers/scsi/lpfc/lpfc_hbadisc.c rdata = rport->dd_data; rport 138 drivers/scsi/lpfc/lpfc_hbadisc.c ndlp->nlp_DID, ndlp->rport, ndlp->nlp_flag); rport 146 drivers/scsi/lpfc/lpfc_hbadisc.c put_rport = ndlp->rport != NULL; rport 148 drivers/scsi/lpfc/lpfc_hbadisc.c ndlp->rport = NULL; rport 152 drivers/scsi/lpfc/lpfc_hbadisc.c put_device(&rport->dev); rport 159 drivers/scsi/lpfc/lpfc_hbadisc.c if (rport->port_name != wwn_to_u64(ndlp->nlp_portname.u.wwn)) rport 162 drivers/scsi/lpfc/lpfc_hbadisc.c rport->port_name, rport 170 drivers/scsi/lpfc/lpfc_hbadisc.c rport->port_name); rport 209 drivers/scsi/lpfc/lpfc_hbadisc.c struct fc_rport *rport; rport 219 drivers/scsi/lpfc/lpfc_hbadisc.c rport = ndlp->rport; rport 227 drivers/scsi/lpfc/lpfc_hbadisc.c if (!rport) rport 238 drivers/scsi/lpfc/lpfc_hbadisc.c ndlp->nlp_DID, ndlp->nlp_type, rport->scsi_target_id); rport 242 drivers/scsi/lpfc/lpfc_hbadisc.c ndlp->nlp_DID, ndlp->rport, ndlp->nlp_flag); rport 249 drivers/scsi/lpfc/lpfc_hbadisc.c rdata = rport->dd_data; rport 264 drivers/scsi/lpfc/lpfc_hbadisc.c ndlp->rport = NULL; rport 267 drivers/scsi/lpfc/lpfc_hbadisc.c put_device(&rport->dev); rport 285 drivers/scsi/lpfc/lpfc_hbadisc.c ndlp->rport = NULL; rport 288 drivers/scsi/lpfc/lpfc_hbadisc.c put_device(&rport->dev); rport 4118 drivers/scsi/lpfc/lpfc_hbadisc.c struct fc_rport *rport; rport 4139 drivers/scsi/lpfc/lpfc_hbadisc.c rport = ndlp->rport; rport 4140 drivers/scsi/lpfc/lpfc_hbadisc.c if (rport) { rport 4141 drivers/scsi/lpfc/lpfc_hbadisc.c rdata = rport->dd_data; rport 4143 drivers/scsi/lpfc/lpfc_hbadisc.c ndlp->rport = NULL; rport 4150 drivers/scsi/lpfc/lpfc_hbadisc.c put_device(&rport->dev); rport 4161 drivers/scsi/lpfc/lpfc_hbadisc.c ndlp->rport = rport = fc_remote_port_add(shost, 0, &rport_ids); rport 4162 drivers/scsi/lpfc/lpfc_hbadisc.c if (!rport || !get_device(&rport->dev)) { rport 4169 drivers/scsi/lpfc/lpfc_hbadisc.c rport->maxframe_size = ndlp->nlp_maxframe; rport 4170 drivers/scsi/lpfc/lpfc_hbadisc.c rport->supported_classes = ndlp->nlp_class_sup; rport 4171 drivers/scsi/lpfc/lpfc_hbadisc.c rdata = rport->dd_data; rport 4186 drivers/scsi/lpfc/lpfc_hbadisc.c fc_remote_port_rolechg(rport, rport_ids.roles); rport 4190 drivers/scsi/lpfc/lpfc_hbadisc.c ndlp->nlp_DID, rport, rport_ids.roles); rport 4192 drivers/scsi/lpfc/lpfc_hbadisc.c if ((rport->scsi_target_id != -1) && rport 4193 drivers/scsi/lpfc/lpfc_hbadisc.c (rport->scsi_target_id < LPFC_MAX_TARGET)) { rport 4194 drivers/scsi/lpfc/lpfc_hbadisc.c ndlp->nlp_sid = rport->scsi_target_id; rport 4202 drivers/scsi/lpfc/lpfc_hbadisc.c struct fc_rport *rport = ndlp->rport; rport 4214 drivers/scsi/lpfc/lpfc_hbadisc.c ndlp->nlp_DID, rport); rport 4216 drivers/scsi/lpfc/lpfc_hbadisc.c fc_remote_port_delete(rport); rport 4278 drivers/scsi/lpfc/lpfc_hbadisc.c if (ndlp->rport) { rport 4356 drivers/scsi/lpfc/lpfc_hbadisc.c (!ndlp->rport || rport 4357 drivers/scsi/lpfc/lpfc_hbadisc.c ndlp->rport->scsi_target_id == -1 || rport 4358 drivers/scsi/lpfc/lpfc_hbadisc.c ndlp->rport->scsi_target_id >= LPFC_MAX_TARGET)) { rport 5206 drivers/scsi/lpfc/lpfc_hbadisc.c struct fc_rport *rport; rport 5249 drivers/scsi/lpfc/lpfc_hbadisc.c if (ndlp->rport) { rport 5257 drivers/scsi/lpfc/lpfc_hbadisc.c ndlp, ndlp->nlp_DID, ndlp->rport); rport 5258 drivers/scsi/lpfc/lpfc_hbadisc.c rport = ndlp->rport; rport 5259 drivers/scsi/lpfc/lpfc_hbadisc.c rdata = rport->dd_data; rport 5261 drivers/scsi/lpfc/lpfc_hbadisc.c ndlp->rport = NULL; rport 5262 drivers/scsi/lpfc/lpfc_hbadisc.c put_device(&rport->dev); rport 6470 drivers/scsi/lpfc/lpfc_hbadisc.c if (NLP_CHK_NODE_ACT(ndlp) && ndlp->rport && rport 6471 drivers/scsi/lpfc/lpfc_hbadisc.c (ndlp->rport->roles & FC_RPORT_ROLE_FCP_TARGET)) { rport 781 drivers/scsi/lpfc/lpfc_nportdisc.c struct fc_rport *rport = ndlp->rport; rport 825 drivers/scsi/lpfc/lpfc_nportdisc.c if (rport) { rport 838 drivers/scsi/lpfc/lpfc_nportdisc.c fc_remote_port_rolechg(rport, roles); rport 318 drivers/scsi/lpfc/lpfc_nvme.c struct lpfc_nvme_rport *rport = remoteport->private; rport 322 drivers/scsi/lpfc/lpfc_nvme.c ndlp = rport->ndlp; rport 569 drivers/scsi/lpfc/lpfc_nvme.c struct lpfc_nvme_rport *rport; rport 588 drivers/scsi/lpfc/lpfc_nvme.c rport = (struct lpfc_nvme_rport *)pnvme_rport->private; rport 589 drivers/scsi/lpfc/lpfc_nvme.c if (unlikely(!lport) || unlikely(!rport)) rport 598 drivers/scsi/lpfc/lpfc_nvme.c ndlp = rport->ndlp; rport 1508 drivers/scsi/lpfc/lpfc_nvme.c struct lpfc_nvme_rport *rport; rport 1563 drivers/scsi/lpfc/lpfc_nvme.c rport = (struct lpfc_nvme_rport *)pnvme_rport->private; rport 1570 drivers/scsi/lpfc/lpfc_nvme.c ndlp = rport->ndlp; rport 1575 drivers/scsi/lpfc/lpfc_nvme.c rport, ndlp, pnvme_rport->port_id); rport 2348 drivers/scsi/lpfc/lpfc_nvme.c struct lpfc_nvme_rport *rport; rport 2405 drivers/scsi/lpfc/lpfc_nvme.c rport = remote_port->private; rport 2448 drivers/scsi/lpfc/lpfc_nvme.c rport->ndlp = NULL; rport 2449 drivers/scsi/lpfc/lpfc_nvme.c rport->remoteport = NULL; rport 2463 drivers/scsi/lpfc/lpfc_nvme.c rport->remoteport = remote_port; rport 2464 drivers/scsi/lpfc/lpfc_nvme.c rport->lport = lport; rport 2465 drivers/scsi/lpfc/lpfc_nvme.c rport->ndlp = ndlp; rport 2467 drivers/scsi/lpfc/lpfc_nvme.c ndlp->nrport = rport; rport 2475 drivers/scsi/lpfc/lpfc_nvme.c lport, remote_port, rport, rport 2559 drivers/scsi/lpfc/lpfc_nvme.c struct lpfc_nvme_rport *rport; rport 2575 drivers/scsi/lpfc/lpfc_nvme.c rport = lpfc_ndlp_get_nrport(ndlp); rport 2576 drivers/scsi/lpfc/lpfc_nvme.c if (rport) rport 2577 drivers/scsi/lpfc/lpfc_nvme.c remoteport = rport->remoteport; rport 2622 drivers/scsi/lpfc/lpfc_nvme.c vport->localport, ndlp->rport, ndlp->nlp_DID); rport 298 drivers/scsi/lpfc/lpfc_scsi.c struct fc_rport *rport; rport 306 drivers/scsi/lpfc/lpfc_scsi.c rport = starget_to_rport(scsi_target(sdev)); rport 307 drivers/scsi/lpfc/lpfc_scsi.c fc_remote_port_delete(rport); rport 4504 drivers/scsi/lpfc/lpfc_scsi.c struct fc_rport *rport = starget_to_rport(scsi_target(cmnd->device)); rport 4513 drivers/scsi/lpfc/lpfc_scsi.c if (unlikely(!rdata) || unlikely(!rport)) rport 4516 drivers/scsi/lpfc/lpfc_scsi.c err = fc_remote_port_chkready(rport); rport 5400 drivers/scsi/lpfc/lpfc_scsi.c ndlp->rport && rport 5501 drivers/scsi/lpfc/lpfc_scsi.c struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); rport 5510 drivers/scsi/lpfc/lpfc_scsi.c if (!rport || fc_remote_port_chkready(rport)) rport 5520 drivers/scsi/lpfc/lpfc_scsi.c u64_to_wwn(rport->port_name, target_wwpn.u.wwn); rport 5540 drivers/scsi/lpfc/lpfc_scsi.c device_data->rport_data = rport->dd_data; rport 5545 drivers/scsi/lpfc/lpfc_scsi.c sdev->hostdata = rport->dd_data; rport 207 drivers/scsi/qedf/qedf.h struct fc_rport *rport; rport 359 drivers/scsi/qedf/qedf_debugfs.c rdata->rport->node_name, rdata->rport->port_name, rport 38 drivers/scsi/qedf/qedf_els.c rc = fc_remote_port_chkready(fcport->rport); rport 946 drivers/scsi/qedf/qedf_io.c struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); rport 947 drivers/scsi/qedf/qedf_io.c struct fc_rport_libfc_priv *rp = rport->dd_data; rport 984 drivers/scsi/qedf/qedf_io.c rval = fc_remote_port_chkready(rport); rport 988 drivers/scsi/qedf/qedf_io.c rval, rport->port_id); rport 1616 drivers/scsi/qedf/qedf_io.c fcport->rdata->ids.port_id, fcport->rport->scsi_target_id); rport 2393 drivers/scsi/qedf/qedf_io.c struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); rport 2394 drivers/scsi/qedf/qedf_io.c struct fc_rport_libfc_priv *rp = rport->dd_data; rport 2407 drivers/scsi/qedf/qedf_io.c rport->scsi_target_id, (int)sc_cmd->device->lun); rport 2426 drivers/scsi/qedf/qedf_io.c rval = fc_remote_port_chkready(rport); rport 650 drivers/scsi/qedf/qedf_main.c struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); rport 654 drivers/scsi/qedf/qedf_main.c struct fc_rport_libfc_priv *rp = rport->dd_data; rport 699 drivers/scsi/qedf/qedf_main.c if (fc_remote_port_chkready(rport)) { rport 1300 drivers/scsi/qedf/qedf_main.c port_id = fcport->rdata->rport->port_id; rport 1391 drivers/scsi/qedf/qedf_main.c struct fc_rport *rport = rdata->rport; rport 1403 drivers/scsi/qedf/qedf_main.c if (!rport) { rport 1408 drivers/scsi/qedf/qedf_main.c rp = rport->dd_data; rport 1430 drivers/scsi/qedf/qedf_main.c if (rport->port_id == FC_FID_DIR_SERV) { rport 1457 drivers/scsi/qedf/qedf_main.c fcport->rport = rport; rport 1503 drivers/scsi/qedf/qedf_main.c if (!rport) { rport 1508 drivers/scsi/qedf/qedf_main.c rp = rport->dd_data; rport 2469 drivers/scsi/qla2xxx/qla_attr.c if (fcport->rport && rport 2470 drivers/scsi/qla2xxx/qla_attr.c starget->id == fcport->rport->scsi_target_id) { rport 2488 drivers/scsi/qla2xxx/qla_attr.c if (fcport->rport && rport 2489 drivers/scsi/qla2xxx/qla_attr.c starget->id == fcport->rport->scsi_target_id) { rport 2507 drivers/scsi/qla2xxx/qla_attr.c if (fcport->rport && rport 2508 drivers/scsi/qla2xxx/qla_attr.c starget->id == fcport->rport->scsi_target_id) { rport 2519 drivers/scsi/qla2xxx/qla_attr.c qla2x00_set_rport_loss_tmo(struct fc_rport *rport, uint32_t timeout) rport 2521 drivers/scsi/qla2xxx/qla_attr.c rport->dev_loss_tmo = timeout ? timeout : 1; rport 2525 drivers/scsi/qla2xxx/qla_attr.c qla2x00_dev_loss_tmo_callbk(struct fc_rport *rport) rport 2527 drivers/scsi/qla2xxx/qla_attr.c struct Scsi_Host *host = rport_to_shost(rport); rport 2528 drivers/scsi/qla2xxx/qla_attr.c fc_port_t *fcport = *(fc_port_t **)rport->dd_data; rport 2543 drivers/scsi/qla2xxx/qla_attr.c fcport->rport = fcport->drport = NULL; rport 2544 drivers/scsi/qla2xxx/qla_attr.c *((fc_port_t **)rport->dd_data) = NULL; rport 2557 drivers/scsi/qla2xxx/qla_attr.c qla2x00_terminate_rport_io(struct fc_rport *rport) rport 2559 drivers/scsi/qla2xxx/qla_attr.c fc_port_t *fcport = *(fc_port_t **)rport->dd_data; rport 248 drivers/scsi/qla2xxx/qla_bsg.c struct fc_rport *rport; rport 260 drivers/scsi/qla2xxx/qla_bsg.c rport = fc_bsg_to_rport(bsg_job); rport 261 drivers/scsi/qla2xxx/qla_bsg.c fcport = *(fc_port_t **) rport->dd_data; rport 262 drivers/scsi/qla2xxx/qla_bsg.c host = rport_to_shost(rport); rport 2519 drivers/scsi/qla2xxx/qla_bsg.c struct fc_rport *rport; rport 2527 drivers/scsi/qla2xxx/qla_bsg.c rport = fc_bsg_to_rport(bsg_job); rport 2528 drivers/scsi/qla2xxx/qla_bsg.c host = rport_to_shost(rport); rport 2451 drivers/scsi/qla2xxx/qla_def.h struct fc_rport *rport, *drport; rport 4786 drivers/scsi/qla2xxx/qla_init.c struct fc_rport *rport; rport 4790 drivers/scsi/qla2xxx/qla_init.c rport = fcport->drport ? fcport->drport : fcport->rport; rport 4793 drivers/scsi/qla2xxx/qla_init.c if (rport) { rport 4796 drivers/scsi/qla2xxx/qla_init.c __func__, fcport->port_name, rport, rport 4797 drivers/scsi/qla2xxx/qla_init.c rport->roles); rport 4799 drivers/scsi/qla2xxx/qla_init.c fc_remote_port_delete(rport); rport 5328 drivers/scsi/qla2xxx/qla_init.c struct fc_rport *rport; rport 5339 drivers/scsi/qla2xxx/qla_init.c fcport->rport = rport = fc_remote_port_add(vha->host, 0, &rport_ids); rport 5340 drivers/scsi/qla2xxx/qla_init.c if (!rport) { rport 5347 drivers/scsi/qla2xxx/qla_init.c *((fc_port_t **)rport->dd_data) = fcport; rport 5350 drivers/scsi/qla2xxx/qla_init.c rport->supported_classes = fcport->supported_classes; rport 5366 drivers/scsi/qla2xxx/qla_init.c __func__, fcport->port_name, rport, rport 5370 drivers/scsi/qla2xxx/qla_init.c fc_remote_port_rolechg(rport, rport_ids.roles); rport 17 drivers/scsi/qla2xxx/qla_nvme.c struct qla_nvme_rport *rport; rport 72 drivers/scsi/qla2xxx/qla_nvme.c rport = fcport->nvme_remote_port->private; rport 73 drivers/scsi/qla2xxx/qla_nvme.c rport->fcport = fcport; rport 246 drivers/scsi/qla2xxx/qla_nvme.c struct nvme_fc_remote_port *rport, struct nvmefc_ls_req *fd) rport 268 drivers/scsi/qla2xxx/qla_nvme.c struct nvme_fc_remote_port *rport, struct nvmefc_ls_req *fd) rport 270 drivers/scsi/qla2xxx/qla_nvme.c struct qla_nvme_rport *qla_rport = rport->private; rport 331 drivers/scsi/qla2xxx/qla_nvme.c struct nvme_fc_remote_port *rport, void *hw_queue_handle, rport 526 drivers/scsi/qla2xxx/qla_nvme.c struct nvme_fc_remote_port *rport, void *hw_queue_handle, rport 536 drivers/scsi/qla2xxx/qla_nvme.c struct qla_nvme_rport *qla_rport = rport->private; rport 597 drivers/scsi/qla2xxx/qla_nvme.c static void qla_nvme_remoteport_delete(struct nvme_fc_remote_port *rport) rport 600 drivers/scsi/qla2xxx/qla_nvme.c struct qla_nvme_rport *qla_rport = rport->private; rport 805 drivers/scsi/qla2xxx/qla_os.c struct fc_rport *rport = starget_to_rport(scsi_target(cmd->device)); rport 812 drivers/scsi/qla2xxx/qla_os.c WARN_ON_ONCE(!rport)) { rport 844 drivers/scsi/qla2xxx/qla_os.c rval = fc_remote_port_chkready(rport); rport 929 drivers/scsi/qla2xxx/qla_os.c struct fc_rport *rport = starget_to_rport(scsi_target(cmd->device)); rport 935 drivers/scsi/qla2xxx/qla_os.c rval = rport ? fc_remote_port_chkready(rport) : FC_PORTSTATE_OFFLINE; rport 1819 drivers/scsi/qla2xxx/qla_os.c struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); rport 1821 drivers/scsi/qla2xxx/qla_os.c if (!rport || fc_remote_port_chkready(rport)) rport 1824 drivers/scsi/qla2xxx/qla_os.c sdev->hostdata = *(fc_port_t **)rport->dd_data; rport 3838 drivers/scsi/qla2xxx/qla_os.c struct fc_rport *rport; rport 3842 drivers/scsi/qla2xxx/qla_os.c if (!fcport->rport) rport 3845 drivers/scsi/qla2xxx/qla_os.c rport = fcport->rport; rport 3849 drivers/scsi/qla2xxx/qla_os.c fcport->drport = rport; rport 3857 drivers/scsi/qla2xxx/qla_os.c if (rport) { rport 3860 drivers/scsi/qla2xxx/qla_os.c __func__, fcport->port_name, rport, rport 3861 drivers/scsi/qla2xxx/qla_os.c rport->roles); rport 3862 drivers/scsi/qla2xxx/qla_os.c fc_remote_port_delete(rport); rport 349 drivers/scsi/scsi_transport_fc.c struct fc_rport *rport = starget_to_rport(starget); rport 356 drivers/scsi/scsi_transport_fc.c if (rport) { rport 357 drivers/scsi/scsi_transport_fc.c fc_starget_node_name(starget) = rport->node_name; rport 358 drivers/scsi/scsi_transport_fc.c fc_starget_port_name(starget) = rport->port_name; rport 359 drivers/scsi/scsi_transport_fc.c fc_starget_port_id(starget) = rport->port_id; rport 694 drivers/scsi/scsi_transport_fc.c struct fc_rport *rport = transport_class_to_rport(dev); \ rport 695 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = rport_to_shost(rport); \ rport 698 drivers/scsi/scsi_transport_fc.c !((rport->port_state == FC_PORTSTATE_BLOCKED) || \ rport 699 drivers/scsi/scsi_transport_fc.c (rport->port_state == FC_PORTSTATE_DELETED) || \ rport 700 drivers/scsi/scsi_transport_fc.c (rport->port_state == FC_PORTSTATE_NOTPRESENT))) \ rport 701 drivers/scsi/scsi_transport_fc.c i->f->get_rport_##field(rport); \ rport 702 drivers/scsi/scsi_transport_fc.c return snprintf(buf, sz, format_string, cast rport->field); \ rport 712 drivers/scsi/scsi_transport_fc.c struct fc_rport *rport = transport_class_to_rport(dev); \ rport 713 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = rport_to_shost(rport); \ rport 716 drivers/scsi/scsi_transport_fc.c if ((rport->port_state == FC_PORTSTATE_BLOCKED) || \ rport 717 drivers/scsi/scsi_transport_fc.c (rport->port_state == FC_PORTSTATE_DELETED) || \ rport 718 drivers/scsi/scsi_transport_fc.c (rport->port_state == FC_PORTSTATE_NOTPRESENT)) \ rport 723 drivers/scsi/scsi_transport_fc.c i->f->set_rport_##field(rport, val); \ rport 729 drivers/scsi/scsi_transport_fc.c static FC_DEVICE_ATTR(rport, field, S_IRUGO, \ rport 734 drivers/scsi/scsi_transport_fc.c static FC_DEVICE_ATTR(rport, field, S_IRUGO, \ rport 740 drivers/scsi/scsi_transport_fc.c static FC_DEVICE_ATTR(rport, field, S_IRUGO | S_IWUSR, \ rport 750 drivers/scsi/scsi_transport_fc.c struct fc_rport *rport = transport_class_to_rport(dev); \ rport 751 drivers/scsi/scsi_transport_fc.c return snprintf(buf, sz, format_string, cast rport->field); \ rport 756 drivers/scsi/scsi_transport_fc.c static FC_DEVICE_ATTR(rport, field, S_IRUGO, \ rport 761 drivers/scsi/scsi_transport_fc.c static FC_DEVICE_ATTR(rport, field, S_IRUGO, \ rport 770 drivers/scsi/scsi_transport_fc.c struct fc_rport *rport = transport_class_to_rport(dev); \ rport 772 drivers/scsi/scsi_transport_fc.c name = get_fc_##title##_name(rport->title); \ rport 777 drivers/scsi/scsi_transport_fc.c static FC_DEVICE_ATTR(rport, title, S_IRUGO, \ rport 824 drivers/scsi/scsi_transport_fc.c struct fc_rport *rport = transport_class_to_rport(dev); rport 825 drivers/scsi/scsi_transport_fc.c if (rport->supported_classes == FC_COS_UNSPECIFIED) rport 827 drivers/scsi/scsi_transport_fc.c return get_fc_cos_names(rport->supported_classes, buf); rport 829 drivers/scsi/scsi_transport_fc.c static FC_DEVICE_ATTR(rport, supported_classes, S_IRUGO, rport 853 drivers/scsi/scsi_transport_fc.c static int fc_rport_set_dev_loss_tmo(struct fc_rport *rport, rport 856 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = rport_to_shost(rport); rport 859 drivers/scsi/scsi_transport_fc.c if ((rport->port_state == FC_PORTSTATE_BLOCKED) || rport 860 drivers/scsi/scsi_transport_fc.c (rport->port_state == FC_PORTSTATE_DELETED) || rport 861 drivers/scsi/scsi_transport_fc.c (rport->port_state == FC_PORTSTATE_NOTPRESENT)) rport 873 drivers/scsi/scsi_transport_fc.c if (rport->fast_io_fail_tmo == -1 && rport 877 drivers/scsi/scsi_transport_fc.c i->f->set_rport_dev_loss_tmo(rport, val); rport 886 drivers/scsi/scsi_transport_fc.c struct fc_rport *rport = transport_class_to_rport(dev); rport 894 drivers/scsi/scsi_transport_fc.c rc = fc_rport_set_dev_loss_tmo(rport, val); rport 899 drivers/scsi/scsi_transport_fc.c static FC_DEVICE_ATTR(rport, dev_loss_tmo, S_IRUGO | S_IWUSR, rport 913 drivers/scsi/scsi_transport_fc.c struct fc_rport *rport = transport_class_to_rport(dev); rport 916 drivers/scsi/scsi_transport_fc.c if ((rport->port_id != -1) && rport 917 drivers/scsi/scsi_transport_fc.c (rport->port_id & FC_WELLKNOWN_PORTID_MASK) == rport 919 drivers/scsi/scsi_transport_fc.c switch (rport->port_id & FC_WELLKNOWN_ROLE_MASK) { rport 934 drivers/scsi/scsi_transport_fc.c if (rport->roles == FC_PORT_ROLE_UNKNOWN) rport 936 drivers/scsi/scsi_transport_fc.c return get_fc_port_roles_names(rport->roles, buf); rport 939 drivers/scsi/scsi_transport_fc.c static FC_DEVICE_ATTR(rport, roles, S_IRUGO, rport 952 drivers/scsi/scsi_transport_fc.c struct fc_rport *rport = transport_class_to_rport(dev); rport 954 drivers/scsi/scsi_transport_fc.c if (rport->fast_io_fail_tmo == -1) rport 956 drivers/scsi/scsi_transport_fc.c return snprintf(buf, 20, "%d\n", rport->fast_io_fail_tmo); rport 966 drivers/scsi/scsi_transport_fc.c struct fc_rport *rport = transport_class_to_rport(dev); rport 968 drivers/scsi/scsi_transport_fc.c if ((rport->port_state == FC_PORTSTATE_BLOCKED) || rport 969 drivers/scsi/scsi_transport_fc.c (rport->port_state == FC_PORTSTATE_DELETED) || rport 970 drivers/scsi/scsi_transport_fc.c (rport->port_state == FC_PORTSTATE_NOTPRESENT)) rport 973 drivers/scsi/scsi_transport_fc.c rport->fast_io_fail_tmo = -1; rport 982 drivers/scsi/scsi_transport_fc.c if ((val >= rport->dev_loss_tmo) || rport 986 drivers/scsi/scsi_transport_fc.c rport->fast_io_fail_tmo = val; rport 990 drivers/scsi/scsi_transport_fc.c static FC_DEVICE_ATTR(rport, fast_io_fail_tmo, S_IRUGO | S_IWUSR, rport 1012 drivers/scsi/scsi_transport_fc.c struct fc_rport *rport = starget_to_rport(starget); \ rport 1013 drivers/scsi/scsi_transport_fc.c if (rport) \ rport 1014 drivers/scsi/scsi_transport_fc.c fc_starget_##field(starget) = rport->field; \ rport 1601 drivers/scsi/scsi_transport_fc.c struct fc_rport *rport; rport 1612 drivers/scsi/scsi_transport_fc.c get_list_head_entry(rport, rport 1614 drivers/scsi/scsi_transport_fc.c list_del(&rport->peers); rport 1615 drivers/scsi/scsi_transport_fc.c rport->port_state = FC_PORTSTATE_DELETED; rport 1616 drivers/scsi/scsi_transport_fc.c fc_queue_work(shost, &rport->rport_delete_work); rport 1656 drivers/scsi/scsi_transport_fc.c struct fc_rport *rport; rport 1666 drivers/scsi/scsi_transport_fc.c list_for_each_entry(rport, &fc_host->rports, peers) rport 1667 drivers/scsi/scsi_transport_fc.c fc_rport_set_dev_loss_tmo(rport, val); rport 1982 drivers/scsi/scsi_transport_fc.c struct fc_rport *rport = dev_to_rport(dev); rport 1984 drivers/scsi/scsi_transport_fc.c kfree(rport); rport 2071 drivers/scsi/scsi_transport_fc.c struct fc_rport *rport = starget_to_rport(scsi_target(scmd->device)); rport 2073 drivers/scsi/scsi_transport_fc.c if (rport->port_state == FC_PORTSTATE_BLOCKED) rport 2088 drivers/scsi/scsi_transport_fc.c struct fc_rport *rport; rport 2093 drivers/scsi/scsi_transport_fc.c list_for_each_entry(rport, &fc_host_rports(shost), peers) { rport 2094 drivers/scsi/scsi_transport_fc.c if (rport->scsi_target_id == -1) rport 2097 drivers/scsi/scsi_transport_fc.c if (rport->port_state != FC_PORTSTATE_ONLINE) rport 2100 drivers/scsi/scsi_transport_fc.c if ((channel == rport->channel) && rport 2101 drivers/scsi/scsi_transport_fc.c (id == rport->scsi_target_id)) { rport 2103 drivers/scsi/scsi_transport_fc.c scsi_scan_target(&rport->dev, channel, id, lun, rport 2413 drivers/scsi/scsi_transport_fc.c struct fc_rport *rport = NULL, *next_rport = NULL; rport 2427 drivers/scsi/scsi_transport_fc.c list_for_each_entry_safe(rport, next_rport, rport 2429 drivers/scsi/scsi_transport_fc.c list_del(&rport->peers); rport 2430 drivers/scsi/scsi_transport_fc.c rport->port_state = FC_PORTSTATE_DELETED; rport 2431 drivers/scsi/scsi_transport_fc.c fc_queue_work(shost, &rport->rport_delete_work); rport 2434 drivers/scsi/scsi_transport_fc.c list_for_each_entry_safe(rport, next_rport, rport 2436 drivers/scsi/scsi_transport_fc.c list_del(&rport->peers); rport 2437 drivers/scsi/scsi_transport_fc.c rport->port_state = FC_PORTSTATE_DELETED; rport 2438 drivers/scsi/scsi_transport_fc.c fc_queue_work(shost, &rport->rport_delete_work); rport 2462 drivers/scsi/scsi_transport_fc.c static void fc_terminate_rport_io(struct fc_rport *rport) rport 2464 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = rport_to_shost(rport); rport 2469 drivers/scsi/scsi_transport_fc.c i->f->terminate_rport_io(rport); rport 2474 drivers/scsi/scsi_transport_fc.c scsi_target_unblock(&rport->dev, SDEV_TRANSPORT_OFFLINE); rport 2486 drivers/scsi/scsi_transport_fc.c struct fc_rport *rport = rport 2489 drivers/scsi/scsi_transport_fc.c fc_terminate_rport_io(rport); rport 2490 drivers/scsi/scsi_transport_fc.c scsi_remove_target(&rport->dev); rport 2501 drivers/scsi/scsi_transport_fc.c struct fc_rport *rport = rport 2503 drivers/scsi/scsi_transport_fc.c struct device *dev = &rport->dev; rport 2504 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = rport_to_shost(rport); rport 2509 drivers/scsi/scsi_transport_fc.c fc_terminate_rport_io(rport); rport 2515 drivers/scsi/scsi_transport_fc.c if (rport->flags & FC_RPORT_SCAN_PENDING) rport 2524 drivers/scsi/scsi_transport_fc.c if (rport->flags & FC_RPORT_DEVLOSS_PENDING) { rport 2526 drivers/scsi/scsi_transport_fc.c if (!cancel_delayed_work(&rport->fail_io_work)) rport 2528 drivers/scsi/scsi_transport_fc.c if (!cancel_delayed_work(&rport->dev_loss_work)) rport 2530 drivers/scsi/scsi_transport_fc.c cancel_work_sync(&rport->scan_work); rport 2532 drivers/scsi/scsi_transport_fc.c rport->flags &= ~FC_RPORT_DEVLOSS_PENDING; rport 2537 drivers/scsi/scsi_transport_fc.c if (rport->scsi_target_id != -1) rport 2538 drivers/scsi/scsi_transport_fc.c fc_starget_delete(&rport->stgt_delete_work); rport 2548 drivers/scsi/scsi_transport_fc.c if (!(rport->flags & FC_RPORT_DEVLOSS_CALLBK_DONE) && rport 2550 drivers/scsi/scsi_transport_fc.c rport->flags |= FC_RPORT_DEVLOSS_CALLBK_DONE; rport 2556 drivers/scsi/scsi_transport_fc.c i->f->dev_loss_tmo_callbk(rport); rport 2558 drivers/scsi/scsi_transport_fc.c fc_bsg_remove(rport->rqst_q); rport 2587 drivers/scsi/scsi_transport_fc.c struct fc_rport *rport; rport 2594 drivers/scsi/scsi_transport_fc.c rport = kzalloc(size, GFP_KERNEL); rport 2595 drivers/scsi/scsi_transport_fc.c if (unlikely(!rport)) { rport 2600 drivers/scsi/scsi_transport_fc.c rport->maxframe_size = -1; rport 2601 drivers/scsi/scsi_transport_fc.c rport->supported_classes = FC_COS_UNSPECIFIED; rport 2602 drivers/scsi/scsi_transport_fc.c rport->dev_loss_tmo = fc_host->dev_loss_tmo; rport 2603 drivers/scsi/scsi_transport_fc.c memcpy(&rport->node_name, &ids->node_name, sizeof(rport->node_name)); rport 2604 drivers/scsi/scsi_transport_fc.c memcpy(&rport->port_name, &ids->port_name, sizeof(rport->port_name)); rport 2605 drivers/scsi/scsi_transport_fc.c rport->port_id = ids->port_id; rport 2606 drivers/scsi/scsi_transport_fc.c rport->roles = ids->roles; rport 2607 drivers/scsi/scsi_transport_fc.c rport->port_state = FC_PORTSTATE_ONLINE; rport 2609 drivers/scsi/scsi_transport_fc.c rport->dd_data = &rport[1]; rport 2610 drivers/scsi/scsi_transport_fc.c rport->channel = channel; rport 2611 drivers/scsi/scsi_transport_fc.c rport->fast_io_fail_tmo = -1; rport 2613 drivers/scsi/scsi_transport_fc.c INIT_DELAYED_WORK(&rport->dev_loss_work, fc_timeout_deleted_rport); rport 2614 drivers/scsi/scsi_transport_fc.c INIT_DELAYED_WORK(&rport->fail_io_work, fc_timeout_fail_rport_io); rport 2615 drivers/scsi/scsi_transport_fc.c INIT_WORK(&rport->scan_work, fc_scsi_scan_rport); rport 2616 drivers/scsi/scsi_transport_fc.c INIT_WORK(&rport->stgt_delete_work, fc_starget_delete); rport 2617 drivers/scsi/scsi_transport_fc.c INIT_WORK(&rport->rport_delete_work, fc_rport_final_delete); rport 2621 drivers/scsi/scsi_transport_fc.c rport->number = fc_host->next_rport_number++; rport 2622 drivers/scsi/scsi_transport_fc.c if ((rport->roles & FC_PORT_ROLE_FCP_TARGET) || rport 2623 drivers/scsi/scsi_transport_fc.c (rport->roles & FC_PORT_ROLE_FCP_DUMMY_INITIATOR)) rport 2624 drivers/scsi/scsi_transport_fc.c rport->scsi_target_id = fc_host->next_target_id++; rport 2626 drivers/scsi/scsi_transport_fc.c rport->scsi_target_id = -1; rport 2627 drivers/scsi/scsi_transport_fc.c list_add_tail(&rport->peers, &fc_host->rports); rport 2632 drivers/scsi/scsi_transport_fc.c dev = &rport->dev; rport 2637 drivers/scsi/scsi_transport_fc.c shost->host_no, channel, rport->number); rport 2648 drivers/scsi/scsi_transport_fc.c fc_bsg_rportadd(shost, rport); rport 2651 drivers/scsi/scsi_transport_fc.c if (rport->roles & FC_PORT_ROLE_FCP_TARGET) { rport 2653 drivers/scsi/scsi_transport_fc.c rport->flags |= FC_RPORT_SCAN_PENDING; rport 2654 drivers/scsi/scsi_transport_fc.c scsi_queue_work(shost, &rport->scan_work); rport 2657 drivers/scsi/scsi_transport_fc.c return rport; rport 2662 drivers/scsi/scsi_transport_fc.c list_del(&rport->peers); rport 2666 drivers/scsi/scsi_transport_fc.c kfree(rport); rport 2714 drivers/scsi/scsi_transport_fc.c struct fc_rport *rport; rport 2728 drivers/scsi/scsi_transport_fc.c list_for_each_entry(rport, &fc_host->rports, peers) { rport 2730 drivers/scsi/scsi_transport_fc.c if ((rport->port_state == FC_PORTSTATE_BLOCKED || rport 2731 drivers/scsi/scsi_transport_fc.c rport->port_state == FC_PORTSTATE_NOTPRESENT) && rport 2732 drivers/scsi/scsi_transport_fc.c (rport->channel == channel)) { rport 2737 drivers/scsi/scsi_transport_fc.c if (rport->port_name == ids->port_name) rport 2741 drivers/scsi/scsi_transport_fc.c if (rport->node_name == ids->node_name) rport 2745 drivers/scsi/scsi_transport_fc.c if (rport->port_id == ids->port_id) rport 2752 drivers/scsi/scsi_transport_fc.c memcpy(&rport->node_name, &ids->node_name, rport 2753 drivers/scsi/scsi_transport_fc.c sizeof(rport->node_name)); rport 2754 drivers/scsi/scsi_transport_fc.c memcpy(&rport->port_name, &ids->port_name, rport 2755 drivers/scsi/scsi_transport_fc.c sizeof(rport->port_name)); rport 2756 drivers/scsi/scsi_transport_fc.c rport->port_id = ids->port_id; rport 2758 drivers/scsi/scsi_transport_fc.c rport->port_state = FC_PORTSTATE_ONLINE; rport 2759 drivers/scsi/scsi_transport_fc.c rport->roles = ids->roles; rport 2764 drivers/scsi/scsi_transport_fc.c memset(rport->dd_data, 0, rport 2784 drivers/scsi/scsi_transport_fc.c if ((rport->scsi_target_id != -1) && rport 2786 drivers/scsi/scsi_transport_fc.c return rport; rport 2793 drivers/scsi/scsi_transport_fc.c if (!cancel_delayed_work(&rport->fail_io_work)) rport 2795 drivers/scsi/scsi_transport_fc.c if (!cancel_delayed_work(&rport->dev_loss_work)) rport 2800 drivers/scsi/scsi_transport_fc.c rport->flags &= ~(FC_RPORT_FAST_FAIL_TIMEDOUT | rport 2807 drivers/scsi/scsi_transport_fc.c if (rport->scsi_target_id != -1) { rport 2808 drivers/scsi/scsi_transport_fc.c scsi_target_unblock(&rport->dev, rport 2812 drivers/scsi/scsi_transport_fc.c rport->flags |= FC_RPORT_SCAN_PENDING; rport 2814 drivers/scsi/scsi_transport_fc.c &rport->scan_work); rport 2819 drivers/scsi/scsi_transport_fc.c fc_bsg_goose_queue(rport); rport 2821 drivers/scsi/scsi_transport_fc.c return rport; rport 2834 drivers/scsi/scsi_transport_fc.c list_for_each_entry(rport, &fc_host->rport_bindings, rport 2836 drivers/scsi/scsi_transport_fc.c if (rport->channel != channel) rport 2841 drivers/scsi/scsi_transport_fc.c if (rport->port_name == ids->port_name) rport 2845 drivers/scsi/scsi_transport_fc.c if (rport->node_name == ids->node_name) rport 2849 drivers/scsi/scsi_transport_fc.c if (rport->port_id == ids->port_id) rport 2857 drivers/scsi/scsi_transport_fc.c list_move_tail(&rport->peers, &fc_host->rports); rport 2863 drivers/scsi/scsi_transport_fc.c memcpy(&rport->node_name, &ids->node_name, rport 2864 drivers/scsi/scsi_transport_fc.c sizeof(rport->node_name)); rport 2865 drivers/scsi/scsi_transport_fc.c memcpy(&rport->port_name, &ids->port_name, rport 2866 drivers/scsi/scsi_transport_fc.c sizeof(rport->port_name)); rport 2867 drivers/scsi/scsi_transport_fc.c rport->port_id = ids->port_id; rport 2868 drivers/scsi/scsi_transport_fc.c rport->port_state = FC_PORTSTATE_ONLINE; rport 2869 drivers/scsi/scsi_transport_fc.c rport->flags &= ~FC_RPORT_FAST_FAIL_TIMEDOUT; rport 2872 drivers/scsi/scsi_transport_fc.c memset(rport->dd_data, 0, rport 2876 drivers/scsi/scsi_transport_fc.c fc_remote_port_rolechg(rport, ids->roles); rport 2877 drivers/scsi/scsi_transport_fc.c return rport; rport 2884 drivers/scsi/scsi_transport_fc.c rport = fc_remote_port_create(shost, channel, ids); rport 2886 drivers/scsi/scsi_transport_fc.c return rport; rport 2944 drivers/scsi/scsi_transport_fc.c fc_remote_port_delete(struct fc_rport *rport) rport 2946 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = rport_to_shost(rport); rport 2947 drivers/scsi/scsi_transport_fc.c unsigned long timeout = rport->dev_loss_tmo; rport 2960 drivers/scsi/scsi_transport_fc.c if (rport->port_state != FC_PORTSTATE_ONLINE) { rport 2978 drivers/scsi/scsi_transport_fc.c rport->port_state = FC_PORTSTATE_BLOCKED; rport 2980 drivers/scsi/scsi_transport_fc.c rport->flags |= FC_RPORT_DEVLOSS_PENDING; rport 2984 drivers/scsi/scsi_transport_fc.c scsi_target_block(&rport->dev); rport 2987 drivers/scsi/scsi_transport_fc.c if ((rport->fast_io_fail_tmo != -1) && rport 2988 drivers/scsi/scsi_transport_fc.c (rport->fast_io_fail_tmo < timeout)) rport 2989 drivers/scsi/scsi_transport_fc.c fc_queue_devloss_work(shost, &rport->fail_io_work, rport 2990 drivers/scsi/scsi_transport_fc.c rport->fast_io_fail_tmo * HZ); rport 2993 drivers/scsi/scsi_transport_fc.c fc_queue_devloss_work(shost, &rport->dev_loss_work, timeout * HZ); rport 3018 drivers/scsi/scsi_transport_fc.c fc_remote_port_rolechg(struct fc_rport *rport, u32 roles) rport 3020 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = rport_to_shost(rport); rport 3027 drivers/scsi/scsi_transport_fc.c if (rport->scsi_target_id == -1) { rport 3028 drivers/scsi/scsi_transport_fc.c rport->scsi_target_id = fc_host->next_target_id++; rport 3030 drivers/scsi/scsi_transport_fc.c } else if (!(rport->roles & FC_PORT_ROLE_FCP_TARGET)) rport 3034 drivers/scsi/scsi_transport_fc.c rport->roles = roles; rport 3051 drivers/scsi/scsi_transport_fc.c if (!cancel_delayed_work(&rport->fail_io_work)) rport 3053 drivers/scsi/scsi_transport_fc.c if (!cancel_delayed_work(&rport->dev_loss_work)) rport 3057 drivers/scsi/scsi_transport_fc.c rport->flags &= ~(FC_RPORT_FAST_FAIL_TIMEDOUT | rport 3065 drivers/scsi/scsi_transport_fc.c scsi_target_unblock(&rport->dev, SDEV_RUNNING); rport 3068 drivers/scsi/scsi_transport_fc.c rport->flags |= FC_RPORT_SCAN_PENDING; rport 3069 drivers/scsi/scsi_transport_fc.c scsi_queue_work(shost, &rport->scan_work); rport 3085 drivers/scsi/scsi_transport_fc.c struct fc_rport *rport = rport 3087 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = rport_to_shost(rport); rport 3095 drivers/scsi/scsi_transport_fc.c rport->flags &= ~FC_RPORT_DEVLOSS_PENDING; rport 3102 drivers/scsi/scsi_transport_fc.c if ((rport->port_state == FC_PORTSTATE_ONLINE) && rport 3103 drivers/scsi/scsi_transport_fc.c (rport->scsi_target_id != -1) && rport 3104 drivers/scsi/scsi_transport_fc.c !(rport->roles & FC_PORT_ROLE_FCP_TARGET)) { rport 3105 drivers/scsi/scsi_transport_fc.c dev_printk(KERN_ERR, &rport->dev, rport 3109 drivers/scsi/scsi_transport_fc.c scsi_target_unblock(&rport->dev, SDEV_TRANSPORT_OFFLINE); rport 3110 drivers/scsi/scsi_transport_fc.c fc_queue_work(shost, &rport->stgt_delete_work); rport 3115 drivers/scsi/scsi_transport_fc.c if (rport->port_state != FC_PORTSTATE_BLOCKED) { rport 3117 drivers/scsi/scsi_transport_fc.c dev_printk(KERN_ERR, &rport->dev, rport 3120 drivers/scsi/scsi_transport_fc.c (rport->scsi_target_id != -1) ? " and starget" : ""); rport 3125 drivers/scsi/scsi_transport_fc.c (rport->scsi_target_id == -1)) { rport 3126 drivers/scsi/scsi_transport_fc.c list_del(&rport->peers); rport 3127 drivers/scsi/scsi_transport_fc.c rport->port_state = FC_PORTSTATE_DELETED; rport 3128 drivers/scsi/scsi_transport_fc.c dev_printk(KERN_ERR, &rport->dev, rport 3131 drivers/scsi/scsi_transport_fc.c (rport->scsi_target_id != -1) ? " and starget" : ""); rport 3132 drivers/scsi/scsi_transport_fc.c fc_queue_work(shost, &rport->rport_delete_work); rport 3137 drivers/scsi/scsi_transport_fc.c dev_printk(KERN_ERR, &rport->dev, rport 3141 drivers/scsi/scsi_transport_fc.c list_move_tail(&rport->peers, &fc_host->rport_bindings); rport 3152 drivers/scsi/scsi_transport_fc.c rport->maxframe_size = -1; rport 3153 drivers/scsi/scsi_transport_fc.c rport->supported_classes = FC_COS_UNSPECIFIED; rport 3154 drivers/scsi/scsi_transport_fc.c rport->roles = FC_PORT_ROLE_UNKNOWN; rport 3155 drivers/scsi/scsi_transport_fc.c rport->port_state = FC_PORTSTATE_NOTPRESENT; rport 3156 drivers/scsi/scsi_transport_fc.c rport->flags &= ~FC_RPORT_FAST_FAIL_TIMEDOUT; rport 3164 drivers/scsi/scsi_transport_fc.c fc_terminate_rport_io(rport); rport 3168 drivers/scsi/scsi_transport_fc.c if (rport->port_state == FC_PORTSTATE_NOTPRESENT) { /* still missing */ rport 3173 drivers/scsi/scsi_transport_fc.c rport->node_name = -1; rport 3174 drivers/scsi/scsi_transport_fc.c rport->port_id = -1; rport 3177 drivers/scsi/scsi_transport_fc.c rport->port_name = -1; rport 3178 drivers/scsi/scsi_transport_fc.c rport->port_id = -1; rport 3181 drivers/scsi/scsi_transport_fc.c rport->node_name = -1; rport 3182 drivers/scsi/scsi_transport_fc.c rport->port_name = -1; rport 3193 drivers/scsi/scsi_transport_fc.c rport->flags |= FC_RPORT_DEVLOSS_CALLBK_DONE; rport 3194 drivers/scsi/scsi_transport_fc.c fc_queue_work(shost, &rport->stgt_delete_work); rport 3208 drivers/scsi/scsi_transport_fc.c i->f->dev_loss_tmo_callbk(rport); rport 3222 drivers/scsi/scsi_transport_fc.c struct fc_rport *rport = rport 3225 drivers/scsi/scsi_transport_fc.c if (rport->port_state != FC_PORTSTATE_BLOCKED) rport 3228 drivers/scsi/scsi_transport_fc.c rport->flags |= FC_RPORT_FAST_FAIL_TIMEDOUT; rport 3229 drivers/scsi/scsi_transport_fc.c fc_terminate_rport_io(rport); rport 3239 drivers/scsi/scsi_transport_fc.c struct fc_rport *rport = rport 3241 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = rport_to_shost(rport); rport 3245 drivers/scsi/scsi_transport_fc.c if ((rport->port_state == FC_PORTSTATE_ONLINE) && rport 3246 drivers/scsi/scsi_transport_fc.c (rport->roles & FC_PORT_ROLE_FCP_TARGET) && rport 3248 drivers/scsi/scsi_transport_fc.c scsi_scan_target(&rport->dev, rport->channel, rport 3249 drivers/scsi/scsi_transport_fc.c rport->scsi_target_id, SCAN_WILD_CARD, rport 3254 drivers/scsi/scsi_transport_fc.c rport->flags &= ~FC_RPORT_SCAN_PENDING; rport 3272 drivers/scsi/scsi_transport_fc.c int fc_block_rport(struct fc_rport *rport) rport 3274 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = rport_to_shost(rport); rport 3278 drivers/scsi/scsi_transport_fc.c while (rport->port_state == FC_PORTSTATE_BLOCKED && rport 3279 drivers/scsi/scsi_transport_fc.c !(rport->flags & FC_RPORT_FAST_FAIL_TIMEDOUT)) { rport 3286 drivers/scsi/scsi_transport_fc.c if (rport->flags & FC_RPORT_FAST_FAIL_TIMEDOUT) rport 3309 drivers/scsi/scsi_transport_fc.c struct fc_rport *rport = starget_to_rport(scsi_target(cmnd->device)); rport 3311 drivers/scsi/scsi_transport_fc.c if (WARN_ON_ONCE(!rport)) rport 3314 drivers/scsi/scsi_transport_fc.c return fc_block_rport(rport); rport 3559 drivers/scsi/scsi_transport_fc.c struct fc_rport *rport = fc_bsg_to_rport(job); rport 3563 drivers/scsi/scsi_transport_fc.c if (rport && rport->port_state == FC_PORTSTATE_BLOCKED) rport 3670 drivers/scsi/scsi_transport_fc.c fc_bsg_goose_queue(struct fc_rport *rport) rport 3672 drivers/scsi/scsi_transport_fc.c struct request_queue *q = rport->rqst_q; rport 3743 drivers/scsi/scsi_transport_fc.c static blk_status_t fc_bsg_rport_prep(struct fc_rport *rport) rport 3745 drivers/scsi/scsi_transport_fc.c if (rport->port_state == FC_PORTSTATE_BLOCKED && rport 3746 drivers/scsi/scsi_transport_fc.c !(rport->flags & FC_RPORT_FAST_FAIL_TIMEDOUT)) rport 3749 drivers/scsi/scsi_transport_fc.c if (rport->port_state != FC_PORTSTATE_ONLINE) rport 3758 drivers/scsi/scsi_transport_fc.c struct fc_rport *rport = fc_bsg_to_rport(job); rport 3761 drivers/scsi/scsi_transport_fc.c ret = fc_bsg_rport_prep(rport); rport 3815 drivers/scsi/scsi_transport_fc.c fc_bsg_rportadd(struct Scsi_Host *shost, struct fc_rport *rport) rport 3817 drivers/scsi/scsi_transport_fc.c struct device *dev = &rport->dev; rport 3821 drivers/scsi/scsi_transport_fc.c rport->rqst_q = NULL; rport 3834 drivers/scsi/scsi_transport_fc.c rport->rqst_q = q; rport 124 drivers/scsi/scsi_transport_srp.c struct srp_rport *rport = transport_class_to_srp_rport(dev); rport 125 drivers/scsi/scsi_transport_srp.c return sprintf(buf, "%16phC\n", rport->port_id); rport 142 drivers/scsi/scsi_transport_srp.c struct srp_rport *rport = transport_class_to_srp_rport(dev); rport 147 drivers/scsi/scsi_transport_srp.c if (srp_rport_role_names[i].value == rport->roles) { rport 160 drivers/scsi/scsi_transport_srp.c struct srp_rport *rport = transport_class_to_srp_rport(dev); rport 165 drivers/scsi/scsi_transport_srp.c i->f->rport_delete(rport); rport 184 drivers/scsi/scsi_transport_srp.c struct srp_rport *rport = transport_class_to_srp_rport(dev); rport 185 drivers/scsi/scsi_transport_srp.c enum srp_rport_state state = rport->state; rport 215 drivers/scsi/scsi_transport_srp.c struct srp_rport *rport = transport_class_to_srp_rport(dev); rport 217 drivers/scsi/scsi_transport_srp.c return srp_show_tmo(buf, rport->reconnect_delay); rport 224 drivers/scsi/scsi_transport_srp.c struct srp_rport *rport = transport_class_to_srp_rport(dev); rport 230 drivers/scsi/scsi_transport_srp.c res = srp_tmo_valid(delay, rport->fast_io_fail_tmo, rport 231 drivers/scsi/scsi_transport_srp.c rport->dev_loss_tmo); rport 235 drivers/scsi/scsi_transport_srp.c if (rport->reconnect_delay <= 0 && delay > 0 && rport 236 drivers/scsi/scsi_transport_srp.c rport->state != SRP_RPORT_RUNNING) { rport 237 drivers/scsi/scsi_transport_srp.c queue_delayed_work(system_long_wq, &rport->reconnect_work, rport 240 drivers/scsi/scsi_transport_srp.c cancel_delayed_work(&rport->reconnect_work); rport 242 drivers/scsi/scsi_transport_srp.c rport->reconnect_delay = delay; rport 255 drivers/scsi/scsi_transport_srp.c struct srp_rport *rport = transport_class_to_srp_rport(dev); rport 257 drivers/scsi/scsi_transport_srp.c return sprintf(buf, "%d\n", rport->failed_reconnects); rport 266 drivers/scsi/scsi_transport_srp.c struct srp_rport *rport = transport_class_to_srp_rport(dev); rport 268 drivers/scsi/scsi_transport_srp.c return srp_show_tmo(buf, rport->fast_io_fail_tmo); rport 275 drivers/scsi/scsi_transport_srp.c struct srp_rport *rport = transport_class_to_srp_rport(dev); rport 282 drivers/scsi/scsi_transport_srp.c res = srp_tmo_valid(rport->reconnect_delay, fast_io_fail_tmo, rport 283 drivers/scsi/scsi_transport_srp.c rport->dev_loss_tmo); rport 286 drivers/scsi/scsi_transport_srp.c rport->fast_io_fail_tmo = fast_io_fail_tmo; rport 301 drivers/scsi/scsi_transport_srp.c struct srp_rport *rport = transport_class_to_srp_rport(dev); rport 303 drivers/scsi/scsi_transport_srp.c return srp_show_tmo(buf, rport->dev_loss_tmo); rport 310 drivers/scsi/scsi_transport_srp.c struct srp_rport *rport = transport_class_to_srp_rport(dev); rport 317 drivers/scsi/scsi_transport_srp.c res = srp_tmo_valid(rport->reconnect_delay, rport->fast_io_fail_tmo, rport 321 drivers/scsi/scsi_transport_srp.c rport->dev_loss_tmo = dev_loss_tmo; rport 332 drivers/scsi/scsi_transport_srp.c static int srp_rport_set_state(struct srp_rport *rport, rport 335 drivers/scsi/scsi_transport_srp.c enum srp_rport_state old_state = rport->state; rport 337 drivers/scsi/scsi_transport_srp.c lockdep_assert_held(&rport->mutex); rport 367 drivers/scsi/scsi_transport_srp.c rport->state = new_state; rport 380 drivers/scsi/scsi_transport_srp.c struct srp_rport *rport = container_of(to_delayed_work(work), rport 382 drivers/scsi/scsi_transport_srp.c struct Scsi_Host *shost = rport_to_shost(rport); rport 385 drivers/scsi/scsi_transport_srp.c res = srp_reconnect_rport(rport); rport 389 drivers/scsi/scsi_transport_srp.c ++rport->failed_reconnects, res); rport 390 drivers/scsi/scsi_transport_srp.c delay = rport->reconnect_delay * rport 391 drivers/scsi/scsi_transport_srp.c min(100, max(1, rport->failed_reconnects - 10)); rport 394 drivers/scsi/scsi_transport_srp.c &rport->reconnect_work, delay * HZ); rport 398 drivers/scsi/scsi_transport_srp.c static void __rport_fail_io_fast(struct srp_rport *rport) rport 400 drivers/scsi/scsi_transport_srp.c struct Scsi_Host *shost = rport_to_shost(rport); rport 403 drivers/scsi/scsi_transport_srp.c lockdep_assert_held(&rport->mutex); rport 405 drivers/scsi/scsi_transport_srp.c if (srp_rport_set_state(rport, SRP_RPORT_FAIL_FAST)) rport 411 drivers/scsi/scsi_transport_srp.c scsi_target_block(rport->dev.parent); rport 412 drivers/scsi/scsi_transport_srp.c scsi_target_unblock(rport->dev.parent, SDEV_TRANSPORT_OFFLINE); rport 417 drivers/scsi/scsi_transport_srp.c i->f->terminate_rport_io(rport); rport 426 drivers/scsi/scsi_transport_srp.c struct srp_rport *rport = container_of(to_delayed_work(work), rport 428 drivers/scsi/scsi_transport_srp.c struct Scsi_Host *shost = rport_to_shost(rport); rport 431 drivers/scsi/scsi_transport_srp.c dev_name(&rport->dev), dev_name(&shost->shost_gendev)); rport 433 drivers/scsi/scsi_transport_srp.c mutex_lock(&rport->mutex); rport 434 drivers/scsi/scsi_transport_srp.c if (rport->state == SRP_RPORT_BLOCKED) rport 435 drivers/scsi/scsi_transport_srp.c __rport_fail_io_fast(rport); rport 436 drivers/scsi/scsi_transport_srp.c mutex_unlock(&rport->mutex); rport 445 drivers/scsi/scsi_transport_srp.c struct srp_rport *rport = container_of(to_delayed_work(work), rport 447 drivers/scsi/scsi_transport_srp.c struct Scsi_Host *shost = rport_to_shost(rport); rport 451 drivers/scsi/scsi_transport_srp.c dev_name(&rport->dev), dev_name(&shost->shost_gendev)); rport 453 drivers/scsi/scsi_transport_srp.c mutex_lock(&rport->mutex); rport 454 drivers/scsi/scsi_transport_srp.c WARN_ON(srp_rport_set_state(rport, SRP_RPORT_LOST) != 0); rport 455 drivers/scsi/scsi_transport_srp.c scsi_target_unblock(rport->dev.parent, SDEV_TRANSPORT_OFFLINE); rport 456 drivers/scsi/scsi_transport_srp.c mutex_unlock(&rport->mutex); rport 458 drivers/scsi/scsi_transport_srp.c i->f->rport_delete(rport); rport 461 drivers/scsi/scsi_transport_srp.c static void __srp_start_tl_fail_timers(struct srp_rport *rport) rport 463 drivers/scsi/scsi_transport_srp.c struct Scsi_Host *shost = rport_to_shost(rport); rport 466 drivers/scsi/scsi_transport_srp.c lockdep_assert_held(&rport->mutex); rport 468 drivers/scsi/scsi_transport_srp.c delay = rport->reconnect_delay; rport 469 drivers/scsi/scsi_transport_srp.c fast_io_fail_tmo = rport->fast_io_fail_tmo; rport 470 drivers/scsi/scsi_transport_srp.c dev_loss_tmo = rport->dev_loss_tmo; rport 472 drivers/scsi/scsi_transport_srp.c rport->state); rport 474 drivers/scsi/scsi_transport_srp.c if (rport->state == SRP_RPORT_LOST) rport 477 drivers/scsi/scsi_transport_srp.c queue_delayed_work(system_long_wq, &rport->reconnect_work, rport 480 drivers/scsi/scsi_transport_srp.c srp_rport_set_state(rport, SRP_RPORT_BLOCKED) == 0) { rport 482 drivers/scsi/scsi_transport_srp.c rport->state); rport 486 drivers/scsi/scsi_transport_srp.c &rport->fast_io_fail_work, rport 490 drivers/scsi/scsi_transport_srp.c &rport->dev_loss_work, rport 502 drivers/scsi/scsi_transport_srp.c void srp_start_tl_fail_timers(struct srp_rport *rport) rport 504 drivers/scsi/scsi_transport_srp.c mutex_lock(&rport->mutex); rport 505 drivers/scsi/scsi_transport_srp.c __srp_start_tl_fail_timers(rport); rport 506 drivers/scsi/scsi_transport_srp.c mutex_unlock(&rport->mutex); rport 532 drivers/scsi/scsi_transport_srp.c int srp_reconnect_rport(struct srp_rport *rport) rport 534 drivers/scsi/scsi_transport_srp.c struct Scsi_Host *shost = rport_to_shost(rport); rport 541 drivers/scsi/scsi_transport_srp.c res = mutex_lock_interruptible(&rport->mutex); rport 545 drivers/scsi/scsi_transport_srp.c res = rport->state != SRP_RPORT_LOST ? i->f->reconnect(rport) : -ENODEV; rport 547 drivers/scsi/scsi_transport_srp.c dev_name(&shost->shost_gendev), rport->state, res); rport 549 drivers/scsi/scsi_transport_srp.c cancel_delayed_work(&rport->fast_io_fail_work); rport 550 drivers/scsi/scsi_transport_srp.c cancel_delayed_work(&rport->dev_loss_work); rport 552 drivers/scsi/scsi_transport_srp.c rport->failed_reconnects = 0; rport 553 drivers/scsi/scsi_transport_srp.c srp_rport_set_state(rport, SRP_RPORT_RUNNING); rport 566 drivers/scsi/scsi_transport_srp.c } else if (rport->state == SRP_RPORT_RUNNING) { rport 572 drivers/scsi/scsi_transport_srp.c __rport_fail_io_fast(rport); rport 575 drivers/scsi/scsi_transport_srp.c __srp_start_tl_fail_timers(rport); rport 576 drivers/scsi/scsi_transport_srp.c } else if (rport->state != SRP_RPORT_BLOCKED) { rport 580 drivers/scsi/scsi_transport_srp.c mutex_unlock(&rport->mutex); rport 603 drivers/scsi/scsi_transport_srp.c struct srp_rport *rport = shost_to_rport(shost); rport 606 drivers/scsi/scsi_transport_srp.c return rport && rport->fast_io_fail_tmo < 0 && rport 607 drivers/scsi/scsi_transport_srp.c rport->dev_loss_tmo < 0 && rport 615 drivers/scsi/scsi_transport_srp.c struct srp_rport *rport = dev_to_rport(dev); rport 618 drivers/scsi/scsi_transport_srp.c kfree(rport); rport 667 drivers/scsi/scsi_transport_srp.c void srp_rport_get(struct srp_rport *rport) rport 669 drivers/scsi/scsi_transport_srp.c get_device(&rport->dev); rport 677 drivers/scsi/scsi_transport_srp.c void srp_rport_put(struct srp_rport *rport) rport 679 drivers/scsi/scsi_transport_srp.c put_device(&rport->dev); rport 693 drivers/scsi/scsi_transport_srp.c struct srp_rport *rport; rport 698 drivers/scsi/scsi_transport_srp.c rport = kzalloc(sizeof(*rport), GFP_KERNEL); rport 699 drivers/scsi/scsi_transport_srp.c if (!rport) rport 702 drivers/scsi/scsi_transport_srp.c mutex_init(&rport->mutex); rport 704 drivers/scsi/scsi_transport_srp.c device_initialize(&rport->dev); rport 706 drivers/scsi/scsi_transport_srp.c rport->dev.parent = get_device(parent); rport 707 drivers/scsi/scsi_transport_srp.c rport->dev.release = srp_rport_release; rport 709 drivers/scsi/scsi_transport_srp.c memcpy(rport->port_id, ids->port_id, sizeof(rport->port_id)); rport 710 drivers/scsi/scsi_transport_srp.c rport->roles = ids->roles; rport 713 drivers/scsi/scsi_transport_srp.c rport->reconnect_delay = i->f->reconnect_delay ? rport 715 drivers/scsi/scsi_transport_srp.c INIT_DELAYED_WORK(&rport->reconnect_work, srp_reconnect_work); rport 716 drivers/scsi/scsi_transport_srp.c rport->fast_io_fail_tmo = i->f->fast_io_fail_tmo ? rport 718 drivers/scsi/scsi_transport_srp.c rport->dev_loss_tmo = i->f->dev_loss_tmo ? *i->f->dev_loss_tmo : 60; rport 719 drivers/scsi/scsi_transport_srp.c INIT_DELAYED_WORK(&rport->fast_io_fail_work, rport 721 drivers/scsi/scsi_transport_srp.c INIT_DELAYED_WORK(&rport->dev_loss_work, rport_dev_loss_timedout); rport 724 drivers/scsi/scsi_transport_srp.c dev_set_name(&rport->dev, "port-%d:%d", shost->host_no, id); rport 726 drivers/scsi/scsi_transport_srp.c transport_setup_device(&rport->dev); rport 728 drivers/scsi/scsi_transport_srp.c ret = device_add(&rport->dev); rport 730 drivers/scsi/scsi_transport_srp.c transport_destroy_device(&rport->dev); rport 731 drivers/scsi/scsi_transport_srp.c put_device(&rport->dev); rport 735 drivers/scsi/scsi_transport_srp.c transport_add_device(&rport->dev); rport 736 drivers/scsi/scsi_transport_srp.c transport_configure_device(&rport->dev); rport 738 drivers/scsi/scsi_transport_srp.c return rport; rport 748 drivers/scsi/scsi_transport_srp.c void srp_rport_del(struct srp_rport *rport) rport 750 drivers/scsi/scsi_transport_srp.c struct device *dev = &rport->dev; rport 788 drivers/scsi/scsi_transport_srp.c void srp_stop_rport_timers(struct srp_rport *rport) rport 790 drivers/scsi/scsi_transport_srp.c mutex_lock(&rport->mutex); rport 791 drivers/scsi/scsi_transport_srp.c if (rport->state == SRP_RPORT_BLOCKED) rport 792 drivers/scsi/scsi_transport_srp.c __rport_fail_io_fast(rport); rport 793 drivers/scsi/scsi_transport_srp.c srp_rport_set_state(rport, SRP_RPORT_LOST); rport 794 drivers/scsi/scsi_transport_srp.c mutex_unlock(&rport->mutex); rport 796 drivers/scsi/scsi_transport_srp.c cancel_delayed_work_sync(&rport->reconnect_work); rport 797 drivers/scsi/scsi_transport_srp.c cancel_delayed_work_sync(&rport->fast_io_fail_work); rport 798 drivers/scsi/scsi_transport_srp.c cancel_delayed_work_sync(&rport->dev_loss_work); rport 474 drivers/scsi/storvsc_drv.c struct fc_rport *rport; rport 1876 drivers/scsi/storvsc_drv.c stor_device->rport = fc_remote_port_add(host, 0, &ids); rport 1877 drivers/scsi/storvsc_drv.c if (!stor_device->rport) { rport 1927 drivers/scsi/storvsc_drv.c fc_remote_port_delete(stor_device->rport); rport 192 include/scsi/libfc.h struct fc_rport *rport; rport 342 include/scsi/libfc.h struct fc_rport *rport; rport 719 include/scsi/scsi_transport_fc.h fc_remote_port_chkready(struct fc_rport *rport) rport 723 include/scsi/scsi_transport_fc.h switch (rport->port_state) { rport 725 include/scsi/scsi_transport_fc.h if (rport->roles & FC_PORT_ROLE_FCP_TARGET) rport 727 include/scsi/scsi_transport_fc.h else if (rport->flags & FC_RPORT_DEVLOSS_PENDING) rport 733 include/scsi/scsi_transport_fc.h if (rport->flags & FC_RPORT_FAST_FAIL_TIMEDOUT) rport 781 include/scsi/scsi_transport_fc.h void fc_remote_port_delete(struct fc_rport *rport); rport 782 include/scsi/scsi_transport_fc.h void fc_remote_port_rolechg(struct fc_rport *rport, u32 roles); rport 802 include/scsi/scsi_transport_fc.h int fc_block_rport(struct fc_rport *rport); rport 100 include/scsi/scsi_transport_srp.h int (*reconnect)(struct srp_rport *rport); rport 101 include/scsi/scsi_transport_srp.h void (*terminate_rport_io)(struct srp_rport *rport); rport 102 include/scsi/scsi_transport_srp.h void (*rport_delete)(struct srp_rport *rport); rport 109 include/scsi/scsi_transport_srp.h extern void srp_rport_get(struct srp_rport *rport); rport 110 include/scsi/scsi_transport_srp.h extern void srp_rport_put(struct srp_rport *rport); rport 117 include/scsi/scsi_transport_srp.h extern int srp_reconnect_rport(struct srp_rport *rport); rport 118 include/scsi/scsi_transport_srp.h extern void srp_start_tl_fail_timers(struct srp_rport *rport); rport 120 include/scsi/scsi_transport_srp.h extern void srp_stop_rport_timers(struct srp_rport *rport); rport 131 include/scsi/scsi_transport_srp.h static inline int srp_chkready(struct srp_rport *rport) rport 133 include/scsi/scsi_transport_srp.h switch (rport->state) { rport 282 net/bridge/br_forward.c struct net_bridge_port *port, *lport, *rport; rport 285 net/bridge/br_forward.c rport = hlist_entry_safe(rp, struct net_bridge_port, rlist); rport 287 net/bridge/br_forward.c if ((unsigned long)lport > (unsigned long)rport) { rport 296 net/bridge/br_forward.c port = rport; rport 305 net/bridge/br_forward.c if ((unsigned long)rport >= (unsigned long)port) rport 22 net/ipv4/netfilter/nf_socket_ipv4.c __be16 *rport, __be16 *lport) rport 68 net/ipv4/netfilter/nf_socket_ipv4.c *rport = ports[1]; rport 26 net/ipv6/netfilter/nf_socket_ipv6.c __be16 *rport, rport 72 net/ipv6/netfilter/nf_socket_ipv6.c *rport = ports[1]; rport 13 tools/testing/selftests/bpf/progs/sockmap_parse_prog.c __u32 rport = skb->remote_port; rport 41 tools/testing/selftests/bpf/progs/sockmap_verdict_prog.c __u32 rport = skb->remote_port; rport 97 tools/testing/selftests/bpf/test_sockmap_kern.h __u32 rport = skb->remote_port; rport 126 tools/testing/selftests/bpf/test_sockmap_kern.h __u32 lport, rport; rport 135 tools/testing/selftests/bpf/test_sockmap_kern.h rport = skops->remote_port; rport 147 tools/testing/selftests/bpf/test_sockmap_kern.h lport, bpf_ntohl(rport), err); rport 152 tools/testing/selftests/bpf/test_sockmap_kern.h rport = skops->remote_port; rport 154 tools/testing/selftests/bpf/test_sockmap_kern.h if (bpf_ntohl(rport) == 10001) { rport 164 tools/testing/selftests/bpf/test_sockmap_kern.h lport, bpf_ntohl(rport), err);