Lines Matching defs:first
245 unsigned first = i->sector >> (AL_EXTENT_SHIFT-9);
246 unsigned last = i->size == 0 ? first : (i->sector + (i->size >> 9) - 1) >> (AL_EXTENT_SHIFT-9);
248 D_ASSERT(device, first <= last);
252 if (first != last)
255 return _al_get(device, first, true);
262 unsigned first = i->sector >> (AL_EXTENT_SHIFT-9);
263 unsigned last = i->size == 0 ? first : (i->sector + (i->size >> 9) - 1) >> (AL_EXTENT_SHIFT-9);
267 D_ASSERT(device, first <= last);
270 for (enr = first; enr <= last; enr++) {
489 unsigned first = i->sector >> (AL_EXTENT_SHIFT-9);
490 unsigned last = i->size == 0 ? first : (i->sector + (i->size >> 9) - 1) >> (AL_EXTENT_SHIFT-9);
495 D_ASSERT(device, first <= last);
497 nr_al_extents = 1 + last - first; /* worst case: all touched extends are cold. */
502 * We could first check how many updates are *actually* needed,
519 for (enr = first; enr <= last; enr++) {
535 for (enr = first; enr <= last; enr++) {
548 unsigned first = i->sector >> (AL_EXTENT_SHIFT-9);
549 unsigned last = i->size == 0 ? first : (i->sector + (i->size >> 9) - 1) >> (AL_EXTENT_SHIFT-9);
554 D_ASSERT(device, first <= last);
557 for (enr = first; enr <= last; enr++) {
587 * the reference count of each entry dropped to 0 first, of course.