Lines Matching refs:flags
31 BUG_ON(test_and_set_bit(__LC_PARANOIA, &lc->flags)); \
35 clear_bit_unlock(__LC_PARANOIA, &lc->flags); \
59 val = cmpxchg(&lc->flags, 0, LC_LOCKED); in lc_try_lock()
68 old = lc->flags & LC_PARANOIA; in lc_try_lock()
70 val = cmpxchg(&lc->flags, old, new); in lc_try_lock()
208 lc->flags = 0; in lc_reset()
361 static struct lc_element *__lc_get(struct lru_cache *lc, unsigned int enr, unsigned int flags) in __lc_get() argument
366 if (lc->flags & LC_STARVING) { in __lc_get()
382 if (!(flags & LC_GET_MAY_USE_UNCOMMITTED)) in __lc_get()
400 if (!(flags & LC_GET_MAY_CHANGE)) in __lc_get()
405 test_and_set_bit(__LC_DIRTY, &lc->flags); in __lc_get()
410 if (test_bit(__LC_LOCKED, &lc->flags)) { in __lc_get()
419 __set_bit(__LC_STARVING, &lc->flags); in __lc_get()
432 clear_bit(__LC_STARVING, &lc->flags); in __lc_get()
569 clear_bit_unlock(__LC_STARVING, &lc->flags); in lc_put()