Lines Matching defs:cur
394 struct bm_position cur; /* most recently used bit position */
557 bm->cur.zone = list_entry(bm->zones.next, struct mem_zone_bm_rtree, list);
558 bm->cur.node = list_entry(bm->cur.zone->leaves.next, struct rtree_node, list);
559 bm->cur.node_pfn = 0;
560 bm->cur.node_bit = 0;
602 struct mem_extent *ext, *cur, *aux;
633 cur = ext;
634 list_for_each_entry_safe_continue(cur, aux, list, hook)
636 if (zone_end < cur->start) {
639 if (zone_end < cur->end) {
640 ext->end = cur->end;
642 list_del(&cur->hook);
643 kfree(cur);
712 * The cur.zone, cur.block and cur.node_pfn members of @bm are updated.
723 zone = bm->cur.zone;
755 node = bm->cur.node;
756 if (zone == bm->cur.zone && ((pfn - zone->start_pfn) & ~BM_BLOCK_MASK) == bm->cur.node_pfn) {
774 bm->cur.zone = zone;
775 bm->cur.node = node;
776 bm->cur.node_pfn = (pfn - zone->start_pfn) & ~BM_BLOCK_MASK;
825 bit = max(bm->cur.node_bit - 1, 0);
826 clear_bit(bit, bm->cur.node->data);
860 if (!list_is_last(&bm->cur.node->list, &bm->cur.zone->leaves)) {
861 bm->cur.node = list_entry(bm->cur.node->list.next, struct rtree_node, list);
862 bm->cur.node_pfn += BM_BITS_PER_BLOCK;
863 bm->cur.node_bit = 0;
869 if (!list_is_last(&bm->cur.zone->list, &bm->zones)) {
870 bm->cur.zone = list_entry(bm->cur.zone->list.next, struct mem_zone_bm_rtree, list);
871 bm->cur.node = list_entry(bm->cur.zone->leaves.next, struct rtree_node, list);
872 bm->cur.node_pfn = 0;
873 bm->cur.node_bit = 0;
898 pages = bm->cur.zone->end_pfn - bm->cur.zone->start_pfn;
899 bits = min(pages - bm->cur.node_pfn, BM_BITS_PER_BLOCK);
900 bit = find_next_bit(bm->cur.node->data, bits, bm->cur.node_bit);
902 pfn = bm->cur.zone->start_pfn + bm->cur.node_pfn + bit;
903 bm->cur.node_bit = bit + 1;
2154 if (handle->cur > nr_meta_pages + nr_copy_pages) {
2165 if (!handle->cur) {
2175 } else if (handle->cur <= nr_meta_pages) {
2198 handle->cur++;
2675 if (handle->cur > 1 && handle->cur > nr_meta_pages + nr_copy_pages) {
2681 if (!handle->cur) {
2692 } else if (handle->cur == 1) {
2706 } else if (handle->cur <= nr_meta_pages + 1) {
2712 if (handle->cur == nr_meta_pages + 1) {
2738 handle->cur++;
2755 if (handle->cur > 1 && handle->cur > nr_meta_pages + nr_copy_pages) {
2763 return !(!nr_copy_pages || !last_highmem_page_copied() || handle->cur <= nr_meta_pages + nr_copy_pages);