Home
last modified time | relevance | path

Searched refs:entity (Results 1 – 4 of 4) sorted by relevance

/block/
Dbfq-wf2q.c30 static unsigned int bfq_class_idx(struct bfq_entity *entity) in bfq_class_idx() argument
32 struct bfq_queue *bfqq = bfq_entity_to_bfqq(entity); in bfq_class_idx()
150 struct bfq_entity *group_entity = bfqq->entity.parent; in bfq_bfqq_to_bfqg()
153 group_entity = &bfqq->bfqd->root_group->entity; in bfq_bfqq_to_bfqg()
155 return container_of(group_entity, struct bfq_group, entity); in bfq_bfqq_to_bfqg()
207 static bool bfq_no_longer_next_in_service(struct bfq_entity *entity) in bfq_no_longer_next_in_service() argument
211 if (bfq_entity_to_bfqq(entity)) in bfq_no_longer_next_in_service()
214 bfqg = container_of(entity, struct bfq_group, entity); in bfq_no_longer_next_in_service()
246 static bool bfq_no_longer_next_in_service(struct bfq_entity *entity) in bfq_no_longer_next_in_service() argument
262 struct bfq_queue *bfq_entity_to_bfqq(struct bfq_entity *entity) in bfq_entity_to_bfqq() argument
[all …]
Dbfq-cgroup.c310 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()
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()
[all …]
Dbfq-iosched.h272 struct bfq_entity entity; member
907 struct bfq_entity entity; member
926 struct bfq_entity entity; member
936 struct bfq_queue *bfq_entity_to_bfqq(struct bfq_entity *entity);
984 void bfq_init_entity(struct bfq_entity *entity, struct bfq_group *bfqg);
1005 #define for_each_entity(entity) \ argument
1006 for (; entity ; entity = entity->parent)
1014 #define for_each_entity_safe(entity, parent) \ argument
1015 for (; entity && ({ parent = entity->parent; 1; }); entity = parent)
1023 #define for_each_entity(entity) \ argument
[all …]
Dbfq-iosched.c733 struct bfq_entity *entity = &bfqq->entity; in bfq_weights_tree_add() local
758 if (entity->weight == __counter->weight) { in bfq_weights_tree_add()
762 if (entity->weight < __counter->weight) in bfq_weights_tree_add()
788 bfqq->weight_counter->weight = entity->weight; in bfq_weights_tree_add()
830 struct bfq_entity *entity = bfqq->entity.parent; in bfq_weights_tree_remove() local
832 for_each_entity(entity) { in bfq_weights_tree_remove()
833 struct bfq_sched_data *sd = entity->my_sched_data; in bfq_weights_tree_remove()
860 if (entity->in_groups_with_pending_reqs) { in bfq_weights_tree_remove()
861 entity->in_groups_with_pending_reqs = false; in bfq_weights_tree_remove()
950 struct bfq_entity *entity = &bfqq->entity; in bfq_updated_next_req() local
[all …]