Lines Matching defs:rport
1045 srp_rport_get(target->rport);
1048 srp_stop_rport_timers(target->rport);
1056 srp_rport_put(target->rport);
1077 static void srp_rport_delete(struct srp_rport *rport)
1079 struct srp_target_port *target = rport->lld_data;
1293 static void srp_terminate_io(struct srp_rport *rport)
1295 struct srp_target_port *target = rport->lld_data;
1328 * serializes calls of this function via rport->mutex and also blocks
1331 static int srp_rport_reconnect(struct srp_rport *rport)
1333 struct srp_target_port *target = rport->lld_data;
2123 * Note: This function may get invoked before the rport has been created,
2124 * hence the target->rport test.
2131 if (target->rport)
2132 srp_start_tl_fail_timers(target->rport);
2164 scmnd->result = srp_chkready(target->rport);
2718 struct srp_rport *rport = target->rport;
2728 * Lock the rport mutex to avoid that srp_create_ch_ib() is
2731 mutex_lock(&rport->mutex);
2737 mutex_unlock(&rport->mutex);
2765 mutex_unlock(&rport->mutex);
2773 mutex_unlock(&rport->mutex);
2804 if (target->rport->state == SRP_RPORT_LOST)
2834 return srp_reconnect_rport(target->rport) == 0 ? SUCCESS : FAILED;
3111 struct srp_rport *rport;
3123 rport = srp_rport_add(target->scsi_host, &ids);
3124 if (IS_ERR(rport)) {
3126 return PTR_ERR(rport);
3129 rport->lld_data = target;
3130 target->rport = rport;