Lines Matching refs:port_id

33 		 (lport)->port_id, ##args )
148 static u32 ft_sess_hash(u32 port_id) in ft_sess_hash() argument
150 return hash_32(port_id, FT_SESS_HASH_BITS); in ft_sess_hash()
158 static struct ft_sess *ft_sess_get(struct fc_lport *lport, u32 port_id) in ft_sess_get() argument
172 head = &tport->hash[ft_sess_hash(port_id)]; in ft_sess_get()
174 if (sess->port_id == port_id) { in ft_sess_get()
178 port_id, sess); in ft_sess_get()
185 port_id, reason); in ft_sess_get()
194 struct hlist_head *head = &tport->hash[ft_sess_hash(sess->port_id)]; in ft_sess_alloc_cb()
196 TFC_SESS_DBG(tport->lport, "port_id %x sess %p\n", sess->port_id, sess); in ft_sess_alloc_cb()
207 static struct ft_sess *ft_sess_create(struct ft_tport *tport, u32 port_id, in ft_sess_create() argument
217 head = &tport->hash[ft_sess_hash(port_id)]; in ft_sess_create()
219 if (sess->port_id == port_id) in ft_sess_create()
228 sess->port_id = port_id; in ft_sess_create()
253 sess->port_id = -1; in ft_sess_unhash()
261 static struct ft_sess *ft_sess_delete(struct ft_tport *tport, u32 port_id) in ft_sess_delete() argument
266 head = &tport->hash[ft_sess_hash(port_id)]; in ft_sess_delete()
268 if (sess->port_id == port_id) { in ft_sess_delete()
312 u32 port_id; in ft_sess_close() local
315 port_id = sess->port_id; in ft_sess_close()
316 if (port_id == -1) { in ft_sess_close()
320 TFC_SESS_DBG(sess->tport->lport, "port_id %x close session\n", port_id); in ft_sess_close()
332 return sess->port_id; /* XXX TBD probably not what is needed */ in ft_sess_get_index()
379 sess = ft_sess_create(tport, rdata->ids.port_id, rdata); in ft_prli_locked()
430 rdata->ids.port_id, rspp ? rspp->spp_flags : 0, ret); in ft_prli()
463 sess = ft_sess_delete(tport, rdata->ids.port_id); in ft_prlo()