Lines Matching refs:match
104 struct memtype *match; in memtype_rb_exact_match() local
106 match = memtype_rb_lowest_match(root, start, end); in memtype_rb_exact_match()
107 while (match != NULL && match->start < end) { in memtype_rb_exact_match()
110 if (match->start == start && match->end == end) in memtype_rb_exact_match()
111 return match; in memtype_rb_exact_match()
113 node = rb_next(&match->rb); in memtype_rb_exact_match()
115 match = container_of(node, struct memtype, rb); in memtype_rb_exact_match()
117 match = NULL; in memtype_rb_exact_match()
129 struct memtype *match; in memtype_rb_check_conflict() local
132 match = memtype_rb_lowest_match(&memtype_rbroot, start, end); in memtype_rb_check_conflict()
133 if (match == NULL) in memtype_rb_check_conflict()
136 if (match->type != found_type && newtype == NULL) in memtype_rb_check_conflict()
139 dprintk("Overlap at 0x%Lx-0x%Lx\n", match->start, match->end); in memtype_rb_check_conflict()
140 found_type = match->type; in memtype_rb_check_conflict()
142 node = rb_next(&match->rb); in memtype_rb_check_conflict()
144 match = container_of(node, struct memtype, rb); in memtype_rb_check_conflict()
146 if (match->start >= end) /* Checked all possible matches */ in memtype_rb_check_conflict()
149 if (is_node_overlap(match, start, end) && in memtype_rb_check_conflict()
150 match->type != found_type) { in memtype_rb_check_conflict()
154 node = rb_next(&match->rb); in memtype_rb_check_conflict()
165 cattr_name(found_type), cattr_name(match->type)); in memtype_rb_check_conflict()