Lines Matching refs:first
256 unsigned first = i->sector >> (AL_EXTENT_SHIFT-9);
257 unsigned last = i->size == 0 ? first : (i->sector + (i->size >> 9) - 1) >> (AL_EXTENT_SHIFT-9);
259 D_ASSERT(device, (unsigned)(last - first) <= 1);
263 if (first != last)
266 return _al_get(device, first, true);
273 unsigned first = i->sector >> (AL_EXTENT_SHIFT-9);
274 unsigned last = i->size == 0 ? first : (i->sector + (i->size >> 9) - 1) >> (AL_EXTENT_SHIFT-9);
278 D_ASSERT(device, first <= last);
281 for (enr = first; enr <= last; enr++) {
343 unsigned first = i->sector >> (AL_EXTENT_SHIFT-9);
344 unsigned last = i->size == 0 ? first : (i->sector + (i->size >> 9) - 1) >> (AL_EXTENT_SHIFT-9);
349 D_ASSERT(device, first <= last);
351 nr_al_extents = 1 + last - first; /* worst case: all touched extends are cold. */
356 * We could first check how many updates are *actually* needed,
373 for (enr = first; enr <= last; enr++) {
389 for (enr = first; enr <= last; enr++) {
402 unsigned first = i->sector >> (AL_EXTENT_SHIFT-9);
403 unsigned last = i->size == 0 ? first : (i->sector + (i->size >> 9) - 1) >> (AL_EXTENT_SHIFT-9);
408 D_ASSERT(device, first <= last);
411 for (enr = first; enr <= last; enr++) {
588 * the reference count of each entry dropped to 0 first, of course.