Lines Matching refs:ret
31 extern void __page_ref_mod_and_test(struct page *page, int v, int ret);
32 extern void __page_ref_mod_and_return(struct page *page, int v, int ret);
34 extern void __page_ref_freeze(struct page *page, int v, int ret);
47 static inline void __page_ref_mod_and_test(struct page *page, int v, int ret) in __page_ref_mod_and_test() argument
50 static inline void __page_ref_mod_and_return(struct page *page, int v, int ret) in __page_ref_mod_and_return() argument
56 static inline void __page_ref_freeze(struct page *page, int v, int ret) in __page_ref_freeze() argument
107 int ret = atomic_sub_return(nr, &page->_refcount); in page_ref_sub_return() local
110 __page_ref_mod_and_return(page, -nr, ret); in page_ref_sub_return()
111 return ret; in page_ref_sub_return()
130 int ret = atomic_sub_and_test(nr, &page->_refcount); in page_ref_sub_and_test() local
133 __page_ref_mod_and_test(page, -nr, ret); in page_ref_sub_and_test()
134 return ret; in page_ref_sub_and_test()
139 int ret = atomic_inc_return(&page->_refcount); in page_ref_inc_return() local
142 __page_ref_mod_and_return(page, 1, ret); in page_ref_inc_return()
143 return ret; in page_ref_inc_return()
148 int ret = atomic_dec_and_test(&page->_refcount); in page_ref_dec_and_test() local
151 __page_ref_mod_and_test(page, -1, ret); in page_ref_dec_and_test()
152 return ret; in page_ref_dec_and_test()
157 int ret = atomic_dec_return(&page->_refcount); in page_ref_dec_return() local
160 __page_ref_mod_and_return(page, -1, ret); in page_ref_dec_return()
161 return ret; in page_ref_dec_return()
166 int ret = atomic_add_unless(&page->_refcount, nr, u); in page_ref_add_unless() local
169 __page_ref_mod_unless(page, nr, ret); in page_ref_add_unless()
170 return ret; in page_ref_add_unless()
175 int ret = likely(atomic_cmpxchg(&page->_refcount, count, 0) == count); in page_ref_freeze() local
178 __page_ref_freeze(page, count, ret); in page_ref_freeze()
179 return ret; in page_ref_freeze()