Lines Matching refs:port_id
159 static u32 ft_sess_hash(u32 port_id) in ft_sess_hash() argument
161 return hash_32(port_id, FT_SESS_HASH_BITS); in ft_sess_hash()
169 static struct ft_sess *ft_sess_get(struct fc_lport *lport, u32 port_id) in ft_sess_get() argument
180 head = &tport->hash[ft_sess_hash(port_id)]; in ft_sess_get()
182 if (sess->port_id == port_id) { in ft_sess_get()
185 pr_debug("port_id %x found %p\n", port_id, sess); in ft_sess_get()
191 pr_debug("port_id %x not found\n", port_id); in ft_sess_get()
199 static struct ft_sess *ft_sess_create(struct ft_tport *tport, u32 port_id, in ft_sess_create() argument
205 head = &tport->hash[ft_sess_hash(port_id)]; in ft_sess_create()
207 if (sess->port_id == port_id) in ft_sess_create()
223 sess->port_id = port_id; in ft_sess_create()
228 pr_debug("port_id %x sess %p\n", port_id, sess); in ft_sess_create()
246 sess->port_id = -1; in ft_sess_unhash()
254 static struct ft_sess *ft_sess_delete(struct ft_tport *tport, u32 port_id) in ft_sess_delete() argument
259 head = &tport->hash[ft_sess_hash(port_id)]; in ft_sess_delete()
261 if (sess->port_id == port_id) { in ft_sess_delete()
300 pr_debug("port_id %x\n", sess->port_id); in ft_sess_shutdown()
311 u32 port_id; in ft_sess_close() local
314 port_id = sess->port_id; in ft_sess_close()
315 if (port_id == -1) { in ft_sess_close()
319 pr_debug("port_id %x\n", port_id); in ft_sess_close()
332 return sess->port_id; /* XXX TBD probably not what is needed */ in ft_sess_get_index()
384 sess = ft_sess_create(tport, rdata->ids.port_id, acl); 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()