Lines Matching refs:top
480 local_t top; member
616 static inline u64 rb_time_val(unsigned long top, unsigned long bottom) in rb_time_val() argument
620 val = top & RB_TIME_VAL_MASK; in rb_time_val()
629 unsigned long top, bottom; in __rb_time_read() local
639 top = local_read(&t->top); in __rb_time_read()
643 *cnt = rb_time_cnt(top); in __rb_time_read()
649 *ret = rb_time_val(top, bottom); in __rb_time_read()
665 static inline void rb_time_split(u64 val, unsigned long *top, unsigned long *bottom) in rb_time_split() argument
667 *top = (unsigned long)((val >> RB_TIME_SHIFT) & RB_TIME_VAL_MASK); in rb_time_split()
679 unsigned long cnt, top, bottom; in rb_time_set() local
681 rb_time_split(val, &top, &bottom); in rb_time_set()
686 rb_time_val_set(&t->top, top, cnt); in rb_time_set()
702 unsigned long cnt, top, bottom; in rb_time_cmpxchg() local
721 rb_time_split(val, &top, &bottom); in rb_time_cmpxchg()
722 top = rb_time_val_cnt(top, cnt); in rb_time_cmpxchg()
731 if (!rb_time_read_cmpxchg(&t->top, top, top2)) in rb_time_cmpxchg()