Lines Matching refs:next_lpos
655 unsigned long next_lpos; in data_push_tail() local
693 if (!data_make_reusable(rb, tail_lpos, lpos, &next_lpos)) { in data_push_tail()
769 next_lpos)) { /* LMM(data_push_tail:D) */ in data_push_tail()
1020 unsigned long begin_lpos, unsigned long next_lpos) in is_blk_wrapped() argument
1027 DATA_WRAPS(data_ring, next_lpos - 1); in is_blk_wrapped()
1035 unsigned long next_lpos; in get_next_lpos() local
1038 next_lpos = lpos + size; in get_next_lpos()
1041 if (!is_blk_wrapped(data_ring, begin_lpos, next_lpos)) in get_next_lpos()
1042 return next_lpos; in get_next_lpos()
1045 return (DATA_THIS_WRAP_START_LPOS(data_ring, next_lpos) + size); in get_next_lpos()
1059 unsigned long next_lpos; in data_alloc() local
1077 next_lpos = get_next_lpos(data_ring, begin_lpos, size); in data_alloc()
1088 if (WARN_ON_ONCE(next_lpos - begin_lpos > DATA_SIZE(data_ring)) || in data_alloc()
1089 !data_push_tail(rb, next_lpos - DATA_SIZE(data_ring))) { in data_alloc()
1113 next_lpos)); /* LMM(data_alloc:A) */ in data_alloc()
1118 if (is_blk_wrapped(data_ring, begin_lpos, next_lpos)) { in data_alloc()
1130 blk_lpos->next = next_lpos; in data_alloc()
1153 unsigned long next_lpos; in data_realloc() local
1166 next_lpos = get_next_lpos(data_ring, blk_lpos->begin, size); in data_realloc()
1176 if (!need_more_space(data_ring, head_lpos, next_lpos)) { in data_realloc()
1192 if (WARN_ON_ONCE(next_lpos - blk_lpos->begin > DATA_SIZE(data_ring)) || in data_realloc()
1193 !data_push_tail(rb, next_lpos - DATA_SIZE(data_ring))) { in data_realloc()
1199 next_lpos)) { /* LMM(data_realloc:A) */ in data_realloc()
1205 if (is_blk_wrapped(data_ring, blk_lpos->begin, next_lpos)) { in data_realloc()
1228 blk_lpos->next = next_lpos; in data_realloc()