Searched refs:map_guard (Results 1 – 2 of 2) sorted by relevance
78 atomic_t map_guard; member665 int map_guard; in dz_release_port() local670 map_guard = atomic_add_return(-1, &mux->map_guard); in dz_release_port()671 if (!map_guard) in dz_release_port()690 int map_guard; in dz_request_port() local693 map_guard = atomic_add_return(1, &mux->map_guard); in dz_request_port()694 if (map_guard == 1) { in dz_request_port()697 atomic_add(-1, &mux->map_guard); in dz_request_port()705 map_guard = atomic_add_return(-1, &mux->map_guard); in dz_request_port()706 if (!map_guard) in dz_request_port()
97 refcount_t map_guard; member654 if(refcount_dec_and_test(&duart->map_guard)) in sbd_release_port()697 refcount_inc(&duart->map_guard); in sbd_request_port()698 if (refcount_read(&duart->map_guard) == 1) { in sbd_request_port()701 refcount_dec(&duart->map_guard); in sbd_request_port()709 if (refcount_dec_and_test(&duart->map_guard)) in sbd_request_port()