/drivers/scsi/bfa/ |
D | bfa_fcs_rport.c | 43 static void bfa_fcs_rport_free(struct bfa_fcs_rport_s *rport); 44 static void bfa_fcs_rport_hal_online(struct bfa_fcs_rport_s *rport); 45 static void bfa_fcs_rport_fcs_online_action(struct bfa_fcs_rport_s *rport); 46 static void bfa_fcs_rport_hal_online_action(struct bfa_fcs_rport_s *rport); 47 static void bfa_fcs_rport_fcs_offline_action(struct bfa_fcs_rport_s *rport); 48 static void bfa_fcs_rport_hal_offline_action(struct bfa_fcs_rport_s *rport); 49 static void bfa_fcs_rport_update(struct bfa_fcs_rport_s *rport, 79 static void bfa_fcs_rport_process_prli(struct bfa_fcs_rport_s *rport, 81 static void bfa_fcs_rport_send_ls_rjt(struct bfa_fcs_rport_s *rport, 84 static void bfa_fcs_rport_process_adisc(struct bfa_fcs_rport_s *rport, [all …]
|
D | bfa_fcs_fcpim.c | 81 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_fcs_itnim_sm_offline() 92 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE); in bfa_fcs_itnim_sm_offline() 113 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_fcs_itnim_sm_prli_send() 124 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_FCS_ONLINE); in bfa_fcs_itnim_sm_prli_send() 130 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE); in bfa_fcs_itnim_sm_prli_send() 148 bfa_trc(itnim->fcs, itnim->rport->pwwn); in bfa_fcs_itnim_sm_prli() 153 if (itnim->rport->scsi_function == BFA_RPORT_INITIATOR) in bfa_fcs_itnim_sm_prli() 159 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_FCS_ONLINE); in bfa_fcs_itnim_sm_prli() 176 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_OFFLINE); in bfa_fcs_itnim_sm_prli() 182 bfa_sm_send_event(itnim->rport, RPSM_EVENT_FC4_FCS_ONLINE); in bfa_fcs_itnim_sm_prli() [all …]
|
D | bfa_fcs.h | 292 struct bfa_rport_qualifier_s rport[], int *nrports); 341 struct bfa_fcs_rport_s *rport); 343 struct bfa_fcs_rport_s *rport); 413 struct bfa_fcs_rport_s *rport; /* parent rport */ member 460 bfa_fcs_rport_get_halrport(struct bfa_fcs_rport_s *rport) in bfa_fcs_rport_get_halrport() argument 462 return rport->bfa_rport; in bfa_fcs_rport_get_halrport() 468 void bfa_fcs_rport_get_attr(struct bfa_fcs_rport_s *rport, 476 void bfa_fcs_rport_uf_recv(struct bfa_fcs_rport_s *rport, 478 void bfa_fcs_rport_scn(struct bfa_fcs_rport_s *rport); 487 void bfa_fcs_rport_plogi(struct bfa_fcs_rport_s *rport, struct fchs_s *fchs, [all …]
|
D | bfa_fcs_lport.c | 185 struct bfa_fcs_rport_s *rport; in bfa_fcs_lport_sm_online() local 210 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_sm_online() 211 bfa_sm_send_event(rport, RPSM_EVENT_DELETE); in bfa_fcs_lport_sm_online() 226 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_sm_online() 227 bfa_sm_send_event(rport, RPSM_EVENT_DELETE); in bfa_fcs_lport_sm_online() 245 struct bfa_fcs_rport_s *rport; in bfa_fcs_lport_sm_offline() local 268 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_sm_offline() 269 bfa_sm_send_event(rport, RPSM_EVENT_DELETE); in bfa_fcs_lport_sm_offline() 281 rport = (struct bfa_fcs_rport_s *) qe; in bfa_fcs_lport_sm_offline() 282 bfa_sm_send_event(rport, RPSM_EVENT_DELETE); in bfa_fcs_lport_sm_offline() [all …]
|
D | bfad_im.c | 916 struct fc_rport *rport) in bfad_im_check_if_make_lun_visible() argument 919 (struct bfad_itnim_data_s *) rport->dd_data; in bfad_im_check_if_make_lun_visible() 921 struct bfa_rport_s *bfa_rport = itnim_data->itnim->bfa_itnim->rport; in bfad_im_check_if_make_lun_visible() 943 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in bfad_im_slave_alloc() local 947 if (!rport || fc_remote_port_chkready(rport)) in bfad_im_slave_alloc() 950 itnim_data = (struct bfad_itnim_data_s *) rport->dd_data; in bfad_im_slave_alloc() 968 if (bfad_im_check_if_make_lun_visible(sdev, rport) != in bfad_im_slave_alloc() 973 sdev->hostdata = rport->dd_data; in bfad_im_slave_alloc() 1202 struct fc_rport *rport = starget_to_rport(scsi_target(cmnd->device)); in bfad_im_queuecommand_lck() local 1204 rc = fc_remote_port_chkready(rport); in bfad_im_queuecommand_lck()
|
D | bfa_svc.h | 583 void bfa_rport_online(struct bfa_rport_s *rport, 585 void bfa_rport_speed(struct bfa_rport_s *rport, enum bfa_port_speed speed); 586 void bfa_cb_rport_online(void *rport); 587 void bfa_cb_rport_offline(void *rport); 588 void bfa_cb_rport_qos_scn_flowid(void *rport, 594 void bfa_cb_rport_qos_scn_prio(void *rport, 634 void bfa_fcxp_send(struct bfa_fcxp_s *fcxp, struct bfa_rport_s *rport,
|
D | bfa_fcpim.c | 440 if (itnim->rport->rport_info.lp_tag != lp_tag) in bfa_fcpim_port_iostats() 518 bfa_trc(itnim->bfa, itnim->rport->rport_tag); in bfa_itnim_sm_uninit() 539 bfa_trc(itnim->bfa, itnim->rport->rport_tag); in bfa_itnim_sm_created() 570 bfa_trc(itnim->bfa, itnim->rport->rport_tag); in bfa_itnim_sm_fwcreate() 605 bfa_trc(itnim->bfa, itnim->rport->rport_tag); in bfa_itnim_sm_fwcreate_qfull() 643 bfa_trc(itnim->bfa, itnim->rport->rport_tag); in bfa_itnim_sm_delete_pending() 670 bfa_trc(itnim->bfa, itnim->rport->rport_tag); in bfa_itnim_sm_online() 712 bfa_trc(itnim->bfa, itnim->rport->rport_tag); in bfa_itnim_sm_sler() 744 bfa_trc(itnim->bfa, itnim->rport->rport_tag); in bfa_itnim_sm_cleanup_offline() 781 bfa_trc(itnim->bfa, itnim->rport->rport_tag); in bfa_itnim_sm_cleanup_delete() [all …]
|
/drivers/scsi/ |
D | scsi_transport_srp.c | 148 struct srp_rport *rport = transport_class_to_srp_rport(dev); in show_srp_rport_id() local 149 return sprintf(buf, SRP_PID_FMT "\n", SRP_PID(rport)); in show_srp_rport_id() 166 struct srp_rport *rport = transport_class_to_srp_rport(dev); in show_srp_rport_roles() local 171 if (srp_rport_role_names[i].value == rport->roles) { in show_srp_rport_roles() 184 struct srp_rport *rport = transport_class_to_srp_rport(dev); in store_srp_rport_delete() local 189 i->f->rport_delete(rport); in store_srp_rport_delete() 208 struct srp_rport *rport = transport_class_to_srp_rport(dev); in show_srp_rport_state() local 209 enum srp_rport_state state = rport->state; in show_srp_rport_state() 239 struct srp_rport *rport = transport_class_to_srp_rport(dev); in show_reconnect_delay() local 241 return srp_show_tmo(buf, rport->reconnect_delay); in show_reconnect_delay() [all …]
|
D | scsi_transport_fc.c | 358 struct fc_rport *rport = starget_to_rport(starget); in fc_target_setup() local 365 if (rport) { in fc_target_setup() 366 fc_starget_node_name(starget) = rport->node_name; in fc_target_setup() 367 fc_starget_port_name(starget) = rport->port_name; in fc_target_setup() 368 fc_starget_port_id(starget) = rport->port_id; in fc_target_setup() 704 struct fc_rport *rport = transport_class_to_rport(dev); \ 705 struct Scsi_Host *shost = rport_to_shost(rport); \ 708 !((rport->port_state == FC_PORTSTATE_BLOCKED) || \ 709 (rport->port_state == FC_PORTSTATE_DELETED) || \ 710 (rport->port_state == FC_PORTSTATE_NOTPRESENT))) \ [all …]
|
/drivers/s390/scsi/ |
D | zfcp_scsi.c | 65 struct fc_rport *rport = starget_to_rport(scsi_target(scpnt->device)); in zfcp_scsi_queuecommand() local 72 scsi_result = fc_remote_port_chkready(rport); in zfcp_scsi_queuecommand() 110 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in zfcp_scsi_slave_alloc() local 121 port = zfcp_get_port_by_wwpn(adapter, rport->port_name); in zfcp_scsi_slave_alloc() 437 port->rport = NULL; in zfcp_scsi_adapter_unregister() 592 static void zfcp_set_rport_dev_loss_tmo(struct fc_rport *rport, u32 timeout) in zfcp_set_rport_dev_loss_tmo() argument 594 rport->dev_loss_tmo = timeout; in zfcp_set_rport_dev_loss_tmo() 607 static void zfcp_scsi_terminate_rport_io(struct fc_rport *rport) in zfcp_scsi_terminate_rport_io() argument 610 struct Scsi_Host *shost = rport_to_shost(rport); in zfcp_scsi_terminate_rport_io() 614 port = zfcp_get_port_by_wwpn(adapter, rport->port_name); in zfcp_scsi_terminate_rport_io() [all …]
|
D | zfcp_unit.c | 23 struct fc_rport *rport = unit->port->rport; in zfcp_unit_scsi_scan() local 28 if (rport && rport->port_state == FC_PORTSTATE_ONLINE) in zfcp_unit_scsi_scan() 29 scsi_scan_target(&rport->dev, 0, rport->scsi_target_id, lun, 1); in zfcp_unit_scsi_scan()
|
/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() 264 mptfc_set_rport_loss_tmo(struct fc_rport *rport, uint32_t timeout) in mptfc_set_rport_loss_tmo() argument 267 rport->dev_loss_tmo = timeout; in mptfc_set_rport_loss_tmo() 269 rport->dev_loss_tmo = mptfc_dev_loss_tmo; in mptfc_set_rport_loss_tmo() 433 struct fc_rport *rport; in mptfc_register_dev() local 469 rport = fc_remote_port_add(ioc->sh, channel, &rport_ids); in mptfc_register_dev() 470 if (rport) { in mptfc_register_dev() 471 ri->rport = rport; in mptfc_register_dev() [all …]
|
/drivers/scsi/libfc/ |
D | fc_fcp.c | 919 fsp->rport->port_id, in fc_fcp_resp() 1126 struct fc_rport_libfc_priv *rpriv = fsp->rport->dd_data; in get_fsp_rec_tov() 1144 struct fc_rport *rport; in fc_fcp_cmd_send() local 1160 rport = fsp->rport; in fc_fcp_cmd_send() 1161 fsp->max_payload = rport->maxframe_size; in fc_fcp_cmd_send() 1162 rpriv = rport->dd_data; in fc_fcp_cmd_send() 1164 fc_fill_fc_hdr(fp, FC_RCTL_DD_UNSOL_CMD, rport->port_id, in fc_fcp_cmd_send() 1388 struct fc_rport *rport = fsp->rport; in fc_fcp_timeout() local 1389 struct fc_rport_libfc_priv *rpriv = rport->dd_data; in fc_fcp_timeout() 1418 struct fc_rport *rport; in fc_fcp_rec() local [all …]
|
D | fc_rport.c | 190 void fc_set_rport_loss_tmo(struct fc_rport *rport, u32 timeout) in fc_set_rport_loss_tmo() argument 193 rport->dev_loss_tmo = timeout; in fc_set_rport_loss_tmo() 195 rport->dev_loss_tmo = 1; in fc_set_rport_loss_tmo() 253 struct fc_rport *rport; in fc_rport_work() local 260 rport = rdata->rport; in fc_rport_work() 272 if (!rport) in fc_rport_work() 273 rport = fc_remote_port_add(lport->host, 0, &ids); in fc_rport_work() 274 if (!rport) { in fc_rport_work() 281 if (rdata->rport) in fc_rport_work() 283 rdata->rport = rport; in fc_rport_work() [all …]
|
D | fc_libfc.h | 76 (pkt)->rport->port_id, \ 81 (pkt)->rport->port_id, ##args); \
|
/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 | 54 tgt->rport) in BNX2FC_TGT_DBG() 57 tgt->rport->port_id, &vaf); in BNX2FC_TGT_DBG()
|
D | bnx2fc_io.c | 651 struct fc_rport *rport; in bnx2fc_initiate_tmf() local 670 rport = starget_to_rport(scsi_target(sc_cmd->device)); in bnx2fc_initiate_tmf() 674 if (rport == NULL) { in bnx2fc_initiate_tmf() 679 rp = rport->dd_data; in bnx2fc_initiate_tmf() 738 did = rport->port_id; in bnx2fc_initiate_tmf() 811 struct fc_rport *rport = tgt->rport; in bnx2fc_initiate_abts() local 839 if (rport == NULL) { in bnx2fc_initiate_abts() 875 did = rport->port_id; in bnx2fc_initiate_abts() 1102 struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); in bnx2fc_eh_abort() local 1103 struct fc_rport_libfc_priv *rp = rport->dd_data; in bnx2fc_eh_abort() [all …]
|
/drivers/hwtracing/coresight/ |
D | of_coresight.c | 115 struct device_node *rport = NULL; in of_get_coresight_platform_data() local 160 rport = of_graph_get_remote_port(ep); in of_get_coresight_platform_data() 162 if (!rparent || !rport) in of_get_coresight_platform_data() 165 if (of_graph_parse_endpoint(rport, &rendpoint)) in of_get_coresight_platform_data()
|
/drivers/scsi/ibmvscsi/ |
D | ibmvfc.c | 1034 static void ibmvfc_set_rport_dev_loss_tmo(struct fc_rport *rport, u32 timeout) in ibmvfc_set_rport_dev_loss_tmo() argument 1037 rport->dev_loss_tmo = timeout; in ibmvfc_set_rport_dev_loss_tmo() 1039 rport->dev_loss_tmo = 1; in ibmvfc_set_rport_dev_loss_tmo() 1504 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in ibmvfc_relogin() local 1508 if (rport == tgt->rport) { in ibmvfc_relogin() 1614 struct fc_rport *rport = starget_to_rport(scsi_target(cmnd->device)); in ibmvfc_queuecommand_lck() local 1619 if (unlikely((rc = fc_remote_port_chkready(rport))) || in ibmvfc_queuecommand_lck() 1639 vfc_cmd->tgt_scsi_id = cpu_to_be64(rport->port_id); in ibmvfc_queuecommand_lck() 1818 struct fc_rport *rport = job->rport; in ibmvfc_bsg_request() local 1829 if (rport) in ibmvfc_bsg_request() [all …]
|
/drivers/scsi/lpfc/ |
D | lpfc_hbadisc.c | 70 lpfc_terminate_rport_io(struct fc_rport *rport) in lpfc_terminate_rport_io() argument 76 rdata = rport->dd_data; in lpfc_terminate_rport_io() 80 if (rport->roles & FC_RPORT_ROLE_FCP_TARGET) in lpfc_terminate_rport_io() 83 rport->port_id); in lpfc_terminate_rport_io() 104 lpfc_dev_loss_tmo_callbk(struct fc_rport *rport) in lpfc_dev_loss_tmo_callbk() argument 115 rdata = rport->dd_data; in lpfc_dev_loss_tmo_callbk() 129 ndlp->nlp_DID, ndlp->rport, ndlp->nlp_flag); in lpfc_dev_loss_tmo_callbk() 137 put_rport = ndlp->rport != NULL; in lpfc_dev_loss_tmo_callbk() 139 ndlp->rport = NULL; in lpfc_dev_loss_tmo_callbk() 143 put_device(&rport->dev); in lpfc_dev_loss_tmo_callbk() [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 ret = fc_remote_port_chkready(rport); in fnic_queuecommand_lck() 461 rdata = lp->tt.rport_lookup(lp, rport->port_id); in fnic_queuecommand_lck() 542 io_req->port_id = rport->port_id; in fnic_queuecommand_lck() 1608 void fnic_terminate_rport_io(struct fc_rport *rport) in fnic_terminate_rport_io() argument 1626 if (!rport) { in fnic_terminate_rport_io() [all …]
|
/drivers/infiniband/ulp/srp/ |
D | ib_srp.c | 945 srp_rport_get(target->rport); in srp_remove_target() 948 srp_stop_rport_timers(target->rport); in srp_remove_target() 955 srp_rport_put(target->rport); in srp_remove_target() 980 static void srp_rport_delete(struct srp_rport *rport) in srp_rport_delete() argument 982 struct srp_target_port *target = rport->lld_data; in srp_rport_delete() 1176 static void srp_terminate_io(struct srp_rport *rport) in srp_terminate_io() argument 1178 struct srp_target_port *target = rport->lld_data; in srp_terminate_io() 1212 static int srp_rport_reconnect(struct srp_rport *rport) in srp_rport_reconnect() argument 1214 struct srp_target_port *target = rport->lld_data; in srp_rport_reconnect() 1991 if (target->rport) in srp_tl_err_work() [all …]
|
/drivers/net/ethernet/sfc/ |
D | filter.h | 209 __be32 rhost, __be16 rport) in efx_filter_set_ipv4_full() argument 220 spec->rem_port = rport; in efx_filter_set_ipv4_full()
|