Lines Matching refs:bfqd

38 unsigned int bfq_tot_busy_queues(struct bfq_data *bfqd)  in bfq_tot_busy_queues()  argument
40 return bfqd->busy_queues[0] + bfqd->busy_queues[1] + in bfq_tot_busy_queues()
41 bfqd->busy_queues[2]; in bfq_tot_busy_queues()
226 if (bfqg != bfqg->bfqd->root_group) in bfq_inc_active_entities()
235 if (bfqg != bfqg->bfqd->root_group) in bfq_dec_active_entities()
304 bfq_log_bfqq(bfqq->bfqd, bfqq, in bfq_calc_finish()
307 bfq_log_bfqq(bfqq->bfqd, bfqq, in bfq_calc_finish()
496 list_add(&bfqq->bfqq_list, &bfqq->bfqd->active_list[bfqq->actuator_idx]); in bfq_active_insert()
530 bfq_log_bfqq(bfqq->bfqd, bfqq, "get_entity: %p %d", in bfq_get_entity()
607 list_add(&bfqq->bfqq_list, &bfqq->bfqd->idle_list); in bfq_idle_insert()
807 bfq_log_bfqq(bfqq->bfqd, bfqq, "bfqq_served %d secs", served); in bfq_bfqq_served()
837 void bfq_bfqq_charge_time(struct bfq_data *bfqd, struct bfq_queue *bfqq, in bfq_bfqq_charge_time() argument
844 (bfqd->bfq_max_budget * bounded_time_ms) / timeout_ms; in bfq_bfqq_charge_time()
1444 bool next_queue_may_preempt(struct bfq_data *bfqd) in next_queue_may_preempt() argument
1446 struct bfq_sched_data *sd = &bfqd->root_group->sched_data; in next_queue_may_preempt()
1454 struct bfq_queue *bfq_get_next_queue(struct bfq_data *bfqd) in bfq_get_next_queue() argument
1460 if (bfq_tot_busy_queues(bfqd) == 0) in bfq_get_next_queue()
1468 sd = &bfqd->root_group->sched_data; in bfq_get_next_queue()
1547 bool __bfq_bfqd_reset_in_service(struct bfq_data *bfqd) in __bfq_bfqd_reset_in_service() argument
1549 struct bfq_queue *in_serv_bfqq = bfqd->in_service_queue; in __bfq_bfqd_reset_in_service()
1554 hrtimer_try_to_cancel(&bfqd->idle_slice_timer); in __bfq_bfqd_reset_in_service()
1555 bfqd->in_service_queue = NULL; in __bfq_bfqd_reset_in_service()
1587 void bfq_deactivate_bfqq(struct bfq_data *bfqd, struct bfq_queue *bfqq, in bfq_deactivate_bfqq() argument
1595 void bfq_activate_bfqq(struct bfq_data *bfqd, struct bfq_queue *bfqq) in bfq_activate_bfqq() argument
1604 void bfq_requeue_bfqq(struct bfq_data *bfqd, struct bfq_queue *bfqq, in bfq_requeue_bfqq() argument
1610 bfqq == bfqd->in_service_queue, expiration); in bfq_requeue_bfqq()
1621 bfqq->bfqd->num_groups_with_pending_reqs++; in bfq_add_bfqq_in_groups_with_pending_reqs()
1634 bfqq->bfqd->num_groups_with_pending_reqs--; in bfq_del_bfqq_in_groups_with_pending_reqs()
1646 struct bfq_data *bfqd = bfqq->bfqd; in bfq_del_bfqq_busy() local
1648 bfq_log_bfqq(bfqd, bfqq, "del from busy"); in bfq_del_bfqq_busy()
1652 bfqd->busy_queues[bfqq->ioprio_class - 1]--; in bfq_del_bfqq_busy()
1655 bfqd->wr_busy_queues--; in bfq_del_bfqq_busy()
1659 bfq_deactivate_bfqq(bfqd, bfqq, true, expiration); in bfq_del_bfqq_busy()
1676 struct bfq_data *bfqd = bfqq->bfqd; in bfq_add_bfqq_busy() local
1678 bfq_log_bfqq(bfqd, bfqq, "add to busy"); in bfq_add_bfqq_busy()
1680 bfq_activate_bfqq(bfqd, bfqq); in bfq_add_bfqq_busy()
1683 bfqd->busy_queues[bfqq->ioprio_class - 1]++; in bfq_add_bfqq_busy()
1692 bfqd->wr_busy_queues++; in bfq_add_bfqq_busy()