Lines Matching refs:begin
325 #define BLK_DATALESS(blk) (LPOS_DATALESS((blk)->begin) && \
602 if (blk_lpos->begin != lpos_begin) in data_make_reusable()
611 if (blk_lpos->begin != lpos_begin) in data_make_reusable()
1031 blk_lpos->begin = NO_LPOS; in data_alloc()
1045 blk_lpos->begin = FAILED_LPOS; in data_alloc()
1084 blk_lpos->begin = begin_lpos; in data_alloc()
1117 wrapped = (DATA_WRAPS(data_ring, blk_lpos->begin) != DATA_WRAPS(data_ring, blk_lpos->next)); in data_realloc()
1121 next_lpos = get_next_lpos(data_ring, blk_lpos->begin, size); in data_realloc()
1128 blk = to_block(data_ring, blk_lpos->begin); in data_realloc()
1141 blk = to_block(data_ring, blk_lpos->begin); in data_realloc()
1143 if (DATA_WRAPS(data_ring, blk_lpos->begin) != DATA_WRAPS(data_ring, next_lpos)) { in data_realloc()
1162 (blk_lpos->next - blk_lpos->begin) - sizeof(blk->id)); in data_realloc()
1179 if (DATA_WRAPS(data_ring, blk_lpos->begin) == DATA_WRAPS(data_ring, blk_lpos->next)) { in space_used()
1182 DATA_INDEX(data_ring, blk_lpos->begin)); in space_used()
1190 DATA_SIZE(data_ring) - DATA_INDEX(data_ring, blk_lpos->begin)); in space_used()
1210 if (blk_lpos->begin == NO_LPOS && blk_lpos->next == NO_LPOS) { in get_data()
1218 if (DATA_WRAPS(data_ring, blk_lpos->begin) == DATA_WRAPS(data_ring, blk_lpos->next) && in get_data()
1219 blk_lpos->begin < blk_lpos->next) { in get_data()
1220 db = to_block(data_ring, blk_lpos->begin); in get_data()
1221 *data_size = blk_lpos->next - blk_lpos->begin; in get_data()
1224 } else if (DATA_WRAPS(data_ring, blk_lpos->begin + DATA_SIZE(data_ring)) == in get_data()
1236 if (WARN_ON_ONCE(blk_lpos->begin != ALIGN(blk_lpos->begin, sizeof(db->id))) || in get_data()
1772 (blk_lpos->begin == FAILED_LPOS && blk_lpos->next == FAILED_LPOS)) { in desc_read_finalized_seq()
2056 descs[_DESCS_COUNT(descbits) - 1].text_blk_lpos.begin = FAILED_LPOS; in prb_init()