Lines Matching refs:lmb
28 static inline struct drmem_lmb *drmem_lmb_next(struct drmem_lmb *lmb, in drmem_lmb_next() argument
36 if (((++lmb - start) % 16) == 0) in drmem_lmb_next()
39 return lmb; in drmem_lmb_next()
42 #define for_each_drmem_lmb_in_range(lmb, start, end) \ argument
43 for ((lmb) = (start); (lmb) < (end); lmb = drmem_lmb_next(lmb, start))
45 #define for_each_drmem_lmb(lmb) \ argument
46 for_each_drmem_lmb_in_range((lmb), \
90 static inline void drmem_mark_lmb_reserved(struct drmem_lmb *lmb) in drmem_mark_lmb_reserved() argument
92 lmb->flags |= DRMEM_LMB_RESERVED; in drmem_mark_lmb_reserved()
95 static inline void drmem_remove_lmb_reservation(struct drmem_lmb *lmb) in drmem_remove_lmb_reservation() argument
97 lmb->flags &= ~DRMEM_LMB_RESERVED; in drmem_remove_lmb_reservation()
100 static inline bool drmem_lmb_reserved(struct drmem_lmb *lmb) in drmem_lmb_reserved() argument
102 return lmb->flags & DRMEM_LMB_RESERVED; in drmem_lmb_reserved()
116 static inline void invalidate_lmb_associativity_index(struct drmem_lmb *lmb) in invalidate_lmb_associativity_index() argument
118 lmb->aa_index = 0xffffffff; in invalidate_lmb_associativity_index()