Lines Matching refs:candidate

270 	struct rxrpc_bundle *bundle, *candidate;  in rxrpc_look_up_bundle()  local
305 candidate = rxrpc_alloc_bundle(cp, gfp); in rxrpc_look_up_bundle()
306 if (!candidate) in rxrpc_look_up_bundle()
332 candidate->debug_id = atomic_inc_return(&rxrpc_bundle_id); in rxrpc_look_up_bundle()
333 rb_link_node(&candidate->local_node, parent, pp); in rxrpc_look_up_bundle()
334 rb_insert_color(&candidate->local_node, &local->client_bundles); in rxrpc_look_up_bundle()
335 rxrpc_get_bundle(candidate); in rxrpc_look_up_bundle()
337 _leave(" = %u [new]", candidate->debug_id); in rxrpc_look_up_bundle()
338 return candidate; in rxrpc_look_up_bundle()
341 rxrpc_free_bundle(candidate); in rxrpc_look_up_bundle()
404 struct rxrpc_connection *candidate = NULL, *old = NULL; in rxrpc_add_conn_to_bundle() local
419 candidate = rxrpc_alloc_client_connection(bundle, gfp); in rxrpc_add_conn_to_bundle()
424 if (IS_ERR(candidate)) { in rxrpc_add_conn_to_bundle()
425 bundle->alloc_error = PTR_ERR(candidate); in rxrpc_add_conn_to_bundle()
427 _leave(" [err %ld]", PTR_ERR(candidate)); in rxrpc_add_conn_to_bundle()
441 candidate->bundle_shift = shift; in rxrpc_add_conn_to_bundle()
443 bundle->conns[i] = candidate; in rxrpc_add_conn_to_bundle()
446 candidate = NULL; in rxrpc_add_conn_to_bundle()
455 if (candidate) { in rxrpc_add_conn_to_bundle()
456 _debug("discard C=%x", candidate->debug_id); in rxrpc_add_conn_to_bundle()
457 trace_rxrpc_client(candidate, -1, rxrpc_client_duplicate); in rxrpc_add_conn_to_bundle()
458 rxrpc_put_connection(candidate); in rxrpc_add_conn_to_bundle()