Lines Matching full:entity

305 	struct bfq_entity *group_entity = bfqq->entity.parent;  in bfqq_group()
308 entity) : in bfqq_group()
419 void bfq_init_entity(struct bfq_entity *entity, struct bfq_group *bfqg) in bfq_init_entity() argument
421 struct bfq_queue *bfqq = bfq_entity_to_bfqq(entity); in bfq_init_entity()
423 entity->weight = entity->new_weight; in bfq_init_entity()
424 entity->orig_weight = entity->new_weight; in bfq_init_entity()
430 * disappear before entity. in bfq_init_entity()
434 entity->parent = bfqg->my_entity; /* NULL for root group */ in bfq_init_entity()
435 entity->sched_data = &bfqg->sched_data; in bfq_init_entity()
542 struct bfq_entity *entity = &bfqg->entity; in bfq_pd_init() local
545 entity->orig_weight = entity->weight = entity->new_weight = d->weight; in bfq_pd_init()
546 entity->my_sched_data = &bfqg->sched_data; in bfq_pd_init()
547 entity->last_bfqq_created = NULL; in bfq_pd_init()
549 bfqg->my_entity = entity; /* in bfq_pd_init()
577 struct bfq_entity *entity; in bfq_group_set_parent() local
579 entity = &bfqg->entity; in bfq_group_set_parent()
580 entity->parent = parent->my_entity; in bfq_group_set_parent()
581 entity->sched_data = &parent->sched_data; in bfq_group_set_parent()
587 struct bfq_entity *entity; in bfq_link_bfqg() local
594 entity = &bfqg->entity; in bfq_link_bfqg()
595 for_each_entity(entity) { in bfq_link_bfqg()
596 struct bfq_group *curr_bfqg = container_of(entity, in bfq_link_bfqg()
597 struct bfq_group, entity); in bfq_link_bfqg()
636 * it on the new one. Avoid putting the entity on the old group idle tree.
646 struct bfq_entity *entity = &bfqq->entity; in bfq_bfqq_move() local
669 * bfq_del_bfqq_busy, thereby removing bfqq and its entity in bfq_bfqq_move()
680 else if (entity->on_st_or_in_serv) in bfq_bfqq_move()
681 bfq_put_idle_entity(bfq_entity_service_tree(entity), entity); in bfq_bfqq_move()
684 if (entity->parent && in bfq_bfqq_move()
685 entity->parent->last_bfqq_created == bfqq) in bfq_bfqq_move()
686 entity->parent->last_bfqq_created = NULL; in bfq_bfqq_move()
690 entity->parent = bfqg->my_entity; in bfq_bfqq_move()
691 entity->sched_data = &bfqg->sched_data; in bfq_bfqq_move()
723 struct bfq_entity *entity; in __bfq_bic_change_cgroup() local
726 entity = &async_bfqq->entity; in __bfq_bic_change_cgroup()
728 if (entity->sched_data != &bfqg->sched_data) { in __bfq_bic_change_cgroup()
737 if (sync_bfqq->entity.sched_data != &bfqg->sched_data) in __bfq_bic_change_cgroup()
748 if (bfqq->entity.sched_data != in __bfq_bic_change_cgroup()
849 * bfq_flush_idle_tree - deactivate any entity on the idle tree of @st.
854 struct bfq_entity *entity = st->first_idle; in bfq_flush_idle_tree() local
856 for (; entity ; entity = st->first_idle) in bfq_flush_idle_tree()
857 __bfq_deactivate_entity(entity, false); in bfq_flush_idle_tree()
861 * bfq_reparent_leaf_entity - move leaf entity to the root_group.
863 * @entity: the entity to move, if entity is a leaf; or the parent entity
864 * of an active leaf entity to move, if entity is not a leaf.
868 struct bfq_entity *entity, in bfq_reparent_leaf_entity() argument
872 struct bfq_entity *child_entity = entity; in bfq_reparent_leaf_entity()
903 struct bfq_entity *entity; in bfq_reparent_active_queues() local
905 while ((entity = bfq_entity_of(rb_first(active)))) in bfq_reparent_active_queues()
906 bfq_reparent_leaf_entity(bfqd, entity, ioprio_class); in bfq_reparent_active_queues()
915 * bfq_pd_offline - deactivate the entity associated with @pd,
927 struct bfq_entity *entity = bfqg->my_entity; in bfq_pd_offline() local
933 if (!entity) /* root group */ in bfq_pd_offline()
949 * Also, it may happen that the group has an entity in bfq_pd_offline()
971 __bfq_deactivate_entity(entity, false); in bfq_pd_offline()
1018 if (!bfqg->entity.dev_weight) in bfqg_prfill_weight_device()
1020 return __blkg_prfill_u64(sf, pd, bfqg->entity.dev_weight); in bfqg_prfill_weight_device()
1038 bfqg->entity.dev_weight = dev_weight; in bfq_group_set_weight()
1040 * Setting the prio_changed flag of the entity in bfq_group_set_weight()
1045 if ((unsigned short)weight != bfqg->entity.new_weight) { in bfq_group_set_weight()
1046 bfqg->entity.new_weight = (unsigned short)weight; in bfq_group_set_weight()
1049 * stored in bfqg->entity.new_weight before in bfq_group_set_weight()
1056 * depend also on bfqg->entity.new_weight (in in bfq_group_set_weight()
1059 * of bfqg->entity.new_weight is correctly in bfq_group_set_weight()
1063 bfqg->entity.prio_changed = 1; in bfq_group_set_weight()
1123 bfq_group_set_weight(bfqg, bfqg->entity.weight, v); in bfq_io_set_device_weight()
1445 void bfq_init_entity(struct bfq_entity *entity, struct bfq_group *bfqg) in bfq_init_entity() argument
1447 struct bfq_queue *bfqq = bfq_entity_to_bfqq(entity); in bfq_init_entity()
1449 entity->weight = entity->new_weight; in bfq_init_entity()
1450 entity->orig_weight = entity->new_weight; in bfq_init_entity()
1455 entity->sched_data = &bfqg->sched_data; in bfq_init_entity()