Lines Matching full:entity

310 	struct bfq_entity *group_entity = bfqq->entity.parent;  in bfqq_group()
313 entity) : in bfqq_group()
424 void bfq_init_entity(struct bfq_entity *entity, struct bfq_group *bfqg) in bfq_init_entity() argument
426 struct bfq_queue *bfqq = bfq_entity_to_bfqq(entity); in bfq_init_entity()
428 entity->weight = entity->new_weight; in bfq_init_entity()
429 entity->orig_weight = entity->new_weight; in bfq_init_entity()
435 * disappear before entity. in bfq_init_entity()
439 entity->parent = bfqg->my_entity; /* NULL for root group */ in bfq_init_entity()
440 entity->sched_data = &bfqg->sched_data; in bfq_init_entity()
545 struct bfq_entity *entity = &bfqg->entity; in bfq_pd_init() local
548 entity->orig_weight = entity->weight = entity->new_weight = d->weight; in bfq_pd_init()
549 entity->my_sched_data = &bfqg->sched_data; in bfq_pd_init()
550 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()
599 struct bfq_entity *entity; in bfq_find_set_group() local
611 entity = &bfqg->entity; in bfq_find_set_group()
612 for_each_entity(entity) { in bfq_find_set_group()
613 struct bfq_group *curr_bfqg = container_of(entity, in bfq_find_set_group()
614 struct bfq_group, entity); in bfq_find_set_group()
633 * it on the new one. Avoid putting the entity on the old group idle tree.
643 struct bfq_entity *entity = &bfqq->entity; in bfq_bfqq_move() local
652 * bfq_del_bfqq_busy, thereby removing bfqq and its entity in bfq_bfqq_move()
663 else if (entity->on_st_or_in_serv) in bfq_bfqq_move()
664 bfq_put_idle_entity(bfq_entity_service_tree(entity), entity); in bfq_bfqq_move()
667 entity->parent = bfqg->my_entity; in bfq_bfqq_move()
668 entity->sched_data = &bfqg->sched_data; in bfq_bfqq_move()
705 struct bfq_entity *entity; in __bfq_bic_change_cgroup() local
713 entity = &async_bfqq->entity; in __bfq_bic_change_cgroup()
715 if (entity->sched_data != &bfqg->sched_data) { in __bfq_bic_change_cgroup()
722 entity = &sync_bfqq->entity; in __bfq_bic_change_cgroup()
723 if (entity->sched_data != &bfqg->sched_data) in __bfq_bic_change_cgroup()
804 * bfq_flush_idle_tree - deactivate any entity on the idle tree of @st.
809 struct bfq_entity *entity = st->first_idle; in bfq_flush_idle_tree() local
811 for (; entity ; entity = st->first_idle) in bfq_flush_idle_tree()
812 __bfq_deactivate_entity(entity, false); in bfq_flush_idle_tree()
816 * bfq_reparent_leaf_entity - move leaf entity to the root_group.
818 * @entity: the entity to move, if entity is a leaf; or the parent entity
819 * of an active leaf entity to move, if entity is not a leaf.
822 struct bfq_entity *entity, in bfq_reparent_leaf_entity() argument
826 struct bfq_entity *child_entity = entity; in bfq_reparent_leaf_entity()
856 struct bfq_entity *entity; in bfq_reparent_active_queues() local
858 while ((entity = bfq_entity_of(rb_first(active)))) in bfq_reparent_active_queues()
859 bfq_reparent_leaf_entity(bfqd, entity, ioprio_class); in bfq_reparent_active_queues()
868 * bfq_pd_offline - deactivate the entity associated with @pd,
880 struct bfq_entity *entity = bfqg->my_entity; in bfq_pd_offline() local
886 if (!entity) /* root group */ in bfq_pd_offline()
902 * Also, it may happen that the group has an entity in bfq_pd_offline()
924 __bfq_deactivate_entity(entity, false); in bfq_pd_offline()
970 if (!bfqg->entity.dev_weight) in bfqg_prfill_weight_device()
972 return __blkg_prfill_u64(sf, pd, bfqg->entity.dev_weight); in bfqg_prfill_weight_device()
990 bfqg->entity.dev_weight = dev_weight; in bfq_group_set_weight()
992 * Setting the prio_changed flag of the entity in bfq_group_set_weight()
997 if ((unsigned short)weight != bfqg->entity.new_weight) { in bfq_group_set_weight()
998 bfqg->entity.new_weight = (unsigned short)weight; in bfq_group_set_weight()
1001 * stored in bfqg->entity.new_weight before in bfq_group_set_weight()
1008 * depend also on bfqg->entity.new_weight (in in bfq_group_set_weight()
1011 * of bfqg->entity.new_weight is correctly in bfq_group_set_weight()
1015 bfqg->entity.prio_changed = 1; in bfq_group_set_weight()
1075 bfq_group_set_weight(bfqg, bfqg->entity.weight, v); in bfq_io_set_device_weight()
1397 void bfq_init_entity(struct bfq_entity *entity, struct bfq_group *bfqg) in bfq_init_entity() argument
1399 struct bfq_queue *bfqq = bfq_entity_to_bfqq(entity); in bfq_init_entity()
1401 entity->weight = entity->new_weight; in bfq_init_entity()
1402 entity->orig_weight = entity->new_weight; in bfq_init_entity()
1407 entity->sched_data = &bfqg->sched_data; in bfq_init_entity()