Lines Matching refs:lport
55 static struct ft_tport *ft_tport_create(struct fc_lport *lport)
61 tport = rcu_dereference_protected(lport->prov[FC_TYPE_FCP],
66 tpg = ft_lport_find_tpg(lport);
79 tport->lport = lport;
85 rcu_assign_pointer(lport->prov[FC_TYPE_FCP], tport);
95 struct fc_lport *lport;
99 lport = tport->lport;
100 BUG_ON(tport != lport->prov[FC_TYPE_FCP]);
101 rcu_assign_pointer(lport->prov[FC_TYPE_FCP], NULL);
115 void ft_lport_add(struct fc_lport *lport, void *arg)
118 ft_tport_create(lport);
126 void ft_lport_del(struct fc_lport *lport, void *arg)
131 tport = lport->prov[FC_TYPE_FCP];
143 struct fc_lport *lport = arg;
147 ft_lport_add(lport, NULL);
150 ft_lport_del(lport, NULL);
169 static struct ft_sess *ft_sess_get(struct fc_lport *lport, u32 port_id)
177 tport = rcu_dereference(lport->prov[FC_TYPE_FCP]);
480 static void ft_recv(struct fc_lport *lport, struct fc_frame *fp)
487 sess = ft_sess_get(lport, sid);