Lines Matching full:start

30 	bre->start = addr;  in append_badrange_entry()
69 if (bre->start == addr) { in add_badrange()
101 void badrange_forget(struct badrange *badrange, phys_addr_t start, in badrange_forget() argument
105 u64 clr_end = start + len - 1; in badrange_forget()
111 * [start, clr_end] is the badrange interval being cleared. in badrange_forget()
112 * [bre->start, bre_end] is the badrange_list entry we're comparing in badrange_forget()
114 * to be modified (update either start or length), deleted, or in badrange_forget()
119 u64 bre_end = bre->start + bre->length - 1; in badrange_forget()
122 if (bre_end < start) in badrange_forget()
124 if (bre->start > clr_end) in badrange_forget()
127 if ((bre->start >= start) && (bre_end <= clr_end)) { in badrange_forget()
132 /* Adjust start point of partially cleared entries */ in badrange_forget()
133 if ((start <= bre->start) && (clr_end > bre->start)) { in badrange_forget()
134 bre->length -= clr_end - bre->start + 1; in badrange_forget()
135 bre->start = clr_end + 1; in badrange_forget()
139 if ((bre->start < start) && (bre_end <= clr_end)) { in badrange_forget()
140 /* bre->start remains the same */ in badrange_forget()
141 bre->length = start - bre->start; in badrange_forget()
149 if ((bre->start < start) && (bre_end > clr_end)) { in badrange_forget()
157 bre->length = start - bre->start; in badrange_forget()
222 u64 bre_end = bre->start + bre->length - 1; in badblocks_populate()
225 if (bre_end < range->start) in badblocks_populate()
227 if (bre->start > range->end) in badblocks_populate()
229 /* Deal with any overlap after start of the namespace */ in badblocks_populate()
230 if (bre->start >= range->start) { in badblocks_populate()
231 u64 start = bre->start; in badblocks_populate() local
237 len = range->start + range_len(range) in badblocks_populate()
238 - bre->start; in badblocks_populate()
239 __add_badblock_range(bb, start - range->start, len); in badblocks_populate()
246 if (bre->start < range->start) { in badblocks_populate()
250 len = bre->start + bre->length - range->start; in badblocks_populate()