Home
last modified time | relevance | path

Searched refs:map_guard (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/drivers/tty/serial/
Ddz.c82 atomic_t map_guard; member
667 int map_guard; in dz_release_port() local
672 map_guard = atomic_add_return(-1, &mux->map_guard); in dz_release_port()
673 if (!map_guard) in dz_release_port()
692 int map_guard; in dz_request_port() local
695 map_guard = atomic_add_return(1, &mux->map_guard); in dz_request_port()
696 if (map_guard == 1) { in dz_request_port()
699 atomic_add(-1, &mux->map_guard); in dz_request_port()
707 map_guard = atomic_add_return(-1, &mux->map_guard); in dz_request_port()
708 if (!map_guard) in dz_request_port()
Dsb1250-duart.c102 refcount_t map_guard; member
659 if(refcount_dec_and_test(&duart->map_guard)) in sbd_release_port()
702 refcount_inc(&duart->map_guard); in sbd_request_port()
703 if (refcount_read(&duart->map_guard) == 1) { in sbd_request_port()
706 refcount_dec(&duart->map_guard); in sbd_request_port()
714 if (refcount_dec_and_test(&duart->map_guard)) in sbd_request_port()