Lines Matching refs:usage
110 if (!conn || atomic_read(&conn->usage) == 0) in rxrpc_find_connection_rcu()
120 if (!conn || atomic_read(&conn->usage) == 0) { in rxrpc_find_connection_rcu()
268 int n = atomic_fetch_add_unless(&conn->usage, 1, 0); in rxrpc_queue_conn()
285 int n = atomic_read(&conn->usage); in rxrpc_see_connection()
297 int n = atomic_inc_return(&conn->usage); in rxrpc_get_connection()
311 int n = atomic_fetch_add_unless(&conn->usage, 1, 0); in rxrpc_get_connection_maybe()
339 n = atomic_dec_return(&conn->usage); in rxrpc_put_service_conn()
355 _enter("{%d,u=%d}", conn->debug_id, atomic_read(&conn->usage)); in rxrpc_destroy_connection()
357 ASSERTCMP(atomic_read(&conn->usage), ==, 0); in rxrpc_destroy_connection()
396 ASSERTCMP(atomic_read(&conn->usage), >, 0); in rxrpc_service_connection_reaper()
397 if (likely(atomic_read(&conn->usage) > 1)) in rxrpc_service_connection_reaper()
409 conn->debug_id, atomic_read(&conn->usage), in rxrpc_service_connection_reaper()
422 if (atomic_cmpxchg(&conn->usage, 1, 0) != 1) in rxrpc_service_connection_reaper()
446 ASSERTCMP(atomic_read(&conn->usage), ==, 0); in rxrpc_service_connection_reaper()
474 conn, atomic_read(&conn->usage)); in rxrpc_destroy_all_connections()