Home
last modified time | relevance | path

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

/linux/drivers/tty/serial/
H A Ddz.c78 atomic_t map_guard; member
664 int map_guard; in dz_release_port() local
669 map_guard = atomic_add_return(-1, &mux->map_guard); in dz_release_port()
670 if (!map_guard) in dz_release_port()
689 int map_guard; in dz_request_port() local
692 map_guard = atomic_add_return(1, &mux->map_guard); in dz_request_port()
693 if (map_guard == 1) { in dz_request_port()
696 atomic_add(-1, &mux->map_guard); in dz_request_port()
704 map_guard = atomic_add_return(-1, &mux->map_guard); in dz_request_port()
705 if (!map_guard) in dz_request_port()
H A Dsb1250-duart.c97 refcount_t map_guard; member
655 if(refcount_dec_and_test(&duart->map_guard)) in sbd_release_port()
698 refcount_inc(&duart->map_guard); in sbd_request_port()
699 if (refcount_read(&duart->map_guard) == 1) { in sbd_request_port()
702 refcount_dec(&duart->map_guard); in sbd_request_port()
710 if (refcount_dec_and_test(&duart->map_guard)) in sbd_request_port()