/drivers/scsi/bfa/ |
D | bfa_fcs_rport.c | 44 static void bfa_fcs_rport_free(struct bfa_fcs_rport_s *rport); 45 static void bfa_fcs_rport_hal_online(struct bfa_fcs_rport_s *rport); 46 static void bfa_fcs_rport_fcs_online_action(struct bfa_fcs_rport_s *rport); 47 static void bfa_fcs_rport_hal_online_action(struct bfa_fcs_rport_s *rport); 48 static void bfa_fcs_rport_fcs_offline_action(struct bfa_fcs_rport_s *rport); 49 static void bfa_fcs_rport_hal_offline_action(struct bfa_fcs_rport_s *rport); 50 static void bfa_fcs_rport_update(struct bfa_fcs_rport_s *rport, 80 static void bfa_fcs_rport_process_prli(struct bfa_fcs_rport_s *rport, 82 static void bfa_fcs_rport_send_ls_rjt(struct bfa_fcs_rport_s *rport, 85 static void bfa_fcs_rport_process_adisc(struct bfa_fcs_rport_s *rport, [all …]
|
D | bfa_fcs_fcpim.c | 82 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_fcs_itnim_sm_offline() 93 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE); in bfa_fcs_itnim_sm_offline() 114 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_fcs_itnim_sm_prli_send() 125 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_FCS_ONLINE); in bfa_fcs_itnim_sm_prli_send() 131 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE); in bfa_fcs_itnim_sm_prli_send() 149 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_fcs_itnim_sm_prli() 154 if (itnim->rport->scsi_function == BFA_RPORT_INITIATOR) in bfa_fcs_itnim_sm_prli() 160 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_FCS_ONLINE); in bfa_fcs_itnim_sm_prli() 177 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE); in bfa_fcs_itnim_sm_prli() 183 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_FCS_ONLINE); in bfa_fcs_itnim_sm_prli() [all …]
|
D | bfa_fcs.h | 293 struct bfa_rport_qualifier_s rport[], int *nrports); 342 struct bfa_fcs_rport_s *rport); 344 struct bfa_fcs_rport_s *rport); 414 struct bfa_fcs_rport_s *rport; /* parent rport */ member 461 bfa_fcs_rport_get_halrport(struct bfa_fcs_rport_s *rport) in bfa_fcs_rport_get_halrport() argument 463 return rport->bfa_rport; in bfa_fcs_rport_get_halrport() 469 void bfa_fcs_rport_get_attr(struct bfa_fcs_rport_s *rport, 477 void bfa_fcs_rport_uf_recv(struct bfa_fcs_rport_s *rport, 479 void bfa_fcs_rport_scn(struct bfa_fcs_rport_s *rport); 488 void bfa_fcs_rport_plogi(struct bfa_fcs_rport_s *rport, struct fchs_s *fchs, [all …]
|
D | bfa_fcs_lport.c | 197 struct bfa_fcs_rport_s *rport; in bfa_fcs_lport_sm_online() local 222 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_sm_online() 223 bfa_sm_send_event(rport, RPSM_EVENT_DELETE); in bfa_fcs_lport_sm_online() 238 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_sm_online() 239 bfa_sm_send_event(rport, RPSM_EVENT_DELETE); in bfa_fcs_lport_sm_online() 257 struct bfa_fcs_rport_s *rport; in bfa_fcs_lport_sm_offline() local 280 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_sm_offline() 281 bfa_sm_send_event(rport, RPSM_EVENT_DELETE); in bfa_fcs_lport_sm_offline() 293 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_sm_offline() 294 bfa_sm_send_event(rport, RPSM_EVENT_DELETE); in bfa_fcs_lport_sm_offline() [all …]
|
D | bfad_im.c | 941 struct fc_rport *rport) in bfad_im_check_if_make_lun_visible() argument 944 (struct bfad_itnim_data_s *) rport->dd_data; in bfad_im_check_if_make_lun_visible() 946 struct bfa_rport_s *bfa_rport = itnim_data->itnim->bfa_itnim->rport; in bfad_im_check_if_make_lun_visible() 968 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in bfad_im_slave_alloc() local 972 if (!rport || fc_remote_port_chkready(rport)) in bfad_im_slave_alloc() 975 itnim_data = (struct bfad_itnim_data_s *) rport->dd_data; in bfad_im_slave_alloc() 993 if (bfad_im_check_if_make_lun_visible(sdev, rport) != in bfad_im_slave_alloc() 998 sdev->hostdata = rport->dd_data; in bfad_im_slave_alloc() 1227 struct fc_rport *rport = starget_to_rport(scsi_target(cmnd->device)); in bfad_im_queuecommand_lck() local 1229 rc = fc_remote_port_chkready(rport); in bfad_im_queuecommand_lck()
|
/drivers/scsi/ |
D | scsi_transport_srp.c | 138 struct srp_rport *rport = transport_class_to_srp_rport(dev); in show_srp_rport_id() local 139 return sprintf(buf, "%16phC\n", rport->port_id); in show_srp_rport_id() 156 struct srp_rport *rport = transport_class_to_srp_rport(dev); in show_srp_rport_roles() local 161 if (srp_rport_role_names[i].value == rport->roles) { in show_srp_rport_roles() 174 struct srp_rport *rport = transport_class_to_srp_rport(dev); in store_srp_rport_delete() local 179 i->f->rport_delete(rport); in store_srp_rport_delete() 198 struct srp_rport *rport = transport_class_to_srp_rport(dev); in show_srp_rport_state() local 199 enum srp_rport_state state = rport->state; in show_srp_rport_state() 229 struct srp_rport *rport = transport_class_to_srp_rport(dev); in show_reconnect_delay() local 231 return srp_show_tmo(buf, rport->reconnect_delay); in show_reconnect_delay() [all …]
|
D | scsi_transport_fc.c | 360 struct fc_rport *rport = starget_to_rport(starget); in fc_target_setup() local 367 if (rport) { in fc_target_setup() 368 fc_starget_node_name(starget) = rport->node_name; in fc_target_setup() 369 fc_starget_port_name(starget) = rport->port_name; in fc_target_setup() 370 fc_starget_port_id(starget) = rport->port_id; in fc_target_setup() 706 struct fc_rport *rport = transport_class_to_rport(dev); \ 707 struct Scsi_Host *shost = rport_to_shost(rport); \ 710 !((rport->port_state == FC_PORTSTATE_BLOCKED) || \ 711 (rport->port_state == FC_PORTSTATE_DELETED) || \ 712 (rport->port_state == FC_PORTSTATE_NOTPRESENT))) \ [all …]
|
/drivers/phy/rockchip/ |
D | phy-rockchip-inno-usb2.c | 415 struct rockchip_usb2phy_port *rport = phy_get_drvdata(phy); in rockchip_usb2phy_init() local 419 mutex_lock(&rport->mutex); in rockchip_usb2phy_init() 421 if (rport->port_id == USB2PHY_PORT_OTG) { in rockchip_usb2phy_init() 422 if (rport->mode != USB_DR_MODE_HOST && in rockchip_usb2phy_init() 423 rport->mode != USB_DR_MODE_UNKNOWN) { in rockchip_usb2phy_init() 426 &rport->port_cfg->bvalid_det_clr, in rockchip_usb2phy_init() 432 &rport->port_cfg->bvalid_det_en, in rockchip_usb2phy_init() 437 schedule_delayed_work(&rport->otg_sm_work, in rockchip_usb2phy_init() 441 dev_dbg(&rport->phy->dev, "mode %d\n", rport->mode); in rockchip_usb2phy_init() 443 } else if (rport->port_id == USB2PHY_PORT_HOST) { in rockchip_usb2phy_init() [all …]
|
/drivers/nvme/target/ |
D | fcloop.c | 226 struct fcloop_rport *rport; member 313 struct fcloop_rport *rport = remoteport->private; in fcloop_ls_req() local 319 if (!rport->targetport) { in fcloop_ls_req() 327 tls_req->tport = rport->targetport->private; in fcloop_ls_req() 328 ret = nvmet_fc_rcv_ls_req(rport->targetport, &tls_req->tgt_ls_req, in fcloop_ls_req() 396 struct fcloop_rport *rport = remoteport->private; in fcloop_fcp_req() local 401 if (!rport->targetport) in fcloop_fcp_req() 412 tfcp_req->tport = rport->targetport->private; in fcloop_fcp_req() 416 ret = nvmet_fc_rcv_fcp_req(rport->targetport, &tfcp_req->tgt_fcp_req, in fcloop_fcp_req() 615 struct fcloop_rport *rport = remoteport->private; in fcloop_fcp_abort() local [all …]
|
/drivers/scsi/qla2xxx/ |
D | qla_nvme.c | 19 struct nvme_rport *rport; in qla_nvme_register_remote() local 40 rport = kzalloc(sizeof(*rport), GFP_KERNEL); in qla_nvme_register_remote() 41 if (!rport) { in qla_nvme_register_remote() 47 rport->req.port_name = wwn_to_u64(fcport->port_name); in qla_nvme_register_remote() 48 rport->req.node_name = wwn_to_u64(fcport->node_name); in qla_nvme_register_remote() 49 rport->req.port_role = 0; in qla_nvme_register_remote() 52 rport->req.port_role = FC_PORT_ROLE_NVME_INITIATOR; in qla_nvme_register_remote() 55 rport->req.port_role |= FC_PORT_ROLE_NVME_TARGET; in qla_nvme_register_remote() 58 rport->req.port_role |= FC_PORT_ROLE_NVME_DISCOVERY; in qla_nvme_register_remote() 60 rport->req.port_id = fcport->d_id.b24; in qla_nvme_register_remote() [all …]
|
/drivers/s390/scsi/ |
D | zfcp_scsi.c | 66 struct fc_rport *rport = starget_to_rport(scsi_target(scpnt->device)); in zfcp_scsi_queuecommand() local 73 scsi_result = fc_remote_port_chkready(rport); in zfcp_scsi_queuecommand() 111 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in zfcp_scsi_slave_alloc() local 122 port = zfcp_get_port_by_wwpn(adapter, rport->port_name); in zfcp_scsi_slave_alloc() 439 port->rport = NULL; in zfcp_scsi_adapter_unregister() 594 static void zfcp_set_rport_dev_loss_tmo(struct fc_rport *rport, u32 timeout) in zfcp_set_rport_dev_loss_tmo() argument 596 rport->dev_loss_tmo = timeout; in zfcp_set_rport_dev_loss_tmo() 609 static void zfcp_scsi_terminate_rport_io(struct fc_rport *rport) in zfcp_scsi_terminate_rport_io() argument 612 struct Scsi_Host *shost = rport_to_shost(rport); in zfcp_scsi_terminate_rport_io() 616 port = zfcp_get_port_by_wwpn(adapter, rport->port_name); in zfcp_scsi_terminate_rport_io() [all …]
|
D | zfcp_unit.c | 24 struct fc_rport *rport = unit->port->rport; in zfcp_unit_scsi_scan() local 29 if (rport && rport->port_state == FC_PORTSTATE_ONLINE) in zfcp_unit_scsi_scan() 30 scsi_scan_target(&rport->dev, 0, rport->scsi_target_id, lun, in zfcp_unit_scsi_scan()
|
/drivers/nvme/host/ |
D | fc.c | 76 struct nvme_fc_rport *rport; member 151 struct nvme_fc_rport *rport; member 537 struct nvme_fc_rport *rport = in nvme_fc_free_rport() local 540 localport_to_lport(rport->remoteport.localport); in nvme_fc_free_rport() 543 WARN_ON(rport->remoteport.port_state != FC_OBJSTATE_DELETED); in nvme_fc_free_rport() 544 WARN_ON(!list_empty(&rport->ctrl_list)); in nvme_fc_free_rport() 548 list_del(&rport->endp_list); in nvme_fc_free_rport() 552 lport->ops->remoteport_delete(&rport->remoteport); in nvme_fc_free_rport() 554 ida_simple_remove(&lport->endp_cnt, rport->remoteport.port_num); in nvme_fc_free_rport() 556 kfree(rport); in nvme_fc_free_rport() [all …]
|
/drivers/scsi/csiostor/ |
D | csio_attr.c | 64 struct fc_rport *rport; in csio_reg_rnode() local 73 rport = rn->rport; in csio_reg_rnode() 74 CSIO_ASSERT(rport != NULL); in csio_reg_rnode() 78 rn->rport = fc_remote_port_add(shost, 0, &ids); in csio_reg_rnode() 79 if (!rn->rport) { in csio_reg_rnode() 86 rport = rn->rport; in csio_reg_rnode() 88 *((struct csio_rnode **)rport->dd_data) = rn; in csio_reg_rnode() 92 rport->maxframe_size = ntohs(sp->csp.sp_bb_data); in csio_reg_rnode() 94 rport->supported_classes = FC_COS_CLASS3; in csio_reg_rnode() 96 rport->supported_classes = FC_COS_UNSPECIFIED; in csio_reg_rnode() [all …]
|
/drivers/message/fusion/ |
D | mptfc.c | 102 static void mptfc_set_rport_loss_tmo(struct fc_rport *rport, uint32_t timeout); 194 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in mptfc_block_error_handler() local 203 while ((ready = fc_remote_port_chkready(rport) >> 16) == DID_IMM_RETRY in mptfc_block_error_handler() 257 mptfc_set_rport_loss_tmo(struct fc_rport *rport, uint32_t timeout) in mptfc_set_rport_loss_tmo() argument 260 rport->dev_loss_tmo = timeout; in mptfc_set_rport_loss_tmo() 262 rport->dev_loss_tmo = mptfc_dev_loss_tmo; in mptfc_set_rport_loss_tmo() 426 struct fc_rport *rport; in mptfc_register_dev() local 462 rport = fc_remote_port_add(ioc->sh, channel, &rport_ids); in mptfc_register_dev() 463 if (rport) { in mptfc_register_dev() 464 ri->rport = rport; in mptfc_register_dev() [all …]
|
/drivers/scsi/libfc/ |
D | fc_fcp.c | 473 struct fc_rport_libfc_priv *rpriv = fsp->rport->dd_data; in get_fsp_rec_tov() 960 fsp->rport->port_id); in fc_fcp_resp() 965 fsp->rport->port_id, in fc_fcp_resp() 973 fsp->rport->port_id, in fc_fcp_resp() 1186 struct fc_rport *rport; in fc_fcp_cmd_send() local 1202 rport = fsp->rport; in fc_fcp_cmd_send() 1203 fsp->max_payload = rport->maxframe_size; in fc_fcp_cmd_send() 1204 rpriv = rport->dd_data; in fc_fcp_cmd_send() 1206 fc_fill_fc_hdr(fp, FC_RCTL_DD_UNSOL_CMD, rport->port_id, in fc_fcp_cmd_send() 1437 struct fc_rport *rport = fsp->rport; in fc_fcp_timeout() local [all …]
|
D | fc_rport.c | 213 void fc_set_rport_loss_tmo(struct fc_rport *rport, u32 timeout) in fc_set_rport_loss_tmo() argument 216 rport->dev_loss_tmo = timeout; in fc_set_rport_loss_tmo() 218 rport->dev_loss_tmo = 1; in fc_set_rport_loss_tmo() 278 struct fc_rport *rport; in fc_rport_work() local 285 rport = rdata->rport; in fc_rport_work() 297 if (!rport) { in fc_rport_work() 299 rport = fc_remote_port_add(lport->host, 0, &ids); in fc_rport_work() 301 if (!rport) { in fc_rport_work() 308 if (rdata->rport) in fc_rport_work() 310 rdata->rport = rport; in fc_rport_work() [all …]
|
/drivers/scsi/bnx2fc/ |
D | bnx2fc_tgt.c | 84 struct fc_rport *rport = rdata->rport; in bnx2fc_offload_session() local 95 "port_id (%6x)\n", rport->port_id); in bnx2fc_offload_session() 355 struct fc_rport *rport = rdata->rport; in bnx2fc_init_tgt() local 361 tgt->rport = rport; in bnx2fc_init_tgt() 446 struct fc_rport *rport = rdata->rport; in bnx2fc_rport_event_handler() local 455 if (!rport) { in bnx2fc_rport_event_handler() 460 rp = rport->dd_data; in bnx2fc_rport_event_handler() 461 if (rport->port_id == FC_FID_DIR_SERV) { in bnx2fc_rport_event_handler() 532 if (!rport) { in bnx2fc_rport_event_handler() 537 rp = rport->dd_data; in bnx2fc_rport_event_handler()
|
D | bnx2fc_debug.c | 55 tgt->rport) in BNX2FC_TGT_DBG() 58 tgt->rport->port_id, &vaf); in BNX2FC_TGT_DBG()
|
/drivers/hwtracing/coresight/ |
D | of_coresight.c | 140 struct device_node *rport = NULL; in of_get_coresight_platform_data() local 185 rport = of_graph_get_remote_port(ep); in of_get_coresight_platform_data() 187 if (!rparent || !rport) in of_get_coresight_platform_data() 190 if (of_graph_parse_endpoint(rport, &rendpoint)) in of_get_coresight_platform_data()
|
/drivers/scsi/lpfc/ |
D | lpfc_nvme.c | 175 struct lpfc_nvme_rport *rport = remoteport->private; in lpfc_nvme_remoteport_delete() local 179 ndlp = rport->ndlp; in lpfc_nvme_remoteport_delete() 201 complete(&rport->rport_unreg_done); in lpfc_nvme_remoteport_delete() 761 struct lpfc_nvme_rport *rport; in lpfc_nvme_io_cmd_wqe_cmpl() local 779 rport = lpfc_ncmd->nrport; in lpfc_nvme_io_cmd_wqe_cmpl() 788 ndlp = rport->ndlp; in lpfc_nvme_io_cmd_wqe_cmpl() 792 rport, rport->remoteport->port_id); in lpfc_nvme_io_cmd_wqe_cmpl() 794 ndlp = lpfc_findnode_did(vport, rport->remoteport->port_id); in lpfc_nvme_io_cmd_wqe_cmpl() 1217 struct lpfc_nvme_rport *rport; in lpfc_nvme_fcp_io_submit() local 1232 rport = (struct lpfc_nvme_rport *)pnvme_rport->private; in lpfc_nvme_fcp_io_submit() [all …]
|
D | lpfc_hbadisc.c | 77 lpfc_terminate_rport_io(struct fc_rport *rport) in lpfc_terminate_rport_io() argument 83 rdata = rport->dd_data; in lpfc_terminate_rport_io() 87 if (rport->roles & FC_RPORT_ROLE_FCP_TARGET) in lpfc_terminate_rport_io() 90 rport->port_id); in lpfc_terminate_rport_io() 111 lpfc_dev_loss_tmo_callbk(struct fc_rport *rport) in lpfc_dev_loss_tmo_callbk() argument 122 rdata = rport->dd_data; in lpfc_dev_loss_tmo_callbk() 136 ndlp->nlp_DID, ndlp->rport, ndlp->nlp_flag); in lpfc_dev_loss_tmo_callbk() 144 put_rport = ndlp->rport != NULL; in lpfc_dev_loss_tmo_callbk() 146 ndlp->rport = NULL; in lpfc_dev_loss_tmo_callbk() 150 put_device(&rport->dev); in lpfc_dev_loss_tmo_callbk() [all …]
|
/drivers/scsi/ibmvscsi/ |
D | ibmvfc.c | 1039 static void ibmvfc_set_rport_dev_loss_tmo(struct fc_rport *rport, u32 timeout) in ibmvfc_set_rport_dev_loss_tmo() argument 1042 rport->dev_loss_tmo = timeout; in ibmvfc_set_rport_dev_loss_tmo() 1044 rport->dev_loss_tmo = 1; in ibmvfc_set_rport_dev_loss_tmo() 1512 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in ibmvfc_relogin() local 1516 if (rport == tgt->rport) { in ibmvfc_relogin() 1622 struct fc_rport *rport = starget_to_rport(scsi_target(cmnd->device)); in ibmvfc_queuecommand_lck() local 1627 if (unlikely((rc = fc_remote_port_chkready(rport))) || in ibmvfc_queuecommand_lck() 1647 vfc_cmd->tgt_scsi_id = cpu_to_be64(rport->port_id); in ibmvfc_queuecommand_lck() 1826 struct fc_rport *rport = fc_bsg_to_rport(job); in ibmvfc_bsg_request() local 1839 if (rport) in ibmvfc_bsg_request() [all …]
|
/drivers/scsi/fnic/ |
D | fnic_scsi.c | 324 struct fc_rport *rport = starget_to_rport(scsi_target(sc->device)); in fnic_queue_wq_copy_desc() local 325 struct fc_rport_libfc_priv *rp = rport->dd_data; in fnic_queue_wq_copy_desc() 411 rport->maxframe_size, rp->r_a_tov, in fnic_queue_wq_copy_desc() 432 struct fc_rport *rport; in fnic_queuecommand_lck() local 452 rport = starget_to_rport(scsi_target(sc->device)); in fnic_queuecommand_lck() 453 if (!rport) { in fnic_queuecommand_lck() 461 ret = fc_remote_port_chkready(rport); in fnic_queuecommand_lck() 471 rp = rport->dd_data; in fnic_queuecommand_lck() 475 rport->port_id); in fnic_queuecommand_lck() 486 rport->port_id, rp->rp_state); in fnic_queuecommand_lck() [all …]
|
/drivers/infiniband/ulp/srp/ |
D | ib_srp.c | 940 srp_rport_get(target->rport); in srp_remove_target() 943 srp_stop_rport_timers(target->rport); in srp_remove_target() 950 srp_rport_put(target->rport); in srp_remove_target() 975 static void srp_rport_delete(struct srp_rport *rport) in srp_rport_delete() argument 977 struct srp_target_port *target = rport->lld_data; in srp_rport_delete() 1178 static void srp_terminate_io(struct srp_rport *rport) in srp_terminate_io() argument 1180 struct srp_target_port *target = rport->lld_data; in srp_terminate_io() 1214 static int srp_rport_reconnect(struct srp_rport *rport) in srp_rport_reconnect() argument 1216 struct srp_target_port *target = rport->lld_data; in srp_rport_reconnect() 2112 if (target->rport) in srp_tl_err_work() [all …]
|