Lines Matching defs:first
32 The first condition is automatically cleared when a request has
42 requeued request and autosense-requests, which are added first. Each bus
56 scsi_ccb *first, *last, *before, *next;
61 first = device->queued_reqs;
63 if( first == NULL ) {
69 SHOW_FLOW( 3, "first=%p, pos=%" B_PRId64 ", last_pos=%" B_PRId64,
70 first, first->sort, device->last_sort );
96 // (i.e. last) position and position of first queued request,
97 // insert it as first queue entry; i.e. we get descending order
98 // - if position of first queued request is before current position
99 // and position of new req is before first queued request, add it
100 // as first queue entry; i.e. the new and the (previously) first
103 // the first exception should help if the queue is short (not sure
106 last = first->prev;
109 new_request->sort <= first->sort) ||
110 (first->sort < device->last_sort &&
111 new_request->sort <= first->sort) )
116 // we should have a new first request, make sure we don't bypass syncs
162 // don't check whether we added request as first as this is impossible
215 // make device first in bus queue to execute sense ASAP