Lines Matching full:entity

305 	struct bfq_entity *group_entity = bfqq->entity.parent;  in bfqq_group()
308 entity) : in bfqq_group()
417 void bfq_init_entity(struct bfq_entity *entity, struct bfq_group *bfqg) in bfq_init_entity() argument
419 struct bfq_queue *bfqq = bfq_entity_to_bfqq(entity); in bfq_init_entity()
421 entity->weight = entity->new_weight; in bfq_init_entity()
422 entity->orig_weight = entity->new_weight; in bfq_init_entity()
428 * disappear before entity. in bfq_init_entity()
432 entity->parent = bfqg->my_entity; /* NULL for root group */ in bfq_init_entity()
433 entity->sched_data = &bfqg->sched_data; in bfq_init_entity()
534 struct bfq_entity *entity = &bfqg->entity; in bfq_pd_init() local
537 entity->orig_weight = entity->weight = entity->new_weight = d->weight; in bfq_pd_init()
538 entity->my_sched_data = &bfqg->sched_data; in bfq_pd_init()
539 entity->last_bfqq_created = NULL; in bfq_pd_init()
541 bfqg->my_entity = entity; /* in bfq_pd_init()
569 struct bfq_entity *entity; in bfq_group_set_parent() local
571 entity = &bfqg->entity; in bfq_group_set_parent()
572 entity->parent = parent->my_entity; in bfq_group_set_parent()
573 entity->sched_data = &parent->sched_data; in bfq_group_set_parent()
579 struct bfq_entity *entity; in bfq_link_bfqg() local
586 entity = &bfqg->entity; in bfq_link_bfqg()
587 for_each_entity(entity) { in bfq_link_bfqg()
588 struct bfq_group *curr_bfqg = container_of(entity, in bfq_link_bfqg()
589 struct bfq_group, entity); in bfq_link_bfqg()
628 * it on the new one. Avoid putting the entity on the old group idle tree.
638 struct bfq_entity *entity = &bfqq->entity; in bfq_bfqq_move() local
661 if (entity->in_groups_with_pending_reqs) { in bfq_bfqq_move()
667 * bfq_del_bfqq_busy, thereby removing bfqq and its entity in bfq_bfqq_move()
678 else if (entity->on_st_or_in_serv) in bfq_bfqq_move()
679 bfq_put_idle_entity(bfq_entity_service_tree(entity), entity); in bfq_bfqq_move()
682 if (entity->parent && in bfq_bfqq_move()
683 entity->parent->last_bfqq_created == bfqq) in bfq_bfqq_move()
684 entity->parent->last_bfqq_created = NULL; in bfq_bfqq_move()
688 entity->parent = bfqg->my_entity; in bfq_bfqq_move()
689 entity->sched_data = &bfqg->sched_data; in bfq_bfqq_move()
718 if (sync_bfqq->entity.sched_data != &bfqg->sched_data) in bfq_sync_bfqq_move()
729 if (bfqq->entity.sched_data != &bfqg->sched_data) in bfq_sync_bfqq_move()
769 async_bfqq->entity.sched_data != &bfqg->sched_data) { in __bfq_bic_change_cgroup()
855 * bfq_flush_idle_tree - deactivate any entity on the idle tree of @st.
860 struct bfq_entity *entity = st->first_idle; in bfq_flush_idle_tree() local
862 for (; entity ; entity = st->first_idle) in bfq_flush_idle_tree()
863 __bfq_deactivate_entity(entity, false); in bfq_flush_idle_tree()
867 * bfq_reparent_leaf_entity - move leaf entity to the root_group.
869 * @entity: the entity to move, if entity is a leaf; or the parent entity
870 * of an active leaf entity to move, if entity is not a leaf.
874 struct bfq_entity *entity, in bfq_reparent_leaf_entity() argument
878 struct bfq_entity *child_entity = entity; in bfq_reparent_leaf_entity()
909 struct bfq_entity *entity; in bfq_reparent_active_queues() local
911 while ((entity = bfq_entity_of(rb_first(active)))) in bfq_reparent_active_queues()
912 bfq_reparent_leaf_entity(bfqd, entity, ioprio_class); in bfq_reparent_active_queues()
921 * bfq_pd_offline - deactivate the entity associated with @pd,
933 struct bfq_entity *entity = bfqg->my_entity; in bfq_pd_offline() local
939 if (!entity) /* root group */ in bfq_pd_offline()
955 * Also, it may happen that the group has an entity in bfq_pd_offline()
977 __bfq_deactivate_entity(entity, false); in bfq_pd_offline()
1023 if (!bfqg->entity.dev_weight) in bfqg_prfill_weight_device()
1025 return __blkg_prfill_u64(sf, pd, bfqg->entity.dev_weight); in bfqg_prfill_weight_device()
1043 bfqg->entity.dev_weight = dev_weight; in bfq_group_set_weight()
1045 * Setting the prio_changed flag of the entity in bfq_group_set_weight()
1050 if ((unsigned short)weight != bfqg->entity.new_weight) { in bfq_group_set_weight()
1051 bfqg->entity.new_weight = (unsigned short)weight; in bfq_group_set_weight()
1054 * stored in bfqg->entity.new_weight before in bfq_group_set_weight()
1061 * depend also on bfqg->entity.new_weight (in in bfq_group_set_weight()
1064 * of bfqg->entity.new_weight is correctly in bfq_group_set_weight()
1068 bfqg->entity.prio_changed = 1; in bfq_group_set_weight()
1130 bfq_group_set_weight(bfqg, bfqg->entity.weight, v); in bfq_io_set_device_weight()
1450 void bfq_init_entity(struct bfq_entity *entity, struct bfq_group *bfqg) in bfq_init_entity() argument
1452 struct bfq_queue *bfqq = bfq_entity_to_bfqq(entity); in bfq_init_entity()
1454 entity->weight = entity->new_weight; in bfq_init_entity()
1455 entity->orig_weight = entity->new_weight; in bfq_init_entity()
1460 entity->sched_data = &bfqg->sched_data; in bfq_init_entity()