entity 310 block/bfq-cgroup.c struct bfq_entity *group_entity = bfqq->entity.parent; entity 313 block/bfq-cgroup.c entity) : entity 413 block/bfq-cgroup.c void bfq_init_entity(struct bfq_entity *entity, struct bfq_group *bfqg) entity 415 block/bfq-cgroup.c struct bfq_queue *bfqq = bfq_entity_to_bfqq(entity); entity 417 block/bfq-cgroup.c entity->weight = entity->new_weight; entity 418 block/bfq-cgroup.c entity->orig_weight = entity->new_weight; entity 428 block/bfq-cgroup.c entity->parent = bfqg->my_entity; /* NULL for root group */ entity 429 block/bfq-cgroup.c entity->sched_data = &bfqg->sched_data; entity 528 block/bfq-cgroup.c struct bfq_entity *entity = &bfqg->entity; entity 531 block/bfq-cgroup.c entity->orig_weight = entity->weight = entity->new_weight = d->weight; entity 532 block/bfq-cgroup.c entity->my_sched_data = &bfqg->sched_data; entity 533 block/bfq-cgroup.c bfqg->my_entity = entity; /* entity 560 block/bfq-cgroup.c struct bfq_entity *entity; entity 562 block/bfq-cgroup.c entity = &bfqg->entity; entity 563 block/bfq-cgroup.c entity->parent = parent->my_entity; entity 564 block/bfq-cgroup.c entity->sched_data = &parent->sched_data; entity 582 block/bfq-cgroup.c struct bfq_entity *entity; entity 594 block/bfq-cgroup.c entity = &bfqg->entity; entity 595 block/bfq-cgroup.c for_each_entity(entity) { entity 596 block/bfq-cgroup.c struct bfq_group *curr_bfqg = container_of(entity, entity 597 block/bfq-cgroup.c struct bfq_group, entity); entity 626 block/bfq-cgroup.c struct bfq_entity *entity = &bfqq->entity; entity 646 block/bfq-cgroup.c else if (entity->on_st) entity 647 block/bfq-cgroup.c bfq_put_idle_entity(bfq_entity_service_tree(entity), entity); entity 650 block/bfq-cgroup.c entity->parent = bfqg->my_entity; entity 651 block/bfq-cgroup.c entity->sched_data = &bfqg->sched_data; entity 688 block/bfq-cgroup.c struct bfq_entity *entity; entity 696 block/bfq-cgroup.c entity = &async_bfqq->entity; entity 698 block/bfq-cgroup.c if (entity->sched_data != &bfqg->sched_data) { entity 705 block/bfq-cgroup.c entity = &sync_bfqq->entity; entity 706 block/bfq-cgroup.c if (entity->sched_data != &bfqg->sched_data) entity 792 block/bfq-cgroup.c struct bfq_entity *entity = st->first_idle; entity 794 block/bfq-cgroup.c for (; entity ; entity = st->first_idle) entity 795 block/bfq-cgroup.c __bfq_deactivate_entity(entity, false); entity 805 block/bfq-cgroup.c struct bfq_entity *entity, entity 809 block/bfq-cgroup.c struct bfq_entity *child_entity = entity; entity 839 block/bfq-cgroup.c struct bfq_entity *entity; entity 841 block/bfq-cgroup.c while ((entity = bfq_entity_of(rb_first(active)))) entity 842 block/bfq-cgroup.c bfq_reparent_leaf_entity(bfqd, entity, ioprio_class); entity 863 block/bfq-cgroup.c struct bfq_entity *entity = bfqg->my_entity; entity 869 block/bfq-cgroup.c if (!entity) /* root group */ entity 907 block/bfq-cgroup.c __bfq_deactivate_entity(entity, false); entity 953 block/bfq-cgroup.c if (!bfqg->entity.dev_weight) entity 955 block/bfq-cgroup.c return __blkg_prfill_u64(sf, pd, bfqg->entity.dev_weight); entity 973 block/bfq-cgroup.c bfqg->entity.dev_weight = dev_weight; entity 980 block/bfq-cgroup.c if ((unsigned short)weight != bfqg->entity.new_weight) { entity 981 block/bfq-cgroup.c bfqg->entity.new_weight = (unsigned short)weight; entity 998 block/bfq-cgroup.c bfqg->entity.prio_changed = 1; entity 1058 block/bfq-cgroup.c bfq_group_set_weight(bfqg, bfqg->entity.weight, v); entity 1379 block/bfq-cgroup.c void bfq_init_entity(struct bfq_entity *entity, struct bfq_group *bfqg) entity 1381 block/bfq-cgroup.c struct bfq_queue *bfqq = bfq_entity_to_bfqq(entity); entity 1383 block/bfq-cgroup.c entity->weight = entity->new_weight; entity 1384 block/bfq-cgroup.c entity->orig_weight = entity->new_weight; entity 1389 block/bfq-cgroup.c entity->sched_data = &bfqg->sched_data; entity 725 block/bfq-iosched.c struct bfq_entity *entity = &bfqq->entity; entity 750 block/bfq-iosched.c if (entity->weight == __counter->weight) { entity 754 block/bfq-iosched.c if (entity->weight < __counter->weight) entity 780 block/bfq-iosched.c bfqq->weight_counter->weight = entity->weight; entity 822 block/bfq-iosched.c struct bfq_entity *entity = bfqq->entity.parent; entity 824 block/bfq-iosched.c for_each_entity(entity) { entity 825 block/bfq-iosched.c struct bfq_sched_data *sd = entity->my_sched_data; entity 852 block/bfq-iosched.c if (entity->in_groups_with_pending_reqs) { entity 853 block/bfq-iosched.c entity->in_groups_with_pending_reqs = false; entity 942 block/bfq-iosched.c struct bfq_entity *entity = &bfqq->entity; entity 959 block/bfq-iosched.c entity->service); entity 960 block/bfq-iosched.c if (entity->budget != new_budget) { entity 961 block/bfq-iosched.c entity->budget = new_budget; entity 1027 block/bfq-iosched.c bfqq->entity.new_weight = bic->saved_weight; entity 1050 block/bfq-iosched.c bfqq->entity.prio_changed = 1; entity 1063 block/bfq-iosched.c return bfqq->ref - bfqq->allocated - bfqq->entity.on_st - entity 1087 block/bfq-iosched.c bfqd->burst_parent_entity = bfqq->entity.parent; entity 1275 block/bfq-iosched.c bfqq->entity.parent != bfqd->burst_parent_entity) { entity 1311 block/bfq-iosched.c struct bfq_entity *entity = &bfqq->entity; entity 1313 block/bfq-iosched.c return entity->budget - entity->service; entity 1449 block/bfq-iosched.c struct bfq_entity *entity = &bfqq->entity; entity 1477 block/bfq-iosched.c entity->budget = min_t(unsigned long, entity 1490 block/bfq-iosched.c entity->service = 0; entity 1498 block/bfq-iosched.c entity->service = 0; entity 1499 block/bfq-iosched.c entity->budget = max_t(unsigned long, bfqq->max_budget, entity 1557 block/bfq-iosched.c bfqq->entity.budget = min_t(unsigned long, entity 1558 block/bfq-iosched.c bfqq->entity.budget, entity 1633 block/bfq-iosched.c if (in_serv_bfqq->entity.parent == bfqq->entity.parent) { entity 1634 block/bfq-iosched.c bfqq_weight = bfqq->entity.weight; entity 1635 block/bfq-iosched.c in_serv_weight = in_serv_bfqq->entity.weight; entity 1637 block/bfq-iosched.c if (bfqq->entity.parent) entity 1638 block/bfq-iosched.c bfqq_weight = bfqq->entity.parent->weight; entity 1640 block/bfq-iosched.c bfqq_weight = bfqq->entity.weight; entity 1641 block/bfq-iosched.c if (in_serv_bfqq->entity.parent) entity 1642 block/bfq-iosched.c in_serv_weight = in_serv_bfqq->entity.parent->weight; entity 1644 block/bfq-iosched.c in_serv_weight = in_serv_bfqq->entity.weight; entity 1747 block/bfq-iosched.c bfqq->entity.prio_changed = 1; entity 2078 block/bfq-iosched.c bfqq->entity.prio_changed = 1; entity 2192 block/bfq-iosched.c bfqq->entity.budget = bfqq->entity.service = 0; entity 2364 block/bfq-iosched.c bfqq->entity.prio_changed = 1; entity 2656 block/bfq-iosched.c bfqq->entity.parent == in_service_bfqq->entity.parent && entity 2689 block/bfq-iosched.c bic->saved_weight = bfqq->entity.orig_weight; entity 2770 block/bfq-iosched.c new_bfqq->entity.prio_changed = 1; entity 2775 block/bfq-iosched.c bfqq->entity.prio_changed = 1; entity 2881 block/bfq-iosched.c timeout_coeff = bfqq->entity.weight / bfqq->entity.orig_weight; entity 2936 block/bfq-iosched.c bfqq->entity.budget); entity 3549 block/bfq-iosched.c bfqq->entity.budget, bfq_bfqq_budget_left(bfqq)); entity 3649 block/bfq-iosched.c budget = max_t(int, bfqq->entity.service, min_budget); entity 3682 block/bfq-iosched.c bfqq->entity.budget = max_t(unsigned long, bfqq->max_budget, entity 3687 block/bfq-iosched.c bfqq->entity.budget); entity 3770 block/bfq-iosched.c slow = bfqq->entity.service < bfqd->bfq_max_budget / 2; entity 3914 block/bfq-iosched.c struct bfq_entity *entity = &bfqq->entity; entity 3939 block/bfq-iosched.c bfq_bfqq_budget_left(bfqq) >= entity->budget / 3))) entity 3943 block/bfq-iosched.c entity->service <= 2 * entity->budget / 10) entity 4022 block/bfq-iosched.c entity->service = 0; entity 4041 block/bfq-iosched.c entity = entity->parent; entity 4042 block/bfq-iosched.c for_each_entity(entity) entity 4043 block/bfq-iosched.c entity->service = 0; entity 4069 block/bfq-iosched.c bfq_bfqq_budget_left(bfqq) >= bfqq->entity.budget / 3, entity 4073 block/bfq-iosched.c bfq_bfqq_budget_left(bfqq) >= bfqq->entity.budget / 3) entity 4538 block/bfq-iosched.c struct bfq_entity *entity = &bfqq->entity; entity 4546 block/bfq-iosched.c bfqq->entity.weight, bfqq->entity.orig_weight); entity 4548 block/bfq-iosched.c if (entity->prio_changed) entity 4566 block/bfq-iosched.c bfqq->entity.prio_changed = 1; entity 4584 block/bfq-iosched.c if ((entity->weight > entity->orig_weight) != (bfqq->wr_coeff > 1)) entity 4585 block/bfq-iosched.c __bfq_entity_update_weight_prio(bfq_entity_service_tree(entity), entity 4586 block/bfq-iosched.c entity, false); entity 5010 block/bfq-iosched.c bfqq->entity.new_weight = bfq_ioprio_to_weight(bfqq->new_ioprio); entity 5011 block/bfq-iosched.c bfqq->entity.prio_changed = 1; entity 5048 block/bfq-iosched.c RB_CLEAR_NODE(&bfqq->entity.rb_node); entity 5157 block/bfq-iosched.c bfq_init_entity(&bfqq->entity, bfqg); entity 6413 block/bfq-iosched.c root_group->entity.parent = NULL; entity 6452 block/bfq-iosched.c bfqd->oom_bfqq.entity.new_weight = entity 6463 block/bfq-iosched.c bfqd->oom_bfqq.entity.prio_changed = 1; entity 6544 block/bfq-iosched.c bfq_init_entity(&bfqd->oom_bfqq.entity, bfqd->root_group); entity 270 block/bfq-iosched.h struct bfq_entity entity; entity 900 block/bfq-iosched.h struct bfq_entity entity; entity 919 block/bfq-iosched.h struct bfq_entity entity; entity 929 block/bfq-iosched.h struct bfq_queue *bfq_entity_to_bfqq(struct bfq_entity *entity); entity 975 block/bfq-iosched.h void bfq_init_entity(struct bfq_entity *entity, struct bfq_group *bfqg); entity 998 block/bfq-iosched.h #define for_each_entity(entity) \ entity 999 block/bfq-iosched.h for (; entity ; entity = entity->parent) entity 1007 block/bfq-iosched.h #define for_each_entity_safe(entity, parent) \ entity 1008 block/bfq-iosched.h for (; entity && ({ parent = entity->parent; 1; }); entity = parent) entity 1016 block/bfq-iosched.h #define for_each_entity(entity) \ entity 1017 block/bfq-iosched.h for (; entity ; entity = NULL) entity 1019 block/bfq-iosched.h #define for_each_entity_safe(entity, parent) \ entity 1020 block/bfq-iosched.h for (parent = NULL; entity ; entity = parent) entity 1024 block/bfq-iosched.h struct bfq_queue *bfq_entity_to_bfqq(struct bfq_entity *entity); entity 1026 block/bfq-iosched.h struct bfq_service_tree *bfq_entity_service_tree(struct bfq_entity *entity); entity 1030 block/bfq-iosched.h struct bfq_entity *entity); entity 1033 block/bfq-iosched.h struct bfq_entity *entity, entity 1038 block/bfq-iosched.h bool __bfq_deactivate_entity(struct bfq_entity *entity, entity 30 block/bfq-wf2q.c static unsigned int bfq_class_idx(struct bfq_entity *entity) entity 32 block/bfq-wf2q.c struct bfq_queue *bfqq = bfq_entity_to_bfqq(entity); entity 150 block/bfq-wf2q.c struct bfq_entity *group_entity = bfqq->entity.parent; entity 153 block/bfq-wf2q.c group_entity = &bfqq->bfqd->root_group->entity; entity 155 block/bfq-wf2q.c return container_of(group_entity, struct bfq_group, entity); entity 207 block/bfq-wf2q.c static bool bfq_no_longer_next_in_service(struct bfq_entity *entity) entity 211 block/bfq-wf2q.c if (bfq_entity_to_bfqq(entity)) entity 214 block/bfq-wf2q.c bfqg = container_of(entity, struct bfq_group, entity); entity 246 block/bfq-wf2q.c static bool bfq_no_longer_next_in_service(struct bfq_entity *entity) entity 262 block/bfq-wf2q.c struct bfq_queue *bfq_entity_to_bfqq(struct bfq_entity *entity) entity 266 block/bfq-wf2q.c if (!entity->my_sched_data) entity 267 block/bfq-wf2q.c bfqq = container_of(entity, struct bfq_queue, entity); entity 291 block/bfq-wf2q.c static void bfq_calc_finish(struct bfq_entity *entity, unsigned long service) entity 293 block/bfq-wf2q.c struct bfq_queue *bfqq = bfq_entity_to_bfqq(entity); entity 295 block/bfq-wf2q.c entity->finish = entity->start + entity 296 block/bfq-wf2q.c bfq_delta(service, entity->weight); entity 301 block/bfq-wf2q.c service, entity->weight); entity 304 block/bfq-wf2q.c entity->start, entity->finish, entity 305 block/bfq-wf2q.c bfq_delta(service, entity->weight)); entity 320 block/bfq-wf2q.c struct bfq_entity *entity = NULL; entity 323 block/bfq-wf2q.c entity = rb_entry(node, struct bfq_entity, rb_node); entity 325 block/bfq-wf2q.c return entity; entity 333 block/bfq-wf2q.c static void bfq_extract(struct rb_root *root, struct bfq_entity *entity) entity 335 block/bfq-wf2q.c entity->tree = NULL; entity 336 block/bfq-wf2q.c rb_erase(&entity->rb_node, root); entity 345 block/bfq-wf2q.c struct bfq_entity *entity) entity 347 block/bfq-wf2q.c struct bfq_queue *bfqq = bfq_entity_to_bfqq(entity); entity 350 block/bfq-wf2q.c if (entity == st->first_idle) { entity 351 block/bfq-wf2q.c next = rb_next(&entity->rb_node); entity 355 block/bfq-wf2q.c if (entity == st->last_idle) { entity 356 block/bfq-wf2q.c next = rb_prev(&entity->rb_node); entity 360 block/bfq-wf2q.c bfq_extract(&st->idle, entity); entity 374 block/bfq-wf2q.c static void bfq_insert(struct rb_root *root, struct bfq_entity *entity) entity 384 block/bfq-wf2q.c if (bfq_gt(entry->finish, entity->finish)) entity 390 block/bfq-wf2q.c rb_link_node(&entity->rb_node, parent, node); entity 391 block/bfq-wf2q.c rb_insert_color(&entity->rb_node, root); entity 393 block/bfq-wf2q.c entity->tree = root; entity 406 block/bfq-wf2q.c static void bfq_update_min(struct bfq_entity *entity, struct rb_node *node) entity 412 block/bfq-wf2q.c if (bfq_gt(entity->min_start, child->min_start)) entity 413 block/bfq-wf2q.c entity->min_start = child->min_start; entity 427 block/bfq-wf2q.c struct bfq_entity *entity = rb_entry(node, struct bfq_entity, rb_node); entity 429 block/bfq-wf2q.c entity->min_start = entity->start; entity 430 block/bfq-wf2q.c bfq_update_min(entity, node->rb_right); entity 431 block/bfq-wf2q.c bfq_update_min(entity, node->rb_left); entity 476 block/bfq-wf2q.c struct bfq_entity *entity) entity 478 block/bfq-wf2q.c struct bfq_queue *bfqq = bfq_entity_to_bfqq(entity); entity 479 block/bfq-wf2q.c struct rb_node *node = &entity->rb_node; entity 486 block/bfq-wf2q.c bfq_insert(&st->active, entity); entity 496 block/bfq-wf2q.c sd = entity->sched_data; entity 531 block/bfq-wf2q.c static void bfq_get_entity(struct bfq_entity *entity) entity 533 block/bfq-wf2q.c struct bfq_queue *bfqq = bfq_entity_to_bfqq(entity); entity 540 block/bfq-wf2q.c bfqg_and_blkg_get(container_of(entity, struct bfq_group, entity 541 block/bfq-wf2q.c entity)); entity 580 block/bfq-wf2q.c struct bfq_entity *entity) entity 582 block/bfq-wf2q.c struct bfq_queue *bfqq = bfq_entity_to_bfqq(entity); entity 590 block/bfq-wf2q.c node = bfq_find_deepest(&entity->rb_node); entity 591 block/bfq-wf2q.c bfq_extract(&st->active, entity); entity 597 block/bfq-wf2q.c sd = entity->sched_data; entity 615 block/bfq-wf2q.c struct bfq_entity *entity) entity 617 block/bfq-wf2q.c struct bfq_queue *bfqq = bfq_entity_to_bfqq(entity); entity 621 block/bfq-wf2q.c if (!first_idle || bfq_gt(first_idle->finish, entity->finish)) entity 622 block/bfq-wf2q.c st->first_idle = entity; entity 623 block/bfq-wf2q.c if (!last_idle || bfq_gt(entity->finish, last_idle->finish)) entity 624 block/bfq-wf2q.c st->last_idle = entity; entity 626 block/bfq-wf2q.c bfq_insert(&st->idle, entity); entity 648 block/bfq-wf2q.c struct bfq_entity *entity, entity 651 block/bfq-wf2q.c struct bfq_queue *bfqq = bfq_entity_to_bfqq(entity); entity 653 block/bfq-wf2q.c entity->on_st = false; entity 654 block/bfq-wf2q.c st->wsum -= entity->weight; entity 661 block/bfq-wf2q.c bfqg_and_blkg_put(container_of(entity, struct bfq_group, entity 662 block/bfq-wf2q.c entity)); entity 670 block/bfq-wf2q.c void bfq_put_idle_entity(struct bfq_service_tree *st, struct bfq_entity *entity) entity 672 block/bfq-wf2q.c bfq_idle_extract(st, entity); entity 673 block/bfq-wf2q.c bfq_forget_entity(st, entity, entity 674 block/bfq-wf2q.c entity == entity->sched_data->in_service_entity); entity 702 block/bfq-wf2q.c struct bfq_service_tree *bfq_entity_service_tree(struct bfq_entity *entity) entity 704 block/bfq-wf2q.c struct bfq_sched_data *sched_data = entity->sched_data; entity 705 block/bfq-wf2q.c unsigned int idx = bfq_class_idx(entity); entity 730 block/bfq-wf2q.c struct bfq_entity *entity, entity 735 block/bfq-wf2q.c if (entity->prio_changed) { entity 736 block/bfq-wf2q.c struct bfq_queue *bfqq = bfq_entity_to_bfqq(entity); entity 749 block/bfq-wf2q.c sd = entity->my_sched_data; entity 757 block/bfq-wf2q.c old_st->wsum -= entity->weight; entity 759 block/bfq-wf2q.c if (entity->new_weight != entity->orig_weight) { entity 760 block/bfq-wf2q.c if (entity->new_weight < BFQ_MIN_WEIGHT || entity 761 block/bfq-wf2q.c entity->new_weight > BFQ_MAX_WEIGHT) { entity 763 block/bfq-wf2q.c entity->new_weight); entity 764 block/bfq-wf2q.c if (entity->new_weight < BFQ_MIN_WEIGHT) entity 765 block/bfq-wf2q.c entity->new_weight = BFQ_MIN_WEIGHT; entity 767 block/bfq-wf2q.c entity->new_weight = BFQ_MAX_WEIGHT; entity 769 block/bfq-wf2q.c entity->orig_weight = entity->new_weight; entity 772 block/bfq-wf2q.c bfq_weight_to_ioprio(entity->orig_weight); entity 783 block/bfq-wf2q.c entity->prio_changed = 0; entity 792 block/bfq-wf2q.c new_st = bfq_entity_service_tree(entity); entity 794 block/bfq-wf2q.c prev_weight = entity->weight; entity 795 block/bfq-wf2q.c new_weight = entity->orig_weight * entity 806 block/bfq-wf2q.c entity->weight = new_weight; entity 816 block/bfq-wf2q.c new_st->wsum += entity->weight; entity 819 block/bfq-wf2q.c entity->start = new_st->vtime; entity 837 block/bfq-wf2q.c struct bfq_entity *entity = &bfqq->entity; entity 847 block/bfq-wf2q.c for_each_entity(entity) { entity 848 block/bfq-wf2q.c st = bfq_entity_service_tree(entity); entity 850 block/bfq-wf2q.c entity->service += served; entity 888 block/bfq-wf2q.c struct bfq_entity *entity = &bfqq->entity; entity 893 block/bfq-wf2q.c int tot_serv_to_charge = max(serv_to_charge_for_time, entity->service); entity 896 block/bfq-wf2q.c if (tot_serv_to_charge > entity->budget) entity 897 block/bfq-wf2q.c entity->budget = tot_serv_to_charge; entity 900 block/bfq-wf2q.c max_t(int, 0, tot_serv_to_charge - entity->service)); entity 903 block/bfq-wf2q.c static void bfq_update_fin_time_enqueue(struct bfq_entity *entity, entity 907 block/bfq-wf2q.c struct bfq_queue *bfqq = bfq_entity_to_bfqq(entity); entity 914 block/bfq-wf2q.c st = __bfq_entity_update_weight_prio(st, entity, true); entity 915 block/bfq-wf2q.c bfq_calc_finish(entity, entity->budget); entity 950 block/bfq-wf2q.c if (backshifted && bfq_gt(st->vtime, entity->finish)) { entity 951 block/bfq-wf2q.c unsigned long delta = st->vtime - entity->finish; entity 956 block/bfq-wf2q.c entity->start += delta; entity 957 block/bfq-wf2q.c entity->finish += delta; entity 960 block/bfq-wf2q.c bfq_active_insert(st, entity); entity 975 block/bfq-wf2q.c static void __bfq_activate_entity(struct bfq_entity *entity, entity 978 block/bfq-wf2q.c struct bfq_service_tree *st = bfq_entity_service_tree(entity); entity 983 block/bfq-wf2q.c if (non_blocking_wait_rq && bfq_gt(st->vtime, entity->finish)) { entity 985 block/bfq-wf2q.c min_vstart = entity->finish; entity 989 block/bfq-wf2q.c if (entity->tree == &st->idle) { entity 994 block/bfq-wf2q.c bfq_idle_extract(st, entity); entity 995 block/bfq-wf2q.c entity->start = bfq_gt(min_vstart, entity->finish) ? entity 996 block/bfq-wf2q.c min_vstart : entity->finish; entity 1003 block/bfq-wf2q.c entity->start = min_vstart; entity 1004 block/bfq-wf2q.c st->wsum += entity->weight; entity 1011 block/bfq-wf2q.c bfq_get_entity(entity); entity 1013 block/bfq-wf2q.c entity->on_st = true; entity 1017 block/bfq-wf2q.c if (!bfq_entity_to_bfqq(entity)) { /* bfq_group */ entity 1019 block/bfq-wf2q.c container_of(entity, struct bfq_group, entity); entity 1022 block/bfq-wf2q.c if (!entity->in_groups_with_pending_reqs) { entity 1023 block/bfq-wf2q.c entity->in_groups_with_pending_reqs = true; entity 1029 block/bfq-wf2q.c bfq_update_fin_time_enqueue(entity, st, backshifted); entity 1047 block/bfq-wf2q.c static void __bfq_requeue_entity(struct bfq_entity *entity) entity 1049 block/bfq-wf2q.c struct bfq_sched_data *sd = entity->sched_data; entity 1050 block/bfq-wf2q.c struct bfq_service_tree *st = bfq_entity_service_tree(entity); entity 1052 block/bfq-wf2q.c if (entity == sd->in_service_entity) { entity 1075 block/bfq-wf2q.c bfq_calc_finish(entity, entity->service); entity 1076 block/bfq-wf2q.c entity->start = entity->finish; entity 1090 block/bfq-wf2q.c if (entity->tree) entity 1091 block/bfq-wf2q.c bfq_active_extract(st, entity); entity 1107 block/bfq-wf2q.c bfq_active_extract(st, entity); entity 1110 block/bfq-wf2q.c bfq_update_fin_time_enqueue(entity, st, false); entity 1113 block/bfq-wf2q.c static void __bfq_activate_requeue_entity(struct bfq_entity *entity, entity 1117 block/bfq-wf2q.c struct bfq_service_tree *st = bfq_entity_service_tree(entity); entity 1119 block/bfq-wf2q.c if (sd->in_service_entity == entity || entity->tree == &st->active) entity 1124 block/bfq-wf2q.c __bfq_requeue_entity(entity); entity 1130 block/bfq-wf2q.c __bfq_activate_entity(entity, non_blocking_wait_rq); entity 1147 block/bfq-wf2q.c static void bfq_activate_requeue_entity(struct bfq_entity *entity, entity 1153 block/bfq-wf2q.c for_each_entity(entity) { entity 1154 block/bfq-wf2q.c sd = entity->sched_data; entity 1155 block/bfq-wf2q.c __bfq_activate_requeue_entity(entity, sd, non_blocking_wait_rq); entity 1157 block/bfq-wf2q.c if (!bfq_update_next_in_service(sd, entity, expiration) && entity 1173 block/bfq-wf2q.c bool __bfq_deactivate_entity(struct bfq_entity *entity, bool ins_into_idle_tree) entity 1175 block/bfq-wf2q.c struct bfq_sched_data *sd = entity->sched_data; entity 1179 block/bfq-wf2q.c if (!entity->on_st) /* entity never activated, or already inactive */ entity 1188 block/bfq-wf2q.c st = bfq_entity_service_tree(entity); entity 1189 block/bfq-wf2q.c is_in_service = entity == sd->in_service_entity; entity 1191 block/bfq-wf2q.c bfq_calc_finish(entity, entity->service); entity 1201 block/bfq-wf2q.c entity->service = 0; entity 1203 block/bfq-wf2q.c if (entity->tree == &st->active) entity 1204 block/bfq-wf2q.c bfq_active_extract(st, entity); entity 1205 block/bfq-wf2q.c else if (!is_in_service && entity->tree == &st->idle) entity 1206 block/bfq-wf2q.c bfq_idle_extract(st, entity); entity 1208 block/bfq-wf2q.c if (!ins_into_idle_tree || !bfq_gt(entity->finish, st->vtime)) entity 1209 block/bfq-wf2q.c bfq_forget_entity(st, entity, is_in_service); entity 1211 block/bfq-wf2q.c bfq_idle_insert(st, entity); entity 1223 block/bfq-wf2q.c static void bfq_deactivate_entity(struct bfq_entity *entity, entity 1230 block/bfq-wf2q.c for_each_entity_safe(entity, parent) { entity 1231 block/bfq-wf2q.c sd = entity->sched_data; entity 1233 block/bfq-wf2q.c if (!__bfq_deactivate_entity(entity, ins_into_idle_tree)) { entity 1244 block/bfq-wf2q.c if (sd->next_in_service == entity) entity 1298 block/bfq-wf2q.c entity = parent; entity 1299 block/bfq-wf2q.c for_each_entity(entity) { entity 1306 block/bfq-wf2q.c __bfq_requeue_entity(entity); entity 1308 block/bfq-wf2q.c sd = entity->sched_data; entity 1309 block/bfq-wf2q.c if (!bfq_update_next_in_service(sd, entity, expiration) && entity 1411 block/bfq-wf2q.c struct bfq_entity *entity; entity 1436 block/bfq-wf2q.c entity = bfq_first_active_entity(st, new_vtime); entity 1438 block/bfq-wf2q.c return entity; entity 1455 block/bfq-wf2q.c struct bfq_entity *entity = NULL; entity 1493 block/bfq-wf2q.c entity = __bfq_lookup_next_entity(st + class_idx, entity 1497 block/bfq-wf2q.c if (entity) entity 1501 block/bfq-wf2q.c if (!entity) entity 1504 block/bfq-wf2q.c return entity; entity 1519 block/bfq-wf2q.c struct bfq_entity *entity = NULL; entity 1532 block/bfq-wf2q.c for (; sd ; sd = entity->my_sched_data) { entity 1558 block/bfq-wf2q.c entity = sd->next_in_service; entity 1559 block/bfq-wf2q.c sd->in_service_entity = entity; entity 1569 block/bfq-wf2q.c if (bfq_no_longer_next_in_service(entity)) entity 1570 block/bfq-wf2q.c bfq_active_extract(bfq_entity_service_tree(entity), entity 1571 block/bfq-wf2q.c entity); entity 1593 block/bfq-wf2q.c bfqq = bfq_entity_to_bfqq(entity); entity 1599 block/bfq-wf2q.c for_each_entity(entity) { entity 1600 block/bfq-wf2q.c struct bfq_sched_data *sd = entity->sched_data; entity 1613 block/bfq-wf2q.c struct bfq_entity *in_serv_entity = &in_serv_bfqq->entity; entity 1614 block/bfq-wf2q.c struct bfq_entity *entity = in_serv_entity; entity 1626 block/bfq-wf2q.c for_each_entity(entity) entity 1627 block/bfq-wf2q.c entity->sched_data->in_service_entity = NULL; entity 1653 block/bfq-wf2q.c struct bfq_entity *entity = &bfqq->entity; entity 1655 block/bfq-wf2q.c bfq_deactivate_entity(entity, ins_into_idle_tree, expiration); entity 1660 block/bfq-wf2q.c struct bfq_entity *entity = &bfqq->entity; entity 1662 block/bfq-wf2q.c bfq_activate_requeue_entity(entity, bfq_bfqq_non_blocking_wait_rq(bfqq), entity 1670 block/bfq-wf2q.c struct bfq_entity *entity = &bfqq->entity; entity 1672 block/bfq-wf2q.c bfq_activate_requeue_entity(entity, false, entity 467 drivers/gpu/drm/amd/amdgpu/amdgpu.h struct drm_sched_entity *entity; entity 786 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c struct amdgpu_ring *ring = to_amdgpu_ring(p->entity->rq->sched); entity 953 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c struct drm_sched_entity *entity; entity 978 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c &entity); entity 986 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c if (parser->entity && parser->entity != entity) entity 989 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c parser->entity = entity; entity 991 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c ring = to_amdgpu_ring(entity->rq->sched); entity 1007 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c ring = to_amdgpu_ring(parser->entity->rq->sched); entity 1011 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c return amdgpu_ctx_wait_prev_fence(parser->ctx, parser->entity); entity 1028 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c struct drm_sched_entity *entity; entity 1037 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c deps[i].ring, &entity); entity 1043 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c fence = amdgpu_ctx_get_fence(ctx, entity, deps[i].handle); entity 1275 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c struct drm_sched_entity *entity = p->entity; entity 1286 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c r = drm_sched_job_init(&job->base, entity, p->filp); entity 1312 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c amdgpu_ctx_add_fence(p->ctx, entity, p->fence, &seq); entity 1329 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c drm_sched_entity_push_job(&job->base, entity); entity 1331 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c ring = to_amdgpu_ring(entity->rq->sched); entity 1420 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c struct drm_sched_entity *entity; entity 1430 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c wait->in.ring, &entity); entity 1436 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c fence = amdgpu_ctx_get_fence(ctx, entity, wait->in.handle); entity 1468 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c struct drm_sched_entity *entity; entity 1478 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c user->ring, &entity); entity 1484 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c fence = amdgpu_ctx_get_fence(ctx, entity, user->seq_no); entity 31 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c container_of((e), struct amdgpu_ctx_entity, entity) entity 104 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c struct amdgpu_ctx_entity *entity = &ctx->entities[0][i]; entity 106 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c entity->sequence = 1; entity 107 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c entity->fences = &ctx->fences[amdgpu_sched_jobs * i]; entity 188 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c r = drm_sched_entity_init(&ctx->entities[i][j].entity, entity 198 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c drm_sched_entity_destroy(&ctx->entities[0][i].entity); entity 229 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c u32 ring, struct drm_sched_entity **entity) entity 247 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c *entity = &ctx->entities[hw_ip][ring].entity; entity 294 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c drm_sched_entity_destroy(&ctx->entities[0][i].entity); entity 467 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c struct drm_sched_entity *entity, entity 470 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c struct amdgpu_ctx_entity *centity = to_amdgpu_ctx_entity(entity); entity 493 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c struct drm_sched_entity *entity, entity 496 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c struct amdgpu_ctx_entity *centity = to_amdgpu_ctx_entity(entity); entity 534 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c struct drm_sched_entity *entity = &ctx->entities[0][i].entity; entity 536 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c drm_sched_entity_set_priority(entity, ctx_prio); entity 541 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c struct drm_sched_entity *entity) entity 543 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c struct amdgpu_ctx_entity *centity = to_amdgpu_ctx_entity(entity); entity 582 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c struct drm_sched_entity *entity; entity 584 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c entity = &ctx->entities[0][i].entity; entity 585 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c timeout = drm_sched_entity_flush(entity, timeout); entity 609 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c drm_sched_entity_fini(&ctx->entities[0][i].entity); entity 35 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h struct drm_sched_entity entity; entity 69 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h u32 ring, struct drm_sched_entity **entity); entity 71 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h struct drm_sched_entity *entity, entity 74 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h struct drm_sched_entity *entity, entity 83 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h struct drm_sched_entity *entity); entity 285 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c if ((*id)->owner != vm->entity.fence_context || entity 352 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c if ((*id)->owner != vm->entity.fence_context) entity 452 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c id->owner = vm->entity.fence_context; entity 142 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c int amdgpu_job_submit(struct amdgpu_job *job, struct drm_sched_entity *entity, entity 152 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c r = drm_sched_job_init(&job->base, entity, owner); entity 160 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c drm_sched_entity_push_job(&job->base, entity); entity 162 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c ring = to_amdgpu_ring(entity->rq->sched); entity 75 drivers/gpu/drm/amd/amdgpu/amdgpu_job.h int amdgpu_job_submit(struct amdgpu_job *job, struct drm_sched_entity *entity, entity 154 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h __entry->ring = to_amdgpu_ring(p->entity->rq->sched)->idx; entity 157 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h to_amdgpu_ring(p->entity->rq->sched)); entity 1865 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c r = drm_sched_entity_init(&adev->mman.entity, &rq, 1, NULL); entity 1872 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c drm_sched_entity_destroy(&adev->mman.entity); entity 1949 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c r = amdgpu_job_submit(job, &adev->mman.entity, entity 2024 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c r = amdgpu_job_submit(job, &adev->mman.entity, entity 2117 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c r = amdgpu_job_submit(job, &adev->mman.entity, entity 60 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h struct drm_sched_entity entity; entity 300 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c drm_sched_entity_destroy(&adev->uvd.entity); entity 335 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c r = drm_sched_entity_init(&adev->uvd.entity, &rq, 1, NULL); entity 1093 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c r = amdgpu_job_submit(job, &adev->uvd.entity, entity 65 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h struct drm_sched_entity entity; entity 214 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c drm_sched_entity_destroy(&adev->vce.entity); entity 242 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c r = drm_sched_entity_init(&adev->vce.entity, &rq, 1, NULL); entity 550 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c r = amdgpu_job_submit(job, &ring->adev->vce.entity, entity 51 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h struct drm_sched_entity entity; entity 2692 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c r = drm_sched_entity_init(&vm->entity, adev->vm_manager.vm_pte_rqs, entity 2769 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c drm_sched_entity_destroy(&vm->entity); entity 2958 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c drm_sched_entity_destroy(&vm->entity); entity 258 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h struct drm_sched_entity entity; entity 102 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c ring = container_of(p->vm->entity.rq->sched, struct amdgpu_ring, sched); entity 107 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c r = amdgpu_job_submit(p->job, &p->vm->entity, entity 349 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c r = amdgpu_job_submit(job, &adev->mman.entity, entity 1263 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c struct amdgpu_ring *ring = to_amdgpu_ring(p->entity->rq->sched); entity 22 drivers/gpu/drm/etnaviv/etnaviv_sched.c struct drm_sched_entity *entity) entity 183 drivers/gpu/drm/lima/lima_sched.c struct drm_sched_entity *entity) entity 214 drivers/gpu/drm/panfrost/panfrost_job.c struct drm_sched_entity *entity = &job->file_priv->sched_entity[slot]; entity 227 drivers/gpu/drm/panfrost/panfrost_job.c ret = drm_sched_job_init(&job->base, entity, NULL); entity 240 drivers/gpu/drm/panfrost/panfrost_job.c drm_sched_entity_push_job(&job->base, entity); entity 441 drivers/gpu/drm/rcar-du/rcar_du_kms.c struct device_node *entity; entity 445 drivers/gpu/drm/rcar-du/rcar_du_kms.c entity = of_graph_get_remote_port_parent(ep->local_node); entity 446 drivers/gpu/drm/rcar-du/rcar_du_kms.c if (!entity) { entity 452 drivers/gpu/drm/rcar-du/rcar_du_kms.c if (!of_device_is_available(entity)) { entity 455 drivers/gpu/drm/rcar-du/rcar_du_kms.c entity); entity 456 drivers/gpu/drm/rcar-du/rcar_du_kms.c of_node_put(entity); entity 460 drivers/gpu/drm/rcar-du/rcar_du_kms.c ret = rcar_du_encoder_init(rcdu, output, entity); entity 464 drivers/gpu/drm/rcar-du/rcar_du_kms.c entity, output, ret); entity 466 drivers/gpu/drm/rcar-du/rcar_du_kms.c of_node_put(entity); entity 36 drivers/gpu/drm/scheduler/gpu_scheduler_trace.h TP_PROTO(struct drm_sched_job *sched_job, struct drm_sched_entity *entity), entity 37 drivers/gpu/drm/scheduler/gpu_scheduler_trace.h TP_ARGS(sched_job, entity), entity 39 drivers/gpu/drm/scheduler/gpu_scheduler_trace.h __field(struct drm_sched_entity *, entity) entity 48 drivers/gpu/drm/scheduler/gpu_scheduler_trace.h __entry->entity = entity; entity 52 drivers/gpu/drm/scheduler/gpu_scheduler_trace.h __entry->job_count = spsc_queue_count(&entity->job_queue); entity 57 drivers/gpu/drm/scheduler/gpu_scheduler_trace.h __entry->entity, __entry->id, entity 51 drivers/gpu/drm/scheduler/sched_entity.c int drm_sched_entity_init(struct drm_sched_entity *entity, entity 58 drivers/gpu/drm/scheduler/sched_entity.c if (!(entity && rq_list && (num_rq_list == 0 || rq_list[0]))) entity 61 drivers/gpu/drm/scheduler/sched_entity.c memset(entity, 0, sizeof(struct drm_sched_entity)); entity 62 drivers/gpu/drm/scheduler/sched_entity.c INIT_LIST_HEAD(&entity->list); entity 63 drivers/gpu/drm/scheduler/sched_entity.c entity->rq = NULL; entity 64 drivers/gpu/drm/scheduler/sched_entity.c entity->guilty = guilty; entity 65 drivers/gpu/drm/scheduler/sched_entity.c entity->num_rq_list = num_rq_list; entity 66 drivers/gpu/drm/scheduler/sched_entity.c entity->rq_list = kcalloc(num_rq_list, sizeof(struct drm_sched_rq *), entity 68 drivers/gpu/drm/scheduler/sched_entity.c if (!entity->rq_list) entity 72 drivers/gpu/drm/scheduler/sched_entity.c entity->rq_list[i] = rq_list[i]; entity 75 drivers/gpu/drm/scheduler/sched_entity.c entity->rq = rq_list[0]; entity 77 drivers/gpu/drm/scheduler/sched_entity.c entity->last_scheduled = NULL; entity 79 drivers/gpu/drm/scheduler/sched_entity.c spin_lock_init(&entity->rq_lock); entity 80 drivers/gpu/drm/scheduler/sched_entity.c spsc_queue_init(&entity->job_queue); entity 82 drivers/gpu/drm/scheduler/sched_entity.c atomic_set(&entity->fence_seq, 0); entity 83 drivers/gpu/drm/scheduler/sched_entity.c entity->fence_context = dma_fence_context_alloc(2); entity 96 drivers/gpu/drm/scheduler/sched_entity.c static bool drm_sched_entity_is_idle(struct drm_sched_entity *entity) entity 100 drivers/gpu/drm/scheduler/sched_entity.c if (list_empty(&entity->list) || entity 101 drivers/gpu/drm/scheduler/sched_entity.c spsc_queue_count(&entity->job_queue) == 0) entity 114 drivers/gpu/drm/scheduler/sched_entity.c bool drm_sched_entity_is_ready(struct drm_sched_entity *entity) entity 116 drivers/gpu/drm/scheduler/sched_entity.c if (spsc_queue_peek(&entity->job_queue) == NULL) entity 119 drivers/gpu/drm/scheduler/sched_entity.c if (READ_ONCE(entity->dependency)) entity 133 drivers/gpu/drm/scheduler/sched_entity.c drm_sched_entity_get_free_sched(struct drm_sched_entity *entity) entity 139 drivers/gpu/drm/scheduler/sched_entity.c for (i = 0; i < entity->num_rq_list; ++i) { entity 140 drivers/gpu/drm/scheduler/sched_entity.c struct drm_gpu_scheduler *sched = entity->rq_list[i]->sched; entity 142 drivers/gpu/drm/scheduler/sched_entity.c if (!entity->rq_list[i]->sched->ready) { entity 150 drivers/gpu/drm/scheduler/sched_entity.c rq = entity->rq_list[i]; entity 169 drivers/gpu/drm/scheduler/sched_entity.c long drm_sched_entity_flush(struct drm_sched_entity *entity, long timeout) entity 175 drivers/gpu/drm/scheduler/sched_entity.c if (!entity->rq) entity 178 drivers/gpu/drm/scheduler/sched_entity.c sched = entity->rq->sched; entity 187 drivers/gpu/drm/scheduler/sched_entity.c drm_sched_entity_is_idle(entity), entity 191 drivers/gpu/drm/scheduler/sched_entity.c drm_sched_entity_is_idle(entity)); entity 195 drivers/gpu/drm/scheduler/sched_entity.c last_user = cmpxchg(&entity->last_user, current->group_leader, NULL); entity 198 drivers/gpu/drm/scheduler/sched_entity.c spin_lock(&entity->rq_lock); entity 199 drivers/gpu/drm/scheduler/sched_entity.c entity->stopped = true; entity 200 drivers/gpu/drm/scheduler/sched_entity.c drm_sched_rq_remove_entity(entity->rq, entity); entity 201 drivers/gpu/drm/scheduler/sched_entity.c spin_unlock(&entity->rq_lock); entity 235 drivers/gpu/drm/scheduler/sched_entity.c static void drm_sched_entity_kill_jobs(struct drm_sched_entity *entity) entity 240 drivers/gpu/drm/scheduler/sched_entity.c while ((job = to_drm_sched_job(spsc_queue_pop(&entity->job_queue)))) { entity 251 drivers/gpu/drm/scheduler/sched_entity.c if (!entity->last_scheduled) { entity 256 drivers/gpu/drm/scheduler/sched_entity.c r = dma_fence_add_callback(entity->last_scheduled, entity 275 drivers/gpu/drm/scheduler/sched_entity.c void drm_sched_entity_fini(struct drm_sched_entity *entity) entity 279 drivers/gpu/drm/scheduler/sched_entity.c if (entity->rq) { entity 280 drivers/gpu/drm/scheduler/sched_entity.c sched = entity->rq->sched; entity 281 drivers/gpu/drm/scheduler/sched_entity.c drm_sched_rq_remove_entity(entity->rq, entity); entity 287 drivers/gpu/drm/scheduler/sched_entity.c if (spsc_queue_count(&entity->job_queue)) { entity 295 drivers/gpu/drm/scheduler/sched_entity.c if (entity->dependency) { entity 296 drivers/gpu/drm/scheduler/sched_entity.c dma_fence_remove_callback(entity->dependency, entity 297 drivers/gpu/drm/scheduler/sched_entity.c &entity->cb); entity 298 drivers/gpu/drm/scheduler/sched_entity.c dma_fence_put(entity->dependency); entity 299 drivers/gpu/drm/scheduler/sched_entity.c entity->dependency = NULL; entity 302 drivers/gpu/drm/scheduler/sched_entity.c drm_sched_entity_kill_jobs(entity); entity 305 drivers/gpu/drm/scheduler/sched_entity.c dma_fence_put(entity->last_scheduled); entity 306 drivers/gpu/drm/scheduler/sched_entity.c entity->last_scheduled = NULL; entity 307 drivers/gpu/drm/scheduler/sched_entity.c kfree(entity->rq_list); entity 318 drivers/gpu/drm/scheduler/sched_entity.c void drm_sched_entity_destroy(struct drm_sched_entity *entity) entity 320 drivers/gpu/drm/scheduler/sched_entity.c drm_sched_entity_flush(entity, MAX_WAIT_SCHED_ENTITY_Q_EMPTY); entity 321 drivers/gpu/drm/scheduler/sched_entity.c drm_sched_entity_fini(entity); entity 331 drivers/gpu/drm/scheduler/sched_entity.c struct drm_sched_entity *entity = entity 334 drivers/gpu/drm/scheduler/sched_entity.c entity->dependency = NULL; entity 345 drivers/gpu/drm/scheduler/sched_entity.c struct drm_sched_entity *entity = entity 349 drivers/gpu/drm/scheduler/sched_entity.c drm_sched_wakeup(entity->rq->sched); entity 369 drivers/gpu/drm/scheduler/sched_entity.c void drm_sched_entity_set_priority(struct drm_sched_entity *entity, entity 374 drivers/gpu/drm/scheduler/sched_entity.c spin_lock(&entity->rq_lock); entity 376 drivers/gpu/drm/scheduler/sched_entity.c for (i = 0; i < entity->num_rq_list; ++i) entity 377 drivers/gpu/drm/scheduler/sched_entity.c drm_sched_entity_set_rq_priority(&entity->rq_list[i], priority); entity 379 drivers/gpu/drm/scheduler/sched_entity.c if (entity->rq) { entity 380 drivers/gpu/drm/scheduler/sched_entity.c drm_sched_rq_remove_entity(entity->rq, entity); entity 381 drivers/gpu/drm/scheduler/sched_entity.c drm_sched_entity_set_rq_priority(&entity->rq, priority); entity 382 drivers/gpu/drm/scheduler/sched_entity.c drm_sched_rq_add_entity(entity->rq, entity); entity 385 drivers/gpu/drm/scheduler/sched_entity.c spin_unlock(&entity->rq_lock); entity 397 drivers/gpu/drm/scheduler/sched_entity.c static bool drm_sched_entity_add_dependency_cb(struct drm_sched_entity *entity) entity 399 drivers/gpu/drm/scheduler/sched_entity.c struct drm_gpu_scheduler *sched = entity->rq->sched; entity 400 drivers/gpu/drm/scheduler/sched_entity.c struct dma_fence *fence = entity->dependency; entity 403 drivers/gpu/drm/scheduler/sched_entity.c if (fence->context == entity->fence_context || entity 404 drivers/gpu/drm/scheduler/sched_entity.c fence->context == entity->fence_context + 1) { entity 410 drivers/gpu/drm/scheduler/sched_entity.c dma_fence_put(entity->dependency); entity 422 drivers/gpu/drm/scheduler/sched_entity.c dma_fence_put(entity->dependency); entity 423 drivers/gpu/drm/scheduler/sched_entity.c entity->dependency = fence; entity 424 drivers/gpu/drm/scheduler/sched_entity.c if (!dma_fence_add_callback(fence, &entity->cb, entity 433 drivers/gpu/drm/scheduler/sched_entity.c if (!dma_fence_add_callback(entity->dependency, &entity->cb, entity 437 drivers/gpu/drm/scheduler/sched_entity.c dma_fence_put(entity->dependency); entity 448 drivers/gpu/drm/scheduler/sched_entity.c struct drm_sched_job *drm_sched_entity_pop_job(struct drm_sched_entity *entity) entity 450 drivers/gpu/drm/scheduler/sched_entity.c struct drm_gpu_scheduler *sched = entity->rq->sched; entity 453 drivers/gpu/drm/scheduler/sched_entity.c sched_job = to_drm_sched_job(spsc_queue_peek(&entity->job_queue)); entity 457 drivers/gpu/drm/scheduler/sched_entity.c while ((entity->dependency = entity 458 drivers/gpu/drm/scheduler/sched_entity.c sched->ops->dependency(sched_job, entity))) { entity 459 drivers/gpu/drm/scheduler/sched_entity.c trace_drm_sched_job_wait_dep(sched_job, entity->dependency); entity 461 drivers/gpu/drm/scheduler/sched_entity.c if (drm_sched_entity_add_dependency_cb(entity)) entity 466 drivers/gpu/drm/scheduler/sched_entity.c if (entity->guilty && atomic_read(entity->guilty)) entity 469 drivers/gpu/drm/scheduler/sched_entity.c dma_fence_put(entity->last_scheduled); entity 470 drivers/gpu/drm/scheduler/sched_entity.c entity->last_scheduled = dma_fence_get(&sched_job->s_fence->finished); entity 472 drivers/gpu/drm/scheduler/sched_entity.c spsc_queue_pop(&entity->job_queue); entity 484 drivers/gpu/drm/scheduler/sched_entity.c void drm_sched_entity_select_rq(struct drm_sched_entity *entity) entity 489 drivers/gpu/drm/scheduler/sched_entity.c if (spsc_queue_count(&entity->job_queue) || entity->num_rq_list <= 1) entity 492 drivers/gpu/drm/scheduler/sched_entity.c fence = READ_ONCE(entity->last_scheduled); entity 496 drivers/gpu/drm/scheduler/sched_entity.c rq = drm_sched_entity_get_free_sched(entity); entity 497 drivers/gpu/drm/scheduler/sched_entity.c if (rq == entity->rq) entity 500 drivers/gpu/drm/scheduler/sched_entity.c spin_lock(&entity->rq_lock); entity 501 drivers/gpu/drm/scheduler/sched_entity.c drm_sched_rq_remove_entity(entity->rq, entity); entity 502 drivers/gpu/drm/scheduler/sched_entity.c entity->rq = rq; entity 503 drivers/gpu/drm/scheduler/sched_entity.c spin_unlock(&entity->rq_lock); entity 519 drivers/gpu/drm/scheduler/sched_entity.c struct drm_sched_entity *entity) entity 523 drivers/gpu/drm/scheduler/sched_entity.c trace_drm_sched_job(sched_job, entity); entity 524 drivers/gpu/drm/scheduler/sched_entity.c atomic_inc(&entity->rq->sched->num_jobs); entity 525 drivers/gpu/drm/scheduler/sched_entity.c WRITE_ONCE(entity->last_user, current->group_leader); entity 526 drivers/gpu/drm/scheduler/sched_entity.c first = spsc_queue_push(&entity->job_queue, &sched_job->queue_node); entity 531 drivers/gpu/drm/scheduler/sched_entity.c spin_lock(&entity->rq_lock); entity 532 drivers/gpu/drm/scheduler/sched_entity.c if (entity->stopped) { entity 533 drivers/gpu/drm/scheduler/sched_entity.c spin_unlock(&entity->rq_lock); entity 538 drivers/gpu/drm/scheduler/sched_entity.c drm_sched_rq_add_entity(entity->rq, entity); entity 539 drivers/gpu/drm/scheduler/sched_entity.c spin_unlock(&entity->rq_lock); entity 540 drivers/gpu/drm/scheduler/sched_entity.c drm_sched_wakeup(entity->rq->sched); entity 155 drivers/gpu/drm/scheduler/sched_fence.c struct drm_sched_fence *drm_sched_fence_create(struct drm_sched_entity *entity, entity 166 drivers/gpu/drm/scheduler/sched_fence.c fence->sched = entity->rq->sched; entity 169 drivers/gpu/drm/scheduler/sched_fence.c seq = atomic_inc_return(&entity->fence_seq); entity 171 drivers/gpu/drm/scheduler/sched_fence.c &fence->lock, entity->fence_context, seq); entity 173 drivers/gpu/drm/scheduler/sched_fence.c &fence->lock, entity->fence_context + 1, seq); entity 89 drivers/gpu/drm/scheduler/sched_main.c struct drm_sched_entity *entity) entity 91 drivers/gpu/drm/scheduler/sched_main.c if (!list_empty(&entity->list)) entity 94 drivers/gpu/drm/scheduler/sched_main.c list_add_tail(&entity->list, &rq->entities); entity 107 drivers/gpu/drm/scheduler/sched_main.c struct drm_sched_entity *entity) entity 109 drivers/gpu/drm/scheduler/sched_main.c if (list_empty(&entity->list)) entity 112 drivers/gpu/drm/scheduler/sched_main.c list_del_init(&entity->list); entity 113 drivers/gpu/drm/scheduler/sched_main.c if (rq->current_entity == entity) entity 128 drivers/gpu/drm/scheduler/sched_main.c struct drm_sched_entity *entity; entity 132 drivers/gpu/drm/scheduler/sched_main.c entity = rq->current_entity; entity 133 drivers/gpu/drm/scheduler/sched_main.c if (entity) { entity 134 drivers/gpu/drm/scheduler/sched_main.c list_for_each_entry_continue(entity, &rq->entities, list) { entity 135 drivers/gpu/drm/scheduler/sched_main.c if (drm_sched_entity_is_ready(entity)) { entity 136 drivers/gpu/drm/scheduler/sched_main.c rq->current_entity = entity; entity 138 drivers/gpu/drm/scheduler/sched_main.c return entity; entity 143 drivers/gpu/drm/scheduler/sched_main.c list_for_each_entry(entity, &rq->entities, list) { entity 145 drivers/gpu/drm/scheduler/sched_main.c if (drm_sched_entity_is_ready(entity)) { entity 146 drivers/gpu/drm/scheduler/sched_main.c rq->current_entity = entity; entity 148 drivers/gpu/drm/scheduler/sched_main.c return entity; entity 151 drivers/gpu/drm/scheduler/sched_main.c if (entity == rq->current_entity) entity 169 drivers/gpu/drm/scheduler/sched_main.c struct drm_sched_entity *entity) entity 171 drivers/gpu/drm/scheduler/sched_main.c struct drm_gpu_scheduler *sched = entity->rq->sched; entity 176 drivers/gpu/drm/scheduler/sched_main.c if (fence->context == entity->fence_context) entity 321 drivers/gpu/drm/scheduler/sched_main.c struct drm_sched_entity *entity; entity 335 drivers/gpu/drm/scheduler/sched_main.c list_for_each_entry_safe(entity, tmp, &rq->entities, list) { entity 337 drivers/gpu/drm/scheduler/sched_main.c entity->fence_context) { entity 340 drivers/gpu/drm/scheduler/sched_main.c if (entity->guilty) entity 341 drivers/gpu/drm/scheduler/sched_main.c atomic_set(entity->guilty, 1); entity 346 drivers/gpu/drm/scheduler/sched_main.c if (&entity->list != &rq->entities) entity 523 drivers/gpu/drm/scheduler/sched_main.c struct drm_sched_entity *entity, entity 528 drivers/gpu/drm/scheduler/sched_main.c drm_sched_entity_select_rq(entity); entity 529 drivers/gpu/drm/scheduler/sched_main.c if (!entity->rq) entity 532 drivers/gpu/drm/scheduler/sched_main.c sched = entity->rq->sched; entity 535 drivers/gpu/drm/scheduler/sched_main.c job->entity = entity; entity 536 drivers/gpu/drm/scheduler/sched_main.c job->s_priority = entity->rq - sched->sched_rq; entity 537 drivers/gpu/drm/scheduler/sched_main.c job->s_fence = drm_sched_fence_create(entity, owner); entity 595 drivers/gpu/drm/scheduler/sched_main.c struct drm_sched_entity *entity; entity 603 drivers/gpu/drm/scheduler/sched_main.c entity = drm_sched_rq_select_entity(&sched->sched_rq[i]); entity 604 drivers/gpu/drm/scheduler/sched_main.c if (entity) entity 608 drivers/gpu/drm/scheduler/sched_main.c return entity; entity 707 drivers/gpu/drm/scheduler/sched_main.c struct drm_sched_entity *entity = NULL; entity 716 drivers/gpu/drm/scheduler/sched_main.c (entity = drm_sched_select_entity(sched))) || entity 725 drivers/gpu/drm/scheduler/sched_main.c if (!entity) entity 728 drivers/gpu/drm/scheduler/sched_main.c sched_job = drm_sched_entity_pop_job(entity); entity 2803 drivers/media/dvb-core/dvb_frontend.c dvbdev->entity, entity 2835 drivers/media/dvb-core/dvb_frontend.c fe->dvb->mdev->disable_source(dvbdev->entity); entity 2874 drivers/media/dvb-core/dvb_frontend.c fe->dvb->mdev->disable_source(dvbdev->entity); entity 214 drivers/media/dvb-core/dvbdev.c if (dvbdev->entity) { entity 215 drivers/media/dvb-core/dvbdev.c media_device_unregister_entity(dvbdev->entity); entity 216 drivers/media/dvb-core/dvbdev.c kfree(dvbdev->entity); entity 218 drivers/media/dvb-core/dvbdev.c dvbdev->entity = NULL; entity 271 drivers/media/dvb-core/dvbdev.c struct media_entity *entity = &dvbdev->tsout_entity[i]; entity 273 drivers/media/dvb-core/dvbdev.c entity->name = kasprintf(GFP_KERNEL, "%s #%d", name, i); entity 274 drivers/media/dvb-core/dvbdev.c if (!entity->name) entity 277 drivers/media/dvb-core/dvbdev.c entity->function = MEDIA_ENT_F_IO_DTV; entity 280 drivers/media/dvb-core/dvbdev.c ret = media_entity_pads_init(entity, 1, pads); entity 285 drivers/media/dvb-core/dvbdev.c entity); entity 333 drivers/media/dvb-core/dvbdev.c dvbdev->entity = kzalloc(sizeof(*dvbdev->entity), GFP_KERNEL); entity 334 drivers/media/dvb-core/dvbdev.c if (!dvbdev->entity) entity 337 drivers/media/dvb-core/dvbdev.c dvbdev->entity->name = dvbdev->name; entity 343 drivers/media/dvb-core/dvbdev.c kfree(dvbdev->entity); entity 350 drivers/media/dvb-core/dvbdev.c dvbdev->entity->function = MEDIA_ENT_F_DTV_DEMOD; entity 355 drivers/media/dvb-core/dvbdev.c dvbdev->entity->function = MEDIA_ENT_F_TS_DEMUX; entity 361 drivers/media/dvb-core/dvbdev.c dvbdev->entity->function = MEDIA_ENT_F_DTV_CA; entity 367 drivers/media/dvb-core/dvbdev.c kfree(dvbdev->entity); entity 369 drivers/media/dvb-core/dvbdev.c dvbdev->entity = NULL; entity 375 drivers/media/dvb-core/dvbdev.c ret = media_entity_pads_init(dvbdev->entity, npads, dvbdev->pads); entity 380 drivers/media/dvb-core/dvbdev.c dvbdev->entity); entity 385 drivers/media/dvb-core/dvbdev.c __func__, dvbdev->entity->name); entity 442 drivers/media/dvb-core/dvbdev.c if (!dvbdev->entity) entity 445 drivers/media/dvb-core/dvbdev.c link = media_create_intf_link(dvbdev->entity, entity 596 drivers/media/dvb-core/dvbdev.c struct media_entity *entity; entity 599 drivers/media/dvb-core/dvbdev.c media_device_for_each_entity(entity, mdev) { entity 600 drivers/media/dvb-core/dvbdev.c if (entity->function == MEDIA_ENT_F_IO_DTV) { entity 601 drivers/media/dvb-core/dvbdev.c if (strncmp(entity->name, name, strlen(name))) entity 603 drivers/media/dvb-core/dvbdev.c link = media_create_intf_link(entity, intf, entity 617 drivers/media/dvb-core/dvbdev.c struct media_entity *entity, *tuner = NULL, *demod = NULL, *conn; entity 630 drivers/media/dvb-core/dvbdev.c media_device_for_each_entity(entity, mdev) { entity 631 drivers/media/dvb-core/dvbdev.c switch (entity->function) { entity 633 drivers/media/dvb-core/dvbdev.c tuner = entity; entity 637 drivers/media/dvb-core/dvbdev.c demod = entity; entity 641 drivers/media/dvb-core/dvbdev.c demux = entity; entity 644 drivers/media/dvb-core/dvbdev.c ca = entity; entity 743 drivers/media/dvb-core/dvbdev.c media_device_for_each_entity(entity, mdev) { entity 744 drivers/media/dvb-core/dvbdev.c if (entity->function == MEDIA_ENT_F_IO_DTV) { entity 745 drivers/media/dvb-core/dvbdev.c if (!strncmp(entity->name, DVR_TSOUT, entity 749 drivers/media/dvb-core/dvbdev.c entity, 0, 0); entity 753 drivers/media/dvb-core/dvbdev.c if (!strncmp(entity->name, DEMUX_TSOUT, entity 757 drivers/media/dvb-core/dvbdev.c entity, 0, 0); entity 718 drivers/media/dvb-frontends/au8522_decoder.c sd->entity.function = MEDIA_ENT_F_ATV_DECODER; entity 720 drivers/media/dvb-frontends/au8522_decoder.c ret = media_entity_pads_init(&sd->entity, ARRAY_SIZE(state->pads), entity 312 drivers/media/i2c/ad5820.c coil->subdev.entity.function = MEDIA_ENT_F_LENS; entity 315 drivers/media/i2c/ad5820.c ret = media_entity_pads_init(&coil->subdev.entity, 0, NULL); entity 328 drivers/media/i2c/ad5820.c media_entity_cleanup(&coil->subdev.entity); entity 339 drivers/media/i2c/ad5820.c media_entity_cleanup(&coil->subdev.entity); entity 1137 drivers/media/i2c/ad9389b.c sd->entity.function = MEDIA_ENT_F_DV_ENCODER; entity 1138 drivers/media/i2c/ad9389b.c err = media_entity_pads_init(&sd->entity, 1, &state->pad); entity 1169 drivers/media/i2c/ad9389b.c media_entity_cleanup(&sd->entity); entity 1193 drivers/media/i2c/ad9389b.c media_entity_cleanup(&sd->entity); entity 501 drivers/media/i2c/adp1653.c ret = media_entity_pads_init(&flash->subdev.entity, 0, NULL); entity 505 drivers/media/i2c/adp1653.c flash->subdev.entity.function = MEDIA_ENT_F_FLASH; entity 522 drivers/media/i2c/adp1653.c media_entity_cleanup(&flash->subdev.entity); entity 1364 drivers/media/i2c/adv7180.c sd->entity.function = MEDIA_ENT_F_ATV_DECODER; entity 1365 drivers/media/i2c/adv7180.c ret = media_entity_pads_init(&sd->entity, 1, &state->pad); entity 1391 drivers/media/i2c/adv7180.c media_entity_cleanup(&sd->entity); entity 1412 drivers/media/i2c/adv7180.c media_entity_cleanup(&sd->entity); entity 533 drivers/media/i2c/adv748x/adv748x-afe.c ret = media_entity_pads_init(&afe->sd.entity, ADV748X_AFE_NR_PADS, entity 545 drivers/media/i2c/adv748x/adv748x-afe.c media_entity_cleanup(&afe->sd.entity); entity 553 drivers/media/i2c/adv748x/adv748x-afe.c media_entity_cleanup(&afe->sd.entity); entity 331 drivers/media/i2c/adv748x/adv748x-core.c static int adv748x_link_setup(struct media_entity *entity, entity 335 drivers/media/i2c/adv748x/adv748x-core.c struct v4l2_subdev *rsd = media_entity_to_v4l2_subdev(remote->entity); entity 336 drivers/media/i2c/adv748x/adv748x-core.c struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); entity 568 drivers/media/i2c/adv748x/adv748x-core.c sd->entity.function = function; entity 569 drivers/media/i2c/adv748x/adv748x-core.c sd->entity.ops = is_tx(adv748x_sd_to_csi2(sd)) ? entity 49 drivers/media/i2c/adv748x/adv748x-csi2.c ret = media_create_pad_link(&src->entity, src_pad, entity 50 drivers/media/i2c/adv748x/adv748x-csi2.c &tx->sd.entity, ADV748X_CSI2_SINK, entity 301 drivers/media/i2c/adv748x/adv748x-csi2.c ret = media_entity_pads_init(&tx->sd.entity, ADV748X_CSI2_NR_PADS, entity 319 drivers/media/i2c/adv748x/adv748x-csi2.c media_entity_cleanup(&tx->sd.entity); entity 330 drivers/media/i2c/adv748x/adv748x-csi2.c media_entity_cleanup(&tx->sd.entity); entity 739 drivers/media/i2c/adv748x/adv748x-hdmi.c ret = media_entity_pads_init(&hdmi->sd.entity, entity 751 drivers/media/i2c/adv748x/adv748x-hdmi.c media_entity_cleanup(&hdmi->sd.entity); entity 759 drivers/media/i2c/adv748x/adv748x-hdmi.c media_entity_cleanup(&hdmi->sd.entity); entity 423 drivers/media/i2c/adv748x/adv748x.h return media_entity_to_v4l2_subdev(pad->entity); entity 1855 drivers/media/i2c/adv7511-v4l2.c sd->entity.function = MEDIA_ENT_F_DV_ENCODER; entity 1856 drivers/media/i2c/adv7511-v4l2.c err = media_entity_pads_init(&sd->entity, 1, &state->pad); entity 1947 drivers/media/i2c/adv7511-v4l2.c media_entity_cleanup(&sd->entity); entity 1973 drivers/media/i2c/adv7511-v4l2.c media_entity_cleanup(&sd->entity); entity 3540 drivers/media/i2c/adv7604.c sd->entity.function = MEDIA_ENT_F_DV_DECODER; entity 3542 drivers/media/i2c/adv7604.c err = media_entity_pads_init(&sd->entity, state->source_pad + 1, entity 3585 drivers/media/i2c/adv7604.c media_entity_cleanup(&sd->entity); entity 3611 drivers/media/i2c/adv7604.c media_entity_cleanup(&sd->entity); entity 3547 drivers/media/i2c/adv7842.c sd->entity.function = MEDIA_ENT_F_DV_DECODER; entity 3549 drivers/media/i2c/adv7842.c err = media_entity_pads_init(&sd->entity, 1, &state->pad); entity 3571 drivers/media/i2c/adv7842.c media_entity_cleanup(&sd->entity); entity 3591 drivers/media/i2c/adv7842.c media_entity_cleanup(&sd->entity); entity 119 drivers/media/i2c/ak7375.c media_entity_cleanup(&ak7375_dev->sd.entity); entity 153 drivers/media/i2c/ak7375.c ak7375_dev->sd.entity.function = MEDIA_ENT_F_LENS; entity 159 drivers/media/i2c/ak7375.c ret = media_entity_pads_init(&ak7375_dev->sd.entity, 0, NULL); entity 175 drivers/media/i2c/ak7375.c media_entity_cleanup(&ak7375_dev->sd.entity); entity 5902 drivers/media/i2c/cx25840/cx25840-core.c sd->entity.function = MEDIA_ENT_F_ATV_DECODER; entity 5904 drivers/media/i2c/cx25840/cx25840-core.c ret = media_entity_pads_init(&sd->entity, ARRAY_SIZE(state->pads), entity 117 drivers/media/i2c/dw9714.c media_entity_cleanup(&dw9714_dev->sd.entity); entity 155 drivers/media/i2c/dw9714.c rval = media_entity_pads_init(&dw9714_dev->sd.entity, 0, NULL); entity 159 drivers/media/i2c/dw9714.c dw9714_dev->sd.entity.function = MEDIA_ENT_F_LENS; entity 173 drivers/media/i2c/dw9714.c media_entity_cleanup(&dw9714_dev->sd.entity); entity 162 drivers/media/i2c/dw9807-vcm.c media_entity_cleanup(&dw9807_dev->sd.entity); entity 204 drivers/media/i2c/dw9807-vcm.c rval = media_entity_pads_init(&dw9807_dev->sd.entity, 0, NULL); entity 208 drivers/media/i2c/dw9807-vcm.c dw9807_dev->sd.entity.function = MEDIA_ENT_F_LENS; entity 222 drivers/media/i2c/dw9807-vcm.c media_entity_cleanup(&dw9807_dev->sd.entity); entity 1440 drivers/media/i2c/et8ek8/et8ek8_driver.c sensor->subdev.entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 1442 drivers/media/i2c/et8ek8/et8ek8_driver.c ret = media_entity_pads_init(&sensor->subdev.entity, 1, &sensor->pad); entity 1457 drivers/media/i2c/et8ek8/et8ek8_driver.c media_entity_cleanup(&sensor->subdev.entity); entity 1478 drivers/media/i2c/et8ek8/et8ek8_driver.c media_entity_cleanup(&sensor->subdev.entity); entity 1046 drivers/media/i2c/imx214.c imx214->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 1048 drivers/media/i2c/imx214.c ret = media_entity_pads_init(&imx214->sd.entity, 1, &imx214->pad); entity 1065 drivers/media/i2c/imx214.c media_entity_cleanup(&imx214->sd.entity); entity 1080 drivers/media/i2c/imx214.c media_entity_cleanup(&imx214->sd.entity); entity 1238 drivers/media/i2c/imx258.c imx258->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 1243 drivers/media/i2c/imx258.c ret = media_entity_pads_init(&imx258->sd.entity, 1, &imx258->pad); entity 1258 drivers/media/i2c/imx258.c media_entity_cleanup(&imx258->sd.entity); entity 1272 drivers/media/i2c/imx258.c media_entity_cleanup(&sd->entity); entity 1866 drivers/media/i2c/imx274.c sd->entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 1867 drivers/media/i2c/imx274.c ret = media_entity_pads_init(&sd->entity, 1, &imx274->pad); entity 1960 drivers/media/i2c/imx274.c media_entity_cleanup(&sd->entity); entity 1976 drivers/media/i2c/imx274.c media_entity_cleanup(&sd->entity); entity 2480 drivers/media/i2c/imx319.c imx319->sd.entity.ops = &imx319_subdev_entity_ops; entity 2481 drivers/media/i2c/imx319.c imx319->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 2485 drivers/media/i2c/imx319.c ret = media_entity_pads_init(&imx319->sd.entity, 1, &imx319->pad); entity 2506 drivers/media/i2c/imx319.c media_entity_cleanup(&imx319->sd.entity); entity 2523 drivers/media/i2c/imx319.c media_entity_cleanup(&sd->entity); entity 1780 drivers/media/i2c/imx355.c imx355->sd.entity.ops = &imx355_subdev_entity_ops; entity 1781 drivers/media/i2c/imx355.c imx355->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 1785 drivers/media/i2c/imx355.c ret = media_entity_pads_init(&imx355->sd.entity, 1, &imx355->pad); entity 1806 drivers/media/i2c/imx355.c media_entity_cleanup(&imx355->sd.entity); entity 1823 drivers/media/i2c/imx355.c media_entity_cleanup(&sd->entity); entity 362 drivers/media/i2c/lm3560.c rval = media_entity_pads_init(&flash->subdev_led[led_no].entity, 0, NULL); entity 365 drivers/media/i2c/lm3560.c flash->subdev_led[led_no].entity.function = MEDIA_ENT_F_FLASH; entity 454 drivers/media/i2c/lm3560.c media_entity_cleanup(&flash->subdev_led[i].entity); entity 283 drivers/media/i2c/lm3646.c rval = media_entity_pads_init(&flash->subdev_led.entity, 0, NULL); entity 286 drivers/media/i2c/lm3646.c flash->subdev_led.entity.function = MEDIA_ENT_F_FLASH; entity 386 drivers/media/i2c/lm3646.c media_entity_cleanup(&flash->subdev_led.entity); entity 992 drivers/media/i2c/m5mols/m5mols_core.c ret = media_entity_pads_init(&sd->entity, 1, &info->pad); entity 995 drivers/media/i2c/m5mols/m5mols_core.c sd->entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 1022 drivers/media/i2c/m5mols/m5mols_core.c media_entity_cleanup(&sd->entity); entity 1032 drivers/media/i2c/m5mols/m5mols_core.c media_entity_cleanup(&sd->entity); entity 702 drivers/media/i2c/msp3400-driver.c sd->entity.function = MEDIA_ENT_F_IF_AUD_DECODER; entity 704 drivers/media/i2c/msp3400-driver.c ret = media_entity_pads_init(&sd->entity, 2, state->pads); entity 805 drivers/media/i2c/mt9m001.c mt9m001->subdev.entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 806 drivers/media/i2c/mt9m001.c ret = media_entity_pads_init(&mt9m001->subdev.entity, 1, &mt9m001->pad); entity 819 drivers/media/i2c/mt9m001.c media_entity_cleanup(&mt9m001->subdev.entity); entity 839 drivers/media/i2c/mt9m001.c media_entity_cleanup(&mt9m001->subdev.entity); entity 788 drivers/media/i2c/mt9m032.c sensor->subdev.entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 790 drivers/media/i2c/mt9m032.c ret = media_entity_pads_init(&sensor->subdev.entity, 1, &sensor->pad); entity 849 drivers/media/i2c/mt9m032.c media_entity_cleanup(&sensor->subdev.entity); entity 864 drivers/media/i2c/mt9m032.c media_entity_cleanup(&subdev->entity); entity 1318 drivers/media/i2c/mt9m111.c mt9m111->subdev.entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 1319 drivers/media/i2c/mt9m111.c ret = media_entity_pads_init(&mt9m111->subdev.entity, 1, &mt9m111->pad); entity 1352 drivers/media/i2c/mt9m111.c media_entity_cleanup(&mt9m111->subdev.entity); entity 1367 drivers/media/i2c/mt9m111.c media_entity_cleanup(&mt9m111->subdev.entity); entity 1111 drivers/media/i2c/mt9p031.c mt9p031->subdev.entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 1113 drivers/media/i2c/mt9p031.c ret = media_entity_pads_init(&mt9p031->subdev.entity, 1, &mt9p031->pad); entity 1146 drivers/media/i2c/mt9p031.c media_entity_cleanup(&mt9p031->subdev.entity); entity 1160 drivers/media/i2c/mt9p031.c media_entity_cleanup(&subdev->entity); entity 943 drivers/media/i2c/mt9t001.c mt9t001->subdev.entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 945 drivers/media/i2c/mt9t001.c ret = media_entity_pads_init(&mt9t001->subdev.entity, 1, &mt9t001->pad); entity 950 drivers/media/i2c/mt9t001.c media_entity_cleanup(&mt9t001->subdev.entity); entity 963 drivers/media/i2c/mt9t001.c media_entity_cleanup(&subdev->entity); entity 505 drivers/media/i2c/mt9v011.c sd->entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 507 drivers/media/i2c/mt9v011.c ret = media_entity_pads_init(&sd->entity, 1, &core->pad); entity 1168 drivers/media/i2c/mt9v032.c mt9v032->subdev.entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 1170 drivers/media/i2c/mt9v032.c ret = media_entity_pads_init(&mt9v032->subdev.entity, 1, &mt9v032->pad); entity 1182 drivers/media/i2c/mt9v032.c media_entity_cleanup(&mt9v032->subdev.entity); entity 1194 drivers/media/i2c/mt9v032.c media_entity_cleanup(&subdev->entity); entity 1207 drivers/media/i2c/mt9v111.c mt9v111->sd.entity.ops = &mt9v111_subdev_entity_ops; entity 1208 drivers/media/i2c/mt9v111.c mt9v111->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 1211 drivers/media/i2c/mt9v111.c ret = media_entity_pads_init(&mt9v111->sd.entity, 1, &mt9v111->pad); entity 1228 drivers/media/i2c/mt9v111.c media_entity_cleanup(&mt9v111->sd.entity); entity 1248 drivers/media/i2c/mt9v111.c media_entity_cleanup(&sd->entity); entity 779 drivers/media/i2c/noon010pc30.c sd->entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 780 drivers/media/i2c/noon010pc30.c ret = media_entity_pads_init(&sd->entity, 1, &info->pad); entity 801 drivers/media/i2c/noon010pc30.c media_entity_cleanup(&sd->entity); entity 1721 drivers/media/i2c/ov13858.c ov13858->sd.entity.ops = &ov13858_subdev_entity_ops; entity 1722 drivers/media/i2c/ov13858.c ov13858->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 1726 drivers/media/i2c/ov13858.c ret = media_entity_pads_init(&ov13858->sd.entity, 1, &ov13858->pad); entity 1747 drivers/media/i2c/ov13858.c media_entity_cleanup(&ov13858->sd.entity); entity 1762 drivers/media/i2c/ov13858.c media_entity_cleanup(&sd->entity); entity 1246 drivers/media/i2c/ov2640.c priv->subdev.entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 1247 drivers/media/i2c/ov2640.c ret = media_entity_pads_init(&priv->subdev.entity, 1, &priv->pad); entity 1265 drivers/media/i2c/ov2640.c media_entity_cleanup(&priv->subdev.entity); entity 1281 drivers/media/i2c/ov2640.c media_entity_cleanup(&priv->subdev.entity); entity 1455 drivers/media/i2c/ov2659.c sd->entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 1456 drivers/media/i2c/ov2659.c ret = media_entity_pads_init(&sd->entity, 1, &ov2659->pad); entity 1486 drivers/media/i2c/ov2659.c media_entity_cleanup(&sd->entity); entity 1498 drivers/media/i2c/ov2659.c media_entity_cleanup(&sd->entity); entity 932 drivers/media/i2c/ov2680.c sensor->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 934 drivers/media/i2c/ov2680.c ret = media_entity_pads_init(&sensor->sd.entity, 1, &sensor->pad); entity 982 drivers/media/i2c/ov2680.c media_entity_cleanup(&sensor->sd.entity); entity 1106 drivers/media/i2c/ov2680.c media_entity_cleanup(&sensor->sd.entity); entity 772 drivers/media/i2c/ov2685.c ov2685->subdev.entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 773 drivers/media/i2c/ov2685.c ret = media_entity_pads_init(&ov2685->subdev.entity, 1, &ov2685->pad); entity 792 drivers/media/i2c/ov2685.c media_entity_cleanup(&ov2685->subdev.entity); entity 811 drivers/media/i2c/ov2685.c media_entity_cleanup(&sd->entity); entity 3043 drivers/media/i2c/ov5640.c sensor->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 3044 drivers/media/i2c/ov5640.c ret = media_entity_pads_init(&sensor->sd.entity, 1, &sensor->pad); entity 3072 drivers/media/i2c/ov5640.c media_entity_cleanup(&sensor->sd.entity); entity 3083 drivers/media/i2c/ov5640.c media_entity_cleanup(&sensor->sd.entity); entity 1181 drivers/media/i2c/ov5645.c ov5645->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 1183 drivers/media/i2c/ov5645.c ret = media_entity_pads_init(&ov5645->sd.entity, 1, &ov5645->pad); entity 1249 drivers/media/i2c/ov5645.c media_entity_cleanup(&ov5645->sd.entity); entity 1263 drivers/media/i2c/ov5645.c media_entity_cleanup(&ov5645->sd.entity); entity 592 drivers/media/i2c/ov5647.c sd->entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 593 drivers/media/i2c/ov5647.c ret = media_entity_pads_init(&sd->entity, 1, &sensor->pad); entity 608 drivers/media/i2c/ov5647.c media_entity_cleanup(&sd->entity); entity 620 drivers/media/i2c/ov5647.c media_entity_cleanup(&ov5647->sd.entity); entity 2483 drivers/media/i2c/ov5670.c ov5670->sd.entity.ops = &ov5670_subdev_entity_ops; entity 2484 drivers/media/i2c/ov5670.c ov5670->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 2488 drivers/media/i2c/ov5670.c ret = media_entity_pads_init(&ov5670->sd.entity, 1, &ov5670->pad); entity 2514 drivers/media/i2c/ov5670.c media_entity_cleanup(&ov5670->sd.entity); entity 2534 drivers/media/i2c/ov5670.c media_entity_cleanup(&sd->entity); entity 1079 drivers/media/i2c/ov5675.c media_entity_cleanup(&sd->entity); entity 1120 drivers/media/i2c/ov5675.c ov5675->sd.entity.ops = &ov5675_subdev_entity_ops; entity 1121 drivers/media/i2c/ov5675.c ov5675->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 1123 drivers/media/i2c/ov5675.c ret = media_entity_pads_init(&ov5675->sd.entity, 1, &ov5675->pad); entity 1147 drivers/media/i2c/ov5675.c media_entity_cleanup(&ov5675->sd.entity); entity 1335 drivers/media/i2c/ov5695.c sd->entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 1336 drivers/media/i2c/ov5695.c ret = media_entity_pads_init(&sd->entity, 1, &ov5695->pad); entity 1355 drivers/media/i2c/ov5695.c media_entity_cleanup(&sd->entity); entity 1374 drivers/media/i2c/ov5695.c media_entity_cleanup(&sd->entity); entity 1381 drivers/media/i2c/ov7251.c ov7251->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 1383 drivers/media/i2c/ov7251.c ret = media_entity_pads_init(&ov7251->sd.entity, 1, &ov7251->pad); entity 1463 drivers/media/i2c/ov7251.c media_entity_cleanup(&ov7251->sd.entity); entity 1477 drivers/media/i2c/ov7251.c media_entity_cleanup(&ov7251->sd.entity); entity 1971 drivers/media/i2c/ov7670.c info->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 1972 drivers/media/i2c/ov7670.c ret = media_entity_pads_init(&info->sd.entity, 1, &info->pad); entity 1987 drivers/media/i2c/ov7670.c media_entity_cleanup(&info->sd.entity); entity 2002 drivers/media/i2c/ov7670.c media_entity_cleanup(&info->sd.entity); entity 1424 drivers/media/i2c/ov772x.c priv->subdev.entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 1425 drivers/media/i2c/ov772x.c ret = media_entity_pads_init(&priv->subdev.entity, 1, &priv->pad); entity 1441 drivers/media/i2c/ov772x.c media_entity_cleanup(&priv->subdev.entity); entity 1459 drivers/media/i2c/ov772x.c media_entity_cleanup(&priv->subdev.entity); entity 1113 drivers/media/i2c/ov7740.c sd->entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 1114 drivers/media/i2c/ov7740.c ret = media_entity_pads_init(&sd->entity, 1, &ov7740->pad); entity 1160 drivers/media/i2c/ov7740.c media_entity_cleanup(&ov7740->subdev.entity); entity 1172 drivers/media/i2c/ov7740.c media_entity_cleanup(&ov7740->subdev.entity); entity 1167 drivers/media/i2c/ov8856.c media_entity_cleanup(&sd->entity); entity 1208 drivers/media/i2c/ov8856.c ov8856->sd.entity.ops = &ov8856_subdev_entity_ops; entity 1209 drivers/media/i2c/ov8856.c ov8856->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 1211 drivers/media/i2c/ov8856.c ret = media_entity_pads_init(&ov8856->sd.entity, 1, &ov8856->pad); entity 1235 drivers/media/i2c/ov8856.c media_entity_cleanup(&ov8856->sd.entity); entity 1552 drivers/media/i2c/ov9650.c sd->entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 1553 drivers/media/i2c/ov9650.c ret = media_entity_pads_init(&sd->entity, 1, &ov965x->pad); entity 1580 drivers/media/i2c/ov9650.c media_entity_cleanup(&sd->entity); entity 1593 drivers/media/i2c/ov9650.c media_entity_cleanup(&sd->entity); entity 1478 drivers/media/i2c/s5c73m3/s5c73m3-core.c ret = media_create_pad_link(&state->sensor_sd.entity, entity 1479 drivers/media/i2c/s5c73m3/s5c73m3-core.c S5C73M3_ISP_PAD, &state->oif_sd.entity, OIF_ISP_PAD, entity 1482 drivers/media/i2c/s5c73m3/s5c73m3-core.c ret = media_create_pad_link(&state->sensor_sd.entity, entity 1483 drivers/media/i2c/s5c73m3/s5c73m3-core.c S5C73M3_JPEG_PAD, &state->oif_sd.entity, OIF_JPEG_PAD, entity 1684 drivers/media/i2c/s5c73m3/s5c73m3-core.c sd->entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 1686 drivers/media/i2c/s5c73m3/s5c73m3-core.c ret = media_entity_pads_init(&sd->entity, S5C73M3_NUM_PADS, entity 1701 drivers/media/i2c/s5c73m3/s5c73m3-core.c oif_sd->entity.function = MEDIA_ENT_F_PROC_VIDEO_SCALER; entity 1703 drivers/media/i2c/s5c73m3/s5c73m3-core.c ret = media_entity_pads_init(&oif_sd->entity, OIF_NUM_PADS, entity 1766 drivers/media/i2c/s5c73m3/s5c73m3-core.c media_entity_cleanup(&sd->entity); entity 1779 drivers/media/i2c/s5c73m3/s5c73m3-core.c media_entity_cleanup(&oif_sd->entity); entity 1782 drivers/media/i2c/s5c73m3/s5c73m3-core.c media_entity_cleanup(&sensor_sd->entity); entity 959 drivers/media/i2c/s5k4ecgx.c sd->entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 960 drivers/media/i2c/s5k4ecgx.c ret = media_entity_pads_init(&sd->entity, 1, &priv->pad); entity 990 drivers/media/i2c/s5k4ecgx.c media_entity_cleanup(&priv->sd.entity); entity 1004 drivers/media/i2c/s5k4ecgx.c media_entity_cleanup(&sd->entity); entity 408 drivers/media/i2c/s5k5baf.c return sd->entity.function == MEDIA_ENT_F_CAM_SENSOR; entity 1756 drivers/media/i2c/s5k5baf.c ret = media_create_pad_link(&state->cis_sd.entity, PAD_CIS, entity 1757 drivers/media/i2c/s5k5baf.c &state->sd.entity, PAD_CIS, entity 1906 drivers/media/i2c/s5k5baf.c sd->entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 1907 drivers/media/i2c/s5k5baf.c ret = media_entity_pads_init(&sd->entity, NUM_CIS_PADS, &state->cis_pad); entity 1921 drivers/media/i2c/s5k5baf.c sd->entity.function = MEDIA_ENT_F_V4L2_SUBDEV_UNKNOWN; entity 1922 drivers/media/i2c/s5k5baf.c ret = media_entity_pads_init(&sd->entity, NUM_ISP_PADS, state->pads); entity 1927 drivers/media/i2c/s5k5baf.c media_entity_cleanup(&state->cis_sd.entity); entity 2010 drivers/media/i2c/s5k5baf.c media_entity_cleanup(&state->sd.entity); entity 2011 drivers/media/i2c/s5k5baf.c media_entity_cleanup(&state->cis_sd.entity); entity 2022 drivers/media/i2c/s5k5baf.c media_entity_cleanup(&sd->entity); entity 2026 drivers/media/i2c/s5k5baf.c media_entity_cleanup(&sd->entity); entity 333 drivers/media/i2c/s5k6a3.c sd->entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 335 drivers/media/i2c/s5k6a3.c ret = media_entity_pads_init(&sd->entity, 1, &sensor->pad); entity 346 drivers/media/i2c/s5k6a3.c media_entity_cleanup(&sd->entity); entity 358 drivers/media/i2c/s5k6a3.c media_entity_cleanup(&sd->entity); entity 1582 drivers/media/i2c/s5k6aa.c sd->entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 1583 drivers/media/i2c/s5k6aa.c ret = media_entity_pads_init(&sd->entity, 1, &s5k6aa->pad); entity 1615 drivers/media/i2c/s5k6aa.c media_entity_cleanup(&s5k6aa->sd.entity); entity 1625 drivers/media/i2c/s5k6aa.c media_entity_cleanup(&sd->entity); entity 1848 drivers/media/i2c/saa7115.c sd->entity.function = MEDIA_ENT_F_ATV_DECODER; entity 1850 drivers/media/i2c/saa7115.c ret = media_entity_pads_init(&sd->entity, SAA711X_NUM_PADS, entity 1673 drivers/media/i2c/smiapp/smiapp-core.c for (i = 0; i < subdev->entity.num_pads; i++) entity 1679 drivers/media/i2c/smiapp/smiapp-core.c for (i = 0; i < subdev->entity.num_pads; i++) { entity 2515 drivers/media/i2c/smiapp/smiapp-core.c rval = media_entity_pads_init(&ssd->sd.entity, entity 2531 drivers/media/i2c/smiapp/smiapp-core.c rval = media_create_pad_link(&ssd->sd.entity, source_pad, entity 2532 drivers/media/i2c/smiapp/smiapp-core.c &sink_ssd->sd.entity, sink_pad, entity 2623 drivers/media/i2c/smiapp/smiapp-core.c ssd->sd.entity.ops = &smiapp_entity_ops; entity 3066 drivers/media/i2c/smiapp/smiapp-core.c sensor->pixel_array->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR; entity 3099 drivers/media/i2c/smiapp/smiapp-core.c rval = media_entity_pads_init(&sensor->src->sd.entity, 2, entity 3122 drivers/media/i2c/smiapp/smiapp-core.c media_entity_cleanup(&sensor->src->sd.entity); entity 3148 drivers/media/i2c/smiapp/smiapp-core.c media_entity_cleanup(&sensor->ssds[i].sd.entity); entity 806 drivers/media/i2c/st-mipid02.c source_pad = media_entity_get_fwnode_pad(&s_subdev->entity, entity 815 drivers/media/i2c/st-mipid02.c ret = media_create_pad_link(&s_subdev->entity, source_pad, entity 816 drivers/media/i2c/st-mipid02.c &bridge->sd.entity, 0, entity 987 drivers/media/i2c/st-mipid02.c bridge->sd.entity.function = MEDIA_ENT_F_VID_IF_BRIDGE; entity 988 drivers/media/i2c/st-mipid02.c bridge->sd.entity.ops = &mipid02_subdev_entity_ops; entity 992 drivers/media/i2c/st-mipid02.c ret = media_entity_pads_init(&bridge->sd.entity, MIPID02_PAD_NB, entity 1039 drivers/media/i2c/st-mipid02.c media_entity_cleanup(&bridge->sd.entity); entity 1055 drivers/media/i2c/st-mipid02.c media_entity_cleanup(&bridge->sd.entity); entity 2099 drivers/media/i2c/tc358743.c sd->entity.function = MEDIA_ENT_F_VID_IF_BRIDGE; entity 2100 drivers/media/i2c/tc358743.c err = media_entity_pads_init(&sd->entity, 1, &state->pad); entity 2179 drivers/media/i2c/tc358743.c media_entity_cleanup(&sd->entity); entity 2198 drivers/media/i2c/tc358743.c media_entity_cleanup(&sd->entity); entity 2577 drivers/media/i2c/tda1997x.c sd->entity.function = MEDIA_ENT_F_DV_DECODER; entity 2578 drivers/media/i2c/tda1997x.c sd->entity.ops = &tda1997x_media_ops; entity 2732 drivers/media/i2c/tda1997x.c ret = media_entity_pads_init(&sd->entity, TDA1997X_NUM_PADS, entity 2776 drivers/media/i2c/tda1997x.c media_entity_cleanup(&sd->entity); entity 2804 drivers/media/i2c/tda1997x.c media_entity_cleanup(&sd->entity); entity 1078 drivers/media/i2c/tvp514x.c decoder->sd.entity.function = MEDIA_ENT_F_ATV_DECODER; entity 1080 drivers/media/i2c/tvp514x.c ret = media_entity_pads_init(&decoder->sd.entity, 1, &decoder->pad); entity 1112 drivers/media/i2c/tvp514x.c media_entity_cleanup(&decoder->sd.entity); entity 1130 drivers/media/i2c/tvp514x.c media_entity_cleanup(&decoder->sd.entity); entity 1177 drivers/media/i2c/tvp5150.c static int tvp5150_link_setup(struct media_entity *entity, entity 1181 drivers/media/i2c/tvp5150.c struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); entity 1186 drivers/media/i2c/tvp5150.c if (remote->entity == &decoder->input_ent[i]) entity 1377 drivers/media/i2c/tvp5150.c ret = media_create_pad_link(input, 0, &sd->entity, entity 1747 drivers/media/i2c/tvp5150.c sd->entity.function = MEDIA_ENT_F_ATV_DECODER; entity 1749 drivers/media/i2c/tvp5150.c res = media_entity_pads_init(&sd->entity, TVP5150_NUM_PADS, core->pads); entity 1753 drivers/media/i2c/tvp5150.c sd->entity.ops = &tvp5150_sd_media_ops; entity 1004 drivers/media/i2c/tvp7002.c device->sd.entity.function = MEDIA_ENT_F_ATV_DECODER; entity 1006 drivers/media/i2c/tvp7002.c error = media_entity_pads_init(&device->sd.entity, 1, &device->pad); entity 1030 drivers/media/i2c/tvp7002.c media_entity_cleanup(&device->sd.entity); entity 1051 drivers/media/i2c/tvp7002.c media_entity_cleanup(&device->sd.entity); entity 83 drivers/media/mc/mc-device.c struct media_entity *entity; entity 88 drivers/media/mc/mc-device.c media_device_for_each_entity(entity, mdev) { entity 89 drivers/media/mc/mc-device.c if (((media_entity_id(entity) == id) && !next) || entity 90 drivers/media/mc/mc-device.c ((media_entity_id(entity) > id) && next)) { entity 91 drivers/media/mc/mc-device.c return entity; entity 146 drivers/media/mc/mc-device.c upad->entity = media_entity_id(kpad->entity); entity 154 drivers/media/mc/mc-device.c struct media_entity *entity; entity 156 drivers/media/mc/mc-device.c entity = find_entity(mdev, links->entity); entity 157 drivers/media/mc/mc-device.c if (entity == NULL) entity 163 drivers/media/mc/mc-device.c for (p = 0; p < entity->num_pads; p++) { entity 167 drivers/media/mc/mc-device.c media_device_kpad_to_upad(&entity->pads[p], &pad); entity 177 drivers/media/mc/mc-device.c list_for_each_entry(link, &entity->links, list) { entity 181 drivers/media/mc/mc-device.c if (link->source->entity != entity) entity 209 drivers/media/mc/mc-device.c source = find_entity(mdev, linkd->source.entity); entity 210 drivers/media/mc/mc-device.c sink = find_entity(mdev, linkd->sink.entity); entity 233 drivers/media/mc/mc-device.c struct media_entity *entity; entity 249 drivers/media/mc/mc-device.c media_device_for_each_entity(entity, mdev) { entity 261 drivers/media/mc/mc-device.c kentity.id = entity->graph_obj.id; entity 262 drivers/media/mc/mc-device.c kentity.function = entity->function; entity 263 drivers/media/mc/mc-device.c kentity.flags = entity->flags; entity 264 drivers/media/mc/mc-device.c strscpy(kentity.name, entity->name, entity 327 drivers/media/mc/mc-device.c kpad.entity_id = pad->entity->graph_obj.id; entity 486 drivers/media/mc/mc-device.c __u32 entity; entity 501 drivers/media/mc/mc-device.c if (get_user(links.entity, &ulinks->entity) entity 584 drivers/media/mc/mc-device.c struct media_entity *entity) entity 590 drivers/media/mc/mc-device.c if (entity->function == MEDIA_ENT_F_V4L2_SUBDEV_UNKNOWN || entity 591 drivers/media/mc/mc-device.c entity->function == MEDIA_ENT_F_UNKNOWN) entity 594 drivers/media/mc/mc-device.c entity->name); entity 597 drivers/media/mc/mc-device.c WARN_ON(entity->graph_obj.mdev != NULL); entity 598 drivers/media/mc/mc-device.c entity->graph_obj.mdev = mdev; entity 599 drivers/media/mc/mc-device.c INIT_LIST_HEAD(&entity->links); entity 600 drivers/media/mc/mc-device.c entity->num_links = 0; entity 601 drivers/media/mc/mc-device.c entity->num_backlinks = 0; entity 606 drivers/media/mc/mc-device.c entity->internal_idx = ret; entity 610 drivers/media/mc/mc-device.c max(mdev->entity_internal_idx_max, entity->internal_idx); entity 613 drivers/media/mc/mc-device.c media_gobj_create(mdev, MEDIA_GRAPH_ENTITY, &entity->graph_obj); entity 616 drivers/media/mc/mc-device.c for (i = 0; i < entity->num_pads; i++) entity 618 drivers/media/mc/mc-device.c &entity->pads[i].graph_obj); entity 622 drivers/media/mc/mc-device.c notify->notify(entity, notify->notify_data); entity 647 drivers/media/mc/mc-device.c static void __media_device_unregister_entity(struct media_entity *entity) entity 649 drivers/media/mc/mc-device.c struct media_device *mdev = entity->graph_obj.mdev; entity 654 drivers/media/mc/mc-device.c ida_free(&mdev->entity_internal_idx, entity->internal_idx); entity 659 drivers/media/mc/mc-device.c if (link->entity == entity) entity 665 drivers/media/mc/mc-device.c __media_entity_remove_links(entity); entity 668 drivers/media/mc/mc-device.c for (i = 0; i < entity->num_pads; i++) entity 669 drivers/media/mc/mc-device.c media_gobj_destroy(&entity->pads[i].graph_obj); entity 672 drivers/media/mc/mc-device.c media_gobj_destroy(&entity->graph_obj); entity 676 drivers/media/mc/mc-device.c entity->graph_obj.mdev = NULL; entity 679 drivers/media/mc/mc-device.c void media_device_unregister_entity(struct media_entity *entity) entity 681 drivers/media/mc/mc-device.c struct media_device *mdev = entity->graph_obj.mdev; entity 687 drivers/media/mc/mc-device.c __media_device_unregister_entity(entity); entity 801 drivers/media/mc/mc-device.c struct media_entity *entity; entity 821 drivers/media/mc/mc-device.c list_for_each_entry_safe(entity, next, &mdev->entities, graph_obj.list) entity 822 drivers/media/mc/mc-device.c __media_device_unregister_entity(entity); entity 126 drivers/media/mc/mc-entity.c pad->entity->name, pad->index); entity 197 drivers/media/mc/mc-entity.c int media_entity_pads_init(struct media_entity *entity, u16 num_pads, entity 200 drivers/media/mc/mc-entity.c struct media_device *mdev = entity->graph_obj.mdev; entity 206 drivers/media/mc/mc-entity.c entity->num_pads = num_pads; entity 207 drivers/media/mc/mc-entity.c entity->pads = pads; entity 213 drivers/media/mc/mc-entity.c pads[i].entity = entity; entity 217 drivers/media/mc/mc-entity.c &entity->pads[i].graph_obj); entity 232 drivers/media/mc/mc-entity.c media_entity_other(struct media_entity *entity, struct media_link *link) entity 234 drivers/media/mc/mc-entity.c if (link->source->entity == entity) entity 235 drivers/media/mc/mc-entity.c return link->sink->entity; entity 237 drivers/media/mc/mc-entity.c return link->source->entity; entity 242 drivers/media/mc/mc-entity.c struct media_entity *entity) entity 249 drivers/media/mc/mc-entity.c graph->stack[graph->top].link = entity->links.next; entity 250 drivers/media/mc/mc-entity.c graph->stack[graph->top].entity = entity; entity 255 drivers/media/mc/mc-entity.c struct media_entity *entity; entity 257 drivers/media/mc/mc-entity.c entity = graph->stack[graph->top].entity; entity 260 drivers/media/mc/mc-entity.c return entity; entity 264 drivers/media/mc/mc-entity.c #define stack_top(en) ((en)->stack[(en)->top].entity) entity 295 drivers/media/mc/mc-entity.c struct media_entity *entity) entity 298 drivers/media/mc/mc-entity.c media_entity_enum_set(&graph->ent_enum, entity); entity 301 drivers/media/mc/mc-entity.c graph->stack[graph->top].entity = NULL; entity 302 drivers/media/mc/mc-entity.c stack_push(graph, entity); entity 303 drivers/media/mc/mc-entity.c dev_dbg(entity->graph_obj.mdev->dev, entity 304 drivers/media/mc/mc-entity.c "begin graph walk at '%s'\n", entity->name); entity 310 drivers/media/mc/mc-entity.c struct media_entity *entity = stack_top(graph); entity 319 drivers/media/mc/mc-entity.c dev_dbg(entity->graph_obj.mdev->dev, entity 321 drivers/media/mc/mc-entity.c link->source->entity->name, link->source->index, entity 322 drivers/media/mc/mc-entity.c link->sink->entity->name, link->sink->index); entity 327 drivers/media/mc/mc-entity.c next = media_entity_other(entity, link); entity 332 drivers/media/mc/mc-entity.c dev_dbg(entity->graph_obj.mdev->dev, entity 341 drivers/media/mc/mc-entity.c dev_dbg(entity->graph_obj.mdev->dev, "walk: pushing '%s' on stack\n", entity 347 drivers/media/mc/mc-entity.c struct media_entity *entity; entity 360 drivers/media/mc/mc-entity.c entity = stack_pop(graph); entity 361 drivers/media/mc/mc-entity.c dev_dbg(entity->graph_obj.mdev->dev, entity 362 drivers/media/mc/mc-entity.c "walk: returning entity '%s'\n", entity->name); entity 364 drivers/media/mc/mc-entity.c return entity; entity 368 drivers/media/mc/mc-entity.c int media_entity_get_fwnode_pad(struct media_entity *entity, entity 376 drivers/media/mc/mc-entity.c if (!entity->ops || !entity->ops->get_fwnode_pad) { entity 377 drivers/media/mc/mc-entity.c for (i = 0; i < entity->num_pads; i++) { entity 378 drivers/media/mc/mc-entity.c if (entity->pads[i].flags & direction_flags) entity 389 drivers/media/mc/mc-entity.c ret = entity->ops->get_fwnode_pad(&endpoint); entity 393 drivers/media/mc/mc-entity.c if (ret >= entity->num_pads) entity 396 drivers/media/mc/mc-entity.c if (!(entity->pads[ret].flags & direction_flags)) entity 407 drivers/media/mc/mc-entity.c __must_check int __media_pipeline_start(struct media_entity *entity, entity 410 drivers/media/mc/mc-entity.c struct media_device *mdev = entity->graph_obj.mdev; entity 412 drivers/media/mc/mc-entity.c struct media_entity *entity_err = entity; entity 422 drivers/media/mc/mc-entity.c media_graph_walk_start(&pipe->graph, entity); entity 424 drivers/media/mc/mc-entity.c while ((entity = media_graph_walk_next(graph))) { entity 428 drivers/media/mc/mc-entity.c entity->stream_count++; entity 430 drivers/media/mc/mc-entity.c if (entity->pipe && entity->pipe != pipe) { entity 432 drivers/media/mc/mc-entity.c entity->name, entity 438 drivers/media/mc/mc-entity.c entity->pipe = pipe; entity 441 drivers/media/mc/mc-entity.c if (entity->stream_count > 1) entity 444 drivers/media/mc/mc-entity.c if (!entity->ops || !entity->ops->link_validate) entity 447 drivers/media/mc/mc-entity.c bitmap_zero(active, entity->num_pads); entity 448 drivers/media/mc/mc-entity.c bitmap_fill(has_no_links, entity->num_pads); entity 450 drivers/media/mc/mc-entity.c list_for_each_entry(link, &entity->links, list) { entity 451 drivers/media/mc/mc-entity.c struct media_pad *pad = link->sink->entity == entity entity 474 drivers/media/mc/mc-entity.c ret = entity->ops->link_validate(link); entity 476 drivers/media/mc/mc-entity.c dev_dbg(entity->graph_obj.mdev->dev, entity 478 drivers/media/mc/mc-entity.c link->source->entity->name, entity 480 drivers/media/mc/mc-entity.c entity->name, link->sink->index, ret); entity 486 drivers/media/mc/mc-entity.c bitmap_or(active, active, has_no_links, entity->num_pads); entity 488 drivers/media/mc/mc-entity.c if (!bitmap_full(active, entity->num_pads)) { entity 490 drivers/media/mc/mc-entity.c dev_dbg(entity->graph_obj.mdev->dev, entity 492 drivers/media/mc/mc-entity.c entity->name, entity 494 drivers/media/mc/mc-entity.c active, entity->num_pads)); entity 520 drivers/media/mc/mc-entity.c if (entity_err == entity) entity 532 drivers/media/mc/mc-entity.c __must_check int media_pipeline_start(struct media_entity *entity, entity 535 drivers/media/mc/mc-entity.c struct media_device *mdev = entity->graph_obj.mdev; entity 539 drivers/media/mc/mc-entity.c ret = __media_pipeline_start(entity, pipe); entity 545 drivers/media/mc/mc-entity.c void __media_pipeline_stop(struct media_entity *entity) entity 547 drivers/media/mc/mc-entity.c struct media_graph *graph = &entity->pipe->graph; entity 548 drivers/media/mc/mc-entity.c struct media_pipeline *pipe = entity->pipe; entity 557 drivers/media/mc/mc-entity.c media_graph_walk_start(graph, entity); entity 559 drivers/media/mc/mc-entity.c while ((entity = media_graph_walk_next(graph))) { entity 561 drivers/media/mc/mc-entity.c if (!WARN_ON_ONCE(entity->stream_count <= 0)) { entity 562 drivers/media/mc/mc-entity.c entity->stream_count--; entity 563 drivers/media/mc/mc-entity.c if (entity->stream_count == 0) entity 564 drivers/media/mc/mc-entity.c entity->pipe = NULL; entity 574 drivers/media/mc/mc-entity.c void media_pipeline_stop(struct media_entity *entity) entity 576 drivers/media/mc/mc-entity.c struct media_device *mdev = entity->graph_obj.mdev; entity 579 drivers/media/mc/mc-entity.c __media_pipeline_stop(entity); entity 601 drivers/media/mc/mc-entity.c static void __media_entity_remove_link(struct media_entity *entity, entity 607 drivers/media/mc/mc-entity.c if (link->source->entity == entity) entity 608 drivers/media/mc/mc-entity.c remote = link->sink->entity; entity 610 drivers/media/mc/mc-entity.c remote = link->source->entity; entity 616 drivers/media/mc/mc-entity.c if (link->source->entity == entity) entity 632 drivers/media/mc/mc-entity.c int media_get_pad_index(struct media_entity *entity, bool is_sink, entity 638 drivers/media/mc/mc-entity.c if (!entity) entity 641 drivers/media/mc/mc-entity.c for (i = 0; i < entity->num_pads; i++) { entity 642 drivers/media/mc/mc-entity.c if (entity->pads[i].flags & MEDIA_PAD_FL_SINK) entity 644 drivers/media/mc/mc-entity.c else if (entity->pads[i].flags & MEDIA_PAD_FL_SOURCE) entity 651 drivers/media/mc/mc-entity.c if (entity->pads[i].sig_type == sig_type) entity 720 drivers/media/mc/mc-entity.c struct media_entity *entity; entity 757 drivers/media/mc/mc-entity.c media_device_for_each_entity(entity, mdev) { entity 758 drivers/media/mc/mc-entity.c if (entity->function != function) entity 763 drivers/media/mc/mc-entity.c entity, sink_pad, flags); entity 765 drivers/media/mc/mc-entity.c ret = media_create_pad_link(entity, source_pad, entity 775 drivers/media/mc/mc-entity.c void __media_entity_remove_links(struct media_entity *entity) entity 779 drivers/media/mc/mc-entity.c list_for_each_entry_safe(link, tmp, &entity->links, list) entity 780 drivers/media/mc/mc-entity.c __media_entity_remove_link(entity, link); entity 782 drivers/media/mc/mc-entity.c entity->num_links = 0; entity 783 drivers/media/mc/mc-entity.c entity->num_backlinks = 0; entity 787 drivers/media/mc/mc-entity.c void media_entity_remove_links(struct media_entity *entity) entity 789 drivers/media/mc/mc-entity.c struct media_device *mdev = entity->graph_obj.mdev; entity 796 drivers/media/mc/mc-entity.c __media_entity_remove_links(entity); entity 806 drivers/media/mc/mc-entity.c ret = media_entity_call(link->source->entity, link_setup, entity 811 drivers/media/mc/mc-entity.c ret = media_entity_call(link->sink->entity, link_setup, entity 814 drivers/media/mc/mc-entity.c media_entity_call(link->source->entity, link_setup, entity 845 drivers/media/mc/mc-entity.c source = link->source->entity; entity 846 drivers/media/mc/mc-entity.c sink = link->sink->entity; entity 888 drivers/media/mc/mc-entity.c list_for_each_entry(link, &source->entity->links, list) { entity 889 drivers/media/mc/mc-entity.c if (link->source->entity == source->entity && entity 891 drivers/media/mc/mc-entity.c link->sink->entity == sink->entity && entity 904 drivers/media/mc/mc-entity.c list_for_each_entry(link, &pad->entity->links, list) { entity 962 drivers/media/mc/mc-entity.c struct media_link *media_create_intf_link(struct media_entity *entity, entity 973 drivers/media/mc/mc-entity.c link->entity = entity; entity 1003 drivers/media/pci/intel/ipu3/ipu3-cio2.c r = media_pipeline_start(&q->vdev.entity, &q->pipe); entity 1023 drivers/media/pci/intel/ipu3/ipu3-cio2.c media_pipeline_stop(&q->vdev.entity); entity 1044 drivers/media/pci/intel/ipu3/ipu3-cio2.c media_pipeline_stop(&q->vdev.entity); entity 1320 drivers/media/pci/intel/ipu3/ipu3-cio2.c if (is_media_entity_v4l2_subdev(pad->entity)) { entity 1322 drivers/media/pci/intel/ipu3/ipu3-cio2.c media_entity_to_v4l2_subdev(pad->entity); entity 1334 drivers/media/pci/intel/ipu3/ipu3-cio2.c struct video_device *vd = container_of(link->sink->entity, entity 1335 drivers/media/pci/intel/ipu3/ipu3-cio2.c struct video_device, entity); entity 1341 drivers/media/pci/intel/ipu3/ipu3-cio2.c if (!media_entity_remote_pad(link->sink->entity->pads)) { entity 1445 drivers/media/pci/intel/ipu3/ipu3-cio2.c for (pad = 0; pad < q->sensor->entity.num_pads; pad++) entity 1446 drivers/media/pci/intel/ipu3/ipu3-cio2.c if (q->sensor->entity.pads[pad].flags & entity 1450 drivers/media/pci/intel/ipu3/ipu3-cio2.c if (pad == q->sensor->entity.num_pads) { entity 1458 drivers/media/pci/intel/ipu3/ipu3-cio2.c &q->sensor->entity, pad, entity 1459 drivers/media/pci/intel/ipu3/ipu3-cio2.c &q->subdev.entity, CIO2_PAD_SINK, entity 1589 drivers/media/pci/intel/ipu3/ipu3-cio2.c subdev->entity.ops = &cio2_media_ops; entity 1591 drivers/media/pci/intel/ipu3/ipu3-cio2.c r = media_entity_pads_init(&subdev->entity, CIO2_PADS, q->subdev_pads); entity 1599 drivers/media/pci/intel/ipu3/ipu3-cio2.c vdev->entity.ops = &cio2_video_entity_ops; entity 1600 drivers/media/pci/intel/ipu3/ipu3-cio2.c r = media_entity_pads_init(&vdev->entity, 1, &q->vdev_pad); entity 1613 drivers/media/pci/intel/ipu3/ipu3-cio2.c subdev->entity.function = MEDIA_ENT_F_VID_IF_BRIDGE; entity 1659 drivers/media/pci/intel/ipu3/ipu3-cio2.c &subdev->entity, CIO2_PAD_SOURCE, &vdev->entity, 0, entity 1673 drivers/media/pci/intel/ipu3/ipu3-cio2.c media_entity_cleanup(&vdev->entity); entity 1675 drivers/media/pci/intel/ipu3/ipu3-cio2.c media_entity_cleanup(&subdev->entity); entity 1687 drivers/media/pci/intel/ipu3/ipu3-cio2.c media_entity_cleanup(&q->vdev.entity); entity 1690 drivers/media/pci/intel/ipu3/ipu3-cio2.c media_entity_cleanup(&q->subdev.entity); entity 822 drivers/media/pci/saa7134/saa7134-core.c struct media_entity *entity; entity 826 drivers/media/pci/saa7134/saa7134-core.c media_device_for_each_entity(entity, dev->media_dev) { entity 827 drivers/media/pci/saa7134/saa7134-core.c if (entity->function == MEDIA_ENT_F_ATV_DECODER) { entity 828 drivers/media/pci/saa7134/saa7134-core.c decoder = entity; entity 861 drivers/media/pci/saa7134/saa7134-core.c ret = media_entity_pads_init(&dev->video_dev->entity, 1, entity 867 drivers/media/pci/saa7134/saa7134-core.c ret = media_entity_pads_init(&dev->vbi_dev->entity, 1, entity 784 drivers/media/pci/saa7134/saa7134-video.c if (link->sink->entity == dev->decoder) { entity 795 drivers/media/pci/saa7134/saa7134-video.c source = found_link->source->entity; entity 800 drivers/media/pci/saa7134/saa7134-video.c sink = link->sink->entity; entity 123 drivers/media/platform/atmel/atmel-isi.c struct isi_graph_entity entity; entity 428 drivers/media/platform/atmel/atmel-isi.c ret = v4l2_subdev_call(isi->entity.subdev, video, s_stream, 1); entity 456 drivers/media/platform/atmel/atmel-isi.c v4l2_subdev_call(isi->entity.subdev, video, s_stream, 0); entity 482 drivers/media/platform/atmel/atmel-isi.c ret = v4l2_subdev_call(isi->entity.subdev, video, s_stream, 0); entity 579 drivers/media/platform/atmel/atmel-isi.c ret = v4l2_subdev_call(isi->entity.subdev, pad, set_fmt, entity 610 drivers/media/platform/atmel/atmel-isi.c ret = v4l2_subdev_call(isi->entity.subdev, pad, entity 689 drivers/media/platform/atmel/atmel-isi.c return v4l2_g_parm_cap(video_devdata(file), isi->entity.subdev, a); entity 696 drivers/media/platform/atmel/atmel-isi.c return v4l2_s_parm_cap(video_devdata(file), isi->entity.subdev, a); entity 716 drivers/media/platform/atmel/atmel-isi.c ret = v4l2_subdev_call(isi->entity.subdev, pad, enum_frame_size, entity 747 drivers/media/platform/atmel/atmel-isi.c ret = v4l2_subdev_call(isi->entity.subdev, pad, entity 840 drivers/media/platform/atmel/atmel-isi.c struct v4l2_subdev *sd = isi->entity.subdev; entity 871 drivers/media/platform/atmel/atmel-isi.c struct v4l2_subdev *sd = isi->entity.subdev; entity 1000 drivers/media/platform/atmel/atmel-isi.c struct v4l2_subdev *subdev = isi->entity.subdev; entity 1045 drivers/media/platform/atmel/atmel-isi.c isi->vdev->ctrl_handler = isi->entity.subdev->ctrl_handler; entity 1090 drivers/media/platform/atmel/atmel-isi.c isi->entity.subdev = subdev; entity 1116 drivers/media/platform/atmel/atmel-isi.c isi->entity.node = remote; entity 1117 drivers/media/platform/atmel/atmel-isi.c isi->entity.asd.match_type = V4L2_ASYNC_MATCH_FWNODE; entity 1118 drivers/media/platform/atmel/atmel-isi.c isi->entity.asd.match.fwnode = of_fwnode_handle(remote); entity 1135 drivers/media/platform/atmel/atmel-isi.c ret = v4l2_async_notifier_add_subdev(&isi->notifier, &isi->entity.asd); entity 1137 drivers/media/platform/atmel/atmel-isi.c of_node_put(isi->entity.node); entity 255 drivers/media/platform/cadence/cdns-csi2rx.c csi2rx->source_pad = media_entity_get_fwnode_pad(&s_subdev->entity, entity 269 drivers/media/platform/cadence/cdns-csi2rx.c return media_create_pad_link(&csi2rx->source_subdev->entity, entity 271 drivers/media/platform/cadence/cdns-csi2rx.c &csi2rx->subdev.entity, 0, entity 449 drivers/media/platform/cadence/cdns-csi2rx.c csi2rx->subdev.entity.function = MEDIA_ENT_F_VID_IF_BRIDGE; entity 454 drivers/media/platform/cadence/cdns-csi2rx.c ret = media_entity_pads_init(&csi2rx->subdev.entity, CSI2RX_PAD_MAX, entity 303 drivers/media/platform/cadence/cdns-csi2tx.c struct media_entity *entity = &csi2tx->subdev.entity; entity 329 drivers/media/platform/cadence/cdns-csi2tx.c list_for_each_entry(link, &entity->links, list) { entity 598 drivers/media/platform/cadence/cdns-csi2tx.c csi2tx->subdev.entity.function = MEDIA_ENT_F_VID_IF_BRIDGE; entity 612 drivers/media/platform/cadence/cdns-csi2tx.c ret = media_entity_pads_init(&csi2tx->subdev.entity, CSI2TX_PAD_MAX, entity 14 drivers/media/platform/exynos4-is/common.c struct v4l2_subdev *fimc_find_remote_sensor(struct media_entity *entity) entity 16 drivers/media/platform/exynos4-is/common.c struct media_pad *pad = &entity->pads[0]; entity 22 drivers/media/platform/exynos4-is/common.c if (!pad || !is_media_entity_v4l2_subdev(pad->entity)) entity 25 drivers/media/platform/exynos4-is/common.c sd = media_entity_to_v4l2_subdev(pad->entity); entity 31 drivers/media/platform/exynos4-is/common.c pad = &sd->entity.pads[0]; entity 11 drivers/media/platform/exynos4-is/common.h struct v4l2_subdev *fimc_find_remote_sensor(struct media_entity *entity); entity 324 drivers/media/platform/exynos4-is/fimc-capture.c fimc_pipeline_call(ve, open, &ve->vdev.entity, false); entity 493 drivers/media/platform/exynos4-is/fimc-capture.c ret = fimc_pipeline_call(ve, open, &ve->vdev.entity, true); entity 507 drivers/media/platform/exynos4-is/fimc-capture.c ve->vdev.entity.use_count++; entity 537 drivers/media/platform/exynos4-is/fimc-capture.c media_pipeline_stop(&vc->ve.vdev.entity); entity 549 drivers/media/platform/exynos4-is/fimc-capture.c vc->ve.vdev.entity.use_count--; entity 753 drivers/media/platform/exynos4-is/fimc-capture.c me = pad->entity; entity 791 drivers/media/platform/exynos4-is/fimc-capture.c me = fimc_pipeline_get_head(&sd->entity); entity 806 drivers/media/platform/exynos4-is/fimc-capture.c while (me != &fimc->vid_cap.subdev.entity) { entity 826 drivers/media/platform/exynos4-is/fimc-capture.c me = pad->entity; entity 874 drivers/media/platform/exynos4-is/fimc-capture.c pad = sensor->entity.num_pads - 1; entity 1123 drivers/media/platform/exynos4-is/fimc-capture.c for (i = 0; i < sd->entity.num_pads; i++) { entity 1124 drivers/media/platform/exynos4-is/fimc-capture.c struct media_pad *p = &sd->entity.pads[i]; entity 1134 drivers/media/platform/exynos4-is/fimc-capture.c if (!src_pad || !is_media_entity_v4l2_subdev(src_pad->entity)) entity 1152 drivers/media/platform/exynos4-is/fimc-capture.c sd = media_entity_to_v4l2_subdev(src_pad->entity); entity 1189 drivers/media/platform/exynos4-is/fimc-capture.c struct media_entity *entity = &vc->ve.vdev.entity; entity 1197 drivers/media/platform/exynos4-is/fimc-capture.c ret = media_pipeline_start(entity, &vc->ve.pipe->mp); entity 1231 drivers/media/platform/exynos4-is/fimc-capture.c media_pipeline_stop(entity); entity 1246 drivers/media/platform/exynos4-is/fimc-capture.c media_pipeline_stop(&vc->ve.vdev.entity); entity 1382 drivers/media/platform/exynos4-is/fimc-capture.c static int fimc_link_setup(struct media_entity *entity, entity 1386 drivers/media/platform/exynos4-is/fimc-capture.c struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); entity 1391 drivers/media/platform/exynos4-is/fimc-capture.c if (!is_media_entity_v4l2_subdev(remote->entity)) entity 1398 drivers/media/platform/exynos4-is/fimc-capture.c local->entity->name, remote->entity->name, flags, entity 1415 drivers/media/platform/exynos4-is/fimc-capture.c sensor = fimc_find_remote_sensor(&vc->subdev.entity); entity 1453 drivers/media/platform/exynos4-is/fimc-capture.c fmd = entity_to_fimc_mdev(&sd->entity); entity 1802 drivers/media/platform/exynos4-is/fimc-capture.c vfd->entity.function = MEDIA_ENT_F_PROC_VIDEO_SCALER; entity 1803 drivers/media/platform/exynos4-is/fimc-capture.c ret = media_entity_pads_init(&vfd->entity, 1, &vid_cap->vd_pad); entity 1824 drivers/media/platform/exynos4-is/fimc-capture.c media_entity_cleanup(&vfd->entity); entity 1868 drivers/media/platform/exynos4-is/fimc-capture.c media_entity_cleanup(&vdev->entity); entity 1895 drivers/media/platform/exynos4-is/fimc-capture.c ret = media_entity_pads_init(&sd->entity, FIMC_SD_PADS_NUM, entity 1900 drivers/media/platform/exynos4-is/fimc-capture.c sd->entity.ops = &fimc_sd_media_ops; entity 1911 drivers/media/platform/exynos4-is/fimc-capture.c media_entity_cleanup(&sd->entity); entity 268 drivers/media/platform/exynos4-is/fimc-isp-video.c struct media_entity *me = &ve->vdev.entity; entity 306 drivers/media/platform/exynos4-is/fimc-isp-video.c struct media_entity *entity = &ivc->ve.vdev.entity; entity 307 drivers/media/platform/exynos4-is/fimc-isp-video.c struct media_device *mdev = entity->graph_obj.mdev; entity 312 drivers/media/platform/exynos4-is/fimc-isp-video.c media_pipeline_stop(entity); entity 322 drivers/media/platform/exynos4-is/fimc-isp-video.c entity->use_count--; entity 455 drivers/media/platform/exynos4-is/fimc-isp-video.c pad = &sd->entity.pads[0]; entity 466 drivers/media/platform/exynos4-is/fimc-isp-video.c if (!pad || !is_media_entity_v4l2_subdev(pad->entity)) entity 469 drivers/media/platform/exynos4-is/fimc-isp-video.c sd = media_entity_to_v4l2_subdev(pad->entity); entity 490 drivers/media/platform/exynos4-is/fimc-isp-video.c struct media_entity *me = &ve->vdev.entity; entity 523 drivers/media/platform/exynos4-is/fimc-isp-video.c media_pipeline_stop(&video->ve.vdev.entity); entity 616 drivers/media/platform/exynos4-is/fimc-isp-video.c ret = media_entity_pads_init(&vdev->entity, 1, &iv->pad); entity 624 drivers/media/platform/exynos4-is/fimc-isp-video.c media_entity_cleanup(&vdev->entity); entity 648 drivers/media/platform/exynos4-is/fimc-isp-video.c media_entity_cleanup(&ve->vdev.entity); entity 97 drivers/media/platform/exynos4-is/fimc-isp.c static int fimc_is_link_setup(struct media_entity *entity, entity 226 drivers/media/platform/exynos4-is/fimc-isp.c if (sd->entity.stream_count == 0) { entity 702 drivers/media/platform/exynos4-is/fimc-isp.c sd->entity.function = MEDIA_ENT_F_PROC_VIDEO_PIXEL_FORMATTER; entity 706 drivers/media/platform/exynos4-is/fimc-isp.c ret = media_entity_pads_init(&sd->entity, FIMC_ISP_SD_PADS_NUM, entity 756 drivers/media/platform/exynos4-is/fimc-isp.c media_entity_cleanup(&sd->entity); entity 765 drivers/media/platform/exynos4-is/fimc-isp.c sd->entity.ops = &fimc_is_subdev_media_ops; entity 778 drivers/media/platform/exynos4-is/fimc-isp.c media_entity_cleanup(&sd->entity); entity 461 drivers/media/platform/exynos4-is/fimc-lite.c struct media_entity *me = &fimc->ve.vdev.entity; entity 510 drivers/media/platform/exynos4-is/fimc-lite.c struct media_entity *entity = &fimc->ve.vdev.entity; entity 517 drivers/media/platform/exynos4-is/fimc-lite.c media_pipeline_stop(entity); entity 524 drivers/media/platform/exynos4-is/fimc-lite.c mutex_lock(&entity->graph_obj.mdev->graph_mutex); entity 525 drivers/media/platform/exynos4-is/fimc-lite.c entity->use_count--; entity 526 drivers/media/platform/exynos4-is/fimc-lite.c mutex_unlock(&entity->graph_obj.mdev->graph_mutex); entity 774 drivers/media/platform/exynos4-is/fimc-lite.c pad = &sd->entity.pads[0]; entity 793 drivers/media/platform/exynos4-is/fimc-lite.c if (!pad || !is_media_entity_v4l2_subdev(pad->entity)) entity 796 drivers/media/platform/exynos4-is/fimc-lite.c sd = media_entity_to_v4l2_subdev(pad->entity); entity 815 drivers/media/platform/exynos4-is/fimc-lite.c struct media_entity *entity = &fimc->ve.vdev.entity; entity 821 drivers/media/platform/exynos4-is/fimc-lite.c ret = media_pipeline_start(entity, &fimc->ve.pipe->mp); entity 829 drivers/media/platform/exynos4-is/fimc-lite.c fimc->sensor = fimc_find_remote_sensor(&fimc->subdev.entity); entity 838 drivers/media/platform/exynos4-is/fimc-lite.c media_pipeline_stop(entity); entity 852 drivers/media/platform/exynos4-is/fimc-lite.c media_pipeline_stop(&fimc->ve.vdev.entity); entity 960 drivers/media/platform/exynos4-is/fimc-lite.c static int fimc_lite_link_setup(struct media_entity *entity, entity 964 drivers/media/platform/exynos4-is/fimc-lite.c struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); entity 972 drivers/media/platform/exynos4-is/fimc-lite.c __func__, remote->entity->name, local->entity->name, entity 1085 drivers/media/platform/exynos4-is/fimc-lite.c sd->entity.stream_count > 0) || entity 1211 drivers/media/platform/exynos4-is/fimc-lite.c fimc->sensor = fimc_find_remote_sensor(&sd->entity); entity 1293 drivers/media/platform/exynos4-is/fimc-lite.c ret = media_entity_pads_init(&vfd->entity, 1, &fimc->vd_pad); entity 1302 drivers/media/platform/exynos4-is/fimc-lite.c media_entity_cleanup(&vfd->entity); entity 1323 drivers/media/platform/exynos4-is/fimc-lite.c media_entity_cleanup(&fimc->ve.vdev.entity); entity 1407 drivers/media/platform/exynos4-is/fimc-lite.c ret = media_entity_pads_init(&sd->entity, FLITE_SD_PADS_NUM, entity 1416 drivers/media/platform/exynos4-is/fimc-lite.c media_entity_cleanup(&sd->entity); entity 1422 drivers/media/platform/exynos4-is/fimc-lite.c sd->entity.function = MEDIA_ENT_F_PROC_VIDEO_SCALER; entity 1423 drivers/media/platform/exynos4-is/fimc-lite.c sd->entity.ops = &fimc_lite_subdev_media_ops; entity 1435 drivers/media/platform/exynos4-is/fimc-lite.c media_entity_cleanup(&sd->entity); entity 1582 drivers/media/platform/exynos4-is/fimc-lite.c &fimc->ve.vdev.entity, false); entity 745 drivers/media/platform/exynos4-is/fimc-m2m.c ret = media_entity_pads_init(&vfd->entity, 0, NULL); entity 758 drivers/media/platform/exynos4-is/fimc-m2m.c media_entity_cleanup(&vfd->entity); entity 774 drivers/media/platform/exynos4-is/fimc-m2m.c media_entity_cleanup(&fimc->m2m.vfd.entity); entity 88 drivers/media/platform/exynos4-is/media-dev.c if (!pad || !is_media_entity_v4l2_subdev(pad->entity)) entity 90 drivers/media/platform/exynos4-is/media-dev.c sd = media_entity_to_v4l2_subdev(pad->entity); entity 114 drivers/media/platform/exynos4-is/media-dev.c me = &sd->entity; entity 139 drivers/media/platform/exynos4-is/media-dev.c use_count = &sd->entity.use_count; entity 271 drivers/media/platform/exynos4-is/media-dev.c fmd = entity_to_fimc_mdev(&sd->entity); entity 292 drivers/media/platform/exynos4-is/media-dev.c struct fimc_md *fmd = entity_to_fimc_mdev(&p->subdevs[IDX_CSIS]->entity); entity 319 drivers/media/platform/exynos4-is/media-dev.c fimc_pipeline_prepare(p, &p->subdevs[sd_id]->entity); entity 818 drivers/media/platform/exynos4-is/media-dev.c sink = &fmd->fimc[i]->vid_cap.subdev.entity; entity 838 drivers/media/platform/exynos4-is/media-dev.c sink = &fmd->fimc_lite[i]->subdev.entity; entity 868 drivers/media/platform/exynos4-is/media-dev.c source = &fimc->subdev.entity; entity 869 drivers/media/platform/exynos4-is/media-dev.c sink = &fimc->ve.vdev.entity; entity 876 drivers/media/platform/exynos4-is/media-dev.c sink = &fmd->fimc_is->isp.subdev.entity; entity 893 drivers/media/platform/exynos4-is/media-dev.c source = &isp->subdev.entity; entity 900 drivers/media/platform/exynos4-is/media-dev.c sink = &fmd->fimc[i]->vid_cap.subdev.entity; entity 908 drivers/media/platform/exynos4-is/media-dev.c sink = &isp->video_capture.ve.vdev.entity; entity 962 drivers/media/platform/exynos4-is/media-dev.c pad = sensor->entity.num_pads - 1; entity 963 drivers/media/platform/exynos4-is/media-dev.c ret = media_create_pad_link(&sensor->entity, pad, entity 964 drivers/media/platform/exynos4-is/media-dev.c &csis->entity, CSIS_PAD_SINK, entity 971 drivers/media/platform/exynos4-is/media-dev.c sensor->entity.name, csis->entity.name); entity 978 drivers/media/platform/exynos4-is/media-dev.c source = &sensor->entity; entity 999 drivers/media/platform/exynos4-is/media-dev.c source = &fmd->csis[i].sd->entity; entity 1014 drivers/media/platform/exynos4-is/media-dev.c source = &fmd->fimc[i]->vid_cap.subdev.entity; entity 1015 drivers/media/platform/exynos4-is/media-dev.c sink = &fmd->fimc[i]->vid_cap.ve.vdev.entity; entity 1105 drivers/media/platform/exynos4-is/media-dev.c static int __fimc_md_modify_pipeline(struct media_entity *entity, bool enable) entity 1112 drivers/media/platform/exynos4-is/media-dev.c vdev = media_entity_to_video_device(entity); entity 1113 drivers/media/platform/exynos4-is/media-dev.c if (vdev->entity.use_count == 0) entity 1126 drivers/media/platform/exynos4-is/media-dev.c ret = __fimc_pipeline_open(ve->pipe, entity, true); entity 1137 drivers/media/platform/exynos4-is/media-dev.c static int __fimc_md_modify_pipelines(struct media_entity *entity, bool enable, entity 1140 drivers/media/platform/exynos4-is/media-dev.c struct media_entity *entity_err = entity; entity 1149 drivers/media/platform/exynos4-is/media-dev.c media_graph_walk_start(graph, entity); entity 1151 drivers/media/platform/exynos4-is/media-dev.c while ((entity = media_graph_walk_next(graph))) { entity 1152 drivers/media/platform/exynos4-is/media-dev.c if (!is_media_entity_v4l2_video_device(entity)) entity 1155 drivers/media/platform/exynos4-is/media-dev.c ret = __fimc_md_modify_pipeline(entity, enable); entity 1172 drivers/media/platform/exynos4-is/media-dev.c if (entity_err == entity) entity 1185 drivers/media/platform/exynos4-is/media-dev.c struct media_entity *sink = link->sink->entity; entity 175 drivers/media/platform/exynos4-is/media-dev.h mutex_lock(&ve->vdev.entity.graph_obj.mdev->graph_mutex); entity 180 drivers/media/platform/exynos4-is/media-dev.h mutex_unlock(&ve->vdev.entity.graph_obj.mdev->graph_mutex); entity 851 drivers/media/platform/exynos4-is/mipi-csis.c state->sd.entity.function = MEDIA_ENT_F_IO_V4L; entity 854 drivers/media/platform/exynos4-is/mipi-csis.c ret = media_entity_pads_init(&state->sd.entity, entity 879 drivers/media/platform/exynos4-is/mipi-csis.c media_entity_cleanup(&state->sd.entity); entity 988 drivers/media/platform/exynos4-is/mipi-csis.c media_entity_cleanup(&state->sd.entity); entity 546 drivers/media/platform/omap3isp/isp.c pipe = to_isp_pipeline(&isp->isp_ccp2.subdev.entity); entity 552 drivers/media/platform/omap3isp/isp.c pipe = to_isp_pipeline(&isp->isp_csi2a.subdev.entity); entity 558 drivers/media/platform/omap3isp/isp.c pipe = to_isp_pipeline(&isp->isp_ccdc.subdev.entity); entity 564 drivers/media/platform/omap3isp/isp.c pipe = to_isp_pipeline(&isp->isp_prev.subdev.entity); entity 573 drivers/media/platform/omap3isp/isp.c pipe = to_isp_pipeline(&isp->isp_res.subdev.entity); entity 676 drivers/media/platform/omap3isp/isp.c struct media_entity *entity; entity 696 drivers/media/platform/omap3isp/isp.c entity = &pipe->output->video.entity; entity 698 drivers/media/platform/omap3isp/isp.c pad = &entity->pads[0]; entity 703 drivers/media/platform/omap3isp/isp.c if (!pad || !is_media_entity_v4l2_subdev(pad->entity)) entity 706 drivers/media/platform/omap3isp/isp.c entity = pad->entity; entity 707 drivers/media/platform/omap3isp/isp.c subdev = media_entity_to_v4l2_subdev(entity); entity 779 drivers/media/platform/omap3isp/isp.c struct media_entity *entity; entity 789 drivers/media/platform/omap3isp/isp.c entity = &pipe->output->video.entity; entity 791 drivers/media/platform/omap3isp/isp.c pad = &entity->pads[0]; entity 796 drivers/media/platform/omap3isp/isp.c if (!pad || !is_media_entity_v4l2_subdev(pad->entity)) entity 799 drivers/media/platform/omap3isp/isp.c entity = pad->entity; entity 800 drivers/media/platform/omap3isp/isp.c subdev = media_entity_to_v4l2_subdev(entity); entity 837 drivers/media/platform/omap3isp/isp.c &subdev->entity); entity 941 drivers/media/platform/omap3isp/isp.c return pad->entity == me; entity 986 drivers/media/platform/omap3isp/isp.c isp_suspend_module_pipeline(&isp->isp_res.subdev.entity); entity 987 drivers/media/platform/omap3isp/isp.c isp_suspend_module_pipeline(&isp->isp_prev.subdev.entity); entity 988 drivers/media/platform/omap3isp/isp.c isp_suspend_module_pipeline(&isp->isp_ccdc.subdev.entity); entity 989 drivers/media/platform/omap3isp/isp.c isp_suspend_module_pipeline(&isp->isp_csi2a.subdev.entity); entity 990 drivers/media/platform/omap3isp/isp.c isp_suspend_module_pipeline(&isp->isp_ccp2.subdev.entity); entity 1018 drivers/media/platform/omap3isp/isp.c isp_resume_module_pipeline(&isp->isp_res.subdev.entity); entity 1019 drivers/media/platform/omap3isp/isp.c isp_resume_module_pipeline(&isp->isp_prev.subdev.entity); entity 1020 drivers/media/platform/omap3isp/isp.c isp_resume_module_pipeline(&isp->isp_ccdc.subdev.entity); entity 1021 drivers/media/platform/omap3isp/isp.c isp_resume_module_pipeline(&isp->isp_csi2a.subdev.entity); entity 1022 drivers/media/platform/omap3isp/isp.c isp_resume_module_pipeline(&isp->isp_ccp2.subdev.entity); entity 1611 drivers/media/platform/omap3isp/isp.c struct isp_device *isp, struct media_entity *entity, entity 1626 drivers/media/platform/omap3isp/isp.c input = &isp->isp_ccdc.subdev.entity; entity 1632 drivers/media/platform/omap3isp/isp.c input = &isp->isp_csi2a.subdev.entity; entity 1639 drivers/media/platform/omap3isp/isp.c input = &isp->isp_ccp2.subdev.entity; entity 1645 drivers/media/platform/omap3isp/isp.c input = &isp->isp_csi2c.subdev.entity; entity 1663 drivers/media/platform/omap3isp/isp.c dev_err(isp->dev, "%s: invalid input %u\n", entity->name, entity 1668 drivers/media/platform/omap3isp/isp.c for (i = 0; i < entity->num_pads; i++) { entity 1669 drivers/media/platform/omap3isp/isp.c if (entity->pads[i].flags & MEDIA_PAD_FL_SOURCE) entity 1672 drivers/media/platform/omap3isp/isp.c if (i == entity->num_pads) { entity 1674 drivers/media/platform/omap3isp/isp.c __func__, entity->name); entity 1678 drivers/media/platform/omap3isp/isp.c return media_create_pad_link(entity, i, input, pad, flags); entity 1756 drivers/media/platform/omap3isp/isp.c &isp->isp_csi2a.subdev.entity, CSI2_PAD_SOURCE, entity 1757 drivers/media/platform/omap3isp/isp.c &isp->isp_csi2a.video_out.video.entity, 0, 0); entity 1762 drivers/media/platform/omap3isp/isp.c &isp->isp_ccp2.video_in.video.entity, 0, entity 1763 drivers/media/platform/omap3isp/isp.c &isp->isp_ccp2.subdev.entity, CCP2_PAD_SINK, 0); entity 1768 drivers/media/platform/omap3isp/isp.c &isp->isp_ccdc.subdev.entity, CCDC_PAD_SOURCE_OF, entity 1769 drivers/media/platform/omap3isp/isp.c &isp->isp_ccdc.video_out.video.entity, 0, 0); entity 1774 drivers/media/platform/omap3isp/isp.c &isp->isp_prev.video_in.video.entity, 0, entity 1775 drivers/media/platform/omap3isp/isp.c &isp->isp_prev.subdev.entity, PREV_PAD_SINK, 0); entity 1780 drivers/media/platform/omap3isp/isp.c &isp->isp_prev.subdev.entity, PREV_PAD_SOURCE, entity 1781 drivers/media/platform/omap3isp/isp.c &isp->isp_prev.video_out.video.entity, 0, 0); entity 1786 drivers/media/platform/omap3isp/isp.c &isp->isp_res.video_in.video.entity, 0, entity 1787 drivers/media/platform/omap3isp/isp.c &isp->isp_res.subdev.entity, RESZ_PAD_SINK, 0); entity 1792 drivers/media/platform/omap3isp/isp.c &isp->isp_res.subdev.entity, RESZ_PAD_SOURCE, entity 1793 drivers/media/platform/omap3isp/isp.c &isp->isp_res.video_out.video.entity, 0, 0); entity 1800 drivers/media/platform/omap3isp/isp.c &isp->isp_csi2a.subdev.entity, CSI2_PAD_SOURCE, entity 1801 drivers/media/platform/omap3isp/isp.c &isp->isp_ccdc.subdev.entity, CCDC_PAD_SINK, 0); entity 1806 drivers/media/platform/omap3isp/isp.c &isp->isp_ccp2.subdev.entity, CCP2_PAD_SOURCE, entity 1807 drivers/media/platform/omap3isp/isp.c &isp->isp_ccdc.subdev.entity, CCDC_PAD_SINK, 0); entity 1812 drivers/media/platform/omap3isp/isp.c &isp->isp_ccdc.subdev.entity, CCDC_PAD_SOURCE_VP, entity 1813 drivers/media/platform/omap3isp/isp.c &isp->isp_prev.subdev.entity, PREV_PAD_SINK, 0); entity 1818 drivers/media/platform/omap3isp/isp.c &isp->isp_ccdc.subdev.entity, CCDC_PAD_SOURCE_OF, entity 1819 drivers/media/platform/omap3isp/isp.c &isp->isp_res.subdev.entity, RESZ_PAD_SINK, 0); entity 1824 drivers/media/platform/omap3isp/isp.c &isp->isp_prev.subdev.entity, PREV_PAD_SOURCE, entity 1825 drivers/media/platform/omap3isp/isp.c &isp->isp_res.subdev.entity, RESZ_PAD_SINK, 0); entity 1830 drivers/media/platform/omap3isp/isp.c &isp->isp_ccdc.subdev.entity, CCDC_PAD_SOURCE_VP, entity 1831 drivers/media/platform/omap3isp/isp.c &isp->isp_aewb.subdev.entity, 0, entity 1837 drivers/media/platform/omap3isp/isp.c &isp->isp_ccdc.subdev.entity, CCDC_PAD_SOURCE_VP, entity 1838 drivers/media/platform/omap3isp/isp.c &isp->isp_af.subdev.entity, 0, entity 1844 drivers/media/platform/omap3isp/isp.c &isp->isp_ccdc.subdev.entity, CCDC_PAD_SOURCE_VP, entity 1845 drivers/media/platform/omap3isp/isp.c &isp->isp_hist.subdev.entity, 0, entity 2041 drivers/media/platform/omap3isp/isp.c ret = isp_link_entity(isp, &sd->entity, entity 351 drivers/media/platform/omap3isp/isp.h if (pad >= subdev->entity.num_pads) entity 354 drivers/media/platform/omap3isp/isp.h if (subdev->entity.pads[pad].flags & MEDIA_PAD_FL_SINK) entity 805 drivers/media/platform/omap3isp/ispccdc.c struct isp_pipeline *pipe = to_isp_pipeline(&ccdc->subdev.entity); entity 938 drivers/media/platform/omap3isp/ispccdc.c struct isp_pipeline *pipe = to_isp_pipeline(&ccdc->subdev.entity); entity 1137 drivers/media/platform/omap3isp/ispccdc.c sensor = media_entity_to_v4l2_subdev(pad->entity); entity 1140 drivers/media/platform/omap3isp/ispccdc.c to_isp_pipeline(&ccdc->subdev.entity)->external; entity 1458 drivers/media/platform/omap3isp/ispccdc.c struct isp_pipeline *pipe = to_isp_pipeline(&ccdc->subdev.entity); entity 1483 drivers/media/platform/omap3isp/ispccdc.c to_isp_pipeline(&ccdc->subdev.entity); entity 1536 drivers/media/platform/omap3isp/ispccdc.c struct isp_pipeline *pipe = to_isp_pipeline(&ccdc->subdev.entity); entity 1580 drivers/media/platform/omap3isp/ispccdc.c struct isp_pipeline *pipe = to_isp_pipeline(&ccdc->subdev.entity); entity 1605 drivers/media/platform/omap3isp/ispccdc.c media_entity_enum_set(&isp->crashed, &ccdc->subdev.entity); entity 1643 drivers/media/platform/omap3isp/ispccdc.c to_isp_pipeline(&ccdc->subdev.entity); entity 2415 drivers/media/platform/omap3isp/ispccdc.c media_entity_to_v4l2_subdev(link->source->entity); entity 2503 drivers/media/platform/omap3isp/ispccdc.c static int ccdc_link_setup(struct media_entity *entity, entity 2507 drivers/media/platform/omap3isp/ispccdc.c struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); entity 2513 drivers/media/platform/omap3isp/ispccdc.c if (is_media_entity_v4l2_subdev(remote->entity)) entity 2529 drivers/media/platform/omap3isp/ispccdc.c if (remote->entity == &isp->isp_ccp2.subdev.entity) entity 2531 drivers/media/platform/omap3isp/ispccdc.c else if (remote->entity == &isp->isp_csi2a.subdev.entity) entity 2533 drivers/media/platform/omap3isp/ispccdc.c else if (remote->entity == &isp->isp_csi2c.subdev.entity) entity 2635 drivers/media/platform/omap3isp/ispccdc.c struct media_entity *me = &sd->entity; entity 2724 drivers/media/platform/omap3isp/ispccdc.c media_entity_cleanup(&ccdc->subdev.entity); entity 350 drivers/media/platform/omap3isp/ispccp2.c struct isp_pipeline *pipe = to_isp_pipeline(&ccp2->subdev.entity); entity 361 drivers/media/platform/omap3isp/ispccp2.c sensor = media_entity_to_v4l2_subdev(pad->entity); entity 386 drivers/media/platform/omap3isp/ispccp2.c struct isp_pipeline *pipe = to_isp_pipeline(&ccp2->subdev.entity); entity 538 drivers/media/platform/omap3isp/ispccp2.c struct isp_pipeline *pipe = to_isp_pipeline(&ccp2->subdev.entity); entity 562 drivers/media/platform/omap3isp/ispccp2.c struct isp_pipeline *pipe = to_isp_pipeline(&ccp2->subdev.entity); entity 842 drivers/media/platform/omap3isp/ispccp2.c ret = omap3isp_csiphy_acquire(ccp2->phy, &sd->entity); entity 877 drivers/media/platform/omap3isp/ispccp2.c if (omap3isp_module_sync_idle(&sd->entity, &ccp2->wait, entity 954 drivers/media/platform/omap3isp/ispccp2.c static int ccp2_link_setup(struct media_entity *entity, entity 958 drivers/media/platform/omap3isp/ispccp2.c struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); entity 963 drivers/media/platform/omap3isp/ispccp2.c if (is_media_entity_v4l2_subdev(remote->entity)) entity 1063 drivers/media/platform/omap3isp/ispccp2.c struct media_entity *me = &sd->entity; entity 1112 drivers/media/platform/omap3isp/ispccp2.c media_entity_cleanup(&ccp2->subdev.entity); entity 1173 drivers/media/platform/omap3isp/ispccp2.c media_entity_cleanup(&ccp2->subdev.entity); entity 490 drivers/media/platform/omap3isp/ispcsi2.c if (csi2->phy->entity) entity 548 drivers/media/platform/omap3isp/ispcsi2.c struct isp_pipeline *pipe = to_isp_pipeline(&csi2->subdev.entity); entity 565 drivers/media/platform/omap3isp/ispcsi2.c sensor = media_entity_to_v4l2_subdev(pad->entity); entity 737 drivers/media/platform/omap3isp/ispcsi2.c struct isp_pipeline *pipe = to_isp_pipeline(&csi2->subdev.entity); entity 1053 drivers/media/platform/omap3isp/ispcsi2.c if (omap3isp_csiphy_acquire(csi2->phy, &sd->entity) < 0) entity 1079 drivers/media/platform/omap3isp/ispcsi2.c if (omap3isp_module_sync_idle(&sd->entity, &csi2->wait, entity 1132 drivers/media/platform/omap3isp/ispcsi2.c static int csi2_link_setup(struct media_entity *entity, entity 1136 drivers/media/platform/omap3isp/ispcsi2.c struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); entity 1147 drivers/media/platform/omap3isp/ispcsi2.c if (is_media_entity_v4l2_subdev(remote->entity)) entity 1230 drivers/media/platform/omap3isp/ispcsi2.c struct media_entity *me = &sd->entity; entity 1268 drivers/media/platform/omap3isp/ispcsi2.c media_entity_cleanup(&csi2->subdev.entity); entity 1314 drivers/media/platform/omap3isp/ispcsi2.c media_entity_cleanup(&csi2a->subdev.entity); entity 164 drivers/media/platform/omap3isp/ispcsiphy.c struct isp_pipeline *pipe = to_isp_pipeline(phy->entity); entity 260 drivers/media/platform/omap3isp/ispcsiphy.c int omap3isp_csiphy_acquire(struct isp_csiphy *phy, struct media_entity *entity) entity 280 drivers/media/platform/omap3isp/ispcsiphy.c phy->entity = entity; entity 297 drivers/media/platform/omap3isp/ispcsiphy.c phy->entity = NULL; entity 306 drivers/media/platform/omap3isp/ispcsiphy.c if (phy->entity) { entity 307 drivers/media/platform/omap3isp/ispcsiphy.c struct isp_pipeline *pipe = to_isp_pipeline(phy->entity); entity 318 drivers/media/platform/omap3isp/ispcsiphy.c phy->entity = NULL; entity 28 drivers/media/platform/omap3isp/ispcsiphy.h struct media_entity *entity; entity 38 drivers/media/platform/omap3isp/ispcsiphy.h struct media_entity *entity); entity 1164 drivers/media/platform/omap3isp/isppreview.c struct isp_pipeline *pipe = to_isp_pipeline(&prev->subdev.entity); entity 1476 drivers/media/platform/omap3isp/isppreview.c struct isp_pipeline *pipe = to_isp_pipeline(&prev->subdev.entity); entity 1667 drivers/media/platform/omap3isp/isppreview.c if (omap3isp_module_sync_idle(&sd->entity, &prev->wait, entity 2138 drivers/media/platform/omap3isp/isppreview.c static int preview_link_setup(struct media_entity *entity, entity 2142 drivers/media/platform/omap3isp/isppreview.c struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); entity 2147 drivers/media/platform/omap3isp/isppreview.c if (is_media_entity_v4l2_subdev(remote->entity)) entity 2261 drivers/media/platform/omap3isp/isppreview.c struct media_entity *me = &sd->entity; entity 2322 drivers/media/platform/omap3isp/isppreview.c media_entity_cleanup(&prev->subdev.entity); entity 2349 drivers/media/platform/omap3isp/isppreview.c media_entity_cleanup(&prev->subdev.entity); entity 500 drivers/media/platform/omap3isp/ispresizer.c struct isp_pipeline *pipe = to_isp_pipeline(&res->subdev.entity); entity 541 drivers/media/platform/omap3isp/ispresizer.c struct isp_pipeline *pipe = to_isp_pipeline(&res->subdev.entity); entity 1014 drivers/media/platform/omap3isp/ispresizer.c struct isp_pipeline *pipe = to_isp_pipeline(&res->subdev.entity); entity 1164 drivers/media/platform/omap3isp/ispresizer.c if (omap3isp_module_sync_idle(&sd->entity, &res->wait, entity 1545 drivers/media/platform/omap3isp/ispresizer.c struct isp_pipeline *pipe = to_isp_pipeline(&sd->entity); entity 1617 drivers/media/platform/omap3isp/ispresizer.c static int resizer_link_setup(struct media_entity *entity, entity 1621 drivers/media/platform/omap3isp/ispresizer.c struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); entity 1626 drivers/media/platform/omap3isp/ispresizer.c if (is_media_entity_v4l2_subdev(remote->entity)) entity 1717 drivers/media/platform/omap3isp/ispresizer.c struct media_entity *me = &sd->entity; entity 1759 drivers/media/platform/omap3isp/ispresizer.c res->video_out.video.entity.flags |= MEDIA_ENT_FL_DEFAULT; entity 1766 drivers/media/platform/omap3isp/ispresizer.c media_entity_cleanup(&res->subdev.entity); entity 1792 drivers/media/platform/omap3isp/ispresizer.c media_entity_cleanup(&res->subdev.entity); entity 917 drivers/media/platform/omap3isp/ispstat.c pipe = to_isp_pipeline(&stat->subdev.entity); entity 1038 drivers/media/platform/omap3isp/ispstat.c struct media_entity *me = &subdev->entity; entity 1076 drivers/media/platform/omap3isp/ispstat.c media_entity_cleanup(&stat->subdev.entity); entity 212 drivers/media/platform/omap3isp/ispvideo.c if (!remote || !is_media_entity_v4l2_subdev(remote->entity)) entity 218 drivers/media/platform/omap3isp/ispvideo.c return media_entity_to_v4l2_subdev(remote->entity); entity 226 drivers/media/platform/omap3isp/ispvideo.c struct media_entity *entity = &video->video.entity; entity 227 drivers/media/platform/omap3isp/ispvideo.c struct media_device *mdev = entity->graph_obj.mdev; entity 238 drivers/media/platform/omap3isp/ispvideo.c media_graph_walk_start(&graph, entity); entity 240 drivers/media/platform/omap3isp/ispvideo.c while ((entity = media_graph_walk_next(&graph))) { entity 243 drivers/media/platform/omap3isp/ispvideo.c media_entity_enum_set(&pipe->ent_enum, entity); entity 248 drivers/media/platform/omap3isp/ispvideo.c if (entity == &video->video.entity) entity 251 drivers/media/platform/omap3isp/ispvideo.c if (!is_media_entity_v4l2_video_device(entity)) entity 254 drivers/media/platform/omap3isp/ispvideo.c __video = to_isp_video(media_entity_to_video_device(entity)); entity 393 drivers/media/platform/omap3isp/ispvideo.c struct isp_pipeline *pipe = to_isp_pipeline(&video->video.entity); entity 463 drivers/media/platform/omap3isp/ispvideo.c struct isp_pipeline *pipe = to_isp_pipeline(&video->video.entity); entity 516 drivers/media/platform/omap3isp/ispvideo.c struct isp_pipeline *pipe = to_isp_pipeline(&video->video.entity); entity 961 drivers/media/platform/omap3isp/ispvideo.c &isp->isp_csi2a.subdev.entity, entity 962 drivers/media/platform/omap3isp/ispvideo.c &isp->isp_csi2c.subdev.entity, entity 963 drivers/media/platform/omap3isp/ispvideo.c &isp->isp_ccp2.subdev.entity, entity 964 drivers/media/platform/omap3isp/ispvideo.c &isp->isp_ccdc.subdev.entity entity 989 drivers/media/platform/omap3isp/ispvideo.c source = source_pad->entity; entity 1034 drivers/media/platform/omap3isp/ispvideo.c &isp->isp_ccdc.subdev.entity)) { entity 1097 drivers/media/platform/omap3isp/ispvideo.c pipe = video->video.entity.pipe entity 1098 drivers/media/platform/omap3isp/ispvideo.c ? to_isp_pipeline(&video->video.entity) : &video->pipe; entity 1108 drivers/media/platform/omap3isp/ispvideo.c ret = media_pipeline_start(&video->video.entity, &pipe->pipe); entity 1165 drivers/media/platform/omap3isp/ispvideo.c media_pipeline_stop(&video->video.entity); entity 1191 drivers/media/platform/omap3isp/ispvideo.c struct isp_pipeline *pipe = to_isp_pipeline(&video->video.entity); entity 1232 drivers/media/platform/omap3isp/ispvideo.c media_pipeline_stop(&video->video.entity); entity 1314 drivers/media/platform/omap3isp/ispvideo.c ret = v4l2_pipeline_pm_use(&video->video.entity, 1); entity 1366 drivers/media/platform/omap3isp/ispvideo.c v4l2_pipeline_pm_use(&video->video.entity, 0); entity 1437 drivers/media/platform/omap3isp/ispvideo.c ret = media_entity_pads_init(&video->video.entity, 1, &video->pad); entity 1475 drivers/media/platform/omap3isp/ispvideo.c media_entity_cleanup(&video->video.entity); entity 468 drivers/media/platform/qcom/camss/camss-csid.c ret = camss_get_pixel_clock(&csid->subdev.entity, &pixel_clock); entity 1195 drivers/media/platform/qcom/camss/camss-csid.c void msm_csid_get_csid_id(struct media_entity *entity, u8 *id) entity 1197 drivers/media/platform/qcom/camss/camss-csid.c struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); entity 1229 drivers/media/platform/qcom/camss/camss-csid.c static int csid_link_setup(struct media_entity *entity, entity 1245 drivers/media/platform/qcom/camss/camss-csid.c sd = media_entity_to_v4l2_subdev(entity); entity 1253 drivers/media/platform/qcom/camss/camss-csid.c sd = media_entity_to_v4l2_subdev(remote->entity); entity 1359 drivers/media/platform/qcom/camss/camss-csid.c sd->entity.function = MEDIA_ENT_F_IO_V4L; entity 1360 drivers/media/platform/qcom/camss/camss-csid.c sd->entity.ops = &csid_media_ops; entity 1361 drivers/media/platform/qcom/camss/camss-csid.c ret = media_entity_pads_init(&sd->entity, MSM_CSID_PADS_NUM, pads); entity 1376 drivers/media/platform/qcom/camss/camss-csid.c media_entity_cleanup(&sd->entity); entity 1390 drivers/media/platform/qcom/camss/camss-csid.c media_entity_cleanup(&csid->subdev.entity); entity 75 drivers/media/platform/qcom/camss/camss-csid.h void msm_csid_get_csid_id(struct media_entity *entity, u8 *id); entity 109 drivers/media/platform/qcom/camss/camss-csiphy.c ret = camss_get_pixel_clock(&csiphy->subdev.entity, &pixel_clock); entity 248 drivers/media/platform/qcom/camss/camss-csiphy.c ret = camss_get_pixel_clock(&csiphy->subdev.entity, &pixel_clock); entity 654 drivers/media/platform/qcom/camss/camss-csiphy.c static int csiphy_link_setup(struct media_entity *entity, entity 667 drivers/media/platform/qcom/camss/camss-csiphy.c sd = media_entity_to_v4l2_subdev(entity); entity 670 drivers/media/platform/qcom/camss/camss-csiphy.c sd = media_entity_to_v4l2_subdev(remote->entity); entity 740 drivers/media/platform/qcom/camss/camss-csiphy.c sd->entity.function = MEDIA_ENT_F_IO_V4L; entity 741 drivers/media/platform/qcom/camss/camss-csiphy.c sd->entity.ops = &csiphy_media_ops; entity 742 drivers/media/platform/qcom/camss/camss-csiphy.c ret = media_entity_pads_init(&sd->entity, MSM_CSIPHY_PADS_NUM, pads); entity 751 drivers/media/platform/qcom/camss/camss-csiphy.c media_entity_cleanup(&sd->entity); entity 764 drivers/media/platform/qcom/camss/camss-csiphy.c media_entity_cleanup(&csiphy->subdev.entity); entity 1229 drivers/media/platform/qcom/camss/camss-ispif.c static int ispif_link_setup(struct media_entity *entity, entity 1241 drivers/media/platform/qcom/camss/camss-ispif.c sd = media_entity_to_v4l2_subdev(entity); entity 1244 drivers/media/platform/qcom/camss/camss-ispif.c msm_csid_get_csid_id(remote->entity, &line->csid_id); entity 1250 drivers/media/platform/qcom/camss/camss-ispif.c sd = media_entity_to_v4l2_subdev(entity); entity 1253 drivers/media/platform/qcom/camss/camss-ispif.c msm_vfe_get_vfe_id(remote->entity, &line->vfe_id); entity 1254 drivers/media/platform/qcom/camss/camss-ispif.c msm_vfe_get_vfe_line_id(remote->entity, &id); entity 1326 drivers/media/platform/qcom/camss/camss-ispif.c sd->entity.function = MEDIA_ENT_F_IO_V4L; entity 1327 drivers/media/platform/qcom/camss/camss-ispif.c sd->entity.ops = &ispif_media_ops; entity 1328 drivers/media/platform/qcom/camss/camss-ispif.c ret = media_entity_pads_init(&sd->entity, MSM_ISPIF_PADS_NUM, entity 1338 drivers/media/platform/qcom/camss/camss-ispif.c media_entity_cleanup(&sd->entity); entity 1350 drivers/media/platform/qcom/camss/camss-ispif.c media_entity_cleanup(&sd->entity); entity 1371 drivers/media/platform/qcom/camss/camss-ispif.c media_entity_cleanup(&sd->entity); entity 672 drivers/media/platform/qcom/camss/camss-vfe.c sensor = camss_find_sensor(&line->subdev.entity); entity 1119 drivers/media/platform/qcom/camss/camss-vfe.c ret = camss_get_pixel_clock(&vfe->line[i].subdev.entity, entity 1201 drivers/media/platform/qcom/camss/camss-vfe.c ret = camss_get_pixel_clock(&vfe->line[i].subdev.entity, entity 2124 drivers/media/platform/qcom/camss/camss-vfe.c void msm_vfe_get_vfe_id(struct media_entity *entity, u8 *id) entity 2130 drivers/media/platform/qcom/camss/camss-vfe.c sd = media_entity_to_v4l2_subdev(entity); entity 2142 drivers/media/platform/qcom/camss/camss-vfe.c void msm_vfe_get_vfe_line_id(struct media_entity *entity, enum vfe_line_id *id) entity 2147 drivers/media/platform/qcom/camss/camss-vfe.c sd = media_entity_to_v4l2_subdev(entity); entity 2162 drivers/media/platform/qcom/camss/camss-vfe.c static int vfe_link_setup(struct media_entity *entity, entity 2268 drivers/media/platform/qcom/camss/camss-vfe.c sd->entity.function = MEDIA_ENT_F_PROC_VIDEO_PIXEL_FORMATTER; entity 2269 drivers/media/platform/qcom/camss/camss-vfe.c sd->entity.ops = &vfe_media_ops; entity 2270 drivers/media/platform/qcom/camss/camss-vfe.c ret = media_entity_pads_init(&sd->entity, MSM_VFE_PADS_NUM, entity 2301 drivers/media/platform/qcom/camss/camss-vfe.c &sd->entity, MSM_VFE_PAD_SRC, entity 2302 drivers/media/platform/qcom/camss/camss-vfe.c &video_out->vdev.entity, 0, entity 2306 drivers/media/platform/qcom/camss/camss-vfe.c sd->entity.name, video_out->vdev.entity.name, entity 2321 drivers/media/platform/qcom/camss/camss-vfe.c media_entity_cleanup(&sd->entity); entity 2330 drivers/media/platform/qcom/camss/camss-vfe.c media_entity_cleanup(&sd->entity); entity 2353 drivers/media/platform/qcom/camss/camss-vfe.c media_entity_cleanup(&sd->entity); entity 178 drivers/media/platform/qcom/camss/camss-vfe.h void msm_vfe_get_vfe_id(struct media_entity *entity, u8 *id); entity 179 drivers/media/platform/qcom/camss/camss-vfe.h void msm_vfe_get_vfe_line_id(struct media_entity *entity, enum vfe_line_id *id); entity 276 drivers/media/platform/qcom/camss/camss-video.c if (!remote || !is_media_entity_v4l2_subdev(remote->entity)) entity 282 drivers/media/platform/qcom/camss/camss-video.c return media_entity_to_v4l2_subdev(remote->entity); entity 434 drivers/media/platform/qcom/camss/camss-video.c struct media_entity *entity; entity 439 drivers/media/platform/qcom/camss/camss-video.c ret = media_pipeline_start(&vdev->entity, &video->pipe); entity 447 drivers/media/platform/qcom/camss/camss-video.c entity = &vdev->entity; entity 449 drivers/media/platform/qcom/camss/camss-video.c pad = &entity->pads[0]; entity 454 drivers/media/platform/qcom/camss/camss-video.c if (!pad || !is_media_entity_v4l2_subdev(pad->entity)) entity 457 drivers/media/platform/qcom/camss/camss-video.c entity = pad->entity; entity 458 drivers/media/platform/qcom/camss/camss-video.c subdev = media_entity_to_v4l2_subdev(entity); entity 468 drivers/media/platform/qcom/camss/camss-video.c media_pipeline_stop(&vdev->entity); entity 479 drivers/media/platform/qcom/camss/camss-video.c struct media_entity *entity; entity 483 drivers/media/platform/qcom/camss/camss-video.c entity = &vdev->entity; entity 485 drivers/media/platform/qcom/camss/camss-video.c pad = &entity->pads[0]; entity 490 drivers/media/platform/qcom/camss/camss-video.c if (!pad || !is_media_entity_v4l2_subdev(pad->entity)) entity 493 drivers/media/platform/qcom/camss/camss-video.c entity = pad->entity; entity 494 drivers/media/platform/qcom/camss/camss-video.c subdev = media_entity_to_v4l2_subdev(entity); entity 499 drivers/media/platform/qcom/camss/camss-video.c media_pipeline_stop(&vdev->entity); entity 748 drivers/media/platform/qcom/camss/camss-video.c ret = v4l2_pipeline_pm_use(&vdev->entity, 1); entity 774 drivers/media/platform/qcom/camss/camss-video.c v4l2_pipeline_pm_use(&vdev->entity, 0); entity 799 drivers/media/platform/qcom/camss/camss-video.c media_entity_cleanup(&vdev->entity); entity 878 drivers/media/platform/qcom/camss/camss-video.c ret = media_entity_pads_init(&vdev->entity, 1, pad); entity 937 drivers/media/platform/qcom/camss/camss-video.c media_entity_cleanup(&vdev->entity); entity 349 drivers/media/platform/qcom/camss/camss.c struct media_entity *camss_find_sensor(struct media_entity *entity) entity 354 drivers/media/platform/qcom/camss/camss.c pad = &entity->pads[0]; entity 359 drivers/media/platform/qcom/camss/camss.c if (!pad || !is_media_entity_v4l2_subdev(pad->entity)) entity 362 drivers/media/platform/qcom/camss/camss.c entity = pad->entity; entity 364 drivers/media/platform/qcom/camss/camss.c if (entity->function == MEDIA_ENT_F_CAM_SENSOR) entity 365 drivers/media/platform/qcom/camss/camss.c return entity; entity 376 drivers/media/platform/qcom/camss/camss.c int camss_get_pixel_clock(struct media_entity *entity, u32 *pixel_clock) entity 382 drivers/media/platform/qcom/camss/camss.c sensor = camss_find_sensor(entity); entity 637 drivers/media/platform/qcom/camss/camss.c &camss->csiphy[i].subdev.entity, entity 639 drivers/media/platform/qcom/camss/camss.c &camss->csid[j].subdev.entity, entity 645 drivers/media/platform/qcom/camss/camss.c camss->csiphy[i].subdev.entity.name, entity 646 drivers/media/platform/qcom/camss/camss.c camss->csid[j].subdev.entity.name, entity 656 drivers/media/platform/qcom/camss/camss.c &camss->csid[i].subdev.entity, entity 658 drivers/media/platform/qcom/camss/camss.c &camss->ispif.line[j].subdev.entity, entity 664 drivers/media/platform/qcom/camss/camss.c camss->csid[i].subdev.entity.name, entity 665 drivers/media/platform/qcom/camss/camss.c camss->ispif.line[j].subdev.entity.name, entity 676 drivers/media/platform/qcom/camss/camss.c &camss->ispif.line[i].subdev.entity, entity 678 drivers/media/platform/qcom/camss/camss.c &camss->vfe[k].line[j].subdev.entity, entity 684 drivers/media/platform/qcom/camss/camss.c camss->ispif.line[i].subdev.entity.name, entity 685 drivers/media/platform/qcom/camss/camss.c camss->vfe[k].line[j].subdev.entity.name, entity 762 drivers/media/platform/qcom/camss/camss.c struct media_entity *sensor = &sd->entity; entity 765 drivers/media/platform/qcom/camss/camss.c struct media_entity *input = &csiphy->subdev.entity; entity 109 drivers/media/platform/qcom/camss/camss.h struct media_entity *camss_find_sensor(struct media_entity *entity); entity 110 drivers/media/platform/qcom/camss/camss.h int camss_get_pixel_clock(struct media_entity *entity, u32 *pixel_clock); entity 53 drivers/media/platform/rcar-vin/rcar-core.c struct media_entity *entity) entity 58 drivers/media/platform/rcar-vin/rcar-core.c sd = media_entity_to_v4l2_subdev(entity); entity 119 drivers/media/platform/rcar-vin/rcar-core.c struct media_entity *entity; entity 131 drivers/media/platform/rcar-vin/rcar-core.c !is_media_entity_v4l2_video_device(link->sink->entity)) entity 139 drivers/media/platform/rcar-vin/rcar-core.c media_device_for_each_entity(entity, &group->mdev) entity 140 drivers/media/platform/rcar-vin/rcar-core.c if (entity->stream_count) entity 146 drivers/media/platform/rcar-vin/rcar-core.c vdev = media_entity_to_video_device(link->sink->entity); entity 162 drivers/media/platform/rcar-vin/rcar-core.c &group->vin[i]->vdev.entity.pads[0]); entity 166 drivers/media/platform/rcar-vin/rcar-core.c csi_id = rvin_group_entity_to_csi_id(group, csi_pad->entity); entity 173 drivers/media/platform/rcar-vin/rcar-core.c csi_id = rvin_group_entity_to_csi_id(group, link->source->entity); entity 186 drivers/media/platform/rcar-vin/rcar-core.c sd = media_entity_to_v4l2_subdev(link->source->entity); entity 197 drivers/media/platform/rcar-vin/rcar-core.c link->source->entity->name); entity 422 drivers/media/platform/rcar-vin/rcar-core.c if (sd->entity.num_pads <= 1) entity 425 drivers/media/platform/rcar-vin/rcar-core.c for (pad = 0; pad < sd->entity.num_pads; pad++) entity 426 drivers/media/platform/rcar-vin/rcar-core.c if (sd->entity.pads[pad].flags & direction) entity 560 drivers/media/platform/rcar-vin/rcar-core.c source = &vin->parallel->subdev->entity; entity 561 drivers/media/platform/rcar-vin/rcar-core.c sink = &vin->vdev.entity; entity 720 drivers/media/platform/rcar-vin/rcar-core.c source = &vin->group->csi[route->csi].subdev->entity; entity 724 drivers/media/platform/rcar-vin/rcar-core.c sink = &vin->group->vin[route->vin]->vdev.entity; entity 892 drivers/media/platform/rcar-vin/rcar-core.c ret = media_entity_pads_init(&vin->vdev.entity, 1, &vin->pad); entity 743 drivers/media/platform/rcar-vin/rcar-csi2.c pad = media_entity_get_fwnode_pad(&subdev->entity, asd->match.fwnode, entity 754 drivers/media/platform/rcar-vin/rcar-csi2.c return media_create_pad_link(&subdev->entity, pad, entity 755 drivers/media/platform/rcar-vin/rcar-csi2.c &priv->subdev.entity, 0, entity 1174 drivers/media/platform/rcar-vin/rcar-csi2.c priv->subdev.entity.function = MEDIA_ENT_F_PROC_VIDEO_PIXEL_FORMATTER; entity 1175 drivers/media/platform/rcar-vin/rcar-csi2.c priv->subdev.entity.ops = &rcar_csi2_entity_ops; entity 1181 drivers/media/platform/rcar-vin/rcar-csi2.c ret = media_entity_pads_init(&priv->subdev.entity, NR_OF_RCAR_CSI2_PAD, entity 1123 drivers/media/platform/rcar-vin/rcar-dma.c sd = media_entity_to_v4l2_subdev(pad->entity); entity 1126 drivers/media/platform/rcar-vin/rcar-dma.c media_pipeline_stop(&vin->vdev.entity); entity 1140 drivers/media/platform/rcar-vin/rcar-dma.c mdev = vin->vdev.entity.graph_obj.mdev; entity 1142 drivers/media/platform/rcar-vin/rcar-dma.c pipe = sd->entity.pipe ? sd->entity.pipe : &vin->vdev.pipe; entity 1143 drivers/media/platform/rcar-vin/rcar-dma.c ret = __media_pipeline_start(&vin->vdev.entity, pipe); entity 1152 drivers/media/platform/rcar-vin/rcar-dma.c media_pipeline_stop(&vin->vdev.entity); entity 798 drivers/media/platform/rcar-vin/rcar-v4l2.c ret = v4l2_pipeline_pm_use(&vin->vdev.entity, 1); entity 814 drivers/media/platform/rcar-vin/rcar-v4l2.c v4l2_pipeline_pm_use(&vin->vdev.entity, 0); entity 842 drivers/media/platform/rcar-vin/rcar-v4l2.c v4l2_pipeline_pm_use(&vin->vdev.entity, 0); entity 815 drivers/media/platform/s3c-camif/camif-capture.c if (!pad || !is_media_entity_v4l2_subdev(pad->entity)) entity 837 drivers/media/platform/s3c-camif/camif-capture.c struct media_entity *sensor = &camif->sensor.sd->entity; entity 881 drivers/media/platform/s3c-camif/camif-capture.c media_pipeline_stop(&camif->sensor.sd->entity); entity 1138 drivers/media/platform/s3c-camif/camif-capture.c ret = media_entity_pads_init(&vfd->entity, 1, &vp->pad); entity 1172 drivers/media/platform/s3c-camif/camif-capture.c media_entity_cleanup(&vfd->entity); entity 1184 drivers/media/platform/s3c-camif/camif-capture.c media_entity_cleanup(&vfd->entity); entity 1555 drivers/media/platform/s3c-camif/camif-capture.c ret = media_entity_pads_init(&sd->entity, CAMIF_SD_PADS_NUM, entity 1579 drivers/media/platform/s3c-camif/camif-capture.c media_entity_cleanup(&sd->entity); entity 1602 drivers/media/platform/s3c-camif/camif-capture.c media_entity_cleanup(&sd->entity); entity 257 drivers/media/platform/s3c-camif/camif-core.c ret = media_create_pad_link(&camif->sensor.sd->entity, 0, entity 258 drivers/media/platform/s3c-camif/camif-core.c &camif->subdev.entity, CAMIF_SD_PAD_SINK, entity 265 drivers/media/platform/s3c-camif/camif-core.c ret = media_create_pad_link(&camif->subdev.entity, i, entity 266 drivers/media/platform/s3c-camif/camif-core.c &camif->vp[i - 1].vdev.entity, 0, entity 142 drivers/media/platform/stm32/stm32-dcmi.c struct dcmi_graph_entity entity; entity 589 drivers/media/platform/stm32/stm32-dcmi.c struct media_entity *entity = &dcmi->vdev->entity; entity 594 drivers/media/platform/stm32/stm32-dcmi.c pad = &entity->pads[0]; entity 599 drivers/media/platform/stm32/stm32-dcmi.c if (!pad || !is_media_entity_v4l2_subdev(pad->entity)) entity 602 drivers/media/platform/stm32/stm32-dcmi.c entity = pad->entity; entity 605 drivers/media/platform/stm32/stm32-dcmi.c return entity; entity 612 drivers/media/platform/stm32/stm32-dcmi.c struct media_entity *entity = &dcmi->entity.source->entity; entity 629 drivers/media/platform/stm32/stm32-dcmi.c for (i = 0; i < entity->num_pads; i++) { entity 630 drivers/media/platform/stm32/stm32-dcmi.c pad = &entity->pads[i]; entity 640 drivers/media/platform/stm32/stm32-dcmi.c subdev = media_entity_to_v4l2_subdev(entity); entity 670 drivers/media/platform/stm32/stm32-dcmi.c if (!sink_pad || !is_media_entity_v4l2_subdev(sink_pad->entity)) entity 673 drivers/media/platform/stm32/stm32-dcmi.c entity = sink_pad->entity; entity 682 drivers/media/platform/stm32/stm32-dcmi.c struct media_entity *entity = &dcmi->vdev->entity; entity 689 drivers/media/platform/stm32/stm32-dcmi.c pad = &entity->pads[0]; entity 694 drivers/media/platform/stm32/stm32-dcmi.c if (!pad || !is_media_entity_v4l2_subdev(pad->entity)) entity 697 drivers/media/platform/stm32/stm32-dcmi.c entity = pad->entity; entity 698 drivers/media/platform/stm32/stm32-dcmi.c subdev = media_entity_to_v4l2_subdev(entity); entity 739 drivers/media/platform/stm32/stm32-dcmi.c ret = media_pipeline_start(&dcmi->vdev->entity, &dcmi->pipeline); entity 836 drivers/media/platform/stm32/stm32-dcmi.c media_pipeline_stop(&dcmi->vdev->entity); entity 864 drivers/media/platform/stm32/stm32-dcmi.c media_pipeline_stop(&dcmi->vdev->entity); entity 1005 drivers/media/platform/stm32/stm32-dcmi.c ret = v4l2_subdev_call(dcmi->entity.source, pad, set_fmt, entity 1138 drivers/media/platform/stm32/stm32-dcmi.c ret = v4l2_subdev_call(dcmi->entity.source, pad, get_fmt, NULL, &fmt); entity 1167 drivers/media/platform/stm32/stm32-dcmi.c ret = v4l2_subdev_call(dcmi->entity.source, pad, set_fmt, entity 1190 drivers/media/platform/stm32/stm32-dcmi.c ret = v4l2_subdev_call(dcmi->entity.source, pad, get_selection, entity 1371 drivers/media/platform/stm32/stm32-dcmi.c ret = v4l2_subdev_call(dcmi->entity.source, pad, enum_frame_size, entity 1388 drivers/media/platform/stm32/stm32-dcmi.c return v4l2_g_parm_cap(video_devdata(file), dcmi->entity.source, p); entity 1396 drivers/media/platform/stm32/stm32-dcmi.c return v4l2_s_parm_cap(video_devdata(file), dcmi->entity.source, p); entity 1418 drivers/media/platform/stm32/stm32-dcmi.c ret = v4l2_subdev_call(dcmi->entity.source, pad, entity 1438 drivers/media/platform/stm32/stm32-dcmi.c struct v4l2_subdev *sd = dcmi->entity.source; entity 1469 drivers/media/platform/stm32/stm32-dcmi.c struct v4l2_subdev *sd = dcmi->entity.source; entity 1586 drivers/media/platform/stm32/stm32-dcmi.c struct v4l2_subdev *subdev = dcmi->entity.source; entity 1640 drivers/media/platform/stm32/stm32-dcmi.c struct v4l2_subdev *subdev = dcmi->entity.source; entity 1692 drivers/media/platform/stm32/stm32-dcmi.c dcmi->entity.source = entity 1694 drivers/media/platform/stm32/stm32-dcmi.c if (!dcmi->entity.source) { entity 1699 drivers/media/platform/stm32/stm32-dcmi.c dcmi->vdev->ctrl_handler = dcmi->entity.source->ctrl_handler; entity 1754 drivers/media/platform/stm32/stm32-dcmi.c src_pad = media_entity_get_fwnode_pad(&subdev->entity, entity 1758 drivers/media/platform/stm32/stm32-dcmi.c ret = media_create_pad_link(&subdev->entity, src_pad, entity 1759 drivers/media/platform/stm32/stm32-dcmi.c &dcmi->vdev->entity, 0, entity 1793 drivers/media/platform/stm32/stm32-dcmi.c dcmi->entity.remote_node = remote; entity 1794 drivers/media/platform/stm32/stm32-dcmi.c dcmi->entity.asd.match_type = V4L2_ASYNC_MATCH_FWNODE; entity 1795 drivers/media/platform/stm32/stm32-dcmi.c dcmi->entity.asd.match.fwnode = of_fwnode_handle(remote); entity 1813 drivers/media/platform/stm32/stm32-dcmi.c &dcmi->entity.asd); entity 1816 drivers/media/platform/stm32/stm32-dcmi.c of_node_put(dcmi->entity.remote_node); entity 1966 drivers/media/platform/stm32/stm32-dcmi.c ret = media_entity_pads_init(&dcmi->vdev->entity, entity 1972 drivers/media/platform/stm32/stm32-dcmi.c dcmi->vdev->entity.flags |= MEDIA_ENT_FL_DEFAULT; entity 2031 drivers/media/platform/stm32/stm32-dcmi.c media_entity_cleanup(&dcmi->vdev->entity); entity 2051 drivers/media/platform/stm32/stm32-dcmi.c media_entity_cleanup(&dcmi->vdev->entity); entity 44 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c csi->src_pad = media_entity_get_fwnode_pad(&subdev->entity, entity 78 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c ret = media_create_pad_link(&subdev->entity, CSI_SUBDEV_SOURCE, entity 79 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c &vdev->entity, 0, entity 85 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c ret = media_create_pad_link(&csi->src_subdev->entity, csi->src_pad, entity 86 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c &subdev->entity, CSI_SUBDEV_SINK, entity 223 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c subdev->entity.function = MEDIA_ENT_F_VID_IF_BRIDGE; entity 231 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c ret = media_entity_pads_init(&subdev->entity, CSI_SUBDEV_PADS, entity 237 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c vdev->entity.ops = &sun4i_csi_video_entity_ops; entity 238 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c ret = media_entity_pads_init(&vdev->entity, 1, &csi->vdev_pad); entity 269 drivers/media/platform/sunxi/sun4i-csi/sun4i_dma.c ret = media_pipeline_start(&csi->vdev.entity, &csi->vdev.pipe); entity 333 drivers/media/platform/sunxi/sun4i-csi/sun4i_dma.c media_pipeline_stop(&csi->vdev.entity); entity 362 drivers/media/platform/sunxi/sun4i-csi/sun4i_dma.c media_pipeline_stop(&csi->vdev.entity); entity 217 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c ret = v4l2_pipeline_pm_use(&csi->vdev.entity, 1); entity 230 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c v4l2_pipeline_pm_use(&csi->vdev.entity, 0); entity 246 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c v4l2_pipeline_pm_use(&csi->vdev.entity, 0); entity 630 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c struct media_entity *entity, entity 638 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c ret = media_entity_get_fwnode_pad(entity, fwnode, MEDIA_PAD_FL_SOURCE); entity 641 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c __func__, entity->name); entity 647 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c sink = &csi->video.vdev.entity; entity 651 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c entity->name, src_pad_index, sink->name, sink_pad->index); entity 652 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c ret = media_create_pad_link(entity, src_pad_index, sink, entity 658 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c entity->name, src_pad_index, entity 680 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c ret = sun6i_csi_link_entity(csi, &sd->entity, sd->fwnode); entity 82 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c if (!remote || !is_media_entity_v4l2_subdev(remote->entity)) entity 88 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c return media_entity_to_v4l2_subdev(remote->entity); entity 144 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c ret = media_pipeline_start(&video->vdev.entity, &video->vdev.pipe); entity 208 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c media_pipeline_stop(&video->vdev.entity); entity 232 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c media_pipeline_stop(&video->vdev.entity); entity 477 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c ret = v4l2_pipeline_pm_use(&video->vdev.entity, 1); entity 510 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c v4l2_pipeline_pm_use(&video->vdev.entity, 0); entity 535 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c if (is_media_entity_v4l2_subdev(pad->entity)) { entity 537 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c media_entity_to_v4l2_subdev(pad->entity); entity 549 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c struct video_device *vdev = container_of(link->sink->entity, entity 550 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c struct video_device, entity); entity 557 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c if (!media_entity_remote_pad(link->sink->entity->pads)) { entity 607 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c vdev->entity.ops = &sun6i_video_media_ops; entity 608 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c ret = media_entity_pads_init(&vdev->entity, 1, &video->pad); entity 671 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c media_entity_cleanup(&video->vdev.entity); entity 679 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c media_entity_cleanup(&video->vdev.entity); entity 43 drivers/media/platform/video-mux.c static int video_mux_link_setup(struct media_entity *entity, entity 47 drivers/media/platform/video-mux.c struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); entity 49 drivers/media/platform/video-mux.c u16 source_pad = entity->num_pads - 1; entity 60 drivers/media/platform/video-mux.c remote->entity->name, remote->index, local->entity->name, entity 112 drivers/media/platform/video-mux.c pad = media_entity_remote_pad(&sd->entity.pads[vmux->active]); entity 118 drivers/media/platform/video-mux.c if (!is_media_entity_v4l2_subdev(pad->entity)) { entity 123 drivers/media/platform/video-mux.c upstream_sd = media_entity_to_v4l2_subdev(pad->entity); entity 172 drivers/media/platform/video-mux.c u16 source_pad = sd->entity.num_pads - 1; entity 312 drivers/media/platform/video-mux.c for (i = 0; i < sd->entity.num_pads; i++) { entity 429 drivers/media/platform/video-mux.c vmux->subdev.entity.function = MEDIA_ENT_F_VID_MUX; entity 430 drivers/media/platform/video-mux.c ret = media_entity_pads_init(&vmux->subdev.entity, num_pads, entity 435 drivers/media/platform/video-mux.c vmux->subdev.entity.ops = &video_mux_ops; entity 446 drivers/media/platform/video-mux.c media_entity_cleanup(&sd->entity); entity 237 drivers/media/platform/vimc/vimc-capture.c struct media_entity *entity = &vcap->vdev.entity; entity 243 drivers/media/platform/vimc/vimc-capture.c ret = media_pipeline_start(entity, &vcap->stream.pipe); entity 251 drivers/media/platform/vimc/vimc-capture.c media_pipeline_stop(entity); entity 270 drivers/media/platform/vimc/vimc-capture.c media_pipeline_stop(&vcap->vdev.entity); entity 419 drivers/media/platform/vimc/vimc-capture.c vcap->vdev.entity.name = pdata->entity_name; entity 420 drivers/media/platform/vimc/vimc-capture.c vcap->vdev.entity.function = MEDIA_ENT_F_IO_V4L; entity 421 drivers/media/platform/vimc/vimc-capture.c ret = media_entity_pads_init(&vcap->vdev.entity, entity 460 drivers/media/platform/vimc/vimc-capture.c vcap->ved.ent = &vcap->vdev.entity; entity 469 drivers/media/platform/vimc/vimc-capture.c vdev->entity.ops = &vimc_cap_mops; entity 493 drivers/media/platform/vimc/vimc-capture.c media_entity_cleanup(&vcap->vdev.entity); entity 237 drivers/media/platform/vimc/vimc-common.c if (!is_media_entity_v4l2_subdev(pad->entity)) entity 240 drivers/media/platform/vimc/vimc-common.c sd = media_entity_to_v4l2_subdev(pad->entity); entity 253 drivers/media/platform/vimc/vimc-common.c if (is_media_entity_v4l2_subdev(pad->entity)) { entity 255 drivers/media/platform/vimc/vimc-common.c media_entity_to_v4l2_subdev(pad->entity); entity 265 drivers/media/platform/vimc/vimc-common.c } else if (is_media_entity_v4l2_video_device(pad->entity)) { entity 266 drivers/media/platform/vimc/vimc-common.c struct video_device *vdev = container_of(pad->entity, entity 268 drivers/media/platform/vimc/vimc-common.c entity); entity 303 drivers/media/platform/vimc/vimc-common.c link->source->entity->name, entity 309 drivers/media/platform/vimc/vimc-common.c link->sink->entity->name, entity 384 drivers/media/platform/vimc/vimc-common.c ved->ent = &sd->entity; entity 389 drivers/media/platform/vimc/vimc-common.c sd->entity.function = function; entity 390 drivers/media/platform/vimc/vimc-common.c sd->entity.ops = &vimc_ent_sd_mops; entity 401 drivers/media/platform/vimc/vimc-common.c ret = media_entity_pads_init(&sd->entity, num_pads, ved->pads); entity 417 drivers/media/platform/vimc/vimc-common.c media_entity_cleanup(&sd->entity); entity 148 drivers/media/platform/vimc/vimc-debayer.c for (i = 1; i < sd->entity.num_pads; i++) { entity 59 drivers/media/platform/vimc/vimc-scaler.c for (i = 1; i < sd->entity.num_pads; i++) { entity 47 drivers/media/platform/vimc/vimc-sensor.c for (i = 0; i < sd->entity.num_pads; i++) { entity 35 drivers/media/platform/vimc/vimc-streamer.c return pad ? pad->entity : NULL; entity 83 drivers/media/platform/vimc/vimc-streamer.c struct media_entity *entity; entity 107 drivers/media/platform/vimc/vimc-streamer.c entity = vimc_get_source_entity(ved->ent); entity 109 drivers/media/platform/vimc/vimc-streamer.c if (!entity) entity 113 drivers/media/platform/vimc/vimc-streamer.c if (is_media_entity_v4l2_subdev(entity)) { entity 114 drivers/media/platform/vimc/vimc-streamer.c sd = media_entity_to_v4l2_subdev(entity); entity 117 drivers/media/platform/vimc/vimc-streamer.c vdev = container_of(entity, entity 119 drivers/media/platform/vimc/vimc-streamer.c entity); entity 1292 drivers/media/platform/vivid/vivid-core.c ret = media_entity_pads_init(&vfd->entity, 1, &dev->vid_cap_pad); entity 1338 drivers/media/platform/vivid/vivid-core.c ret = media_entity_pads_init(&vfd->entity, 1, &dev->vid_out_pad); entity 1385 drivers/media/platform/vivid/vivid-core.c ret = media_entity_pads_init(&vfd->entity, 1, &dev->vbi_cap_pad); entity 1417 drivers/media/platform/vivid/vivid-core.c ret = media_entity_pads_init(&vfd->entity, 1, &dev->vbi_out_pad); entity 1447 drivers/media/platform/vivid/vivid-core.c ret = media_entity_pads_init(&vfd->entity, 1, &dev->sdr_cap_pad); entity 103 drivers/media/platform/vsp1/vsp1_brx.c return v4l2_subdev_get_try_compose(&brx->entity.subdev, cfg, pad); entity 122 drivers/media/platform/vsp1/vsp1_brx.c format = vsp1_entity_get_pad_format(&brx->entity, config, entity 143 drivers/media/platform/vsp1/vsp1_brx.c mutex_lock(&brx->entity.lock); entity 145 drivers/media/platform/vsp1/vsp1_brx.c config = vsp1_entity_get_pad_config(&brx->entity, cfg, fmt->which); entity 153 drivers/media/platform/vsp1/vsp1_brx.c format = vsp1_entity_get_pad_format(&brx->entity, config, fmt->pad); entity 157 drivers/media/platform/vsp1/vsp1_brx.c if (fmt->pad != brx->entity.source_pad) { entity 171 drivers/media/platform/vsp1/vsp1_brx.c for (i = 0; i <= brx->entity.source_pad; ++i) { entity 172 drivers/media/platform/vsp1/vsp1_brx.c format = vsp1_entity_get_pad_format(&brx->entity, entity 179 drivers/media/platform/vsp1/vsp1_brx.c mutex_unlock(&brx->entity.lock); entity 190 drivers/media/platform/vsp1/vsp1_brx.c if (sel->pad == brx->entity.source_pad) entity 202 drivers/media/platform/vsp1/vsp1_brx.c config = vsp1_entity_get_pad_config(&brx->entity, cfg, entity 207 drivers/media/platform/vsp1/vsp1_brx.c mutex_lock(&brx->entity.lock); entity 209 drivers/media/platform/vsp1/vsp1_brx.c mutex_unlock(&brx->entity.lock); entity 227 drivers/media/platform/vsp1/vsp1_brx.c if (sel->pad == brx->entity.source_pad) entity 233 drivers/media/platform/vsp1/vsp1_brx.c mutex_lock(&brx->entity.lock); entity 235 drivers/media/platform/vsp1/vsp1_brx.c config = vsp1_entity_get_pad_config(&brx->entity, cfg, sel->which); entity 245 drivers/media/platform/vsp1/vsp1_brx.c format = vsp1_entity_get_pad_format(&brx->entity, config, entity 246 drivers/media/platform/vsp1/vsp1_brx.c brx->entity.source_pad); entity 254 drivers/media/platform/vsp1/vsp1_brx.c format = vsp1_entity_get_pad_format(&brx->entity, config, sel->pad); entity 262 drivers/media/platform/vsp1/vsp1_brx.c mutex_unlock(&brx->entity.lock); entity 284 drivers/media/platform/vsp1/vsp1_brx.c static void brx_configure_stream(struct vsp1_entity *entity, entity 289 drivers/media/platform/vsp1/vsp1_brx.c struct vsp1_brx *brx = to_brx(&entity->subdev); entity 294 drivers/media/platform/vsp1/vsp1_brx.c format = vsp1_entity_get_pad_format(&brx->entity, brx->entity.config, entity 295 drivers/media/platform/vsp1/vsp1_brx.c brx->entity.source_pad); entity 331 drivers/media/platform/vsp1/vsp1_brx.c if (entity->type == VSP1_ENTITY_BRU) entity 337 drivers/media/platform/vsp1/vsp1_brx.c for (i = 0; i < brx->entity.source_pad; ++i) { entity 371 drivers/media/platform/vsp1/vsp1_brx.c if (!(entity->type == VSP1_ENTITY_BRU && i == 1)) entity 420 drivers/media/platform/vsp1/vsp1_brx.c brx->entity.ops = &brx_entity_ops; entity 421 drivers/media/platform/vsp1/vsp1_brx.c brx->entity.type = type; entity 431 drivers/media/platform/vsp1/vsp1_brx.c ret = vsp1_entity_init(vsp1, &brx->entity, name, num_pads, &brx_ops, entity 443 drivers/media/platform/vsp1/vsp1_brx.c brx->entity.subdev.ctrl_handler = &brx->ctrls; entity 448 drivers/media/platform/vsp1/vsp1_brx.c vsp1_entity_destroy(&brx->entity); entity 24 drivers/media/platform/vsp1/vsp1_brx.h struct vsp1_entity entity; entity 38 drivers/media/platform/vsp1/vsp1_brx.h return container_of(subdev, struct vsp1_brx, entity.subdev); entity 172 drivers/media/platform/vsp1/vsp1_clu.c static void clu_configure_stream(struct vsp1_entity *entity, entity 177 drivers/media/platform/vsp1/vsp1_clu.c struct vsp1_clu *clu = to_clu(&entity->subdev); entity 184 drivers/media/platform/vsp1/vsp1_clu.c format = vsp1_entity_get_pad_format(&clu->entity, entity 185 drivers/media/platform/vsp1/vsp1_clu.c clu->entity.config, entity 190 drivers/media/platform/vsp1/vsp1_clu.c static void clu_configure_frame(struct vsp1_entity *entity, entity 195 drivers/media/platform/vsp1/vsp1_clu.c struct vsp1_clu *clu = to_clu(&entity->subdev); entity 221 drivers/media/platform/vsp1/vsp1_clu.c static void clu_destroy(struct vsp1_entity *entity) entity 223 drivers/media/platform/vsp1/vsp1_clu.c struct vsp1_clu *clu = to_clu(&entity->subdev); entity 249 drivers/media/platform/vsp1/vsp1_clu.c clu->entity.ops = &clu_entity_ops; entity 250 drivers/media/platform/vsp1/vsp1_clu.c clu->entity.type = VSP1_ENTITY_CLU; entity 252 drivers/media/platform/vsp1/vsp1_clu.c ret = vsp1_entity_init(vsp1, &clu->entity, "clu", 2, &clu_ops, entity 263 drivers/media/platform/vsp1/vsp1_clu.c clu->pool = vsp1_dl_body_pool_create(clu->entity.vsp1, 3, CLU_SIZE + 1, entity 273 drivers/media/platform/vsp1/vsp1_clu.c clu->entity.subdev.ctrl_handler = &clu->ctrls; entity 278 drivers/media/platform/vsp1/vsp1_clu.c vsp1_entity_destroy(&clu->entity); entity 27 drivers/media/platform/vsp1/vsp1_clu.h struct vsp1_entity entity; entity 40 drivers/media/platform/vsp1/vsp1_clu.h return container_of(subdev, struct vsp1_clu, entity.subdev); entity 130 drivers/media/platform/vsp1/vsp1_drm.c crop = &vsp1->drm->inputs[rpf->entity.index].crop; entity 140 drivers/media/platform/vsp1/vsp1_drm.c ret = v4l2_subdev_call(&rpf->entity.subdev, pad, set_fmt, NULL, entity 148 drivers/media/platform/vsp1/vsp1_drm.c format.format.code, rpf->entity.index); entity 156 drivers/media/platform/vsp1/vsp1_drm.c ret = v4l2_subdev_call(&rpf->entity.subdev, pad, set_selection, NULL, entity 164 drivers/media/platform/vsp1/vsp1_drm.c rpf->entity.index); entity 172 drivers/media/platform/vsp1/vsp1_drm.c ret = v4l2_subdev_call(&rpf->entity.subdev, pad, get_fmt, NULL, entity 180 drivers/media/platform/vsp1/vsp1_drm.c format.format.code, rpf->entity.index); entity 184 drivers/media/platform/vsp1/vsp1_drm.c ret = v4l2_subdev_call(&rpf->entity.subdev, pad, set_fmt, NULL, entity 190 drivers/media/platform/vsp1/vsp1_drm.c ret = vsp1_du_insert_uif(vsp1, pipe, uif, &rpf->entity, RWPF_PAD_SOURCE, entity 209 drivers/media/platform/vsp1/vsp1_drm.c sel.r = vsp1->drm->inputs[rpf->entity.index].compose; entity 245 drivers/media/platform/vsp1/vsp1_drm.c brx = &vsp1->bru->entity; entity 248 drivers/media/platform/vsp1/vsp1_drm.c else if (!vsp1->bru->entity.pipe) entity 249 drivers/media/platform/vsp1/vsp1_drm.c brx = &vsp1->bru->entity; entity 251 drivers/media/platform/vsp1/vsp1_drm.c brx = &vsp1->brs->entity; entity 326 drivers/media/platform/vsp1/vsp1_drm.c pipe->brx->sink = &pipe->output->entity; entity 363 drivers/media/platform/vsp1/vsp1_drm.c return vsp1->drm->inputs[rpf->entity.index].zpos; entity 421 drivers/media/platform/vsp1/vsp1_drm.c if (!rpf->entity.pipe) { entity 422 drivers/media/platform/vsp1/vsp1_drm.c rpf->entity.pipe = pipe; entity 423 drivers/media/platform/vsp1/vsp1_drm.c list_add_tail(&rpf->entity.list_pipe, &pipe->entities); entity 428 drivers/media/platform/vsp1/vsp1_drm.c rpf->entity.sink = pipe->brx; entity 429 drivers/media/platform/vsp1/vsp1_drm.c rpf->entity.sink_pad = i; entity 432 drivers/media/platform/vsp1/vsp1_drm.c __func__, rpf->entity.index, BRX_NAME(pipe->brx), i); entity 442 drivers/media/platform/vsp1/vsp1_drm.c __func__, rpf->entity.index); entity 453 drivers/media/platform/vsp1/vsp1_drm.c &pipe->output->entity, 0); entity 490 drivers/media/platform/vsp1/vsp1_drm.c ret = v4l2_subdev_call(&pipe->output->entity.subdev, pad, set_fmt, NULL, entity 497 drivers/media/platform/vsp1/vsp1_drm.c format.format.code, pipe->output->entity.index); entity 500 drivers/media/platform/vsp1/vsp1_drm.c ret = v4l2_subdev_call(&pipe->output->entity.subdev, pad, get_fmt, NULL, entity 507 drivers/media/platform/vsp1/vsp1_drm.c format.format.code, pipe->output->entity.index); entity 538 drivers/media/platform/vsp1/vsp1_drm.c struct vsp1_entity *entity; entity 552 drivers/media/platform/vsp1/vsp1_drm.c list_for_each_entry_safe(entity, next, &pipe->entities, list_pipe) { entity 554 drivers/media/platform/vsp1/vsp1_drm.c if (!entity->pipe) { entity 555 drivers/media/platform/vsp1/vsp1_drm.c vsp1_dl_body_write(dlb, entity->route->reg, entity 558 drivers/media/platform/vsp1/vsp1_drm.c entity->sink = NULL; entity 559 drivers/media/platform/vsp1/vsp1_drm.c list_del(&entity->list_pipe); entity 564 drivers/media/platform/vsp1/vsp1_drm.c vsp1_entity_route_setup(entity, pipe, dlb); entity 565 drivers/media/platform/vsp1/vsp1_drm.c vsp1_entity_configure_stream(entity, pipe, dl, dlb); entity 566 drivers/media/platform/vsp1/vsp1_drm.c vsp1_entity_configure_frame(entity, pipe, dl, dlb); entity 567 drivers/media/platform/vsp1/vsp1_drm.c vsp1_entity_configure_partition(entity, pipe, dl, dlb); entity 680 drivers/media/platform/vsp1/vsp1_drm.c WARN_ON(!rpf->entity.pipe); entity 681 drivers/media/platform/vsp1/vsp1_drm.c rpf->entity.pipe = NULL; entity 682 drivers/media/platform/vsp1/vsp1_drm.c list_del(&rpf->entity.list_pipe); entity 827 drivers/media/platform/vsp1/vsp1_drm.c rpf->entity.pipe = NULL; entity 959 drivers/media/platform/vsp1/vsp1_drm.c pipe->lif = &vsp1->lif[i]->entity; entity 961 drivers/media/platform/vsp1/vsp1_drm.c pipe->output->entity.pipe = pipe; entity 962 drivers/media/platform/vsp1/vsp1_drm.c pipe->output->entity.sink = pipe->lif; entity 963 drivers/media/platform/vsp1/vsp1_drm.c pipe->output->entity.sink_pad = 0; entity 964 drivers/media/platform/vsp1/vsp1_drm.c list_add_tail(&pipe->output->entity.list_pipe, &pipe->entities); entity 974 drivers/media/platform/vsp1/vsp1_drm.c drm_pipe->uif = &vsp1->uif[i]->entity; entity 981 drivers/media/platform/vsp1/vsp1_drm.c INIT_LIST_HEAD(&input->entity.list_pipe); entity 63 drivers/media/platform/vsp1/vsp1_drv.c vsp1_pipeline_frame_end(wpf->entity.pipe); entity 92 drivers/media/platform/vsp1/vsp1_drv.c struct media_entity *entity = &sink->subdev.entity; entity 114 drivers/media/platform/vsp1/vsp1_drv.c for (pad = 0; pad < entity->num_pads; ++pad) { entity 115 drivers/media/platform/vsp1/vsp1_drv.c if (!(entity->pads[pad].flags & MEDIA_PAD_FL_SINK)) entity 118 drivers/media/platform/vsp1/vsp1_drv.c ret = media_create_pad_link(&source->subdev.entity, entity 120 drivers/media/platform/vsp1/vsp1_drv.c entity, pad, flags); entity 134 drivers/media/platform/vsp1/vsp1_drv.c struct vsp1_entity *entity; entity 138 drivers/media/platform/vsp1/vsp1_drv.c list_for_each_entry(entity, &vsp1->entities, list_dev) { entity 139 drivers/media/platform/vsp1/vsp1_drv.c if (entity->type == VSP1_ENTITY_LIF || entity 140 drivers/media/platform/vsp1/vsp1_drv.c entity->type == VSP1_ENTITY_RPF) entity 143 drivers/media/platform/vsp1/vsp1_drv.c ret = vsp1_create_sink_links(vsp1, entity); entity 149 drivers/media/platform/vsp1/vsp1_drv.c ret = media_create_pad_link(&vsp1->hgo->histo.entity.subdev.entity, entity 151 drivers/media/platform/vsp1/vsp1_drv.c &vsp1->hgo->histo.video.entity, 0, entity 159 drivers/media/platform/vsp1/vsp1_drv.c ret = media_create_pad_link(&vsp1->hgt->histo.entity.subdev.entity, entity 161 drivers/media/platform/vsp1/vsp1_drv.c &vsp1->hgt->histo.video.entity, 0, entity 172 drivers/media/platform/vsp1/vsp1_drv.c ret = media_create_pad_link(&vsp1->wpf[i]->entity.subdev.entity, entity 174 drivers/media/platform/vsp1/vsp1_drv.c &vsp1->lif[i]->entity.subdev.entity, entity 183 drivers/media/platform/vsp1/vsp1_drv.c ret = media_create_pad_link(&rpf->video->video.entity, 0, entity 184 drivers/media/platform/vsp1/vsp1_drv.c &rpf->entity.subdev.entity, entity 199 drivers/media/platform/vsp1/vsp1_drv.c ret = media_create_pad_link(&wpf->entity.subdev.entity, entity 201 drivers/media/platform/vsp1/vsp1_drv.c &wpf->video->video.entity, 0, entity 213 drivers/media/platform/vsp1/vsp1_drv.c struct vsp1_entity *entity, *_entity; entity 216 drivers/media/platform/vsp1/vsp1_drv.c list_for_each_entry_safe(entity, _entity, &vsp1->entities, list_dev) { entity 217 drivers/media/platform/vsp1/vsp1_drv.c list_del(&entity->list_dev); entity 218 drivers/media/platform/vsp1/vsp1_drv.c vsp1_entity_destroy(entity); entity 239 drivers/media/platform/vsp1/vsp1_drv.c struct vsp1_entity *entity; entity 275 drivers/media/platform/vsp1/vsp1_drv.c list_add_tail(&vsp1->brs->entity.list_dev, &vsp1->entities); entity 285 drivers/media/platform/vsp1/vsp1_drv.c list_add_tail(&vsp1->bru->entity.list_dev, &vsp1->entities); entity 295 drivers/media/platform/vsp1/vsp1_drv.c list_add_tail(&vsp1->clu->entity.list_dev, &vsp1->entities); entity 304 drivers/media/platform/vsp1/vsp1_drv.c list_add_tail(&vsp1->hsi->entity.list_dev, &vsp1->entities); entity 312 drivers/media/platform/vsp1/vsp1_drv.c list_add_tail(&vsp1->hst->entity.list_dev, &vsp1->entities); entity 321 drivers/media/platform/vsp1/vsp1_drv.c list_add_tail(&vsp1->hgo->histo.entity.list_dev, entity 332 drivers/media/platform/vsp1/vsp1_drv.c list_add_tail(&vsp1->hgt->histo.entity.list_dev, entity 352 drivers/media/platform/vsp1/vsp1_drv.c list_add_tail(&lif->entity.list_dev, &vsp1->entities); entity 363 drivers/media/platform/vsp1/vsp1_drv.c list_add_tail(&vsp1->lut->entity.list_dev, &vsp1->entities); entity 376 drivers/media/platform/vsp1/vsp1_drv.c list_add_tail(&rpf->entity.list_dev, &vsp1->entities); entity 397 drivers/media/platform/vsp1/vsp1_drv.c list_add_tail(&vsp1->sru->entity.list_dev, &vsp1->entities); entity 410 drivers/media/platform/vsp1/vsp1_drv.c list_add_tail(&uds->entity.list_dev, &vsp1->entities); entity 423 drivers/media/platform/vsp1/vsp1_drv.c list_add_tail(&uif->entity.list_dev, &vsp1->entities); entity 436 drivers/media/platform/vsp1/vsp1_drv.c list_add_tail(&wpf->entity.list_dev, &vsp1->entities); entity 451 drivers/media/platform/vsp1/vsp1_drv.c list_for_each_entry(entity, &vsp1->entities, list_dev) { entity 453 drivers/media/platform/vsp1/vsp1_drv.c &entity->subdev); entity 23 drivers/media/platform/vsp1/vsp1_entity.c void vsp1_entity_route_setup(struct vsp1_entity *entity, entity 30 drivers/media/platform/vsp1/vsp1_entity.c if (entity->type == VSP1_ENTITY_HGO) { entity 37 drivers/media/platform/vsp1/vsp1_entity.c source = entity->sources[0]; entity 38 drivers/media/platform/vsp1/vsp1_entity.c smppt = (pipe->output->entity.index << VI6_DPR_SMPPT_TGW_SHIFT) entity 43 drivers/media/platform/vsp1/vsp1_entity.c } else if (entity->type == VSP1_ENTITY_HGT) { entity 50 drivers/media/platform/vsp1/vsp1_entity.c source = entity->sources[0]; entity 51 drivers/media/platform/vsp1/vsp1_entity.c smppt = (pipe->output->entity.index << VI6_DPR_SMPPT_TGW_SHIFT) entity 58 drivers/media/platform/vsp1/vsp1_entity.c source = entity; entity 72 drivers/media/platform/vsp1/vsp1_entity.c void vsp1_entity_configure_stream(struct vsp1_entity *entity, entity 77 drivers/media/platform/vsp1/vsp1_entity.c if (entity->ops->configure_stream) entity 78 drivers/media/platform/vsp1/vsp1_entity.c entity->ops->configure_stream(entity, pipe, dl, dlb); entity 81 drivers/media/platform/vsp1/vsp1_entity.c void vsp1_entity_configure_frame(struct vsp1_entity *entity, entity 86 drivers/media/platform/vsp1/vsp1_entity.c if (entity->ops->configure_frame) entity 87 drivers/media/platform/vsp1/vsp1_entity.c entity->ops->configure_frame(entity, pipe, dl, dlb); entity 90 drivers/media/platform/vsp1/vsp1_entity.c void vsp1_entity_configure_partition(struct vsp1_entity *entity, entity 95 drivers/media/platform/vsp1/vsp1_entity.c if (entity->ops->configure_partition) entity 96 drivers/media/platform/vsp1/vsp1_entity.c entity->ops->configure_partition(entity, pipe, dl, dlb); entity 118 drivers/media/platform/vsp1/vsp1_entity.c vsp1_entity_get_pad_config(struct vsp1_entity *entity, entity 124 drivers/media/platform/vsp1/vsp1_entity.c return entity->config; entity 141 drivers/media/platform/vsp1/vsp1_entity.c vsp1_entity_get_pad_format(struct vsp1_entity *entity, entity 145 drivers/media/platform/vsp1/vsp1_entity.c return v4l2_subdev_get_try_format(&entity->subdev, cfg, pad); entity 160 drivers/media/platform/vsp1/vsp1_entity.c vsp1_entity_get_pad_selection(struct vsp1_entity *entity, entity 166 drivers/media/platform/vsp1/vsp1_entity.c return v4l2_subdev_get_try_compose(&entity->subdev, cfg, pad); entity 168 drivers/media/platform/vsp1/vsp1_entity.c return v4l2_subdev_get_try_crop(&entity->subdev, cfg, pad); entity 188 drivers/media/platform/vsp1/vsp1_entity.c for (pad = 0; pad < subdev->entity.num_pads - 1; ++pad) { entity 214 drivers/media/platform/vsp1/vsp1_entity.c struct vsp1_entity *entity = to_vsp1_entity(subdev); entity 217 drivers/media/platform/vsp1/vsp1_entity.c config = vsp1_entity_get_pad_config(entity, cfg, fmt->which); entity 221 drivers/media/platform/vsp1/vsp1_entity.c mutex_lock(&entity->lock); entity 222 drivers/media/platform/vsp1/vsp1_entity.c fmt->format = *vsp1_entity_get_pad_format(entity, config, fmt->pad); entity 223 drivers/media/platform/vsp1/vsp1_entity.c mutex_unlock(&entity->lock); entity 246 drivers/media/platform/vsp1/vsp1_entity.c struct vsp1_entity *entity = to_vsp1_entity(subdev); entity 264 drivers/media/platform/vsp1/vsp1_entity.c config = vsp1_entity_get_pad_config(entity, cfg, code->which); entity 268 drivers/media/platform/vsp1/vsp1_entity.c mutex_lock(&entity->lock); entity 269 drivers/media/platform/vsp1/vsp1_entity.c format = vsp1_entity_get_pad_format(entity, config, 0); entity 271 drivers/media/platform/vsp1/vsp1_entity.c mutex_unlock(&entity->lock); entity 298 drivers/media/platform/vsp1/vsp1_entity.c struct vsp1_entity *entity = to_vsp1_entity(subdev); entity 303 drivers/media/platform/vsp1/vsp1_entity.c config = vsp1_entity_get_pad_config(entity, cfg, fse->which); entity 307 drivers/media/platform/vsp1/vsp1_entity.c format = vsp1_entity_get_pad_format(entity, config, fse->pad); entity 309 drivers/media/platform/vsp1/vsp1_entity.c mutex_lock(&entity->lock); entity 333 drivers/media/platform/vsp1/vsp1_entity.c mutex_unlock(&entity->lock); entity 362 drivers/media/platform/vsp1/vsp1_entity.c struct vsp1_entity *entity = to_vsp1_entity(subdev); entity 369 drivers/media/platform/vsp1/vsp1_entity.c mutex_lock(&entity->lock); entity 371 drivers/media/platform/vsp1/vsp1_entity.c config = vsp1_entity_get_pad_config(entity, cfg, fmt->which); entity 377 drivers/media/platform/vsp1/vsp1_entity.c format = vsp1_entity_get_pad_format(entity, config, fmt->pad); entity 379 drivers/media/platform/vsp1/vsp1_entity.c if (fmt->pad == entity->source_pad) { entity 405 drivers/media/platform/vsp1/vsp1_entity.c format = vsp1_entity_get_pad_format(entity, config, entity->source_pad); entity 409 drivers/media/platform/vsp1/vsp1_entity.c selection = vsp1_entity_get_pad_selection(entity, config, fmt->pad, entity 416 drivers/media/platform/vsp1/vsp1_entity.c selection = vsp1_entity_get_pad_selection(entity, config, fmt->pad, entity 424 drivers/media/platform/vsp1/vsp1_entity.c mutex_unlock(&entity->lock); entity 433 drivers/media/platform/vsp1/vsp1_entity.c media_entity_to_vsp1_entity(struct media_entity *entity) entity 435 drivers/media/platform/vsp1/vsp1_entity.c return container_of(entity, struct vsp1_entity, subdev.entity); entity 444 drivers/media/platform/vsp1/vsp1_entity.c source = media_entity_to_vsp1_entity(source_pad->entity); entity 451 drivers/media/platform/vsp1/vsp1_entity.c = media_entity_to_vsp1_entity(sink_pad->entity); entity 479 drivers/media/platform/vsp1/vsp1_entity.c sink = media_entity_to_vsp1_entity(sink_pad->entity); entity 480 drivers/media/platform/vsp1/vsp1_entity.c source = media_entity_to_vsp1_entity(source_pad->entity); entity 495 drivers/media/platform/vsp1/vsp1_entity.c int vsp1_entity_link_setup(struct media_entity *entity, entity 526 drivers/media/platform/vsp1/vsp1_entity.c list_for_each_entry(link, &pad->entity->links, list) { entity 527 drivers/media/platform/vsp1/vsp1_entity.c struct vsp1_entity *entity; entity 540 drivers/media/platform/vsp1/vsp1_entity.c if (!is_media_entity_v4l2_subdev(link->sink->entity)) entity 543 drivers/media/platform/vsp1/vsp1_entity.c entity = media_entity_to_vsp1_entity(link->sink->entity); entity 544 drivers/media/platform/vsp1/vsp1_entity.c if (entity->type != VSP1_ENTITY_HGO && entity 545 drivers/media/platform/vsp1/vsp1_entity.c entity->type != VSP1_ENTITY_HGT) entity 609 drivers/media/platform/vsp1/vsp1_entity.c int vsp1_entity_init(struct vsp1_device *vsp1, struct vsp1_entity *entity, entity 618 drivers/media/platform/vsp1/vsp1_entity.c if (vsp1_routes[i].type == entity->type && entity 619 drivers/media/platform/vsp1/vsp1_entity.c vsp1_routes[i].index == entity->index) { entity 620 drivers/media/platform/vsp1/vsp1_entity.c entity->route = &vsp1_routes[i]; entity 628 drivers/media/platform/vsp1/vsp1_entity.c mutex_init(&entity->lock); entity 630 drivers/media/platform/vsp1/vsp1_entity.c entity->vsp1 = vsp1; entity 631 drivers/media/platform/vsp1/vsp1_entity.c entity->source_pad = num_pads - 1; entity 634 drivers/media/platform/vsp1/vsp1_entity.c entity->pads = devm_kcalloc(vsp1->dev, entity 635 drivers/media/platform/vsp1/vsp1_entity.c num_pads, sizeof(*entity->pads), entity 637 drivers/media/platform/vsp1/vsp1_entity.c if (entity->pads == NULL) entity 641 drivers/media/platform/vsp1/vsp1_entity.c entity->pads[i].flags = MEDIA_PAD_FL_SINK; entity 643 drivers/media/platform/vsp1/vsp1_entity.c entity->sources = devm_kcalloc(vsp1->dev, max(num_pads - 1, 1U), entity 644 drivers/media/platform/vsp1/vsp1_entity.c sizeof(*entity->sources), GFP_KERNEL); entity 645 drivers/media/platform/vsp1/vsp1_entity.c if (entity->sources == NULL) entity 649 drivers/media/platform/vsp1/vsp1_entity.c entity->pads[num_pads - 1].flags = num_pads > 1 ? MEDIA_PAD_FL_SOURCE entity 653 drivers/media/platform/vsp1/vsp1_entity.c ret = media_entity_pads_init(&entity->subdev.entity, num_pads, entity 654 drivers/media/platform/vsp1/vsp1_entity.c entity->pads); entity 659 drivers/media/platform/vsp1/vsp1_entity.c subdev = &entity->subdev; entity 662 drivers/media/platform/vsp1/vsp1_entity.c subdev->entity.function = function; entity 663 drivers/media/platform/vsp1/vsp1_entity.c subdev->entity.ops = &vsp1->media_ops; entity 675 drivers/media/platform/vsp1/vsp1_entity.c entity->config = v4l2_subdev_alloc_pad_config(&entity->subdev); entity 676 drivers/media/platform/vsp1/vsp1_entity.c if (entity->config == NULL) { entity 677 drivers/media/platform/vsp1/vsp1_entity.c media_entity_cleanup(&entity->subdev.entity); entity 684 drivers/media/platform/vsp1/vsp1_entity.c void vsp1_entity_destroy(struct vsp1_entity *entity) entity 686 drivers/media/platform/vsp1/vsp1_entity.c if (entity->ops && entity->ops->destroy) entity 687 drivers/media/platform/vsp1/vsp1_entity.c entity->ops->destroy(entity); entity 688 drivers/media/platform/vsp1/vsp1_entity.c if (entity->subdev.ctrl_handler) entity 689 drivers/media/platform/vsp1/vsp1_entity.c v4l2_ctrl_handler_free(entity->subdev.ctrl_handler); entity 690 drivers/media/platform/vsp1/vsp1_entity.c v4l2_subdev_free_pad_config(entity->config); entity 691 drivers/media/platform/vsp1/vsp1_entity.c media_entity_cleanup(&entity->subdev.entity); entity 128 drivers/media/platform/vsp1/vsp1_entity.h int vsp1_entity_init(struct vsp1_device *vsp1, struct vsp1_entity *entity, entity 131 drivers/media/platform/vsp1/vsp1_entity.h void vsp1_entity_destroy(struct vsp1_entity *entity); entity 135 drivers/media/platform/vsp1/vsp1_entity.h int vsp1_entity_link_setup(struct media_entity *entity, entity 140 drivers/media/platform/vsp1/vsp1_entity.h vsp1_entity_get_pad_config(struct vsp1_entity *entity, entity 144 drivers/media/platform/vsp1/vsp1_entity.h vsp1_entity_get_pad_format(struct vsp1_entity *entity, entity 148 drivers/media/platform/vsp1/vsp1_entity.h vsp1_entity_get_pad_selection(struct vsp1_entity *entity, entity 154 drivers/media/platform/vsp1/vsp1_entity.h void vsp1_entity_route_setup(struct vsp1_entity *entity, entity 158 drivers/media/platform/vsp1/vsp1_entity.h void vsp1_entity_configure_stream(struct vsp1_entity *entity, entity 163 drivers/media/platform/vsp1/vsp1_entity.h void vsp1_entity_configure_frame(struct vsp1_entity *entity, entity 168 drivers/media/platform/vsp1/vsp1_entity.h void vsp1_entity_configure_partition(struct vsp1_entity *entity, entity 28 drivers/media/platform/vsp1/vsp1_hgo.c return vsp1_read(hgo->histo.entity.vsp1, reg); entity 41 drivers/media/platform/vsp1/vsp1_hgo.c void vsp1_hgo_frame_end(struct vsp1_entity *entity) entity 43 drivers/media/platform/vsp1/vsp1_hgo.c struct vsp1_hgo *hgo = to_hgo(&entity->subdev); entity 60 drivers/media/platform/vsp1/vsp1_hgo.c vsp1_write(hgo->histo.entity.vsp1, entity 132 drivers/media/platform/vsp1/vsp1_hgo.c static void hgo_configure_stream(struct vsp1_entity *entity, entity 137 drivers/media/platform/vsp1/vsp1_hgo.c struct vsp1_hgo *hgo = to_hgo(&entity->subdev); entity 143 drivers/media/platform/vsp1/vsp1_hgo.c crop = vsp1_entity_get_pad_selection(entity, entity->config, entity 145 drivers/media/platform/vsp1/vsp1_hgo.c compose = vsp1_entity_get_pad_selection(entity, entity->config, entity 210 drivers/media/platform/vsp1/vsp1_hgo.c hgo->histo.entity.subdev.ctrl_handler = &hgo->ctrls.handler; entity 218 drivers/media/platform/vsp1/vsp1_hgo.c vsp1_entity_destroy(&hgo->histo.entity); entity 35 drivers/media/platform/vsp1/vsp1_hgo.h return container_of(subdev, struct vsp1_hgo, histo.entity.subdev); entity 28 drivers/media/platform/vsp1/vsp1_hgt.c return vsp1_read(hgt->histo.entity.vsp1, reg); entity 41 drivers/media/platform/vsp1/vsp1_hgt.c void vsp1_hgt_frame_end(struct vsp1_entity *entity) entity 43 drivers/media/platform/vsp1/vsp1_hgt.c struct vsp1_hgt *hgt = to_hgt(&entity->subdev); entity 128 drivers/media/platform/vsp1/vsp1_hgt.c static void hgt_configure_stream(struct vsp1_entity *entity, entity 133 drivers/media/platform/vsp1/vsp1_hgt.c struct vsp1_hgt *hgt = to_hgt(&entity->subdev); entity 142 drivers/media/platform/vsp1/vsp1_hgt.c crop = vsp1_entity_get_pad_selection(entity, entity->config, entity 144 drivers/media/platform/vsp1/vsp1_hgt.c compose = vsp1_entity_get_pad_selection(entity, entity->config, entity 200 drivers/media/platform/vsp1/vsp1_hgt.c hgt->histo.entity.subdev.ctrl_handler = &hgt->ctrls; entity 208 drivers/media/platform/vsp1/vsp1_hgt.c vsp1_entity_destroy(&hgt->histo.entity); entity 32 drivers/media/platform/vsp1/vsp1_hgt.h return container_of(subdev, struct vsp1_hgt, histo.entity.subdev); entity 60 drivers/media/platform/vsp1/vsp1_histo.c struct vsp1_pipeline *pipe = histo->entity.pipe; entity 212 drivers/media/platform/vsp1/vsp1_histo.c mutex_lock(&histo->entity.lock); entity 214 drivers/media/platform/vsp1/vsp1_histo.c config = vsp1_entity_get_pad_config(&histo->entity, cfg, sel->which); entity 223 drivers/media/platform/vsp1/vsp1_histo.c crop = vsp1_entity_get_pad_selection(&histo->entity, config, entity 234 drivers/media/platform/vsp1/vsp1_histo.c format = vsp1_entity_get_pad_format(&histo->entity, config, entity 244 drivers/media/platform/vsp1/vsp1_histo.c sel->r = *vsp1_entity_get_pad_selection(&histo->entity, config, entity 254 drivers/media/platform/vsp1/vsp1_histo.c mutex_unlock(&histo->entity.lock); entity 267 drivers/media/platform/vsp1/vsp1_histo.c format = vsp1_entity_get_pad_format(&histo->entity, config, entity 277 drivers/media/platform/vsp1/vsp1_histo.c selection = vsp1_entity_get_pad_selection(&histo->entity, config, entity 281 drivers/media/platform/vsp1/vsp1_histo.c selection = vsp1_entity_get_pad_selection(&histo->entity, config, entity 306 drivers/media/platform/vsp1/vsp1_histo.c crop = vsp1_entity_get_pad_selection(&histo->entity, config, sel->pad, entity 332 drivers/media/platform/vsp1/vsp1_histo.c compose = vsp1_entity_get_pad_selection(&histo->entity, config, entity 351 drivers/media/platform/vsp1/vsp1_histo.c mutex_lock(&histo->entity.lock); entity 353 drivers/media/platform/vsp1/vsp1_histo.c config = vsp1_entity_get_pad_config(&histo->entity, cfg, sel->which); entity 367 drivers/media/platform/vsp1/vsp1_histo.c mutex_unlock(&histo->entity.lock); entity 433 drivers/media/platform/vsp1/vsp1_histo.c dev_name(histo->entity.vsp1->dev)); entity 504 drivers/media/platform/vsp1/vsp1_histo.c media_entity_cleanup(&histo->video.entity); entity 507 drivers/media/platform/vsp1/vsp1_histo.c void vsp1_histogram_destroy(struct vsp1_entity *entity) entity 509 drivers/media/platform/vsp1/vsp1_histo.c struct vsp1_histogram *histo = subdev_to_histo(&entity->subdev); entity 536 drivers/media/platform/vsp1/vsp1_histo.c histo->entity.ops = ops; entity 537 drivers/media/platform/vsp1/vsp1_histo.c histo->entity.type = type; entity 539 drivers/media/platform/vsp1/vsp1_histo.c ret = vsp1_entity_init(vsp1, &histo->entity, name, 2, &histo_ops, entity 545 drivers/media/platform/vsp1/vsp1_histo.c ret = media_entity_pads_init(&histo->video.entity, 1, &histo->pad); entity 553 drivers/media/platform/vsp1/vsp1_histo.c "%s histo", histo->entity.subdev.name); entity 35 drivers/media/platform/vsp1/vsp1_histo.h struct vsp1_entity entity; entity 61 drivers/media/platform/vsp1/vsp1_histo.h return container_of(subdev, struct vsp1_histogram, entity.subdev); entity 69 drivers/media/platform/vsp1/vsp1_histo.h void vsp1_histogram_destroy(struct vsp1_entity *entity); entity 72 drivers/media/platform/vsp1/vsp1_hsit.c mutex_lock(&hsit->entity.lock); entity 74 drivers/media/platform/vsp1/vsp1_hsit.c config = vsp1_entity_get_pad_config(&hsit->entity, cfg, fmt->which); entity 80 drivers/media/platform/vsp1/vsp1_hsit.c format = vsp1_entity_get_pad_format(&hsit->entity, config, fmt->pad); entity 103 drivers/media/platform/vsp1/vsp1_hsit.c format = vsp1_entity_get_pad_format(&hsit->entity, config, entity 110 drivers/media/platform/vsp1/vsp1_hsit.c mutex_unlock(&hsit->entity.lock); entity 130 drivers/media/platform/vsp1/vsp1_hsit.c static void hsit_configure_stream(struct vsp1_entity *entity, entity 135 drivers/media/platform/vsp1/vsp1_hsit.c struct vsp1_hsit *hsit = to_hsit(&entity->subdev); entity 162 drivers/media/platform/vsp1/vsp1_hsit.c hsit->entity.ops = &hsit_entity_ops; entity 165 drivers/media/platform/vsp1/vsp1_hsit.c hsit->entity.type = VSP1_ENTITY_HSI; entity 167 drivers/media/platform/vsp1/vsp1_hsit.c hsit->entity.type = VSP1_ENTITY_HST; entity 169 drivers/media/platform/vsp1/vsp1_hsit.c ret = vsp1_entity_init(vsp1, &hsit->entity, inverse ? "hsi" : "hst", entity 23 drivers/media/platform/vsp1/vsp1_hsit.h struct vsp1_entity entity; entity 29 drivers/media/platform/vsp1/vsp1_hsit.h return container_of(subdev, struct vsp1_hsit, entity.subdev); entity 29 drivers/media/platform/vsp1/vsp1_lif.c vsp1_dl_body_write(dlb, reg + lif->entity.index * VI6_LIF_OFFSET, entity 85 drivers/media/platform/vsp1/vsp1_lif.c static void lif_configure_stream(struct vsp1_entity *entity, entity 91 drivers/media/platform/vsp1/vsp1_lif.c struct vsp1_lif *lif = to_lif(&entity->subdev); entity 96 drivers/media/platform/vsp1/vsp1_lif.c format = vsp1_entity_get_pad_format(&lif->entity, lif->entity.config, entity 99 drivers/media/platform/vsp1/vsp1_lif.c switch (entity->vsp1->version & VI6_IP_VERSION_MODEL_MASK) { entity 137 drivers/media/platform/vsp1/vsp1_lif.c if ((entity->vsp1->version & VI6_IP_VERSION_MASK) == entity 161 drivers/media/platform/vsp1/vsp1_lif.c lif->entity.ops = &lif_entity_ops; entity 162 drivers/media/platform/vsp1/vsp1_lif.c lif->entity.type = VSP1_ENTITY_LIF; entity 163 drivers/media/platform/vsp1/vsp1_lif.c lif->entity.index = index; entity 170 drivers/media/platform/vsp1/vsp1_lif.c ret = vsp1_entity_init(vsp1, &lif->entity, "lif", 2, &lif_ops, entity 23 drivers/media/platform/vsp1/vsp1_lif.h struct vsp1_entity entity; entity 28 drivers/media/platform/vsp1/vsp1_lif.h return container_of(subdev, struct vsp1_lif, entity.subdev); entity 148 drivers/media/platform/vsp1/vsp1_lut.c static void lut_configure_stream(struct vsp1_entity *entity, entity 153 drivers/media/platform/vsp1/vsp1_lut.c struct vsp1_lut *lut = to_lut(&entity->subdev); entity 158 drivers/media/platform/vsp1/vsp1_lut.c static void lut_configure_frame(struct vsp1_entity *entity, entity 163 drivers/media/platform/vsp1/vsp1_lut.c struct vsp1_lut *lut = to_lut(&entity->subdev); entity 180 drivers/media/platform/vsp1/vsp1_lut.c static void lut_destroy(struct vsp1_entity *entity) entity 182 drivers/media/platform/vsp1/vsp1_lut.c struct vsp1_lut *lut = to_lut(&entity->subdev); entity 208 drivers/media/platform/vsp1/vsp1_lut.c lut->entity.ops = &lut_entity_ops; entity 209 drivers/media/platform/vsp1/vsp1_lut.c lut->entity.type = VSP1_ENTITY_LUT; entity 211 drivers/media/platform/vsp1/vsp1_lut.c ret = vsp1_entity_init(vsp1, &lut->entity, "lut", 2, &lut_ops, entity 229 drivers/media/platform/vsp1/vsp1_lut.c lut->entity.subdev.ctrl_handler = &lut->ctrls; entity 234 drivers/media/platform/vsp1/vsp1_lut.c vsp1_entity_destroy(&lut->entity); entity 26 drivers/media/platform/vsp1/vsp1_lut.h struct vsp1_entity entity; entity 37 drivers/media/platform/vsp1/vsp1_lut.h return container_of(subdev, struct vsp1_lut, entity.subdev); entity 246 drivers/media/platform/vsp1/vsp1_pipe.c struct vsp1_entity *entity; entity 261 drivers/media/platform/vsp1/vsp1_pipe.c list_for_each_entry(entity, &pipe->entities, list_pipe) entity 262 drivers/media/platform/vsp1/vsp1_pipe.c entity->pipe = NULL; entity 289 drivers/media/platform/vsp1/vsp1_pipe.c struct vsp1_device *vsp1 = pipe->output->entity.vsp1; entity 292 drivers/media/platform/vsp1/vsp1_pipe.c vsp1_write(vsp1, VI6_CMD(pipe->output->entity.index), entity 314 drivers/media/platform/vsp1/vsp1_pipe.c struct vsp1_device *vsp1 = pipe->output->entity.vsp1; entity 315 drivers/media/platform/vsp1/vsp1_pipe.c struct vsp1_entity *entity; entity 324 drivers/media/platform/vsp1/vsp1_pipe.c ret = vsp1_reset_wpf(vsp1, pipe->output->entity.index); entity 342 drivers/media/platform/vsp1/vsp1_pipe.c list_for_each_entry(entity, &pipe->entities, list_pipe) { entity 343 drivers/media/platform/vsp1/vsp1_pipe.c if (entity->route && entity->route->reg) entity 344 drivers/media/platform/vsp1/vsp1_pipe.c vsp1_write(vsp1, entity->route->reg, entity 358 drivers/media/platform/vsp1/vsp1_pipe.c v4l2_subdev_call(&pipe->output->entity.subdev, video, s_stream, 0); entity 442 drivers/media/platform/vsp1/vsp1_pipe.c struct vsp1_entity *entity; entity 444 drivers/media/platform/vsp1/vsp1_pipe.c list_for_each_entry_reverse(entity, &pipe->entities, list_pipe) { entity 445 drivers/media/platform/vsp1/vsp1_pipe.c if (entity->ops->partition) entity 446 drivers/media/platform/vsp1/vsp1_pipe.c entity->ops->partition(entity, pipe, partition, index, entity 42 drivers/media/platform/vsp1/vsp1_rpf.c vsp1_dl_body_write(dlb, reg + rpf->entity.index * VI6_RPF_OFFSET, entity 58 drivers/media/platform/vsp1/vsp1_rpf.c static void rpf_configure_stream(struct vsp1_entity *entity, entity 63 drivers/media/platform/vsp1/vsp1_rpf.c struct vsp1_rwpf *rpf = to_rwpf(&entity->subdev); entity 91 drivers/media/platform/vsp1/vsp1_rpf.c sink_format = vsp1_entity_get_pad_format(&rpf->entity, entity 92 drivers/media/platform/vsp1/vsp1_rpf.c rpf->entity.config, entity 94 drivers/media/platform/vsp1/vsp1_rpf.c source_format = vsp1_entity_get_pad_format(&rpf->entity, entity 95 drivers/media/platform/vsp1/vsp1_rpf.c rpf->entity.config, entity 158 drivers/media/platform/vsp1/vsp1_rpf.c if (entity->vsp1->info->gen == 3) { entity 210 drivers/media/platform/vsp1/vsp1_rpf.c auto_fld = &auto_fld[rpf->entity.index]; entity 223 drivers/media/platform/vsp1/vsp1_rpf.c cmd->flags |= VI6_DL_EXT_AUTOFLD_INT | BIT(16 + rpf->entity.index); entity 226 drivers/media/platform/vsp1/vsp1_rpf.c static void rpf_configure_frame(struct vsp1_entity *entity, entity 231 drivers/media/platform/vsp1/vsp1_rpf.c struct vsp1_rwpf *rpf = to_rwpf(&entity->subdev); entity 241 drivers/media/platform/vsp1/vsp1_rpf.c static void rpf_configure_partition(struct vsp1_entity *entity, entity 246 drivers/media/platform/vsp1/vsp1_rpf.c struct vsp1_rwpf *rpf = to_rwpf(&entity->subdev); entity 248 drivers/media/platform/vsp1/vsp1_rpf.c struct vsp1_device *vsp1 = rpf->entity.vsp1; entity 261 drivers/media/platform/vsp1/vsp1_rpf.c crop = *vsp1_rwpf_get_crop(rpf, rpf->entity.config); entity 324 drivers/media/platform/vsp1/vsp1_rpf.c static void rpf_partition(struct vsp1_entity *entity, entity 357 drivers/media/platform/vsp1/vsp1_rpf.c rpf->entity.ops = &rpf_entity_ops; entity 358 drivers/media/platform/vsp1/vsp1_rpf.c rpf->entity.type = VSP1_ENTITY_RPF; entity 359 drivers/media/platform/vsp1/vsp1_rpf.c rpf->entity.index = index; entity 362 drivers/media/platform/vsp1/vsp1_rpf.c ret = vsp1_entity_init(vsp1, &rpf->entity, name, 2, &rpf_ops, entity 380 drivers/media/platform/vsp1/vsp1_rpf.c vsp1_entity_destroy(&rpf->entity); entity 22 drivers/media/platform/vsp1/vsp1_rwpf.c return v4l2_subdev_get_try_crop(&rwpf->entity.subdev, config, entity 68 drivers/media/platform/vsp1/vsp1_rwpf.c mutex_lock(&rwpf->entity.lock); entity 70 drivers/media/platform/vsp1/vsp1_rwpf.c config = vsp1_entity_get_pad_config(&rwpf->entity, cfg, fmt->which); entity 82 drivers/media/platform/vsp1/vsp1_rwpf.c format = vsp1_entity_get_pad_format(&rwpf->entity, config, fmt->pad); entity 104 drivers/media/platform/vsp1/vsp1_rwpf.c if (rwpf->entity.type == VSP1_ENTITY_RPF) { entity 116 drivers/media/platform/vsp1/vsp1_rwpf.c format = vsp1_entity_get_pad_format(&rwpf->entity, config, entity 126 drivers/media/platform/vsp1/vsp1_rwpf.c mutex_unlock(&rwpf->entity.lock); entity 143 drivers/media/platform/vsp1/vsp1_rwpf.c if (rwpf->entity.type == VSP1_ENTITY_WPF || sel->pad != RWPF_PAD_SINK) entity 146 drivers/media/platform/vsp1/vsp1_rwpf.c mutex_lock(&rwpf->entity.lock); entity 148 drivers/media/platform/vsp1/vsp1_rwpf.c config = vsp1_entity_get_pad_config(&rwpf->entity, cfg, sel->which); entity 160 drivers/media/platform/vsp1/vsp1_rwpf.c format = vsp1_entity_get_pad_format(&rwpf->entity, config, entity 174 drivers/media/platform/vsp1/vsp1_rwpf.c mutex_unlock(&rwpf->entity.lock); entity 192 drivers/media/platform/vsp1/vsp1_rwpf.c if (rwpf->entity.type == VSP1_ENTITY_WPF || sel->pad != RWPF_PAD_SINK) entity 198 drivers/media/platform/vsp1/vsp1_rwpf.c mutex_lock(&rwpf->entity.lock); entity 200 drivers/media/platform/vsp1/vsp1_rwpf.c config = vsp1_entity_get_pad_config(&rwpf->entity, cfg, sel->which); entity 207 drivers/media/platform/vsp1/vsp1_rwpf.c format = vsp1_entity_get_pad_format(&rwpf->entity, config, entity 232 drivers/media/platform/vsp1/vsp1_rwpf.c format = vsp1_entity_get_pad_format(&rwpf->entity, config, entity 238 drivers/media/platform/vsp1/vsp1_rwpf.c mutex_unlock(&rwpf->entity.lock); entity 280 drivers/media/platform/vsp1/vsp1_rwpf.c rwpf->entity.subdev.ctrl_handler = &rwpf->ctrls; entity 34 drivers/media/platform/vsp1/vsp1_rwpf.h struct vsp1_entity entity; entity 71 drivers/media/platform/vsp1/vsp1_rwpf.h return container_of(subdev, struct vsp1_rwpf, entity.subdev); entity 74 drivers/media/platform/vsp1/vsp1_rwpf.h static inline struct vsp1_rwpf *entity_to_rwpf(struct vsp1_entity *entity) entity 76 drivers/media/platform/vsp1/vsp1_rwpf.h return container_of(entity, struct vsp1_rwpf, entity); entity 130 drivers/media/platform/vsp1/vsp1_sru.c config = vsp1_entity_get_pad_config(&sru->entity, cfg, fse->which); entity 134 drivers/media/platform/vsp1/vsp1_sru.c format = vsp1_entity_get_pad_format(&sru->entity, config, SRU_PAD_SINK); entity 136 drivers/media/platform/vsp1/vsp1_sru.c mutex_lock(&sru->entity.lock); entity 162 drivers/media/platform/vsp1/vsp1_sru.c mutex_unlock(&sru->entity.lock); entity 187 drivers/media/platform/vsp1/vsp1_sru.c format = vsp1_entity_get_pad_format(&sru->entity, config, entity 227 drivers/media/platform/vsp1/vsp1_sru.c mutex_lock(&sru->entity.lock); entity 229 drivers/media/platform/vsp1/vsp1_sru.c config = vsp1_entity_get_pad_config(&sru->entity, cfg, fmt->which); entity 237 drivers/media/platform/vsp1/vsp1_sru.c format = vsp1_entity_get_pad_format(&sru->entity, config, fmt->pad); entity 242 drivers/media/platform/vsp1/vsp1_sru.c format = vsp1_entity_get_pad_format(&sru->entity, config, entity 250 drivers/media/platform/vsp1/vsp1_sru.c mutex_unlock(&sru->entity.lock); entity 270 drivers/media/platform/vsp1/vsp1_sru.c static void sru_configure_stream(struct vsp1_entity *entity, entity 276 drivers/media/platform/vsp1/vsp1_sru.c struct vsp1_sru *sru = to_sru(&entity->subdev); entity 281 drivers/media/platform/vsp1/vsp1_sru.c input = vsp1_entity_get_pad_format(&sru->entity, sru->entity.config, entity 283 drivers/media/platform/vsp1/vsp1_sru.c output = vsp1_entity_get_pad_format(&sru->entity, sru->entity.config, entity 304 drivers/media/platform/vsp1/vsp1_sru.c static unsigned int sru_max_width(struct vsp1_entity *entity, entity 307 drivers/media/platform/vsp1/vsp1_sru.c struct vsp1_sru *sru = to_sru(&entity->subdev); entity 311 drivers/media/platform/vsp1/vsp1_sru.c input = vsp1_entity_get_pad_format(&sru->entity, sru->entity.config, entity 313 drivers/media/platform/vsp1/vsp1_sru.c output = vsp1_entity_get_pad_format(&sru->entity, sru->entity.config, entity 327 drivers/media/platform/vsp1/vsp1_sru.c static void sru_partition(struct vsp1_entity *entity, entity 333 drivers/media/platform/vsp1/vsp1_sru.c struct vsp1_sru *sru = to_sru(&entity->subdev); entity 337 drivers/media/platform/vsp1/vsp1_sru.c input = vsp1_entity_get_pad_format(&sru->entity, sru->entity.config, entity 339 drivers/media/platform/vsp1/vsp1_sru.c output = vsp1_entity_get_pad_format(&sru->entity, sru->entity.config, entity 370 drivers/media/platform/vsp1/vsp1_sru.c sru->entity.ops = &sru_entity_ops; entity 371 drivers/media/platform/vsp1/vsp1_sru.c sru->entity.type = VSP1_ENTITY_SRU; entity 373 drivers/media/platform/vsp1/vsp1_sru.c ret = vsp1_entity_init(vsp1, &sru->entity, "sru", 2, &sru_ops, entity 384 drivers/media/platform/vsp1/vsp1_sru.c sru->entity.subdev.ctrl_handler = &sru->ctrls; entity 389 drivers/media/platform/vsp1/vsp1_sru.c vsp1_entity_destroy(&sru->entity); entity 24 drivers/media/platform/vsp1/vsp1_sru.h struct vsp1_entity entity; entity 33 drivers/media/platform/vsp1/vsp1_sru.h return container_of(subdev, struct vsp1_sru, entity.subdev); entity 33 drivers/media/platform/vsp1/vsp1_uds.c vsp1_dl_body_write(dlb, reg + uds->entity.index * VI6_UDS_OFFSET, data); entity 40 drivers/media/platform/vsp1/vsp1_uds.c void vsp1_uds_set_alpha(struct vsp1_entity *entity, struct vsp1_dl_body *dlb, entity 43 drivers/media/platform/vsp1/vsp1_uds.c struct vsp1_uds *uds = to_uds(&entity->subdev); entity 135 drivers/media/platform/vsp1/vsp1_uds.c config = vsp1_entity_get_pad_config(&uds->entity, cfg, fse->which); entity 139 drivers/media/platform/vsp1/vsp1_uds.c format = vsp1_entity_get_pad_format(&uds->entity, config, entity 142 drivers/media/platform/vsp1/vsp1_uds.c mutex_lock(&uds->entity.lock); entity 162 drivers/media/platform/vsp1/vsp1_uds.c mutex_unlock(&uds->entity.lock); entity 187 drivers/media/platform/vsp1/vsp1_uds.c format = vsp1_entity_get_pad_format(&uds->entity, config, entity 211 drivers/media/platform/vsp1/vsp1_uds.c mutex_lock(&uds->entity.lock); entity 213 drivers/media/platform/vsp1/vsp1_uds.c config = vsp1_entity_get_pad_config(&uds->entity, cfg, fmt->which); entity 221 drivers/media/platform/vsp1/vsp1_uds.c format = vsp1_entity_get_pad_format(&uds->entity, config, fmt->pad); entity 226 drivers/media/platform/vsp1/vsp1_uds.c format = vsp1_entity_get_pad_format(&uds->entity, config, entity 234 drivers/media/platform/vsp1/vsp1_uds.c mutex_unlock(&uds->entity.lock); entity 258 drivers/media/platform/vsp1/vsp1_uds.c static void uds_configure_stream(struct vsp1_entity *entity, entity 263 drivers/media/platform/vsp1/vsp1_uds.c struct vsp1_uds *uds = to_uds(&entity->subdev); entity 270 drivers/media/platform/vsp1/vsp1_uds.c input = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, entity 272 drivers/media/platform/vsp1/vsp1_uds.c output = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, entity 278 drivers/media/platform/vsp1/vsp1_uds.c dev_dbg(uds->entity.vsp1->dev, "hscale %u vscale %u\n", hscale, vscale); entity 306 drivers/media/platform/vsp1/vsp1_uds.c static void uds_configure_partition(struct vsp1_entity *entity, entity 311 drivers/media/platform/vsp1/vsp1_uds.c struct vsp1_uds *uds = to_uds(&entity->subdev); entity 315 drivers/media/platform/vsp1/vsp1_uds.c output = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, entity 332 drivers/media/platform/vsp1/vsp1_uds.c static unsigned int uds_max_width(struct vsp1_entity *entity, entity 335 drivers/media/platform/vsp1/vsp1_uds.c struct vsp1_uds *uds = to_uds(&entity->subdev); entity 340 drivers/media/platform/vsp1/vsp1_uds.c input = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, entity 342 drivers/media/platform/vsp1/vsp1_uds.c output = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, entity 368 drivers/media/platform/vsp1/vsp1_uds.c static void uds_partition(struct vsp1_entity *entity, entity 374 drivers/media/platform/vsp1/vsp1_uds.c struct vsp1_uds *uds = to_uds(&entity->subdev); entity 382 drivers/media/platform/vsp1/vsp1_uds.c input = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, entity 384 drivers/media/platform/vsp1/vsp1_uds.c output = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, entity 416 drivers/media/platform/vsp1/vsp1_uds.c uds->entity.ops = &uds_entity_ops; entity 417 drivers/media/platform/vsp1/vsp1_uds.c uds->entity.type = VSP1_ENTITY_UDS; entity 418 drivers/media/platform/vsp1/vsp1_uds.c uds->entity.index = index; entity 421 drivers/media/platform/vsp1/vsp1_uds.c ret = vsp1_entity_init(vsp1, &uds->entity, name, 2, &uds_ops, entity 23 drivers/media/platform/vsp1/vsp1_uds.h struct vsp1_entity entity; entity 29 drivers/media/platform/vsp1/vsp1_uds.h return container_of(subdev, struct vsp1_uds, entity.subdev); entity 31 drivers/media/platform/vsp1/vsp1_uif.c return vsp1_read(uif->entity.vsp1, entity 32 drivers/media/platform/vsp1/vsp1_uif.c uif->entity.index * VI6_UIF_OFFSET + reg); entity 38 drivers/media/platform/vsp1/vsp1_uif.c vsp1_dl_body_write(dlb, reg + uif->entity.index * VI6_UIF_OFFSET, data); entity 95 drivers/media/platform/vsp1/vsp1_uif.c mutex_lock(&uif->entity.lock); entity 97 drivers/media/platform/vsp1/vsp1_uif.c config = vsp1_entity_get_pad_config(&uif->entity, cfg, sel->which); entity 106 drivers/media/platform/vsp1/vsp1_uif.c format = vsp1_entity_get_pad_format(&uif->entity, config, entity 115 drivers/media/platform/vsp1/vsp1_uif.c sel->r = *vsp1_entity_get_pad_selection(&uif->entity, config, entity 125 drivers/media/platform/vsp1/vsp1_uif.c mutex_unlock(&uif->entity.lock); entity 143 drivers/media/platform/vsp1/vsp1_uif.c mutex_lock(&uif->entity.lock); entity 145 drivers/media/platform/vsp1/vsp1_uif.c config = vsp1_entity_get_pad_config(&uif->entity, cfg, sel->which); entity 152 drivers/media/platform/vsp1/vsp1_uif.c format = vsp1_entity_get_pad_format(&uif->entity, config, UIF_PAD_SINK); entity 162 drivers/media/platform/vsp1/vsp1_uif.c selection = vsp1_entity_get_pad_selection(&uif->entity, config, entity 167 drivers/media/platform/vsp1/vsp1_uif.c mutex_unlock(&uif->entity.lock); entity 193 drivers/media/platform/vsp1/vsp1_uif.c static void uif_configure_stream(struct vsp1_entity *entity, entity 198 drivers/media/platform/vsp1/vsp1_uif.c struct vsp1_uif *uif = to_uif(&entity->subdev); entity 206 drivers/media/platform/vsp1/vsp1_uif.c crop = vsp1_entity_get_pad_selection(entity, entity->config, entity 253 drivers/media/platform/vsp1/vsp1_uif.c uif->entity.ops = &uif_entity_ops; entity 254 drivers/media/platform/vsp1/vsp1_uif.c uif->entity.type = VSP1_ENTITY_UIF; entity 255 drivers/media/platform/vsp1/vsp1_uif.c uif->entity.index = index; entity 259 drivers/media/platform/vsp1/vsp1_uif.c ret = vsp1_entity_init(vsp1, &uif->entity, name, 2, &uif_ops, entity 20 drivers/media/platform/vsp1/vsp1_uif.h struct vsp1_entity entity; entity 26 drivers/media/platform/vsp1/vsp1_uif.h return container_of(subdev, struct vsp1_uif, entity.subdev); entity 54 drivers/media/platform/vsp1/vsp1_video.c if (!remote || !is_media_entity_v4l2_subdev(remote->entity)) entity 60 drivers/media/platform/vsp1/vsp1_video.c return media_entity_to_v4l2_subdev(remote->entity); entity 199 drivers/media/platform/vsp1/vsp1_video.c format = vsp1_entity_get_pad_format(&pipe->output->entity, entity 200 drivers/media/platform/vsp1/vsp1_video.c pipe->output->entity.config, entity 254 drivers/media/platform/vsp1/vsp1_video.c struct vsp1_device *vsp1 = pipe->output->entity.vsp1; entity 256 drivers/media/platform/vsp1/vsp1_video.c struct vsp1_entity *entity; entity 264 drivers/media/platform/vsp1/vsp1_video.c format = vsp1_entity_get_pad_format(&pipe->output->entity, entity 265 drivers/media/platform/vsp1/vsp1_video.c pipe->output->entity.config, entity 274 drivers/media/platform/vsp1/vsp1_video.c list_for_each_entry(entity, &pipe->entities, list_pipe) { entity 277 drivers/media/platform/vsp1/vsp1_video.c if (!entity->ops->max_width) entity 280 drivers/media/platform/vsp1/vsp1_video.c entity_max = entity->ops->max_width(entity, pipe); entity 315 drivers/media/platform/vsp1/vsp1_video.c struct vsp1_pipeline *pipe = video->rwpf->entity.pipe; entity 368 drivers/media/platform/vsp1/vsp1_video.c struct vsp1_entity *entity; entity 372 drivers/media/platform/vsp1/vsp1_video.c list_for_each_entry(entity, &pipe->entities, list_pipe) entity 373 drivers/media/platform/vsp1/vsp1_video.c vsp1_entity_configure_partition(entity, pipe, dl, dlb); entity 378 drivers/media/platform/vsp1/vsp1_video.c struct vsp1_device *vsp1 = pipe->output->entity.vsp1; entity 379 drivers/media/platform/vsp1/vsp1_video.c struct vsp1_entity *entity; entity 397 drivers/media/platform/vsp1/vsp1_video.c list_for_each_entry(entity, &pipe->entities, list_pipe) entity 398 drivers/media/platform/vsp1/vsp1_video.c vsp1_entity_configure_frame(entity, pipe, dl, dlb); entity 433 drivers/media/platform/vsp1/vsp1_video.c struct vsp1_device *vsp1 = pipe->output->entity.vsp1; entity 473 drivers/media/platform/vsp1/vsp1_video.c struct vsp1_entity *entity; entity 478 drivers/media/platform/vsp1/vsp1_video.c ret = media_entity_enum_init(&ent_enum, &input->entity.vsp1->media_dev); entity 487 drivers/media/platform/vsp1/vsp1_video.c pad = vsp1_entity_remote_pad(&input->entity.pads[RWPF_PAD_SOURCE]); entity 496 drivers/media/platform/vsp1/vsp1_video.c if (!is_media_entity_v4l2_subdev(pad->entity)) { entity 501 drivers/media/platform/vsp1/vsp1_video.c entity = to_vsp1_entity( entity 502 drivers/media/platform/vsp1/vsp1_video.c media_entity_to_v4l2_subdev(pad->entity)); entity 508 drivers/media/platform/vsp1/vsp1_video.c if (entity->type == VSP1_ENTITY_BRU || entity 509 drivers/media/platform/vsp1/vsp1_video.c entity->type == VSP1_ENTITY_BRS) { entity 516 drivers/media/platform/vsp1/vsp1_video.c brx = to_brx(&entity->subdev); entity 522 drivers/media/platform/vsp1/vsp1_video.c if (entity->type == VSP1_ENTITY_WPF) entity 527 drivers/media/platform/vsp1/vsp1_video.c &entity->subdev.entity)) { entity 533 drivers/media/platform/vsp1/vsp1_video.c if (entity->type == VSP1_ENTITY_UDS) { entity 539 drivers/media/platform/vsp1/vsp1_video.c pipe->uds = entity; entity 540 drivers/media/platform/vsp1/vsp1_video.c pipe->uds_input = brx ? &brx->entity : &input->entity; entity 544 drivers/media/platform/vsp1/vsp1_video.c pad = &entity->pads[entity->source_pad]; entity 549 drivers/media/platform/vsp1/vsp1_video.c if (entity != &output->entity) entity 562 drivers/media/platform/vsp1/vsp1_video.c struct media_entity *entity = &video->video.entity; entity 563 drivers/media/platform/vsp1/vsp1_video.c struct media_device *mdev = entity->graph_obj.mdev; entity 572 drivers/media/platform/vsp1/vsp1_video.c media_graph_walk_start(&graph, entity); entity 574 drivers/media/platform/vsp1/vsp1_video.c while ((entity = media_graph_walk_next(&graph))) { entity 579 drivers/media/platform/vsp1/vsp1_video.c if (!is_media_entity_v4l2_subdev(entity)) entity 582 drivers/media/platform/vsp1/vsp1_video.c subdev = media_entity_to_v4l2_subdev(entity); entity 590 drivers/media/platform/vsp1/vsp1_video.c pipe->inputs[rwpf->entity.index] = rwpf; entity 666 drivers/media/platform/vsp1/vsp1_video.c if (!video->rwpf->entity.pipe) { entity 678 drivers/media/platform/vsp1/vsp1_video.c pipe = video->rwpf->entity.pipe; entity 695 drivers/media/platform/vsp1/vsp1_video.c struct media_device *mdev = &pipe->output->entity.vsp1->media_dev; entity 761 drivers/media/platform/vsp1/vsp1_video.c struct vsp1_pipeline *pipe = video->rwpf->entity.pipe; entity 788 drivers/media/platform/vsp1/vsp1_video.c struct vsp1_entity *entity; entity 826 drivers/media/platform/vsp1/vsp1_video.c list_for_each_entry(entity, &pipe->entities, list_pipe) { entity 827 drivers/media/platform/vsp1/vsp1_video.c vsp1_entity_route_setup(entity, pipe, pipe->stream_config); entity 828 drivers/media/platform/vsp1/vsp1_video.c vsp1_entity_configure_stream(entity, pipe, NULL, entity 865 drivers/media/platform/vsp1/vsp1_video.c struct vsp1_pipeline *pipe = video->rwpf->entity.pipe; entity 907 drivers/media/platform/vsp1/vsp1_video.c struct vsp1_pipeline *pipe = video->rwpf->entity.pipe; entity 930 drivers/media/platform/vsp1/vsp1_video.c media_pipeline_stop(&video->video.entity); entity 1051 drivers/media/platform/vsp1/vsp1_video.c ret = __media_pipeline_start(&video->video.entity, &pipe->pipe); entity 1075 drivers/media/platform/vsp1/vsp1_video.c media_pipeline_stop(&video->video.entity); entity 1181 drivers/media/platform/vsp1/vsp1_video.c pipe = wpf->entity.pipe; entity 1198 drivers/media/platform/vsp1/vsp1_video.c pipe = wpf->entity.pipe; entity 1206 drivers/media/platform/vsp1/vsp1_video.c wpf->entity.index); entity 1223 drivers/media/platform/vsp1/vsp1_video.c pipe = wpf->entity.pipe; entity 1260 drivers/media/platform/vsp1/vsp1_video.c if (rwpf->entity.type == VSP1_ENTITY_RPF) { entity 1281 drivers/media/platform/vsp1/vsp1_video.c ret = media_entity_pads_init(&video->video.entity, 1, &video->pad); entity 1295 drivers/media/platform/vsp1/vsp1_video.c rwpf->entity.subdev.name, direction); entity 1337 drivers/media/platform/vsp1/vsp1_video.c media_entity_cleanup(&video->video.entity); entity 32 drivers/media/platform/vsp1/vsp1_wpf.c vsp1_dl_body_write(dlb, reg + wpf->entity.index * VI6_WPF_OFFSET, data); entity 68 drivers/media/platform/vsp1/vsp1_wpf.c sink_format = vsp1_entity_get_pad_format(&wpf->entity, entity 69 drivers/media/platform/vsp1/vsp1_wpf.c wpf->entity.config, entity 71 drivers/media/platform/vsp1/vsp1_wpf.c source_format = vsp1_entity_get_pad_format(&wpf->entity, entity 72 drivers/media/platform/vsp1/vsp1_wpf.c wpf->entity.config, entity 75 drivers/media/platform/vsp1/vsp1_wpf.c mutex_lock(&wpf->entity.lock); entity 87 drivers/media/platform/vsp1/vsp1_wpf.c mutex_unlock(&wpf->entity.lock); entity 136 drivers/media/platform/vsp1/vsp1_wpf.c struct vsp1_device *vsp1 = wpf->entity.vsp1; entity 141 drivers/media/platform/vsp1/vsp1_wpf.c if (wpf->entity.index != 0) { entity 181 drivers/media/platform/vsp1/vsp1_wpf.c wpf->entity.index); entity 195 drivers/media/platform/vsp1/vsp1_wpf.c struct vsp1_device *vsp1 = wpf->entity.vsp1; entity 204 drivers/media/platform/vsp1/vsp1_wpf.c vsp1_write(vsp1, VI6_WPF_IRQ_ENB(wpf->entity.index), 0); entity 205 drivers/media/platform/vsp1/vsp1_wpf.c vsp1_write(vsp1, wpf->entity.index * VI6_WPF_OFFSET + entity 228 drivers/media/platform/vsp1/vsp1_wpf.c static void vsp1_wpf_destroy(struct vsp1_entity *entity) entity 230 drivers/media/platform/vsp1/vsp1_wpf.c struct vsp1_rwpf *wpf = entity_to_rwpf(entity); entity 238 drivers/media/platform/vsp1/vsp1_wpf.c unsigned int index = wpf->entity.index; entity 244 drivers/media/platform/vsp1/vsp1_wpf.c dev_err(wpf->entity.vsp1->dev, entity 256 drivers/media/platform/vsp1/vsp1_wpf.c static void wpf_configure_stream(struct vsp1_entity *entity, entity 261 drivers/media/platform/vsp1/vsp1_wpf.c struct vsp1_rwpf *wpf = to_rwpf(&entity->subdev); entity 262 drivers/media/platform/vsp1/vsp1_wpf.c struct vsp1_device *vsp1 = wpf->entity.vsp1; entity 265 drivers/media/platform/vsp1/vsp1_wpf.c unsigned int index = wpf->entity.index; entity 271 drivers/media/platform/vsp1/vsp1_wpf.c sink_format = vsp1_entity_get_pad_format(&wpf->entity, entity 272 drivers/media/platform/vsp1/vsp1_wpf.c wpf->entity.config, entity 274 drivers/media/platform/vsp1/vsp1_wpf.c source_format = vsp1_entity_get_pad_format(&wpf->entity, entity 275 drivers/media/platform/vsp1/vsp1_wpf.c wpf->entity.config, entity 331 drivers/media/platform/vsp1/vsp1_wpf.c ? VI6_WPF_SRCRPF_RPF_ACT_MST(input->entity.index) entity 332 drivers/media/platform/vsp1/vsp1_wpf.c : VI6_WPF_SRCRPF_RPF_ACT_SUB(input->entity.index); entity 365 drivers/media/platform/vsp1/vsp1_wpf.c static void wpf_configure_frame(struct vsp1_entity *entity, entity 372 drivers/media/platform/vsp1/vsp1_wpf.c struct vsp1_rwpf *wpf = to_rwpf(&entity->subdev); entity 391 drivers/media/platform/vsp1/vsp1_wpf.c static void wpf_configure_partition(struct vsp1_entity *entity, entity 396 drivers/media/platform/vsp1/vsp1_wpf.c struct vsp1_rwpf *wpf = to_rwpf(&entity->subdev); entity 397 drivers/media/platform/vsp1/vsp1_wpf.c struct vsp1_device *vsp1 = wpf->entity.vsp1; entity 409 drivers/media/platform/vsp1/vsp1_wpf.c sink_format = vsp1_entity_get_pad_format(&wpf->entity, entity 410 drivers/media/platform/vsp1/vsp1_wpf.c wpf->entity.config, entity 533 drivers/media/platform/vsp1/vsp1_wpf.c static unsigned int wpf_max_width(struct vsp1_entity *entity, entity 536 drivers/media/platform/vsp1/vsp1_wpf.c struct vsp1_rwpf *wpf = to_rwpf(&entity->subdev); entity 541 drivers/media/platform/vsp1/vsp1_wpf.c static void wpf_partition(struct vsp1_entity *entity, entity 581 drivers/media/platform/vsp1/vsp1_wpf.c wpf->entity.ops = &wpf_entity_ops; entity 582 drivers/media/platform/vsp1/vsp1_wpf.c wpf->entity.type = VSP1_ENTITY_WPF; entity 583 drivers/media/platform/vsp1/vsp1_wpf.c wpf->entity.index = index; entity 586 drivers/media/platform/vsp1/vsp1_wpf.c ret = vsp1_entity_init(vsp1, &wpf->entity, name, 2, &wpf_ops, entity 611 drivers/media/platform/vsp1/vsp1_wpf.c vsp1_entity_destroy(&wpf->entity); entity 49 drivers/media/platform/xilinx/xilinx-dma.c if (!remote || !is_media_entity_v4l2_subdev(remote->entity)) entity 55 drivers/media/platform/xilinx/xilinx-dma.c return media_entity_to_v4l2_subdev(remote->entity); entity 100 drivers/media/platform/xilinx/xilinx-dma.c struct media_entity *entity; entity 105 drivers/media/platform/xilinx/xilinx-dma.c entity = &dma->video.entity; entity 107 drivers/media/platform/xilinx/xilinx-dma.c pad = &entity->pads[0]; entity 112 drivers/media/platform/xilinx/xilinx-dma.c if (!pad || !is_media_entity_v4l2_subdev(pad->entity)) entity 115 drivers/media/platform/xilinx/xilinx-dma.c entity = pad->entity; entity 116 drivers/media/platform/xilinx/xilinx-dma.c subdev = media_entity_to_v4l2_subdev(entity); entity 178 drivers/media/platform/xilinx/xilinx-dma.c struct media_entity *entity = &start->video.entity; entity 179 drivers/media/platform/xilinx/xilinx-dma.c struct media_device *mdev = entity->graph_obj.mdev; entity 193 drivers/media/platform/xilinx/xilinx-dma.c media_graph_walk_start(&graph, entity); entity 195 drivers/media/platform/xilinx/xilinx-dma.c while ((entity = media_graph_walk_next(&graph))) { entity 198 drivers/media/platform/xilinx/xilinx-dma.c if (entity->function != MEDIA_ENT_F_IO_V4L) entity 201 drivers/media/platform/xilinx/xilinx-dma.c dma = to_xvip_dma(media_entity_to_video_device(entity)); entity 406 drivers/media/platform/xilinx/xilinx-dma.c pipe = dma->video.entity.pipe entity 407 drivers/media/platform/xilinx/xilinx-dma.c ? to_xvip_pipeline(&dma->video.entity) : &dma->pipe; entity 409 drivers/media/platform/xilinx/xilinx-dma.c ret = media_pipeline_start(&dma->video.entity, &pipe->pipe); entity 435 drivers/media/platform/xilinx/xilinx-dma.c media_pipeline_stop(&dma->video.entity); entity 452 drivers/media/platform/xilinx/xilinx-dma.c struct xvip_pipeline *pipe = to_xvip_pipeline(&dma->video.entity); entity 463 drivers/media/platform/xilinx/xilinx-dma.c media_pipeline_stop(&dma->video.entity); entity 676 drivers/media/platform/xilinx/xilinx-dma.c ret = media_entity_pads_init(&dma->video.entity, 1, &dma->pad); entity 758 drivers/media/platform/xilinx/xilinx-dma.c media_entity_cleanup(&dma->video.entity); entity 836 drivers/media/platform/xilinx/xilinx-tpg.c subdev->entity.ops = &xtpg_media_ops; entity 838 drivers/media/platform/xilinx/xilinx-tpg.c ret = media_entity_pads_init(&subdev->entity, xtpg->npads, xtpg->pads); entity 887 drivers/media/platform/xilinx/xilinx-tpg.c media_entity_cleanup(&subdev->entity); entity 901 drivers/media/platform/xilinx/xilinx-tpg.c media_entity_cleanup(&subdev->entity); entity 38 drivers/media/platform/xilinx/xilinx-vipp.c struct media_entity *entity; entity 56 drivers/media/platform/xilinx/xilinx-vipp.c struct xvip_graph_entity *entity; entity 60 drivers/media/platform/xilinx/xilinx-vipp.c entity = to_xvip_entity(asd); entity 61 drivers/media/platform/xilinx/xilinx-vipp.c if (entity->asd.match.fwnode == fwnode) entity 62 drivers/media/platform/xilinx/xilinx-vipp.c return entity; entity 69 drivers/media/platform/xilinx/xilinx-vipp.c struct xvip_graph_entity *entity) entity 72 drivers/media/platform/xilinx/xilinx-vipp.c struct media_entity *local = entity->entity; entity 85 drivers/media/platform/xilinx/xilinx-vipp.c ep = fwnode_graph_get_next_endpoint(entity->asd.match.fwnode, entity 137 drivers/media/platform/xilinx/xilinx-vipp.c remote = ent->entity; entity 239 drivers/media/platform/xilinx/xilinx-vipp.c if (link.remote_port >= ent->entity->num_pads) { entity 249 drivers/media/platform/xilinx/xilinx-vipp.c source = &dma->video.entity; entity 251 drivers/media/platform/xilinx/xilinx-vipp.c sink = ent->entity; entity 254 drivers/media/platform/xilinx/xilinx-vipp.c source = ent->entity; entity 256 drivers/media/platform/xilinx/xilinx-vipp.c sink = &dma->video.entity; entity 287 drivers/media/platform/xilinx/xilinx-vipp.c struct xvip_graph_entity *entity; entity 295 drivers/media/platform/xilinx/xilinx-vipp.c entity = to_xvip_entity(asd); entity 296 drivers/media/platform/xilinx/xilinx-vipp.c ret = xvip_graph_build_one(xdev, entity); entity 319 drivers/media/platform/xilinx/xilinx-vipp.c struct xvip_graph_entity *entity; entity 326 drivers/media/platform/xilinx/xilinx-vipp.c entity = to_xvip_entity(asd); entity 328 drivers/media/platform/xilinx/xilinx-vipp.c if (entity->asd.match.fwnode != subdev->fwnode) entity 331 drivers/media/platform/xilinx/xilinx-vipp.c if (entity->subdev) { entity 333 drivers/media/platform/xilinx/xilinx-vipp.c entity->asd.match.fwnode); entity 338 drivers/media/platform/xilinx/xilinx-vipp.c entity->entity = &subdev->entity; entity 339 drivers/media/platform/xilinx/xilinx-vipp.c entity->subdev = subdev; entity 405 drivers/media/platform/xilinx/xilinx-vipp.c struct xvip_graph_entity *entity; entity 420 drivers/media/platform/xilinx/xilinx-vipp.c entity = to_xvip_entity(asd); entity 421 drivers/media/platform/xilinx/xilinx-vipp.c ret = xvip_graph_parse_one(xdev, entity->asd.match.fwnode); entity 216 drivers/media/usb/au0828/au0828-core.c struct media_entity *entity, *mixer = NULL, *decoder = NULL; entity 224 drivers/media/usb/au0828/au0828-core.c media_device_for_each_entity(entity, dev->media_dev) { entity 225 drivers/media/usb/au0828/au0828-core.c if (entity->function == MEDIA_ENT_F_AUDIO_MIXER) entity 226 drivers/media/usb/au0828/au0828-core.c mixer = entity; entity 227 drivers/media/usb/au0828/au0828-core.c else if (entity->function == MEDIA_ENT_F_ATV_DECODER) entity 228 drivers/media/usb/au0828/au0828-core.c decoder = entity; entity 241 drivers/media/usb/au0828/au0828-core.c media_device_for_each_entity(entity, dev->media_dev) { entity 242 drivers/media/usb/au0828/au0828-core.c if (entity->function == MEDIA_ENT_F_AUDIO_MIXER) entity 243 drivers/media/usb/au0828/au0828-core.c mixer = entity; entity 266 drivers/media/usb/au0828/au0828-core.c struct media_entity *entity) entity 275 drivers/media/usb/au0828/au0828-core.c if (entity->function == MEDIA_ENT_F_IO_V4L || entity 276 drivers/media/usb/au0828/au0828-core.c entity->function == MEDIA_ENT_F_AUDIO_CAPTURE || entity 277 drivers/media/usb/au0828/au0828-core.c entity->function == MEDIA_ENT_F_IO_VBI) entity 288 drivers/media/usb/au0828/au0828-core.c static int au0828_enable_source(struct media_entity *entity, entity 295 drivers/media/usb/au0828/au0828-core.c struct media_device *mdev = entity->graph_obj.mdev; entity 314 drivers/media/usb/au0828/au0828-core.c if (entity->function == MEDIA_ENT_F_DTV_DEMOD) { entity 315 drivers/media/usb/au0828/au0828-core.c sink = entity; entity 357 drivers/media/usb/au0828/au0828-core.c if (dev->active_link_owner == entity) { entity 362 drivers/media/usb/au0828/au0828-core.c pr_debug("%s already owns the tuner\n", entity->name); entity 366 drivers/media/usb/au0828/au0828-core.c entity)) { entity 377 drivers/media/usb/au0828/au0828-core.c dev->active_link_user = entity; entity 381 drivers/media/usb/au0828/au0828-core.c entity->name); entity 392 drivers/media/usb/au0828/au0828-core.c if (link->sink->entity == sink && entity 393 drivers/media/usb/au0828/au0828-core.c link->source->entity == find_source) { entity 405 drivers/media/usb/au0828/au0828-core.c source = found_link->source->entity; entity 413 drivers/media/usb/au0828/au0828-core.c ret = __media_pipeline_start(entity, pipe); entity 416 drivers/media/usb/au0828/au0828-core.c source->name, entity->name, ret); entity 428 drivers/media/usb/au0828/au0828-core.c dev->active_link_owner = entity; entity 437 drivers/media/usb/au0828/au0828-core.c __func__, entity->name, entity->function, ret); entity 442 drivers/media/usb/au0828/au0828-core.c static void au0828_disable_source(struct media_entity *entity) entity 445 drivers/media/usb/au0828/au0828-core.c struct media_device *mdev = entity->graph_obj.mdev; entity 461 drivers/media/usb/au0828/au0828-core.c if (dev->active_link->sink->entity == dev->active_sink && entity 462 drivers/media/usb/au0828/au0828-core.c dev->active_link->source->entity == dev->active_source) { entity 478 drivers/media/usb/au0828/au0828-core.c entity->name, dev->users); entity 488 drivers/media/usb/au0828/au0828-core.c if (dev->active_link_owner != entity) { entity 531 drivers/media/usb/au0828/au0828-core.c if (dev->active_link_owner != entity) entity 563 drivers/media/usb/au0828/au0828-core.c struct media_entity *entity, *demod = NULL; entity 603 drivers/media/usb/au0828/au0828-core.c media_device_for_each_entity(entity, dev->media_dev) { entity 604 drivers/media/usb/au0828/au0828-core.c switch (entity->function) { entity 606 drivers/media/usb/au0828/au0828-core.c dev->tuner = entity; entity 609 drivers/media/usb/au0828/au0828-core.c dev->decoder = entity; entity 612 drivers/media/usb/au0828/au0828-core.c demod = entity; entity 620 drivers/media/usb/au0828/au0828-core.c if (demod && link->sink->entity == demod) entity 622 drivers/media/usb/au0828/au0828-core.c if (dev->decoder && link->sink->entity == dev->decoder) entity 1854 drivers/media/usb/au0828/au0828-video.c ret = media_entity_pads_init(&dev->vdev.entity, 1, &dev->video_pad); entity 1859 drivers/media/usb/au0828/au0828-video.c ret = media_entity_pads_init(&dev->vbi_dev.entity, 1, &dev->vbi_pad); entity 94 drivers/media/usb/cx231xx/cx231xx-video.c struct media_entity *entity, *decoder = NULL, *source; entity 108 drivers/media/usb/cx231xx/cx231xx-video.c media_device_for_each_entity(entity, mdev) { entity 109 drivers/media/usb/cx231xx/cx231xx-video.c if (entity->function == MEDIA_ENT_F_ATV_DECODER) { entity 110 drivers/media/usb/cx231xx/cx231xx-video.c decoder = entity; entity 118 drivers/media/usb/cx231xx/cx231xx-video.c if (link->sink->entity == decoder) { entity 129 drivers/media/usb/cx231xx/cx231xx-video.c source = found_link->source->entity; entity 134 drivers/media/usb/cx231xx/cx231xx-video.c sink = link->sink->entity; entity 136 drivers/media/usb/cx231xx/cx231xx-video.c if (sink == entity) entity 2219 drivers/media/usb/cx231xx/cx231xx-video.c ret = media_entity_pads_init(&dev->vdev.entity, 1, &dev->video_pad); entity 2252 drivers/media/usb/cx231xx/cx231xx-video.c ret = media_entity_pads_init(&dev->vbi_dev.entity, 1, &dev->vbi_pad); entity 925 drivers/media/usb/em28xx/em28xx-video.c if (link->sink->entity == v4l2->decoder) { entity 936 drivers/media/usb/em28xx/em28xx-video.c source = found_link->source->entity; entity 941 drivers/media/usb/em28xx/em28xx-video.c sink = link->sink->entity; entity 979 drivers/media/usb/em28xx/em28xx-video.c ret = media_entity_pads_init(&v4l2->vdev.entity, 1, &v4l2->video_pad); entity 986 drivers/media/usb/em28xx/em28xx-video.c ret = media_entity_pads_init(&v4l2->vbi_dev.entity, 1, entity 38 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 47 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 56 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 66 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 75 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 84 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 93 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 103 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 113 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 122 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 131 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 139 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 147 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 155 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 163 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 172 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 181 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 188 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 195 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_CAMERA, entity 203 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_CAMERA, entity 212 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_CAMERA, entity 220 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_CAMERA, entity 230 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_CAMERA, entity 237 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_CAMERA, entity 247 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_CAMERA, entity 257 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_CAMERA, entity 267 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_CAMERA, entity 275 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_CAMERA, entity 285 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_CAMERA, entity 295 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_CAMERA, entity 305 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_CAMERA, entity 314 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_CAMERA, entity 324 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_CAMERA, entity 334 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_CAMERA, entity 342 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_CAMERA, entity 423 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 433 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 443 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 455 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 465 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 475 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 485 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 495 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 505 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 517 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 528 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_CAMERA, entity 541 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_CAMERA, entity 551 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_CAMERA, entity 563 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 574 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 586 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 598 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 610 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_PROCESSING, entity 622 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_CAMERA, entity 634 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_CAMERA, entity 645 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_CAMERA, entity 655 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_CAMERA, entity 665 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_CAMERA, entity 675 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_CAMERA, entity 687 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_CAMERA, entity 697 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_CAMERA, entity 707 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_CAMERA, entity 719 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_CAMERA, entity 731 drivers/media/usb/uvc/uvc_ctrl.c .entity = UVC_GUID_UVC_CAMERA, entity 830 drivers/media/usb/uvc/uvc_ctrl.c static int uvc_entity_match_guid(const struct uvc_entity *entity, entity 833 drivers/media/usb/uvc/uvc_ctrl.c switch (UVC_ENTITY_TYPE(entity)) { entity 844 drivers/media/usb/uvc/uvc_ctrl.c return memcmp(entity->extension.guidExtensionCode, entity 856 drivers/media/usb/uvc/uvc_ctrl.c static void __uvc_find_control(struct uvc_entity *entity, u32 v4l2_id, entity 864 drivers/media/usb/uvc/uvc_ctrl.c if (entity == NULL) entity 867 drivers/media/usb/uvc/uvc_ctrl.c for (i = 0; i < entity->ncontrols; ++i) { entity 868 drivers/media/usb/uvc/uvc_ctrl.c ctrl = &entity->controls[i]; entity 892 drivers/media/usb/uvc/uvc_ctrl.c struct uvc_entity *entity; entity 901 drivers/media/usb/uvc/uvc_ctrl.c list_for_each_entry(entity, &chain->entities, chain) { entity 902 drivers/media/usb/uvc/uvc_ctrl.c __uvc_find_control(entity, v4l2_id, mapping, &ctrl, next); entity 920 drivers/media/usb/uvc/uvc_ctrl.c ret = uvc_query_ctrl(chain->dev, UVC_GET_DEF, ctrl->entity->id, entity 929 drivers/media/usb/uvc/uvc_ctrl.c ret = uvc_query_ctrl(chain->dev, UVC_GET_MIN, ctrl->entity->id, entity 937 drivers/media/usb/uvc/uvc_ctrl.c ret = uvc_query_ctrl(chain->dev, UVC_GET_MAX, ctrl->entity->id, entity 945 drivers/media/usb/uvc/uvc_ctrl.c ret = uvc_query_ctrl(chain->dev, UVC_GET_RES, ctrl->entity->id, entity 950 drivers/media/usb/uvc/uvc_ctrl.c if (UVC_ENTITY_TYPE(ctrl->entity) != entity 1000 drivers/media/usb/uvc/uvc_ctrl.c ret = uvc_query_ctrl(chain->dev, UVC_GET_CUR, ctrl->entity->id, entity 1038 drivers/media/usb/uvc/uvc_ctrl.c __uvc_find_control(ctrl->entity, mapping->master_id, entity 1264 drivers/media/usb/uvc/uvc_ctrl.c __uvc_find_control(master->entity, slave_id, &mapping, &ctrl, 0); entity 1487 drivers/media/usb/uvc/uvc_ctrl.c struct uvc_entity *entity, int rollback) entity 1493 drivers/media/usb/uvc/uvc_ctrl.c if (entity == NULL) entity 1496 drivers/media/usb/uvc/uvc_ctrl.c for (i = 0; i < entity->ncontrols; ++i) { entity 1497 drivers/media/usb/uvc/uvc_ctrl.c ctrl = &entity->controls[i]; entity 1515 drivers/media/usb/uvc/uvc_ctrl.c ret = uvc_query_ctrl(dev, UVC_SET_CUR, ctrl->entity->id, entity 1541 drivers/media/usb/uvc/uvc_ctrl.c struct uvc_entity *entity; entity 1545 drivers/media/usb/uvc/uvc_ctrl.c list_for_each_entry(entity, &chain->entities, chain) { entity 1546 drivers/media/usb/uvc/uvc_ctrl.c ret = uvc_ctrl_commit_entity(chain->dev, entity, rollback); entity 1660 drivers/media/usb/uvc/uvc_ctrl.c ctrl->entity->id, chain->dev->intfnum, entity 1707 drivers/media/usb/uvc/uvc_ctrl.c ret = uvc_query_ctrl(dev, UVC_GET_INFO, ctrl->entity->id, dev->intfnum, entity 1728 drivers/media/usb/uvc/uvc_ctrl.c u8 entity; entity 1754 drivers/media/usb/uvc/uvc_ctrl.c if (fixups[i].entity == ctrl->entity->id && entity 1775 drivers/media/usb/uvc/uvc_ctrl.c memcpy(info->entity, ctrl->entity->extension.guidExtensionCode, entity 1776 drivers/media/usb/uvc/uvc_ctrl.c sizeof(info->entity)); entity 1781 drivers/media/usb/uvc/uvc_ctrl.c ret = uvc_query_ctrl(dev, UVC_GET_LEN, ctrl->entity->id, dev->intfnum, entity 1786 drivers/media/usb/uvc/uvc_ctrl.c info->entity, info->selector, ret); entity 1799 drivers/media/usb/uvc/uvc_ctrl.c info->entity, info->selector, ret); entity 1807 drivers/media/usb/uvc/uvc_ctrl.c info->entity, info->selector, info->size, entity 1836 drivers/media/usb/uvc/uvc_ctrl.c "%pUl/%u on device %s entity %u\n", info.entity, entity 1837 drivers/media/usb/uvc/uvc_ctrl.c info.selector, dev->udev->devpath, ctrl->entity->id); entity 1845 drivers/media/usb/uvc/uvc_ctrl.c struct uvc_entity *entity; entity 1854 drivers/media/usb/uvc/uvc_ctrl.c list_for_each_entry(entity, &chain->entities, chain) { entity 1855 drivers/media/usb/uvc/uvc_ctrl.c if (UVC_ENTITY_TYPE(entity) == UVC_VC_EXTENSION_UNIT && entity 1856 drivers/media/usb/uvc/uvc_ctrl.c entity->id == xqry->unit) entity 1860 drivers/media/usb/uvc/uvc_ctrl.c if (entity->id != xqry->unit) { entity 1867 drivers/media/usb/uvc/uvc_ctrl.c for (i = 0; i < entity->ncontrols; ++i) { entity 1868 drivers/media/usb/uvc/uvc_ctrl.c ctrl = &entity->controls[i]; entity 1877 drivers/media/usb/uvc/uvc_ctrl.c entity->extension.guidExtensionCode, xqry->selector); entity 1976 drivers/media/usb/uvc/uvc_ctrl.c struct uvc_entity *entity; entity 1981 drivers/media/usb/uvc/uvc_ctrl.c list_for_each_entry(entity, &dev->entities, list) { entity 1983 drivers/media/usb/uvc/uvc_ctrl.c for (i = 0; i < entity->ncontrols; ++i) { entity 1984 drivers/media/usb/uvc/uvc_ctrl.c ctrl = &entity->controls[i]; entity 1991 drivers/media/usb/uvc/uvc_ctrl.c ctrl->info.entity, ctrl->info.index, entity 1996 drivers/media/usb/uvc/uvc_ctrl.c ret = uvc_ctrl_commit_entity(dev, entity, 0); entity 2037 drivers/media/usb/uvc/uvc_ctrl.c "entity %u\n", ctrl->info.entity, ctrl->info.selector, entity 2038 drivers/media/usb/uvc/uvc_ctrl.c dev->udev->devpath, ctrl->entity->id); entity 2080 drivers/media/usb/uvc/uvc_ctrl.c map->name, ctrl->info.entity, ctrl->info.selector); entity 2090 drivers/media/usb/uvc/uvc_ctrl.c struct uvc_entity *entity; entity 2103 drivers/media/usb/uvc/uvc_ctrl.c list_for_each_entry(entity, &chain->entities, chain) { entity 2106 drivers/media/usb/uvc/uvc_ctrl.c if (UVC_ENTITY_TYPE(entity) != UVC_VC_EXTENSION_UNIT || entity 2107 drivers/media/usb/uvc/uvc_ctrl.c !uvc_entity_match_guid(entity, mapping->entity)) entity 2110 drivers/media/usb/uvc/uvc_ctrl.c for (i = 0; i < entity->ncontrols; ++i) { entity 2111 drivers/media/usb/uvc/uvc_ctrl.c ctrl = &entity->controls[i]; entity 2176 drivers/media/usb/uvc/uvc_ctrl.c struct uvc_entity *entity) entity 2198 drivers/media/usb/uvc/uvc_ctrl.c switch (UVC_ENTITY_TYPE(entity)) { entity 2202 drivers/media/usb/uvc/uvc_ctrl.c controls = entity->processing.bmControls; entity 2203 drivers/media/usb/uvc/uvc_ctrl.c size = entity->processing.bControlSize; entity 2209 drivers/media/usb/uvc/uvc_ctrl.c controls = entity->camera.bmControls; entity 2210 drivers/media/usb/uvc/uvc_ctrl.c size = entity->camera.bControlSize; entity 2226 drivers/media/usb/uvc/uvc_ctrl.c "removing it.\n", entity->id, blacklist[i].index); entity 2249 drivers/media/usb/uvc/uvc_ctrl.c if (UVC_ENTITY_TYPE(ctrl->entity) == UVC_VC_EXTENSION_UNIT) entity 2253 drivers/media/usb/uvc/uvc_ctrl.c if (uvc_entity_match_guid(ctrl->entity, info->entity) && entity 2264 drivers/media/usb/uvc/uvc_ctrl.c if (uvc_entity_match_guid(ctrl->entity, mapping->entity) && entity 2275 drivers/media/usb/uvc/uvc_ctrl.c struct uvc_entity *entity; entity 2281 drivers/media/usb/uvc/uvc_ctrl.c list_for_each_entry(entity, &dev->entities, list) { entity 2286 drivers/media/usb/uvc/uvc_ctrl.c if (UVC_ENTITY_TYPE(entity) == UVC_VC_EXTENSION_UNIT) { entity 2287 drivers/media/usb/uvc/uvc_ctrl.c bmControls = entity->extension.bmControls; entity 2288 drivers/media/usb/uvc/uvc_ctrl.c bControlSize = entity->extension.bControlSize; entity 2289 drivers/media/usb/uvc/uvc_ctrl.c } else if (UVC_ENTITY_TYPE(entity) == UVC_VC_PROCESSING_UNIT) { entity 2290 drivers/media/usb/uvc/uvc_ctrl.c bmControls = entity->processing.bmControls; entity 2291 drivers/media/usb/uvc/uvc_ctrl.c bControlSize = entity->processing.bControlSize; entity 2292 drivers/media/usb/uvc/uvc_ctrl.c } else if (UVC_ENTITY_TYPE(entity) == UVC_ITT_CAMERA) { entity 2293 drivers/media/usb/uvc/uvc_ctrl.c bmControls = entity->camera.bmControls; entity 2294 drivers/media/usb/uvc/uvc_ctrl.c bControlSize = entity->camera.bControlSize; entity 2298 drivers/media/usb/uvc/uvc_ctrl.c uvc_ctrl_prune_entity(dev, entity); entity 2305 drivers/media/usb/uvc/uvc_ctrl.c entity->controls = kcalloc(ncontrols, sizeof(*ctrl), entity 2307 drivers/media/usb/uvc/uvc_ctrl.c if (entity->controls == NULL) entity 2309 drivers/media/usb/uvc/uvc_ctrl.c entity->ncontrols = ncontrols; entity 2312 drivers/media/usb/uvc/uvc_ctrl.c ctrl = entity->controls; entity 2317 drivers/media/usb/uvc/uvc_ctrl.c ctrl->entity = entity; entity 2345 drivers/media/usb/uvc/uvc_ctrl.c struct uvc_entity *entity; entity 2353 drivers/media/usb/uvc/uvc_ctrl.c list_for_each_entry(entity, &dev->entities, list) { entity 2354 drivers/media/usb/uvc/uvc_ctrl.c for (i = 0; i < entity->ncontrols; ++i) { entity 2355 drivers/media/usb/uvc/uvc_ctrl.c struct uvc_control *ctrl = &entity->controls[i]; entity 2364 drivers/media/usb/uvc/uvc_ctrl.c kfree(entity->controls); entity 354 drivers/media/usb/uvc/uvc_driver.c struct uvc_entity *entity; entity 356 drivers/media/usb/uvc/uvc_driver.c list_for_each_entry(entity, &dev->entities, list) { entity 357 drivers/media/usb/uvc/uvc_driver.c if (entity->id == id) entity 358 drivers/media/usb/uvc/uvc_driver.c return entity; entity 365 drivers/media/usb/uvc/uvc_driver.c int id, struct uvc_entity *entity) entity 369 drivers/media/usb/uvc/uvc_driver.c if (entity == NULL) entity 370 drivers/media/usb/uvc/uvc_driver.c entity = list_entry(&dev->entities, struct uvc_entity, list); entity 372 drivers/media/usb/uvc/uvc_driver.c list_for_each_entry_continue(entity, &dev->entities, list) { entity 373 drivers/media/usb/uvc/uvc_driver.c for (i = 0; i < entity->bNrInPins; ++i) entity 374 drivers/media/usb/uvc/uvc_driver.c if (entity->baSourceID[i] == id) entity 375 drivers/media/usb/uvc/uvc_driver.c return entity; entity 964 drivers/media/usb/uvc/uvc_driver.c struct uvc_entity *entity; entity 969 drivers/media/usb/uvc/uvc_driver.c extra_size = roundup(extra_size, sizeof(*entity->pads)); entity 971 drivers/media/usb/uvc/uvc_driver.c size = sizeof(*entity) + extra_size + sizeof(*entity->pads) * num_pads entity 973 drivers/media/usb/uvc/uvc_driver.c entity = kzalloc(size, GFP_KERNEL); entity 974 drivers/media/usb/uvc/uvc_driver.c if (entity == NULL) entity 977 drivers/media/usb/uvc/uvc_driver.c entity->id = id; entity 978 drivers/media/usb/uvc/uvc_driver.c entity->type = type; entity 980 drivers/media/usb/uvc/uvc_driver.c entity->num_links = 0; entity 981 drivers/media/usb/uvc/uvc_driver.c entity->num_pads = num_pads; entity 982 drivers/media/usb/uvc/uvc_driver.c entity->pads = ((void *)(entity + 1)) + extra_size; entity 985 drivers/media/usb/uvc/uvc_driver.c entity->pads[i].flags = MEDIA_PAD_FL_SINK; entity 986 drivers/media/usb/uvc/uvc_driver.c if (!UVC_ENTITY_IS_OTERM(entity)) entity 987 drivers/media/usb/uvc/uvc_driver.c entity->pads[num_pads-1].flags = MEDIA_PAD_FL_SOURCE; entity 989 drivers/media/usb/uvc/uvc_driver.c entity->bNrInPins = num_inputs; entity 990 drivers/media/usb/uvc/uvc_driver.c entity->baSourceID = (u8 *)(&entity->pads[num_pads]); entity 992 drivers/media/usb/uvc/uvc_driver.c return entity; entity 1413 drivers/media/usb/uvc/uvc_driver.c struct uvc_entity *entity) entity 1415 drivers/media/usb/uvc/uvc_driver.c switch (UVC_ENTITY_TYPE(entity)) { entity 1418 drivers/media/usb/uvc/uvc_driver.c printk(KERN_CONT " <- XU %d", entity->id); entity 1420 drivers/media/usb/uvc/uvc_driver.c if (entity->bNrInPins != 1) { entity 1422 drivers/media/usb/uvc/uvc_driver.c "than 1 input pin.\n", entity->id); entity 1430 drivers/media/usb/uvc/uvc_driver.c printk(KERN_CONT " <- PU %d", entity->id); entity 1438 drivers/media/usb/uvc/uvc_driver.c chain->processing = entity; entity 1443 drivers/media/usb/uvc/uvc_driver.c printk(KERN_CONT " <- SU %d", entity->id); entity 1446 drivers/media/usb/uvc/uvc_driver.c if (entity->bNrInPins == 1) entity 1455 drivers/media/usb/uvc/uvc_driver.c chain->selector = entity; entity 1462 drivers/media/usb/uvc/uvc_driver.c printk(KERN_CONT " <- IT %d\n", entity->id); entity 1470 drivers/media/usb/uvc/uvc_driver.c printk(KERN_CONT " OT %d", entity->id); entity 1475 drivers/media/usb/uvc/uvc_driver.c if (UVC_ENTITY_IS_ITERM(entity)) { entity 1477 drivers/media/usb/uvc/uvc_driver.c printk(KERN_CONT " <- IT %d\n", entity->id); entity 1480 drivers/media/usb/uvc/uvc_driver.c printk(KERN_CONT " OT %d", entity->id); entity 1487 drivers/media/usb/uvc/uvc_driver.c "0x%04x found in chain.\n", UVC_ENTITY_TYPE(entity)); entity 1491 drivers/media/usb/uvc/uvc_driver.c list_add_tail(&entity->chain, &chain->entities); entity 1496 drivers/media/usb/uvc/uvc_driver.c struct uvc_entity *entity, struct uvc_entity *prev) entity 1506 drivers/media/usb/uvc/uvc_driver.c forward = uvc_entity_by_reference(chain->dev, entity->id, entity 1523 drivers/media/usb/uvc/uvc_driver.c entity->id); entity 1567 drivers/media/usb/uvc/uvc_driver.c struct uvc_entity *entity = *_entity; entity 1571 drivers/media/usb/uvc/uvc_driver.c switch (UVC_ENTITY_TYPE(entity)) { entity 1574 drivers/media/usb/uvc/uvc_driver.c id = entity->baSourceID[0]; entity 1579 drivers/media/usb/uvc/uvc_driver.c if (entity->bNrInPins == 1) { entity 1580 drivers/media/usb/uvc/uvc_driver.c id = entity->baSourceID[0]; entity 1587 drivers/media/usb/uvc/uvc_driver.c chain->selector = entity; entity 1588 drivers/media/usb/uvc/uvc_driver.c for (i = 0; i < entity->bNrInPins; ++i) { entity 1589 drivers/media/usb/uvc/uvc_driver.c id = entity->baSourceID[i]; entity 1594 drivers/media/usb/uvc/uvc_driver.c "input terminal\n", entity->id, i); entity 1609 drivers/media/usb/uvc/uvc_driver.c uvc_scan_chain_forward(chain, term, entity); entity 1625 drivers/media/usb/uvc/uvc_driver.c id = UVC_ENTITY_IS_OTERM(entity) ? entity->baSourceID[0] : 0; entity 1634 drivers/media/usb/uvc/uvc_driver.c entity = uvc_entity_by_id(chain->dev, id); entity 1635 drivers/media/usb/uvc/uvc_driver.c if (entity == NULL) { entity 1641 drivers/media/usb/uvc/uvc_driver.c *_entity = entity; entity 1648 drivers/media/usb/uvc/uvc_driver.c struct uvc_entity *entity, *prev; entity 1652 drivers/media/usb/uvc/uvc_driver.c entity = term; entity 1655 drivers/media/usb/uvc/uvc_driver.c while (entity != NULL) { entity 1657 drivers/media/usb/uvc/uvc_driver.c if (entity->chain.next || entity->chain.prev) { entity 1659 drivers/media/usb/uvc/uvc_driver.c "entity %d already in chain.\n", entity->id); entity 1664 drivers/media/usb/uvc/uvc_driver.c if (uvc_scan_chain_entity(chain, entity) < 0) entity 1668 drivers/media/usb/uvc/uvc_driver.c if (uvc_scan_chain_forward(chain, entity, prev) < 0) entity 1672 drivers/media/usb/uvc/uvc_driver.c prev = entity; entity 1673 drivers/media/usb/uvc/uvc_driver.c if (uvc_scan_chain_backward(chain, &entity) < 0) entity 1750 drivers/media/usb/uvc/uvc_driver.c struct uvc_entity *entity; entity 1757 drivers/media/usb/uvc/uvc_driver.c list_for_each_entry(entity, &dev->entities, list) { entity 1758 drivers/media/usb/uvc/uvc_driver.c if (UVC_ENTITY_IS_ITERM(entity)) { entity 1761 drivers/media/usb/uvc/uvc_driver.c iterm = entity; entity 1764 drivers/media/usb/uvc/uvc_driver.c if (UVC_ENTITY_IS_OTERM(entity)) { entity 1767 drivers/media/usb/uvc/uvc_driver.c oterm = entity; entity 1791 drivers/media/usb/uvc/uvc_driver.c list_for_each_entry_reverse(entity, &dev->entities, list) { entity 1792 drivers/media/usb/uvc/uvc_driver.c if (entity->type != UVC_VC_PROCESSING_UNIT && entity 1793 drivers/media/usb/uvc/uvc_driver.c entity->type != UVC_VC_EXTENSION_UNIT) entity 1796 drivers/media/usb/uvc/uvc_driver.c if (entity->num_pads != 2) entity 1799 drivers/media/usb/uvc/uvc_driver.c if (uvc_scan_chain_entity(chain, entity) < 0) entity 1802 drivers/media/usb/uvc/uvc_driver.c prev->baSourceID[0] = entity->id; entity 1803 drivers/media/usb/uvc/uvc_driver.c prev = entity; entity 1910 drivers/media/usb/uvc/uvc_driver.c struct uvc_entity *entity; entity 1911 drivers/media/usb/uvc/uvc_driver.c entity = list_entry(p, struct uvc_entity, list); entity 1913 drivers/media/usb/uvc/uvc_driver.c uvc_mc_cleanup_entity(entity); entity 1915 drivers/media/usb/uvc/uvc_driver.c kfree(entity); entity 18 drivers/media/usb/uvc/uvc_entity.c struct uvc_entity *entity) entity 25 drivers/media/usb/uvc/uvc_entity.c sink = (UVC_ENTITY_TYPE(entity) == UVC_TT_STREAMING) entity 26 drivers/media/usb/uvc/uvc_entity.c ? (entity->vdev ? &entity->vdev->entity : NULL) entity 27 drivers/media/usb/uvc/uvc_entity.c : &entity->subdev.entity; entity 31 drivers/media/usb/uvc/uvc_entity.c for (i = 0; i < entity->num_pads; ++i) { entity 36 drivers/media/usb/uvc/uvc_entity.c if (!(entity->pads[i].flags & MEDIA_PAD_FL_SINK)) entity 39 drivers/media/usb/uvc/uvc_entity.c remote = uvc_entity_by_id(chain->dev, entity->baSourceID[i]); entity 44 drivers/media/usb/uvc/uvc_entity.c ? (remote->vdev ? &remote->vdev->entity : NULL) entity 45 drivers/media/usb/uvc/uvc_entity.c : &remote->subdev.entity; entity 62 drivers/media/usb/uvc/uvc_entity.c void uvc_mc_cleanup_entity(struct uvc_entity *entity) entity 64 drivers/media/usb/uvc/uvc_entity.c if (UVC_ENTITY_TYPE(entity) != UVC_TT_STREAMING) entity 65 drivers/media/usb/uvc/uvc_entity.c media_entity_cleanup(&entity->subdev.entity); entity 66 drivers/media/usb/uvc/uvc_entity.c else if (entity->vdev != NULL) entity 67 drivers/media/usb/uvc/uvc_entity.c media_entity_cleanup(&entity->vdev->entity); entity 71 drivers/media/usb/uvc/uvc_entity.c struct uvc_entity *entity) entity 75 drivers/media/usb/uvc/uvc_entity.c if (UVC_ENTITY_TYPE(entity) != UVC_TT_STREAMING) { entity 76 drivers/media/usb/uvc/uvc_entity.c v4l2_subdev_init(&entity->subdev, &uvc_subdev_ops); entity 77 drivers/media/usb/uvc/uvc_entity.c strscpy(entity->subdev.name, entity->name, entity 78 drivers/media/usb/uvc/uvc_entity.c sizeof(entity->subdev.name)); entity 80 drivers/media/usb/uvc/uvc_entity.c ret = media_entity_pads_init(&entity->subdev.entity, entity 81 drivers/media/usb/uvc/uvc_entity.c entity->num_pads, entity->pads); entity 87 drivers/media/usb/uvc/uvc_entity.c &entity->subdev); entity 88 drivers/media/usb/uvc/uvc_entity.c } else if (entity->vdev != NULL) { entity 89 drivers/media/usb/uvc/uvc_entity.c ret = media_entity_pads_init(&entity->vdev->entity, entity 90 drivers/media/usb/uvc/uvc_entity.c entity->num_pads, entity->pads); entity 91 drivers/media/usb/uvc/uvc_entity.c if (entity->flags & UVC_ENTITY_FLAG_DEFAULT) entity 92 drivers/media/usb/uvc/uvc_entity.c entity->vdev->entity.flags |= MEDIA_ENT_FL_DEFAULT; entity 101 drivers/media/usb/uvc/uvc_entity.c struct uvc_entity *entity; entity 104 drivers/media/usb/uvc/uvc_entity.c list_for_each_entry(entity, &chain->entities, chain) { entity 105 drivers/media/usb/uvc/uvc_entity.c ret = uvc_mc_init_entity(chain, entity); entity 108 drivers/media/usb/uvc/uvc_entity.c "entity %u\n", entity->id); entity 113 drivers/media/usb/uvc/uvc_entity.c list_for_each_entry(entity, &chain->entities, chain) { entity 114 drivers/media/usb/uvc/uvc_entity.c ret = uvc_mc_create_links(chain, entity); entity 117 drivers/media/usb/uvc/uvc_entity.c "entity %u\n", entity->id); entity 121 drivers/media/usb/uvc/uvc_status.c static struct uvc_control *uvc_event_entity_find_ctrl(struct uvc_entity *entity, entity 127 drivers/media/usb/uvc/uvc_status.c for (i = 0, ctrl = entity->controls; i < entity->ncontrols; i++, ctrl++) entity 139 drivers/media/usb/uvc/uvc_status.c struct uvc_entity *entity; entity 142 drivers/media/usb/uvc/uvc_status.c list_for_each_entry(entity, &(*chain)->entities, chain) { entity 143 drivers/media/usb/uvc/uvc_status.c if (entity->id != status->bOriginator) entity 146 drivers/media/usb/uvc/uvc_status.c ctrl = uvc_event_entity_find_ctrl(entity, entity 44 drivers/media/usb/uvc/uvc_v4l2.c memcpy(map->entity, xmap->entity, sizeof(map->entity)); entity 1299 drivers/media/usb/uvc/uvc_v4l2.c u8 entity[16]; entity 30 drivers/media/usb/uvc/uvcvideo.h #define UVC_ENTITY_TYPE(entity) ((entity)->type & 0x7fff) entity 31 drivers/media/usb/uvc/uvcvideo.h #define UVC_ENTITY_IS_UNIT(entity) (((entity)->type & 0xff00) == 0) entity 32 drivers/media/usb/uvc/uvcvideo.h #define UVC_ENTITY_IS_TERM(entity) (((entity)->type & 0xff00) != 0) entity 33 drivers/media/usb/uvc/uvcvideo.h #define UVC_ENTITY_IS_ITERM(entity) \ entity 34 drivers/media/usb/uvc/uvcvideo.h (UVC_ENTITY_IS_TERM(entity) && \ entity 35 drivers/media/usb/uvc/uvcvideo.h ((entity)->type & 0x8000) == UVC_TERM_INPUT) entity 36 drivers/media/usb/uvc/uvcvideo.h #define UVC_ENTITY_IS_OTERM(entity) \ entity 37 drivers/media/usb/uvc/uvcvideo.h (UVC_ENTITY_IS_TERM(entity) && \ entity 38 drivers/media/usb/uvc/uvcvideo.h ((entity)->type & 0x8000) == UVC_TERM_OUTPUT) entity 219 drivers/media/usb/uvc/uvcvideo.h u8 entity[16]; entity 233 drivers/media/usb/uvc/uvcvideo.h u8 entity[16]; entity 255 drivers/media/usb/uvc/uvcvideo.h struct uvc_entity *entity; entity 790 drivers/media/usb/uvc/uvcvideo.h void uvc_mc_cleanup_entity(struct uvc_entity *entity); entity 474 drivers/media/v4l2-core/tuner-core.c t->sd.entity.name = t->name; entity 728 drivers/media/v4l2-core/tuner-core.c t->sd.entity.name = t->name; entity 739 drivers/media/v4l2-core/tuner-core.c ret = media_entity_pads_init(&t->sd.entity, entity 742 drivers/media/v4l2-core/tuner-core.c t->sd.entity.function = MEDIA_ENT_F_IF_VID_DECODER; entity 750 drivers/media/v4l2-core/tuner-core.c ret = media_entity_pads_init(&t->sd.entity, TUNER_NUM_PADS, entity 752 drivers/media/v4l2-core/tuner-core.c t->sd.entity.function = MEDIA_ENT_F_TUNER; entity 204 drivers/media/v4l2-core/v4l2-dev.c if (vdev->entity.function != MEDIA_ENT_F_UNKNOWN) entity 205 drivers/media/v4l2-core/v4l2-dev.c media_device_unregister_entity(&vdev->entity); entity 760 drivers/media/v4l2-core/v4l2-dev.c vdev->entity.obj_type = MEDIA_ENTITY_TYPE_VIDEO_DEVICE; entity 761 drivers/media/v4l2-core/v4l2-dev.c vdev->entity.function = MEDIA_ENT_F_UNKNOWN; entity 766 drivers/media/v4l2-core/v4l2-dev.c vdev->entity.function = MEDIA_ENT_F_IO_V4L; entity 770 drivers/media/v4l2-core/v4l2-dev.c vdev->entity.function = MEDIA_ENT_F_IO_VBI; entity 774 drivers/media/v4l2-core/v4l2-dev.c vdev->entity.function = MEDIA_ENT_F_IO_SWRADIO; entity 778 drivers/media/v4l2-core/v4l2-dev.c vdev->entity.function = MEDIA_ENT_F_IO_V4L; entity 796 drivers/media/v4l2-core/v4l2-dev.c if (vdev->entity.function != MEDIA_ENT_F_UNKNOWN) { entity 797 drivers/media/v4l2-core/v4l2-dev.c vdev->entity.name = vdev->name; entity 800 drivers/media/v4l2-core/v4l2-dev.c vdev->entity.info.dev.major = VIDEO_MAJOR; entity 801 drivers/media/v4l2-core/v4l2-dev.c vdev->entity.info.dev.minor = vdev->minor; entity 804 drivers/media/v4l2-core/v4l2-dev.c &vdev->entity); entity 817 drivers/media/v4l2-core/v4l2-dev.c media_device_unregister_entity(&vdev->entity); entity 821 drivers/media/v4l2-core/v4l2-dev.c if (vdev->entity.function != MEDIA_ENT_F_UNKNOWN) { entity 824 drivers/media/v4l2-core/v4l2-dev.c link = media_create_intf_link(&vdev->entity, entity 830 drivers/media/v4l2-core/v4l2-dev.c media_device_unregister_entity(&vdev->entity); entity 115 drivers/media/v4l2-core/v4l2-device.c struct media_entity *entity = &sd->entity; entity 146 drivers/media/v4l2-core/v4l2-device.c err = media_device_register_entity(v4l2_dev->mdev, entity); entity 166 drivers/media/v4l2-core/v4l2-device.c media_device_unregister_entity(entity); entity 229 drivers/media/v4l2-core/v4l2-device.c sd->entity.info.dev.major = VIDEO_MAJOR; entity 230 drivers/media/v4l2-core/v4l2-device.c sd->entity.info.dev.minor = vdev->minor; entity 236 drivers/media/v4l2-core/v4l2-device.c link = media_create_intf_link(&sd->entity, entity 284 drivers/media/v4l2-core/v4l2-device.c media_device_unregister_entity(&sd->entity); entity 642 drivers/media/v4l2-core/v4l2-flash-led-class.c ret = media_entity_pads_init(&sd->entity, 0, NULL); entity 646 drivers/media/v4l2-core/v4l2-flash-led-class.c sd->entity.function = MEDIA_ENT_F_FLASH; entity 664 drivers/media/v4l2-core/v4l2-flash-led-class.c media_entity_cleanup(&sd->entity); entity 702 drivers/media/v4l2-core/v4l2-flash-led-class.c media_entity_cleanup(&sd->entity); entity 25 drivers/media/v4l2-core/v4l2-mc.c struct media_entity *entity; entity 36 drivers/media/v4l2-core/v4l2-mc.c media_device_for_each_entity(entity, mdev) { entity 37 drivers/media/v4l2-core/v4l2-mc.c switch (entity->function) { entity 39 drivers/media/v4l2-core/v4l2-mc.c if_vid = entity; entity 42 drivers/media/v4l2-core/v4l2-mc.c if_aud = entity; entity 45 drivers/media/v4l2-core/v4l2-mc.c tuner = entity; entity 48 drivers/media/v4l2-core/v4l2-mc.c decoder = entity; entity 51 drivers/media/v4l2-core/v4l2-mc.c io_v4l = entity; entity 54 drivers/media/v4l2-core/v4l2-mc.c io_vbi = entity; entity 57 drivers/media/v4l2-core/v4l2-mc.c io_swradio = entity; entity 84 drivers/media/v4l2-core/v4l2-mc.c media_device_for_each_entity(entity, mdev) { entity 85 drivers/media/v4l2-core/v4l2-mc.c if (entity->function != MEDIA_ENT_F_CAM_SENSOR) entity 87 drivers/media/v4l2-core/v4l2-mc.c ret = media_create_pad_link(entity, 0, entity 229 drivers/media/v4l2-core/v4l2-mc.c media_device_for_each_entity(entity, mdev) { entity 230 drivers/media/v4l2-core/v4l2-mc.c switch (entity->function) { entity 240 drivers/media/v4l2-core/v4l2-mc.c ret = media_create_pad_link(entity, 0, tuner, entity 252 drivers/media/v4l2-core/v4l2-mc.c ret = media_create_pad_link(entity, 0, decoder, entity 271 drivers/media/v4l2-core/v4l2-mc.c struct media_device *mdev = vdev->entity.graph_obj.mdev; entity 280 drivers/media/v4l2-core/v4l2-mc.c err = mdev->enable_source(&vdev->entity, &vdev->pipe); entity 291 drivers/media/v4l2-core/v4l2-mc.c struct media_device *mdev = vdev->entity.graph_obj.mdev; entity 296 drivers/media/v4l2-core/v4l2-mc.c mdev->disable_source(&vdev->entity); entity 339 drivers/media/v4l2-core/v4l2-mc.c static int pipeline_pm_use_count(struct media_entity *entity, entity 344 drivers/media/v4l2-core/v4l2-mc.c media_graph_walk_start(graph, entity); entity 346 drivers/media/v4l2-core/v4l2-mc.c while ((entity = media_graph_walk_next(graph))) { entity 347 drivers/media/v4l2-core/v4l2-mc.c if (is_media_entity_v4l2_video_device(entity)) entity 348 drivers/media/v4l2-core/v4l2-mc.c use += entity->use_count; entity 365 drivers/media/v4l2-core/v4l2-mc.c static int pipeline_pm_power_one(struct media_entity *entity, int change) entity 370 drivers/media/v4l2-core/v4l2-mc.c subdev = is_media_entity_v4l2_subdev(entity) entity 371 drivers/media/v4l2-core/v4l2-mc.c ? media_entity_to_v4l2_subdev(entity) : NULL; entity 373 drivers/media/v4l2-core/v4l2-mc.c if (entity->use_count == 0 && change > 0 && subdev != NULL) { entity 379 drivers/media/v4l2-core/v4l2-mc.c entity->use_count += change; entity 380 drivers/media/v4l2-core/v4l2-mc.c WARN_ON(entity->use_count < 0); entity 382 drivers/media/v4l2-core/v4l2-mc.c if (entity->use_count == 0 && change < 0 && subdev != NULL) entity 398 drivers/media/v4l2-core/v4l2-mc.c static int pipeline_pm_power(struct media_entity *entity, int change, entity 401 drivers/media/v4l2-core/v4l2-mc.c struct media_entity *first = entity; entity 407 drivers/media/v4l2-core/v4l2-mc.c media_graph_walk_start(graph, entity); entity 409 drivers/media/v4l2-core/v4l2-mc.c while (!ret && (entity = media_graph_walk_next(graph))) entity 410 drivers/media/v4l2-core/v4l2-mc.c if (is_media_entity_v4l2_subdev(entity)) entity 411 drivers/media/v4l2-core/v4l2-mc.c ret = pipeline_pm_power_one(entity, change); entity 419 drivers/media/v4l2-core/v4l2-mc.c && first != entity) entity 426 drivers/media/v4l2-core/v4l2-mc.c int v4l2_pipeline_pm_use(struct media_entity *entity, int use) entity 428 drivers/media/v4l2-core/v4l2-mc.c struct media_device *mdev = entity->graph_obj.mdev; entity 435 drivers/media/v4l2-core/v4l2-mc.c entity->use_count += change; entity 436 drivers/media/v4l2-core/v4l2-mc.c WARN_ON(entity->use_count < 0); entity 439 drivers/media/v4l2-core/v4l2-mc.c ret = pipeline_pm_power(entity, change, &mdev->pm_count_walk); entity 441 drivers/media/v4l2-core/v4l2-mc.c entity->use_count -= change; entity 453 drivers/media/v4l2-core/v4l2-mc.c struct media_entity *source = link->source->entity; entity 454 drivers/media/v4l2-core/v4l2-mc.c struct media_entity *sink = link->sink->entity; entity 727 drivers/media/v4l2-core/v4l2-mem2mem.c struct media_entity *entity; entity 736 drivers/media/v4l2-core/v4l2-mem2mem.c entity = m2m_dev->source; entity 742 drivers/media/v4l2-core/v4l2-mem2mem.c entity = &m2m_dev->sink; entity 748 drivers/media/v4l2-core/v4l2-mem2mem.c entity = &m2m_dev->proc; entity 758 drivers/media/v4l2-core/v4l2-mem2mem.c entity->obj_type = MEDIA_ENTITY_TYPE_BASE; entity 760 drivers/media/v4l2-core/v4l2-mem2mem.c entity->info.dev.major = VIDEO_MAJOR; entity 761 drivers/media/v4l2-core/v4l2-mem2mem.c entity->info.dev.minor = vdev->minor; entity 768 drivers/media/v4l2-core/v4l2-mem2mem.c entity->name = name; entity 769 drivers/media/v4l2-core/v4l2-mem2mem.c entity->function = function; entity 771 drivers/media/v4l2-core/v4l2-mem2mem.c ret = media_entity_pads_init(entity, num_pads, pads); entity 774 drivers/media/v4l2-core/v4l2-mem2mem.c ret = media_device_register_entity(mdev, entity); entity 797 drivers/media/v4l2-core/v4l2-mem2mem.c m2m_dev->source = &vdev->entity; entity 28 drivers/media/v4l2-core/v4l2-subdev.c if (sd->entity.num_pads) { entity 66 drivers/media/v4l2-core/v4l2-subdev.c if (sd->v4l2_dev->mdev && sd->entity.graph_obj.mdev->dev) { entity 69 drivers/media/v4l2-core/v4l2-subdev.c owner = sd->entity.graph_obj.mdev->dev->driver->owner; entity 127 drivers/media/v4l2-core/v4l2-subdev.c if (sd->entity.num_pads) { entity 128 drivers/media/v4l2-core/v4l2-subdev.c if (pad >= sd->entity.num_pads) entity 702 drivers/media/v4l2-core/v4l2-subdev.c if (is_media_entity_v4l2_subdev(pad->entity)) { entity 704 drivers/media/v4l2-core/v4l2-subdev.c media_entity_to_v4l2_subdev(pad->entity); entity 711 drivers/media/v4l2-core/v4l2-subdev.c WARN(pad->entity->function != MEDIA_ENT_F_IO_V4L, entity 713 drivers/media/v4l2-core/v4l2-subdev.c pad->entity->function, pad->entity->name); entity 734 drivers/media/v4l2-core/v4l2-subdev.c sink = media_entity_to_v4l2_subdev(link->sink->entity); entity 752 drivers/media/v4l2-core/v4l2-subdev.c if (!sd->entity.num_pads) entity 755 drivers/media/v4l2-core/v4l2-subdev.c cfg = kvmalloc_array(sd->entity.num_pads, sizeof(*cfg), entity 789 drivers/media/v4l2-core/v4l2-subdev.c sd->entity.name = sd->name; entity 790 drivers/media/v4l2-core/v4l2-subdev.c sd->entity.obj_type = MEDIA_ENTITY_TYPE_V4L2_SUBDEV; entity 791 drivers/media/v4l2-core/v4l2-subdev.c sd->entity.function = MEDIA_ENT_F_V4L2_SUBDEV_UNKNOWN; entity 69 drivers/net/ethernet/chelsio/cxgb4/cxgb4_cudbg.c static u32 cxgb4_get_entity_length(struct adapter *adap, u32 entity) entity 74 drivers/net/ethernet/chelsio/cxgb4/cxgb4_cudbg.c switch (entity) { entity 315 drivers/net/ethernet/chelsio/cxgb4/cxgb4_cudbg.c u32 i, entity; entity 321 drivers/net/ethernet/chelsio/cxgb4/cxgb4_cudbg.c entity = cxgb4_collect_hw_dump[i].entity; entity 322 drivers/net/ethernet/chelsio/cxgb4/cxgb4_cudbg.c len += cxgb4_get_entity_length(adap, entity); entity 328 drivers/net/ethernet/chelsio/cxgb4/cxgb4_cudbg.c entity = cxgb4_collect_mem_dump[i].entity; entity 329 drivers/net/ethernet/chelsio/cxgb4/cxgb4_cudbg.c len += cxgb4_get_entity_length(adap, entity); entity 354 drivers/net/ethernet/chelsio/cxgb4/cxgb4_cudbg.c entity_hdr = cudbg_get_entity_hdr(buf, e->entity); entity 355 drivers/net/ethernet/chelsio/cxgb4/cxgb4_cudbg.c entity_hdr->entity_type = e->entity; entity 22 drivers/net/ethernet/chelsio/cxgb4/cxgb4_cudbg.h enum cudbg_dbg_entity_type entity; entity 492 drivers/staging/media/hantro/hantro_drv.c struct media_entity *entity, entity 500 drivers/staging/media/hantro/hantro_drv.c entity->obj_type = MEDIA_ENTITY_TYPE_BASE; entity 502 drivers/staging/media/hantro/hantro_drv.c entity->info.dev.major = VIDEO_MAJOR; entity 503 drivers/staging/media/hantro/hantro_drv.c entity->info.dev.minor = vdev->minor; entity 511 drivers/staging/media/hantro/hantro_drv.c entity->name = name; entity 512 drivers/staging/media/hantro/hantro_drv.c entity->function = function; entity 514 drivers/staging/media/hantro/hantro_drv.c ret = media_entity_pads_init(entity, num_pads, pads); entity 518 drivers/staging/media/hantro/hantro_drv.c ret = media_device_register_entity(mdev, entity); entity 534 drivers/staging/media/hantro/hantro_drv.c ret = hantro_register_entity(mdev, &func->vdev.entity, "source", entity 556 drivers/staging/media/hantro/hantro_drv.c ret = media_create_pad_link(&func->vdev.entity, 0, &func->proc, 0, entity 578 drivers/staging/media/hantro/hantro_drv.c link = media_create_intf_link(&func->vdev.entity, entity 604 drivers/staging/media/hantro/hantro_drv.c media_entity_remove_links(&func->vdev.entity); entity 613 drivers/staging/media/hantro/hantro_drv.c media_device_unregister_entity(&func->vdev.entity); entity 622 drivers/staging/media/hantro/hantro_drv.c media_entity_remove_links(&func->vdev.entity); entity 625 drivers/staging/media/hantro/hantro_drv.c media_device_unregister_entity(&func->vdev.entity); entity 54 drivers/staging/media/imx/imx-ic-common.c priv->sd.entity.ops = ic_ops[priv->task_id]->entity_ops; entity 55 drivers/staging/media/imx/imx-ic-common.c priv->sd.entity.function = MEDIA_ENT_F_PROC_VIDEO_SCALER; entity 84 drivers/staging/media/imx/imx-ic-common.c media_entity_cleanup(&sd->entity); entity 209 drivers/staging/media/imx/imx-ic-prp.c static int prp_link_setup(struct media_entity *entity, entity 213 drivers/staging/media/imx/imx-ic-prp.c struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); entity 220 drivers/staging/media/imx/imx-ic-prp.c ic_priv->sd.name, remote->entity->name, local->entity->name); entity 222 drivers/staging/media/imx/imx-ic-prp.c remote_sd = media_entity_to_v4l2_subdev(remote->entity); entity 303 drivers/staging/media/imx/imx-ic-prp.c csi = imx_media_pipeline_subdev(&ic_priv->sd.entity, entity 456 drivers/staging/media/imx/imx-ic-prp.c return media_entity_pads_init(&sd->entity, PRP_NUM_PADS, priv->pad); entity 1011 drivers/staging/media/imx/imx-ic-prpencvf.c static int prp_link_setup(struct media_entity *entity, entity 1015 drivers/staging/media/imx/imx-ic-prpencvf.c struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); entity 1022 drivers/staging/media/imx/imx-ic-prpencvf.c ic_priv->sd.name, remote->entity->name, local->entity->name); entity 1027 drivers/staging/media/imx/imx-ic-prpencvf.c if (!is_media_entity_v4l2_subdev(remote->entity)) { entity 1032 drivers/staging/media/imx/imx-ic-prpencvf.c remote_sd = media_entity_to_v4l2_subdev(remote->entity); entity 1050 drivers/staging/media/imx/imx-ic-prpencvf.c if (!is_media_entity_v4l2_video_device(remote->entity)) { entity 1065 drivers/staging/media/imx/imx-ic-prpencvf.c priv->sink = remote->entity; entity 1269 drivers/staging/media/imx/imx-ic-prpencvf.c ret = media_entity_pads_init(&sd->entity, PRPENCVF_NUM_PADS, entity 572 drivers/staging/media/imx/imx-media-capture.c ret = imx_media_pipeline_set_stream(priv->md, &priv->src_sd->entity, entity 605 drivers/staging/media/imx/imx-media-capture.c ret = imx_media_pipeline_set_stream(priv->md, &priv->src_sd->entity, entity 646 drivers/staging/media/imx/imx-media-capture.c ret = v4l2_pipeline_pm_use(&vfd->entity, 1); entity 667 drivers/staging/media/imx/imx-media-capture.c v4l2_pipeline_pm_use(&vfd->entity, 0); entity 771 drivers/staging/media/imx/imx-media-capture.c ret = media_entity_pads_init(&vfd->entity, 1, &priv->vdev_pad); entity 778 drivers/staging/media/imx/imx-media-capture.c ret = media_create_pad_link(&sd->entity, priv->src_sd_pad, entity 779 drivers/staging/media/imx/imx-media-capture.c &vfd->entity, 0, 0); entity 826 drivers/staging/media/imx/imx-media-capture.c media_entity_cleanup(&vfd->entity); entity 172 drivers/staging/media/imx/imx-media-csi.c src = &sd->entity; entity 183 drivers/staging/media/imx/imx-media-csi.c src = &sd->entity; entity 192 drivers/staging/media/imx/imx-media-csi.c src = &priv->sd.entity; entity 199 drivers/staging/media/imx/imx-media-csi.c sd = media_entity_to_v4l2_subdev(pad->entity); entity 1006 drivers/staging/media/imx/imx-media-csi.c static int csi_link_setup(struct media_entity *entity, entity 1010 drivers/staging/media/imx/imx-media-csi.c struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); entity 1015 drivers/staging/media/imx/imx-media-csi.c dev_dbg(priv->dev, "link setup %s -> %s\n", remote->entity->name, entity 1016 drivers/staging/media/imx/imx-media-csi.c local->entity->name); entity 1021 drivers/staging/media/imx/imx-media-csi.c if (!is_media_entity_v4l2_subdev(remote->entity)) { entity 1026 drivers/staging/media/imx/imx-media-csi.c remote_sd = media_entity_to_v4l2_subdev(remote->entity); entity 1062 drivers/staging/media/imx/imx-media-csi.c if (!is_media_entity_v4l2_video_device(remote->entity)) { entity 1075 drivers/staging/media/imx/imx-media-csi.c if (!is_media_entity_v4l2_subdev(remote->entity)) { entity 1080 drivers/staging/media/imx/imx-media-csi.c remote_sd = media_entity_to_v4l2_subdev(remote->entity); entity 1094 drivers/staging/media/imx/imx-media-csi.c priv->sink = remote->entity; entity 1136 drivers/staging/media/imx/imx-media-csi.c vc_num = imx_media_find_mipi_csi2_channel(&priv->sd.entity); entity 1796 drivers/staging/media/imx/imx-media-csi.c ret = media_entity_pads_init(&sd->entity, CSI_NUM_PADS, priv->pad); entity 1955 drivers/staging/media/imx/imx-media-csi.c priv->sd.entity.ops = &csi_entity_ops; entity 1956 drivers/staging/media/imx/imx-media-csi.c priv->sd.entity.function = MEDIA_ENT_F_PROC_VIDEO_PIXEL_FORMATTER; entity 2013 drivers/staging/media/imx/imx-media-csi.c media_entity_cleanup(&sd->entity); entity 78 drivers/staging/media/imx/imx-media-dev-common.c struct media_entity *entity = srcpad->entity; entity 86 drivers/staging/media/imx/imx-media-dev-common.c if (!is_media_entity_v4l2_subdev(entity)) entity 89 drivers/staging/media/imx/imx-media-dev-common.c sd = media_entity_to_v4l2_subdev(entity); entity 94 drivers/staging/media/imx/imx-media-dev-common.c entity->name, srcpad->index); entity 109 drivers/staging/media/imx/imx-media-dev-common.c vdev->vfd->entity.name, entity->name, srcpad->index); entity 120 drivers/staging/media/imx/imx-media-dev-common.c for (i = 0; i < entity->num_pads; i++) { entity 121 drivers/staging/media/imx/imx-media-dev-common.c struct media_pad *pad = &entity->pads[i]; entity 126 drivers/staging/media/imx/imx-media-dev-common.c list_for_each_entry(link, &entity->links, list) { entity 147 drivers/staging/media/imx/imx-media-dev-common.c struct media_entity *entity; entity 152 drivers/staging/media/imx/imx-media-dev-common.c entity = &sd->entity; entity 154 drivers/staging/media/imx/imx-media-dev-common.c entity->num_pads, sizeof(*vdev_lists), entity 162 drivers/staging/media/imx/imx-media-dev-common.c for (i = 0; i < entity->num_pads; i++) entity 181 drivers/staging/media/imx/imx-media-dev-common.c link = list_first_entry(&vdev->vfd->entity.links, entity 223 drivers/staging/media/imx/imx-media-dev-common.c struct media_entity *entity) entity 227 drivers/staging/media/imx/imx-media-dev-common.c if (is_media_entity_v4l2_subdev(entity)) { entity 228 drivers/staging/media/imx/imx-media-dev-common.c struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); entity 232 drivers/staging/media/imx/imx-media-dev-common.c vfd->entity.name, sd->entity.name); entity 242 drivers/staging/media/imx/imx-media-dev-common.c for (i = 0; i < entity->num_pads; i++) { entity 243 drivers/staging/media/imx/imx-media-dev-common.c struct media_pad *pad, *spad = &entity->pads[i]; entity 249 drivers/staging/media/imx/imx-media-dev-common.c if (!pad || !is_media_entity_v4l2_subdev(pad->entity)) entity 252 drivers/staging/media/imx/imx-media-dev-common.c ret = imx_media_inherit_controls(imxmd, vfd, pad->entity); entity 265 drivers/staging/media/imx/imx-media-dev-common.c struct media_entity *source = link->source->entity; entity 302 drivers/staging/media/imx/imx-media-dev-common.c vfd->entity.name); entity 312 drivers/staging/media/imx/imx-media-dev-common.c vfd->entity.name); entity 314 drivers/staging/media/imx/imx-media-dev-common.c &vfd->entity); entity 326 drivers/staging/media/imx/imx-media-dev-common.c struct media_entity *entity = &sd->entity; entity 332 drivers/staging/media/imx/imx-media-dev-common.c for (i = 0; i < entity->num_pads; i++) { entity 333 drivers/staging/media/imx/imx-media-dev-common.c struct media_pad *pad = &entity->pads[i]; entity 141 drivers/staging/media/imx/imx-media-internal-sd.c if (media_entity_find_link(&src->entity.pads[link->local_pad], entity 142 drivers/staging/media/imx/imx-media-internal-sd.c &sink->entity.pads[link->remote_pad])) entity 149 drivers/staging/media/imx/imx-media-internal-sd.c ret = media_create_pad_link(&src->entity, link->local_pad, entity 150 drivers/staging/media/imx/imx-media-internal-sd.c &sink->entity, link->remote_pad, 0); entity 168 drivers/staging/media/imx/imx-media-internal-sd.c for (i = 0; i < sd->entity.num_pads; i++) { entity 170 drivers/staging/media/imx/imx-media-internal-sd.c pad = &sd->entity.pads[i]; entity 92 drivers/staging/media/imx/imx-media-of.c if (link->local_port >= sd->entity.num_pads) entity 99 drivers/staging/media/imx/imx-media-of.c if (sd->entity.pads[link->local_port].flags & MEDIA_PAD_FL_SINK) { entity 112 drivers/staging/media/imx/imx-media-of.c if (media_entity_find_link(&src->entity.pads[src_pad], entity 113 drivers/staging/media/imx/imx-media-of.c &sink->entity.pads[sink_pad])) entity 119 drivers/staging/media/imx/imx-media-of.c return media_create_pad_link(&src->entity, src_pad, entity 120 drivers/staging/media/imx/imx-media-of.c &sink->entity, sink_pad, 0); entity 496 drivers/staging/media/imx/imx-media-utils.c for (pad = 0; pad < sd->entity.num_pads; pad++) { entity 801 drivers/staging/media/imx/imx-media-utils.c if (is_media_entity_v4l2_subdev(pad->entity)) { entity 802 drivers/staging/media/imx/imx-media-utils.c sd = media_entity_to_v4l2_subdev(pad->entity); entity 807 drivers/staging/media/imx/imx-media-utils.c return imx_media_pipeline_pad(pad->entity, grp_id, entity 810 drivers/staging/media/imx/imx-media-utils.c if (is_media_entity_v4l2_video_device(pad->entity)) { entity 811 drivers/staging/media/imx/imx-media-utils.c vfd = media_entity_to_video_device(pad->entity); entity 816 drivers/staging/media/imx/imx-media-utils.c return imx_media_pipeline_pad(pad->entity, grp_id, entity 842 drivers/staging/media/imx/imx-media-utils.c return &sd->entity; entity 846 drivers/staging/media/imx/imx-media-utils.c return &vfd->entity; entity 851 drivers/staging/media/imx/imx-media-utils.c return pad ? pad->entity : NULL; entity 915 drivers/staging/media/imx/imx-media-utils.c struct media_entity *entity, entity 921 drivers/staging/media/imx/imx-media-utils.c if (!is_media_entity_v4l2_subdev(entity)) entity 923 drivers/staging/media/imx/imx-media-utils.c sd = media_entity_to_v4l2_subdev(entity); entity 928 drivers/staging/media/imx/imx-media-utils.c ret = __media_pipeline_start(entity, &imxmd->pipe); entity 933 drivers/staging/media/imx/imx-media-utils.c __media_pipeline_stop(entity); entity 936 drivers/staging/media/imx/imx-media-utils.c if (entity->pipe) entity 937 drivers/staging/media/imx/imx-media-utils.c __media_pipeline_stop(entity); entity 670 drivers/staging/media/imx/imx-media-vdic.c static int vdic_link_setup(struct media_entity *entity, entity 674 drivers/staging/media/imx/imx-media-vdic.c struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); entity 680 drivers/staging/media/imx/imx-media-vdic.c sd->name, remote->entity->name, local->entity->name); entity 685 drivers/staging/media/imx/imx-media-vdic.c if (!is_media_entity_v4l2_subdev(remote->entity)) { entity 690 drivers/staging/media/imx/imx-media-vdic.c remote_sd = media_entity_to_v4l2_subdev(remote->entity); entity 720 drivers/staging/media/imx/imx-media-vdic.c if (!is_media_entity_v4l2_video_device(remote->entity)) { entity 731 drivers/staging/media/imx/imx-media-vdic.c if (!is_media_entity_v4l2_subdev(remote->entity)) { entity 736 drivers/staging/media/imx/imx-media-vdic.c remote_sd = media_entity_to_v4l2_subdev(remote->entity); entity 748 drivers/staging/media/imx/imx-media-vdic.c priv->src = remote->entity; entity 881 drivers/staging/media/imx/imx-media-vdic.c ret = media_entity_pads_init(&sd->entity, VDIC_NUM_PADS, priv->pad); entity 942 drivers/staging/media/imx/imx-media-vdic.c priv->sd.entity.ops = &vdic_entity_ops; entity 943 drivers/staging/media/imx/imx-media-vdic.c priv->sd.entity.function = MEDIA_ENT_F_PROC_VIDEO_PIXEL_FORMATTER; entity 970 drivers/staging/media/imx/imx-media-vdic.c media_entity_cleanup(&sd->entity); entity 218 drivers/staging/media/imx/imx-media.h struct media_entity *entity, entity 399 drivers/staging/media/imx/imx6-mipi-csi2.c static int csi2_link_setup(struct media_entity *entity, entity 403 drivers/staging/media/imx/imx6-mipi-csi2.c struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); entity 408 drivers/staging/media/imx/imx6-mipi-csi2.c dev_dbg(csi2->dev, "link setup %s -> %s", remote->entity->name, entity 409 drivers/staging/media/imx/imx6-mipi-csi2.c local->entity->name); entity 411 drivers/staging/media/imx/imx6-mipi-csi2.c remote_sd = media_entity_to_v4l2_subdev(remote->entity); entity 519 drivers/staging/media/imx/imx6-mipi-csi2.c return media_entity_pads_init(&sd->entity, CSI2_NUM_PADS, csi2->pad); entity 587 drivers/staging/media/imx/imx6-mipi-csi2.c csi2->sd.entity.ops = &csi2_entity_ops; entity 592 drivers/staging/media/imx/imx6-mipi-csi2.c csi2->sd.entity.function = MEDIA_ENT_F_VID_IF_BRIDGE; entity 668 drivers/staging/media/imx/imx6-mipi-csi2.c media_entity_cleanup(&sd->entity); entity 443 drivers/staging/media/imx/imx7-media-csi.c src = &csi->src_sd->entity; entity 451 drivers/staging/media/imx/imx7-media-csi.c src = &csi->sd.entity; entity 459 drivers/staging/media/imx/imx7-media-csi.c sd = media_entity_to_v4l2_subdev(pad->entity); entity 463 drivers/staging/media/imx/imx7-media-csi.c src = &sd->entity; entity 486 drivers/staging/media/imx/imx7-media-csi.c static int imx7_csi_link_setup(struct media_entity *entity, entity 490 drivers/staging/media/imx/imx7-media-csi.c struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); entity 495 drivers/staging/media/imx/imx7-media-csi.c dev_dbg(csi->dev, "link setup %s -> %s\n", remote->entity->name, entity 496 drivers/staging/media/imx/imx7-media-csi.c local->entity->name); entity 501 drivers/staging/media/imx/imx7-media-csi.c if (!is_media_entity_v4l2_subdev(remote->entity)) { entity 506 drivers/staging/media/imx/imx7-media-csi.c remote_sd = media_entity_to_v4l2_subdev(remote->entity); entity 527 drivers/staging/media/imx/imx7-media-csi.c csi->sink = remote->entity; entity 1122 drivers/staging/media/imx/imx7-media-csi.c ret = media_entity_pads_init(&sd->entity, IMX7_CSI_PADS_NUM, csi->pad); entity 1250 drivers/staging/media/imx/imx7-media-csi.c csi->sd.entity.ops = &imx7_csi_entity_ops; entity 1251 drivers/staging/media/imx/imx7-media-csi.c csi->sd.entity.function = MEDIA_ENT_F_VID_IF_BRIDGE; entity 597 drivers/staging/media/imx/imx7-mipi-csis.c static int mipi_csis_link_setup(struct media_entity *entity, entity 601 drivers/staging/media/imx/imx7-mipi-csis.c struct v4l2_subdev *mipi_sd = media_entity_to_v4l2_subdev(entity); entity 606 drivers/staging/media/imx/imx7-mipi-csis.c dev_dbg(state->dev, "link setup %s -> %s", remote_pad->entity->name, entity 607 drivers/staging/media/imx/imx7-mipi-csis.c local_pad->entity->name); entity 609 drivers/staging/media/imx/imx7-mipi-csis.c remote_sd = media_entity_to_v4l2_subdev(remote_pad->entity); entity 792 drivers/staging/media/imx/imx7-mipi-csis.c return media_entity_pads_init(&state->mipi_sd.entity, CSIS_PADS_NUM, entity 883 drivers/staging/media/imx/imx7-mipi-csis.c mipi_sd->entity.function = MEDIA_ENT_F_VID_IF_BRIDGE; entity 884 drivers/staging/media/imx/imx7-mipi-csis.c mipi_sd->entity.ops = &mipi_csis_entity_ops; entity 1029 drivers/staging/media/imx/imx7-mipi-csis.c media_entity_cleanup(&state->mipi_sd.entity); entity 1123 drivers/staging/media/imx/imx7-mipi-csis.c media_entity_cleanup(&state->mipi_sd.entity); entity 266 drivers/staging/media/ipu3/ipu3-v4l2.c static int imgu_link_setup(struct media_entity *entity, entity 271 drivers/staging/media/ipu3/ipu3-v4l2.c struct v4l2_subdev *sd = container_of(entity, struct v4l2_subdev, entity 272 drivers/staging/media/ipu3/ipu3-v4l2.c entity); entity 484 drivers/staging/media/ipu3/ipu3-v4l2.c r = media_pipeline_start(&node->vdev.entity, &imgu_pipe->pipeline); entity 508 drivers/staging/media/ipu3/ipu3-v4l2.c media_pipeline_stop(&node->vdev.entity); entity 545 drivers/staging/media/ipu3/ipu3-v4l2.c media_pipeline_stop(&node->vdev.entity); entity 1101 drivers/staging/media/ipu3/ipu3-v4l2.c r = media_entity_pads_init(&imgu_sd->subdev.entity, IMGU_NODE_NUM, entity 1108 drivers/staging/media/ipu3/ipu3-v4l2.c imgu_sd->subdev.entity.ops = &imgu_media_ops; entity 1116 drivers/staging/media/ipu3/ipu3-v4l2.c imgu_sd->subdev.entity.function = MEDIA_ENT_F_PROC_VIDEO_STATISTICS; entity 1145 drivers/staging/media/ipu3/ipu3-v4l2.c media_entity_cleanup(&imgu_sd->subdev.entity); entity 1207 drivers/staging/media/ipu3/ipu3-v4l2.c r = media_entity_pads_init(&vdev->entity, 1, &node->vdev_pad); entity 1215 drivers/staging/media/ipu3/ipu3-v4l2.c vdev->entity.ops = NULL; entity 1234 drivers/staging/media/ipu3/ipu3-v4l2.c media_entity_cleanup(&vdev->entity); entity 1251 drivers/staging/media/ipu3/ipu3-v4l2.c media_entity_cleanup(&vdev->entity); entity 1260 drivers/staging/media/ipu3/ipu3-v4l2.c r = media_create_pad_link(&vdev->entity, 0, &sd->entity, entity 1263 drivers/staging/media/ipu3/ipu3-v4l2.c r = media_create_pad_link(&sd->entity, node_num, &vdev->entity, entity 1283 drivers/staging/media/ipu3/ipu3-v4l2.c media_entity_cleanup(&imgu_pipe->nodes[i].vdev.entity); entity 1311 drivers/staging/media/ipu3/ipu3-v4l2.c media_entity_cleanup(&imgu_pipe->imgu_sd.subdev.entity); entity 141 drivers/staging/media/omap4iss/iss.c ret = v4l2_subdev_call(media_entity_to_v4l2_subdev(link->sink->entity), entity 386 drivers/staging/media/omap4iss/iss.c struct media_entity *entity; entity 392 drivers/staging/media/omap4iss/iss.c entity = &pipe->output->video.entity; entity 394 drivers/staging/media/omap4iss/iss.c pad = &entity->pads[0]; entity 399 drivers/staging/media/omap4iss/iss.c if (!pad || !is_media_entity_v4l2_subdev(pad->entity)) entity 402 drivers/staging/media/omap4iss/iss.c entity = pad->entity; entity 403 drivers/staging/media/omap4iss/iss.c if (entity == until) entity 406 drivers/staging/media/omap4iss/iss.c subdev = media_entity_to_v4l2_subdev(entity); entity 415 drivers/staging/media/omap4iss/iss.c media_entity_enum_set(&iss->crashed, &subdev->entity); entity 438 drivers/staging/media/omap4iss/iss.c struct media_entity *entity; entity 459 drivers/staging/media/omap4iss/iss.c entity = &pipe->output->video.entity; entity 461 drivers/staging/media/omap4iss/iss.c pad = &entity->pads[0]; entity 466 drivers/staging/media/omap4iss/iss.c if (!pad || !is_media_entity_v4l2_subdev(pad->entity)) entity 469 drivers/staging/media/omap4iss/iss.c entity = pad->entity; entity 470 drivers/staging/media/omap4iss/iss.c subdev = media_entity_to_v4l2_subdev(entity); entity 474 drivers/staging/media/omap4iss/iss.c iss_pipeline_disable(pipe, entity); entity 552 drivers/staging/media/omap4iss/iss.c return pad->entity == me; entity 1047 drivers/staging/media/omap4iss/iss.c input = &iss->csi2a.subdev.entity; entity 1054 drivers/staging/media/omap4iss/iss.c input = &iss->csi2b.subdev.entity; entity 1067 drivers/staging/media/omap4iss/iss.c ret = media_create_pad_link(&sensor->entity, 0, input, pad, entity 1112 drivers/staging/media/omap4iss/iss.c &iss->csi2a.subdev.entity, CSI2_PAD_SOURCE, entity 1113 drivers/staging/media/omap4iss/iss.c &iss->ipipeif.subdev.entity, IPIPEIF_PAD_SINK, 0); entity 1118 drivers/staging/media/omap4iss/iss.c &iss->csi2b.subdev.entity, CSI2_PAD_SOURCE, entity 1119 drivers/staging/media/omap4iss/iss.c &iss->ipipeif.subdev.entity, IPIPEIF_PAD_SINK, 0); entity 1124 drivers/staging/media/omap4iss/iss.c &iss->ipipeif.subdev.entity, IPIPEIF_PAD_SOURCE_VP, entity 1125 drivers/staging/media/omap4iss/iss.c &iss->resizer.subdev.entity, RESIZER_PAD_SINK, 0); entity 1130 drivers/staging/media/omap4iss/iss.c &iss->ipipeif.subdev.entity, IPIPEIF_PAD_SOURCE_VP, entity 1131 drivers/staging/media/omap4iss/iss.c &iss->ipipe.subdev.entity, IPIPE_PAD_SINK, 0); entity 1136 drivers/staging/media/omap4iss/iss.c &iss->ipipe.subdev.entity, IPIPE_PAD_SOURCE_VP, entity 1137 drivers/staging/media/omap4iss/iss.c &iss->resizer.subdev.entity, RESIZER_PAD_SINK, 0); entity 542 drivers/staging/media/omap4iss/iss_csi2.c sensor = media_entity_to_v4l2_subdev(pad->entity); entity 679 drivers/staging/media/omap4iss/iss_csi2.c to_iss_pipeline(&csi2->subdev.entity); entity 742 drivers/staging/media/omap4iss/iss_csi2.c struct iss_pipeline *pipe = to_iss_pipeline(&csi2->subdev.entity); entity 1022 drivers/staging/media/omap4iss/iss_csi2.c struct iss_pipeline *pipe = to_iss_pipeline(&csi2->subdev.entity); entity 1025 drivers/staging/media/omap4iss/iss_csi2.c pipe->external = media_entity_to_v4l2_subdev(link->source->entity); entity 1109 drivers/staging/media/omap4iss/iss_csi2.c if (omap4iss_module_sync_idle(&sd->entity, &csi2->wait, entity 1162 drivers/staging/media/omap4iss/iss_csi2.c static int csi2_link_setup(struct media_entity *entity, entity 1166 drivers/staging/media/omap4iss/iss_csi2.c struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); entity 1172 drivers/staging/media/omap4iss/iss_csi2.c if (is_media_entity_v4l2_subdev(remote->entity)) entity 1258 drivers/staging/media/omap4iss/iss_csi2.c struct media_entity *me = &sd->entity; entity 1297 drivers/staging/media/omap4iss/iss_csi2.c media_entity_cleanup(&csi2->subdev.entity); entity 1350 drivers/staging/media/omap4iss/iss_csi2.c ret = media_create_pad_link(&csi2a->subdev.entity, CSI2_PAD_SOURCE, entity 1351 drivers/staging/media/omap4iss/iss_csi2.c &csi2a->video_out.video.entity, 0, 0); entity 1356 drivers/staging/media/omap4iss/iss_csi2.c ret = media_create_pad_link(&csi2b->subdev.entity, CSI2_PAD_SOURCE, entity 1357 drivers/staging/media/omap4iss/iss_csi2.c &csi2b->video_out.video.entity, 0, 0); entity 1373 drivers/staging/media/omap4iss/iss_csi2.c media_entity_cleanup(&csi2a->subdev.entity); entity 1376 drivers/staging/media/omap4iss/iss_csi2.c media_entity_cleanup(&csi2b->subdev.entity); entity 119 drivers/staging/media/omap4iss/iss_csiphy.c struct iss_pipeline *pipe = to_iss_pipeline(&csi2_subdev->entity); entity 163 drivers/staging/media/omap4iss/iss_ipipe.c if (omap4iss_module_sync_idle(&sd->entity, &ipipe->wait, entity 438 drivers/staging/media/omap4iss/iss_ipipe.c static int ipipe_link_setup(struct media_entity *entity, entity 442 drivers/staging/media/omap4iss/iss_ipipe.c struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); entity 446 drivers/staging/media/omap4iss/iss_ipipe.c if (!is_media_entity_v4l2_subdev(remote->entity)) entity 460 drivers/staging/media/omap4iss/iss_ipipe.c if (remote->entity == &iss->ipipeif.subdev.entity) entity 499 drivers/staging/media/omap4iss/iss_ipipe.c struct media_entity *me = &sd->entity; entity 576 drivers/staging/media/omap4iss/iss_ipipe.c media_entity_cleanup(&ipipe->subdev.entity); entity 342 drivers/staging/media/omap4iss/iss_ipipeif.c if (omap4iss_module_sync_idle(&sd->entity, &ipipeif->wait, entity 654 drivers/staging/media/omap4iss/iss_ipipeif.c static int ipipeif_link_setup(struct media_entity *entity, entity 658 drivers/staging/media/omap4iss/iss_ipipeif.c struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); entity 664 drivers/staging/media/omap4iss/iss_ipipeif.c if (is_media_entity_v4l2_subdev(remote->entity)) entity 678 drivers/staging/media/omap4iss/iss_ipipeif.c if (remote->entity == &iss->csi2a.subdev.entity) entity 680 drivers/staging/media/omap4iss/iss_ipipeif.c else if (remote->entity == &iss->csi2b.subdev.entity) entity 730 drivers/staging/media/omap4iss/iss_ipipeif.c struct media_entity *me = &sd->entity; entity 824 drivers/staging/media/omap4iss/iss_ipipeif.c return media_create_pad_link(&ipipeif->subdev.entity, entity 826 drivers/staging/media/omap4iss/iss_ipipeif.c &ipipeif->video_out.video.entity, 0, 0); entity 837 drivers/staging/media/omap4iss/iss_ipipeif.c media_entity_cleanup(&ipipeif->subdev.entity); entity 290 drivers/staging/media/omap4iss/iss_resizer.c to_iss_pipeline(&resizer->subdev.entity); entity 397 drivers/staging/media/omap4iss/iss_resizer.c if (omap4iss_module_sync_idle(&sd->entity, &resizer->wait, entity 708 drivers/staging/media/omap4iss/iss_resizer.c static int resizer_link_setup(struct media_entity *entity, entity 712 drivers/staging/media/omap4iss/iss_resizer.c struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); entity 718 drivers/staging/media/omap4iss/iss_resizer.c if (is_media_entity_v4l2_subdev(remote->entity)) entity 732 drivers/staging/media/omap4iss/iss_resizer.c if (remote->entity == &iss->ipipeif.subdev.entity) entity 734 drivers/staging/media/omap4iss/iss_resizer.c else if (remote->entity == &iss->ipipe.subdev.entity) entity 773 drivers/staging/media/omap4iss/iss_resizer.c struct media_entity *me = &sd->entity; entity 866 drivers/staging/media/omap4iss/iss_resizer.c return media_create_pad_link(&resizer->subdev.entity, entity 868 drivers/staging/media/omap4iss/iss_resizer.c &resizer->video_out.video.entity, 0, 0); entity 879 drivers/staging/media/omap4iss/iss_resizer.c media_entity_cleanup(&resizer->subdev.entity); entity 195 drivers/staging/media/omap4iss/iss_video.c if (!remote || !is_media_entity_v4l2_subdev(remote->entity)) entity 201 drivers/staging/media/omap4iss/iss_video.c return media_entity_to_v4l2_subdev(remote->entity); entity 209 drivers/staging/media/omap4iss/iss_video.c struct media_entity *entity = &video->video.entity; entity 210 drivers/staging/media/omap4iss/iss_video.c struct media_device *mdev = entity->graph_obj.mdev; entity 220 drivers/staging/media/omap4iss/iss_video.c media_graph_walk_start(&graph, entity); entity 222 drivers/staging/media/omap4iss/iss_video.c while ((entity = media_graph_walk_next(&graph))) { entity 223 drivers/staging/media/omap4iss/iss_video.c if (entity == &video->video.entity) entity 226 drivers/staging/media/omap4iss/iss_video.c if (!is_media_entity_v4l2_video_device(entity)) entity 229 drivers/staging/media/omap4iss/iss_video.c far_end = to_iss_video(media_entity_to_video_device(entity)); entity 358 drivers/staging/media/omap4iss/iss_video.c struct iss_pipeline *pipe = to_iss_pipeline(&video->video.entity); entity 430 drivers/staging/media/omap4iss/iss_video.c struct iss_pipeline *pipe = to_iss_pipeline(&video->video.entity); entity 856 drivers/staging/media/omap4iss/iss_video.c struct media_entity *entity = &video->video.entity; entity 872 drivers/staging/media/omap4iss/iss_video.c pipe = entity->pipe entity 873 drivers/staging/media/omap4iss/iss_video.c ? to_iss_pipeline(entity) : &video->pipe; entity 878 drivers/staging/media/omap4iss/iss_video.c ret = media_entity_enum_init(&pipe->ent_enum, entity->graph_obj.mdev); entity 882 drivers/staging/media/omap4iss/iss_video.c ret = media_graph_walk_init(&graph, entity->graph_obj.mdev); entity 889 drivers/staging/media/omap4iss/iss_video.c ret = media_pipeline_start(entity, &pipe->pipe); entity 893 drivers/staging/media/omap4iss/iss_video.c media_graph_walk_start(&graph, entity); entity 894 drivers/staging/media/omap4iss/iss_video.c while ((entity = media_graph_walk_next(&graph))) entity 895 drivers/staging/media/omap4iss/iss_video.c media_entity_enum_set(&pipe->ent_enum, entity); entity 978 drivers/staging/media/omap4iss/iss_video.c media_pipeline_stop(&video->video.entity); entity 999 drivers/staging/media/omap4iss/iss_video.c struct iss_pipeline *pipe = to_iss_pipeline(&video->video.entity); entity 1032 drivers/staging/media/omap4iss/iss_video.c media_pipeline_stop(&video->video.entity); entity 1114 drivers/staging/media/omap4iss/iss_video.c ret = v4l2_pipeline_pm_use(&video->video.entity, 1); entity 1163 drivers/staging/media/omap4iss/iss_video.c v4l2_pipeline_pm_use(&video->video.entity, 0); entity 1227 drivers/staging/media/omap4iss/iss_video.c ret = media_entity_pads_init(&video->video.entity, 1, &video->pad); entity 1257 drivers/staging/media/omap4iss/iss_video.c media_entity_cleanup(&video->video.entity); entity 2693 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c char entity[16]; entity 2703 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c sprintf(entity, "VCHIQ: "); entity 2706 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c sprintf(entity, "%c%c%c%c:%03d", entity 2739 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c "blocked - waiting...", __func__, entity); entity 2744 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c __func__, entity); entity 2752 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c "unblocked", __func__, entity); entity 2775 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c __func__, entity, local_entity_uc, local_uc); entity 2780 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c __func__, entity, *entity_uc, local_uc); entity 2788 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c __func__, entity); entity 2792 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c "resume interrupted", __func__, entity); entity 2797 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c entity); entity 2825 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c char entity[16]; entity 2834 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c sprintf(entity, "%c%c%c%c:%03d", entity 2839 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c sprintf(entity, "PEER: "); entity 2863 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c __func__, entity, *entity_uc, entity 2870 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c __func__, entity, *entity_uc, entity 2018 drivers/usb/gadget/function/f_fs.c typedef int (*ffs_entity_callback)(enum ffs_entity_type entity, entity 2023 drivers/usb/gadget/function/f_fs.c typedef int (*ffs_os_desc_callback)(enum ffs_os_desc_type entity, entity 2028 drivers/usb/gadget/function/f_fs.c ffs_entity_callback entity, entity 2059 drivers/usb/gadget/function/f_fs.c ret = entity(FFS_ ##type, &val, _ds, priv); \ entity 2169 drivers/usb/gadget/function/f_fs.c ffs_entity_callback entity, void *priv) entity 2184 drivers/usb/gadget/function/f_fs.c ret = entity(FFS_DESCRIPTOR, (u8 *)num, (void *)data, priv); entity 2194 drivers/usb/gadget/function/f_fs.c ret = ffs_do_single_desc(data, len, entity, priv, entity 2290 drivers/usb/gadget/function/f_fs.c ffs_os_desc_callback entity, entity 2301 drivers/usb/gadget/function/f_fs.c ret = entity(type, h, data, len, priv); entity 2315 drivers/usb/gadget/function/f_fs.c ffs_os_desc_callback entity, void *priv) entity 2362 drivers/usb/gadget/function/f_fs.c feature_count, entity, priv, desc); entity 31 drivers/video/fbdev/sh_mobile_lcdcfb.h int (*display_on)(struct sh_mobile_lcdc_entity *entity); entity 32 drivers/video/fbdev/sh_mobile_lcdcfb.h void (*display_off)(struct sh_mobile_lcdc_entity *entity); entity 180 include/acpi/actbl1.h u8 entity; entity 192 include/drm/gpu_scheduler.h struct drm_sched_entity *entity; entity 293 include/drm/gpu_scheduler.h struct drm_sched_entity *entity, entity 302 include/drm/gpu_scheduler.h struct drm_sched_entity *entity); entity 307 include/drm/gpu_scheduler.h struct drm_sched_entity *entity); entity 309 include/drm/gpu_scheduler.h struct drm_sched_entity *entity); entity 311 include/drm/gpu_scheduler.h int drm_sched_entity_init(struct drm_sched_entity *entity, entity 315 include/drm/gpu_scheduler.h long drm_sched_entity_flush(struct drm_sched_entity *entity, long timeout); entity 316 include/drm/gpu_scheduler.h void drm_sched_entity_fini(struct drm_sched_entity *entity); entity 317 include/drm/gpu_scheduler.h void drm_sched_entity_destroy(struct drm_sched_entity *entity); entity 318 include/drm/gpu_scheduler.h void drm_sched_entity_select_rq(struct drm_sched_entity *entity); entity 319 include/drm/gpu_scheduler.h struct drm_sched_job *drm_sched_entity_pop_job(struct drm_sched_entity *entity); entity 321 include/drm/gpu_scheduler.h struct drm_sched_entity *entity); entity 322 include/drm/gpu_scheduler.h void drm_sched_entity_set_priority(struct drm_sched_entity *entity, entity 324 include/drm/gpu_scheduler.h bool drm_sched_entity_is_ready(struct drm_sched_entity *entity); entity 183 include/media/dvbdev.h struct media_entity *entity, *tsout_entity; entity 39 include/media/media-device.h void (*notify)(struct media_entity *entity, void *notify_data); entity 174 include/media/media-device.h int (*enable_source)(struct media_entity *entity, entity 176 include/media/media-device.h void (*disable_source)(struct media_entity *entity); entity 340 include/media/media-device.h struct media_entity *entity); entity 361 include/media/media-device.h void media_device_unregister_entity(struct media_entity *entity); entity 391 include/media/media-device.h #define media_device_for_each_entity(entity, mdev) \ entity 392 include/media/media-device.h list_for_each_entry(entity, &(mdev)->entities, graph_obj.list) entity 449 include/media/media-device.h struct media_entity *entity) entity 453 include/media/media-device.h static inline void media_device_unregister_entity(struct media_entity *entity) entity 90 include/media/media-entity.h struct media_entity *entity; entity 143 include/media/media-entity.h struct media_entity *entity; entity 191 include/media/media-entity.h struct media_entity *entity; entity 216 include/media/media-entity.h int (*link_setup)(struct media_entity *entity, entity 362 include/media/media-entity.h static inline u32 media_entity_id(struct media_entity *entity) entity 364 include/media/media-entity.h return entity->graph_obj.id; entity 411 include/media/media-entity.h static inline bool is_media_entity_v4l2_video_device(struct media_entity *entity) entity 413 include/media/media-entity.h return entity && entity->obj_type == MEDIA_ENTITY_TYPE_VIDEO_DEVICE; entity 424 include/media/media-entity.h static inline bool is_media_entity_v4l2_subdev(struct media_entity *entity) entity 426 include/media/media-entity.h return entity && entity->obj_type == MEDIA_ENTITY_TYPE_V4L2_SUBDEV; entity 464 include/media/media-entity.h struct media_entity *entity) entity 466 include/media/media-entity.h if (WARN_ON(entity->internal_idx >= ent_enum->idx_max)) entity 469 include/media/media-entity.h __set_bit(entity->internal_idx, ent_enum->bmap); entity 479 include/media/media-entity.h struct media_entity *entity) entity 481 include/media/media-entity.h if (WARN_ON(entity->internal_idx >= ent_enum->idx_max)) entity 484 include/media/media-entity.h __clear_bit(entity->internal_idx, ent_enum->bmap); entity 496 include/media/media-entity.h struct media_entity *entity) entity 498 include/media/media-entity.h if (WARN_ON(entity->internal_idx >= ent_enum->idx_max)) entity 501 include/media/media-entity.h return test_bit(entity->internal_idx, ent_enum->bmap); entity 515 include/media/media-entity.h struct media_entity *entity) entity 517 include/media/media-entity.h if (WARN_ON(entity->internal_idx >= ent_enum->idx_max)) entity 520 include/media/media-entity.h return __test_and_set_bit(entity->internal_idx, ent_enum->bmap); entity 648 include/media/media-entity.h int media_entity_pads_init(struct media_entity *entity, u16 num_pads, entity 660 include/media/media-entity.h static inline void media_entity_cleanup(struct media_entity *entity) {} entity 662 include/media/media-entity.h #define media_entity_cleanup(entity) do { } while (false) entity 680 include/media/media-entity.h int media_get_pad_index(struct media_entity *entity, bool is_sink, entity 768 include/media/media-entity.h void __media_entity_remove_links(struct media_entity *entity); entity 780 include/media/media-entity.h void media_entity_remove_links(struct media_entity *entity); entity 878 include/media/media-entity.h int media_entity_get_fwnode_pad(struct media_entity *entity, entity 914 include/media/media-entity.h struct media_entity *entity); entity 944 include/media/media-entity.h __must_check int media_pipeline_start(struct media_entity *entity, entity 954 include/media/media-entity.h __must_check int __media_pipeline_start(struct media_entity *entity, entity 969 include/media/media-entity.h void media_pipeline_stop(struct media_entity *entity); entity 978 include/media/media-entity.h void __media_pipeline_stop(struct media_entity *entity); entity 1044 include/media/media-entity.h __must_check media_create_intf_link(struct media_entity *entity, entity 1100 include/media/media-entity.h #define media_entity_call(entity, operation, args...) \ entity 1101 include/media/media-entity.h (((entity)->ops && (entity)->ops->operation) ? \ entity 1102 include/media/media-entity.h (entity)->ops->operation((entity) , ##args) : -ENOIOCTLCMD) entity 259 include/media/v4l2-dev.h struct media_entity entity; entity 312 include/media/v4l2-dev.h container_of(__entity, struct video_device, entity) entity 105 include/media/v4l2-mc.h int v4l2_pipeline_pm_use(struct media_entity *entity, int use); entity 147 include/media/v4l2-mc.h static inline int v4l2_pipeline_pm_use(struct media_entity *entity, int use) entity 850 include/media/v4l2-subdev.h struct media_entity entity; entity 886 include/media/v4l2-subdev.h container_of(__me_sd_ent, struct v4l2_subdev, entity) : \ entity 938 include/media/v4l2-subdev.h if (WARN_ON(pad >= sd->entity.num_pads)) entity 956 include/media/v4l2-subdev.h if (WARN_ON(pad >= sd->entity.num_pads)) entity 974 include/media/v4l2-subdev.h if (WARN_ON(pad >= sd->entity.num_pads)) entity 215 include/uapi/linux/media.h __u32 entity; /* entity ID */ entity 237 include/uapi/linux/media.h __u32 entity; entity 47 include/uapi/linux/uvcvideo.h __u8 entity[16]; entity 42 sound/usb/media.c struct media_entity *entity; entity 91 sound/usb/media.c media_device_for_each_entity(entity, mdev) { entity 92 sound/usb/media.c switch (entity->function) { entity 94 sound/usb/media.c ret = media_create_pad_link(entity, mixer_pad,