Lines Matching refs:blocks
596 int reserve_oob_blocks(struct block_allocation *alloc, int blocks) in reserve_oob_blocks() argument
598 struct region *oob = split_allocation(alloc, blocks); in reserve_oob_blocks()
614 static int advance_list_ptr(struct region_list *list, int blocks) in advance_list_ptr() argument
618 while (reg != NULL && blocks > 0) { in advance_list_ptr()
619 if (reg->len > list->partial_iter + blocks) { in advance_list_ptr()
620 list->partial_iter += blocks; in advance_list_ptr()
624 blocks -= (reg->len - list->partial_iter); in advance_list_ptr()
629 if (blocks > 0) in advance_list_ptr()
636 int advance_blocks(struct block_allocation *alloc, int blocks) in advance_blocks() argument
638 return advance_list_ptr(&alloc->list, blocks); in advance_blocks()
641 int advance_oob_blocks(struct block_allocation *alloc, int blocks) in advance_oob_blocks() argument
643 return advance_list_ptr(&alloc->oob_list, blocks); in advance_oob_blocks()