Lines Matching defs:rport
659 static int bnx2fc_initiate_tmf(struct fc_lport *lport, struct fc_rport *rport,
681 if (rport == NULL) {
682 printk(KERN_ERR PFX "device_reset: rport is NULL\n");
686 rp = rport->dd_data;
688 rc = fc_block_rport(rport);
697 /* rport and tgt are allocated together, so tgt should be non-NULL */
747 did = rport->port_id;
819 struct fc_rport *rport = tgt->rport;
847 if (rport == NULL) {
848 printk(KERN_ERR PFX "initiate_abts: rport is NULL\n");
883 did = rport->port_id;
1061 struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device));
1062 struct fc_lport *lport = shost_priv(rport_to_shost(rport));
1064 return bnx2fc_initiate_tmf(lport, rport, 0, FCP_TMF_TGT_RESET);
1077 struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device));
1078 struct fc_lport *lport = shost_priv(rport_to_shost(rport));
1080 return bnx2fc_initiate_tmf(lport, rport, sc_cmd->device->lun,
1128 struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device));
1129 struct fc_rport_libfc_priv *rp = rport->dd_data;
1843 struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device));
1844 struct fc_rport_libfc_priv *rp = rport->dd_data;
1850 rval = fc_remote_port_chkready(rport);
1862 /* rport and tgt are allocated together, so tgt should be non-NULL */
2003 * for the rport/tgt