Lines Matching refs:port_id
153 static u32 ft_sess_hash(u32 port_id) in ft_sess_hash() argument
155 return hash_32(port_id, FT_SESS_HASH_BITS); in ft_sess_hash()
163 static struct ft_sess *ft_sess_get(struct fc_lport *lport, u32 port_id) in ft_sess_get() argument
174 head = &tport->hash[ft_sess_hash(port_id)]; in ft_sess_get()
176 if (sess->port_id == port_id) { in ft_sess_get()
179 pr_debug("port_id %x found %p\n", port_id, sess); in ft_sess_get()
185 pr_debug("port_id %x not found\n", port_id); in ft_sess_get()
193 static struct ft_sess *ft_sess_create(struct ft_tport *tport, u32 port_id, in ft_sess_create() argument
199 head = &tport->hash[ft_sess_hash(port_id)]; in ft_sess_create()
201 if (sess->port_id == port_id) in ft_sess_create()
217 sess->port_id = port_id; in ft_sess_create()
222 pr_debug("port_id %x sess %p\n", port_id, sess); in ft_sess_create()
240 sess->port_id = -1; in ft_sess_unhash()
248 static struct ft_sess *ft_sess_delete(struct ft_tport *tport, u32 port_id) in ft_sess_delete() argument
253 head = &tport->hash[ft_sess_hash(port_id)]; in ft_sess_delete()
255 if (sess->port_id == port_id) { in ft_sess_delete()
294 pr_debug("port_id %x\n", sess->port_id); in ft_sess_shutdown()
305 u32 port_id; in ft_sess_close() local
308 port_id = sess->port_id; in ft_sess_close()
309 if (port_id == -1) { in ft_sess_close()
313 pr_debug("port_id %x\n", port_id); in ft_sess_close()
326 return sess->port_id; /* XXX TBD probably not what is needed */ in ft_sess_get_index()
378 sess = ft_sess_create(tport, rdata->ids.port_id, acl); in ft_prli_locked()
424 rdata->ids.port_id, rspp ? rspp->spp_flags : 0, ret); in ft_prli()
457 sess = ft_sess_delete(tport, rdata->ids.port_id); in ft_prlo()