Lines Matching refs:data_dir
277 * as_choose_req selects the preferred one of two requests of the same data_dir
283 int data_dir;
293 data_dir = rq_is_sync(rq1);
295 last = ad->last_sector[data_dir];
299 BUG_ON(data_dir != rq_is_sync(rq2));
370 const int data_dir = rq_is_sync(last);
372 rbnext = rb_first(&ad->sort_list[data_dir]);
531 int data_dir = rq_is_sync(rq);
538 if (data_dir == REQ_SYNC) {
750 const int data_dir = rq_is_sync(rq);
753 ad->next_rq[data_dir] = as_choose_req(ad, rq, ad->next_rq[data_dir]);
858 const int data_dir = rq_is_sync(rq);
874 if (ad->next_rq[data_dir] == rq)
875 ad->next_rq[data_dir] = as_find_next_rq(ad, rq);
932 const int data_dir = rq_is_sync(rq);
943 ad->last_sector[data_dir] = rq->sector + rq->nr_sectors;
945 if (data_dir == REQ_SYNC) {
960 ad->next_rq[data_dir] = as_find_next_rq(ad, rq);
1145 int data_dir;
1149 data_dir = rq_is_sync(rq);
1163 rq_set_fifo_time(rq, jiffies + ad->fifo_expire[data_dir]);
1164 list_add_tail(&rq->queuelist, &ad->fifo_list[data_dir]);