Lines Matching defs:lport

19  * be held when acquiring the lport lock. Refer to fc_lport.c for more
48 * fc_disc_stop_rports() - Delete all the remote ports associated with the lport
72 struct fc_lport *lport;
85 lport = fc_disc_lport(disc);
127 dp->lp = lport;
151 redisc = fc_disc_single(lport, dp);
160 redisc, lport->state, disc->pending);
174 * @lport: The local port receiving the request
181 static void fc_disc_recv_req(struct fc_lport *lport, struct fc_frame *fp)
184 struct fc_disc *disc = &lport->disc;
230 * @lport: The local port to have discovery started on
235 struct fc_lport *lport)
237 struct fc_disc *disc = &lport->disc;
257 struct fc_lport *lport = fc_disc_lport(disc);
290 disc->disc_callback(lport, event);
301 struct fc_lport *lport = fc_disc_lport(disc);
318 delay = msecs_to_jiffies(lport->e_d_tov);
330 * if discovery fails due to lport reset, clear
345 struct fc_lport *lport = fc_disc_lport(disc);
349 WARN_ON(!fc_lport_test_ready(lport));
356 fp = fc_frame_alloc(lport,
362 if (lport->tt.elsct_send(lport, 0, fp,
365 disc, 3 * lport->r_a_tov))
381 struct fc_lport *lport;
390 lport = fc_disc_lport(disc);
434 if (ids.port_id != lport->port_id &&
435 ids.port_name != lport->wwpn) {
436 rdata = fc_rport_create(lport, ids.port_id);
573 struct fc_lport *lport;
579 lport = rdata->local_port;
580 disc = &lport->disc;
609 mutex_lock(&lport->disc.disc_mutex);
610 new_rdata = fc_rport_create(lport, rdata->ids.port_id);
611 mutex_unlock(&lport->disc.disc_mutex);
641 * @lport: The local port to initiate discovery on
646 static int fc_disc_gpn_id_req(struct fc_lport *lport,
651 lockdep_assert_held(&lport->disc.disc_mutex);
652 fp = fc_frame_alloc(lport, sizeof(struct fc_ct_hdr) +
656 if (!lport->tt.elsct_send(lport, rdata->ids.port_id, fp, FC_NS_GPN_ID,
658 3 * lport->r_a_tov))
666 * @lport: The local port the remote port is associated with
669 static int fc_disc_single(struct fc_lport *lport, struct fc_disc_port *dp)
673 lockdep_assert_held(&lport->disc.disc_mutex);
675 rdata = fc_rport_create(lport, dp->port_id);
679 return fc_disc_gpn_id_req(lport, rdata);
683 * fc_disc_stop() - Stop discovery for a given lport
684 * @lport: The local port that discovery should stop on
686 static void fc_disc_stop(struct fc_lport *lport)
688 struct fc_disc *disc = &lport->disc;
698 * fc_disc_stop_final() - Stop discovery for a given lport
699 * @lport: The lport that discovery should stop on
704 static void fc_disc_stop_final(struct fc_lport *lport)
706 fc_disc_stop(lport);
712 * @lport: The local port that needs the discovery layer to be configured
715 void fc_disc_config(struct fc_lport *lport, void *priv)
719 if (!lport->tt.disc_start)
720 lport->tt.disc_start = fc_disc_start;
722 if (!lport->tt.disc_stop)
723 lport->tt.disc_stop = fc_disc_stop;
725 if (!lport->tt.disc_stop_final)
726 lport->tt.disc_stop_final = fc_disc_stop_final;
728 if (!lport->tt.disc_recv_req)
729 lport->tt.disc_recv_req = fc_disc_recv_req;
731 disc = &lport->disc;
739 * @lport: The local port that needs the discovery layer to be initialized
741 void fc_disc_init(struct fc_lport *lport)
743 struct fc_disc *disc = &lport->disc;