/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 | 924 struct fc_rport *rport) in bfad_im_check_if_make_lun_visible() argument 927 (struct bfad_itnim_data_s *) rport->dd_data; in bfad_im_check_if_make_lun_visible() 929 struct bfa_rport_s *bfa_rport = itnim_data->itnim->bfa_itnim->rport; in bfad_im_check_if_make_lun_visible() 951 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in bfad_im_slave_alloc() local 955 if (!rport || fc_remote_port_chkready(rport)) in bfad_im_slave_alloc() 958 itnim_data = (struct bfad_itnim_data_s *) rport->dd_data; in bfad_im_slave_alloc() 976 if (bfad_im_check_if_make_lun_visible(sdev, rport) != in bfad_im_slave_alloc() 981 sdev->hostdata = rport->dd_data; in bfad_im_slave_alloc() 1210 struct fc_rport *rport = starget_to_rport(scsi_target(cmnd->device)); in bfad_im_queuecommand_lck() local 1212 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 | 126 struct srp_rport *rport = transport_class_to_srp_rport(dev); in show_srp_rport_id() local 127 return sprintf(buf, SRP_PID_FMT "\n", SRP_PID(rport)); in show_srp_rport_id() 144 struct srp_rport *rport = transport_class_to_srp_rport(dev); in show_srp_rport_roles() local 149 if (srp_rport_role_names[i].value == rport->roles) { in show_srp_rport_roles() 162 struct srp_rport *rport = transport_class_to_srp_rport(dev); in store_srp_rport_delete() local 167 i->f->rport_delete(rport); in store_srp_rport_delete() 186 struct srp_rport *rport = transport_class_to_srp_rport(dev); in show_srp_rport_state() local 187 enum srp_rport_state state = rport->state; in show_srp_rport_state() 216 struct srp_rport *rport = transport_class_to_srp_rport(dev); in show_reconnect_delay() local 218 return srp_show_tmo(buf, rport->reconnect_delay); in show_reconnect_delay() [all …]
|
D | scsi_transport_fc.c | 357 struct fc_rport *rport = starget_to_rport(starget); in fc_target_setup() local 364 if (rport) { in fc_target_setup() 365 fc_starget_node_name(starget) = rport->node_name; in fc_target_setup() 366 fc_starget_port_name(starget) = rport->port_name; in fc_target_setup() 367 fc_starget_port_id(starget) = rport->port_id; in fc_target_setup() 703 struct fc_rport *rport = transport_class_to_rport(dev); \ 704 struct Scsi_Host *shost = rport_to_shost(rport); \ 707 !((rport->port_state == FC_PORTSTATE_BLOCKED) || \ 708 (rport->port_state == FC_PORTSTATE_DELETED) || \ 709 (rport->port_state == FC_PORTSTATE_NOTPRESENT))) \ [all …]
|
/drivers/s390/scsi/ |
D | zfcp_scsi.c | 86 struct fc_rport *rport = starget_to_rport(scsi_target(scpnt->device)); in zfcp_scsi_queuecommand() local 93 scsi_result = fc_remote_port_chkready(rport); in zfcp_scsi_queuecommand() 133 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in zfcp_scsi_slave_alloc() local 144 port = zfcp_get_port_by_wwpn(adapter, rport->port_name); in zfcp_scsi_slave_alloc() 391 port->rport = NULL; in zfcp_scsi_adapter_unregister() 546 static void zfcp_set_rport_dev_loss_tmo(struct fc_rport *rport, u32 timeout) in zfcp_set_rport_dev_loss_tmo() argument 548 rport->dev_loss_tmo = timeout; in zfcp_set_rport_dev_loss_tmo() 561 static void zfcp_scsi_terminate_rport_io(struct fc_rport *rport) in zfcp_scsi_terminate_rport_io() argument 564 struct Scsi_Host *shost = rport_to_shost(rport); in zfcp_scsi_terminate_rport_io() 568 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 | 187 void fc_set_rport_loss_tmo(struct fc_rport *rport, u32 timeout) in fc_set_rport_loss_tmo() argument 190 rport->dev_loss_tmo = timeout; in fc_set_rport_loss_tmo() 192 rport->dev_loss_tmo = 1; in fc_set_rport_loss_tmo() 250 struct fc_rport *rport; in fc_rport_work() local 257 rport = rdata->rport; in fc_rport_work() 269 if (!rport) in fc_rport_work() 270 rport = fc_remote_port_add(lport->host, 0, &ids); in fc_rport_work() 271 if (!rport) { in fc_rport_work() 278 if (rdata->rport) in fc_rport_work() 280 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 | 692 struct fc_rport *rport; in bnx2fc_initiate_tmf() local 711 rport = starget_to_rport(scsi_target(sc_cmd->device)); in bnx2fc_initiate_tmf() 715 if (rport == NULL) { in bnx2fc_initiate_tmf() 720 rp = rport->dd_data; in bnx2fc_initiate_tmf() 779 did = rport->port_id; in bnx2fc_initiate_tmf() 852 struct fc_rport *rport = tgt->rport; in bnx2fc_initiate_abts() local 880 if (rport == NULL) { in bnx2fc_initiate_abts() 916 did = rport->port_id; in bnx2fc_initiate_abts() 1163 struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); in bnx2fc_eh_abort() local 1164 struct fc_rport_libfc_priv *rp = rport->dd_data; in bnx2fc_eh_abort() [all …]
|
/drivers/scsi/ibmvscsi/ |
D | ibmvfc.c | 1035 static void ibmvfc_set_rport_dev_loss_tmo(struct fc_rport *rport, u32 timeout) in ibmvfc_set_rport_dev_loss_tmo() argument 1038 rport->dev_loss_tmo = timeout; in ibmvfc_set_rport_dev_loss_tmo() 1040 rport->dev_loss_tmo = 1; in ibmvfc_set_rport_dev_loss_tmo() 1505 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in ibmvfc_relogin() local 1509 if (rport == tgt->rport) { in ibmvfc_relogin() 1615 struct fc_rport *rport = starget_to_rport(scsi_target(cmnd->device)); in ibmvfc_queuecommand_lck() local 1621 if (unlikely((rc = fc_remote_port_chkready(rport))) || in ibmvfc_queuecommand_lck() 1641 vfc_cmd->tgt_scsi_id = cpu_to_be64(rport->port_id); in ibmvfc_queuecommand_lck() 1830 struct fc_rport *rport = job->rport; in ibmvfc_bsg_request() local 1841 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 114 rdata = rport->dd_data; in lpfc_dev_loss_tmo_callbk() 128 ndlp->nlp_DID, ndlp->rport, ndlp->nlp_flag); in lpfc_dev_loss_tmo_callbk() 136 put_rport = ndlp->rport != NULL; in lpfc_dev_loss_tmo_callbk() 138 ndlp->rport = NULL; in lpfc_dev_loss_tmo_callbk() 142 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() 402 rport->maxframe_size, rp->r_a_tov, in fnic_queue_wq_copy_desc() 423 struct fc_rport *rport; in fnic_queuecommand_lck() local 437 rport = starget_to_rport(scsi_target(sc->device)); in fnic_queuecommand_lck() 438 ret = fc_remote_port_chkready(rport); in fnic_queuecommand_lck() 509 io_req->port_id = rport->port_id; in fnic_queuecommand_lck() 1568 void fnic_terminate_rport_io(struct fc_rport *rport) in fnic_terminate_rport_io() argument 1586 if (!rport) { in fnic_terminate_rport_io() 1590 rdata = rport->dd_data; in fnic_terminate_rport_io() [all …]
|
/drivers/infiniband/ulp/srp/ |
D | ib_srp.c | 866 srp_rport_get(target->rport); in srp_remove_target() 869 srp_stop_rport_timers(target->rport); in srp_remove_target() 874 srp_rport_put(target->rport); in srp_remove_target() 894 static void srp_rport_delete(struct srp_rport *rport) in srp_rport_delete() argument 896 struct srp_target_port *target = rport->lld_data; in srp_rport_delete() 1085 static void srp_terminate_io(struct srp_rport *rport) in srp_terminate_io() argument 1087 struct srp_target_port *target = rport->lld_data; in srp_terminate_io() 1114 static int srp_rport_reconnect(struct srp_rport *rport) in srp_rport_reconnect() argument 1116 struct srp_target_port *target = rport->lld_data; in srp_rport_reconnect() 1793 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()
|
/drivers/scsi/qla2xxx/ |
D | qla_attr.c | 1713 if (fcport->rport && in qla2x00_get_starget_node_name() 1714 starget->id == fcport->rport->scsi_target_id) { in qla2x00_get_starget_node_name() 1732 if (fcport->rport && in qla2x00_get_starget_port_name() 1733 starget->id == fcport->rport->scsi_target_id) { in qla2x00_get_starget_port_name() 1751 if (fcport->rport && in qla2x00_get_starget_port_id() 1752 starget->id == fcport->rport->scsi_target_id) { in qla2x00_get_starget_port_id() 1763 qla2x00_set_rport_loss_tmo(struct fc_rport *rport, uint32_t timeout) in qla2x00_set_rport_loss_tmo() argument 1766 rport->dev_loss_tmo = timeout; in qla2x00_set_rport_loss_tmo() 1768 rport->dev_loss_tmo = 1; in qla2x00_set_rport_loss_tmo() 1772 qla2x00_dev_loss_tmo_callbk(struct fc_rport *rport) in qla2x00_dev_loss_tmo_callbk() argument [all …]
|