Searched refs:bind_list (Results 1 - 1 of 1) sorted by relevance
/linux-4.1.27/drivers/infiniband/core/ |
H A D | cma.c | 115 struct rdma_bind_list *bind_list; member in struct:rdma_id_private 1004 struct rdma_bind_list *bind_list = id_priv->bind_list; cma_release_port() local 1006 if (!bind_list) cma_release_port() 1011 if (hlist_empty(&bind_list->owners)) { cma_release_port() 1012 idr_remove(bind_list->ps, bind_list->port); cma_release_port() 1013 kfree(bind_list); cma_release_port() 2290 static void cma_bind_port(struct rdma_bind_list *bind_list, cma_bind_port() argument 2299 port = htons(bind_list->port); cma_bind_port() 2316 id_priv->bind_list = bind_list; cma_bind_port() 2317 hlist_add_head(&id_priv->node, &bind_list->owners); cma_bind_port() 2323 struct rdma_bind_list *bind_list; cma_alloc_port() local 2326 bind_list = kzalloc(sizeof *bind_list, GFP_KERNEL); cma_alloc_port() 2327 if (!bind_list) cma_alloc_port() 2330 ret = idr_alloc(ps, bind_list, snum, snum + 1, GFP_KERNEL); cma_alloc_port() 2334 bind_list->ps = ps; cma_alloc_port() 2335 bind_list->port = (unsigned short)ret; cma_alloc_port() 2336 cma_bind_port(bind_list, id_priv); cma_alloc_port() 2339 kfree(bind_list); cma_alloc_port() 2377 * the latter case, the provided id_priv may already be on the bind_list, but 2380 static int cma_check_port(struct rdma_bind_list *bind_list, cma_check_port() argument 2387 hlist_for_each_entry(cur_id, &bind_list->owners, node) { cma_check_port() 2411 struct rdma_bind_list *bind_list; cma_use_port() local 2419 bind_list = idr_find(ps, snum); cma_use_port() 2420 if (!bind_list) { cma_use_port() 2423 ret = cma_check_port(bind_list, id_priv, id_priv->reuseaddr); cma_use_port() 2425 cma_bind_port(bind_list, id_priv); cma_use_port() 2432 struct rdma_bind_list *bind_list = id_priv->bind_list; cma_bind_listen() local 2436 if (bind_list->owners.first->next) cma_bind_listen() 2437 ret = cma_check_port(bind_list, id_priv, 0); cma_bind_listen()
|
Completed in 68 milliseconds