| /linux/block/ |
| H A D | bfq-wf2q.c | 30 static unsigned int bfq_class_idx(struct bfq_entity *entity) in bfq_class_idx() argument 32 struct bfq_queue *bfqq = bfq_entity_to_bfqq(entity); in bfq_class_idx() 52 * @new_entity: if not NULL, pointer to the entity whose activation, 56 * expiration of the in-service entity 60 * extraction of an entity into/from one of the active trees of 65 * reposition an entity in its active tree; see comments on 68 * just activated or requeued entity. 71 * entity->parent may become the next_in_service for its parent 72 * entity. 84 * or repositioning of an entity that does not coincide with in bfq_update_next_in_service() [all …]
|
| H A D | bfq-cgroup.c | 324 struct bfq_entity *group_entity = bfqq->entity.parent; in bfqq_group() 327 entity) : in bfqq_group() 438 void bfq_init_entity(struct bfq_entity *entity, struct bfq_group *bfqg) in bfq_init_entity() argument 440 struct bfq_queue *bfqq = bfq_entity_to_bfqq(entity); in bfq_init_entity() 442 entity->weight = entity->new_weight; in bfq_init_entity() 443 entity->orig_weight = entity->new_weight; in bfq_init_entity() 449 * disappear before entity. in bfq_init_entity() 453 entity->parent = bfqg->my_entity; /* NULL for root group */ in bfq_init_entity() 454 entity->sched_data = &bfqg->sched_data; in bfq_init_entity() 536 struct bfq_entity *entity = &bfqg->entity; in bfq_pd_init() local [all …]
|
| H A D | bfq-iosched.h | 59 /* idle entity with minimum F_i */ 61 /* idle entity with maximum F_i */ 84 * @next_in_service, which points to the entity on the active trees 86 * before the current in-service entity is expired, 2) the in-service 87 * queue becomes idle when it expires, and 3) if the entity pointed by 88 * in_service_entity is not a queue, then the in-service child entity 89 * of the entity pointed by in_service_entity becomes idle on 91 * optimization, not yet exploited: while a given entity is still in 94 * entity. We can then quickly compare the timestamps of the 95 * in-service entity with those of such best candidate. [all …]
|
| /linux/drivers/gpu/drm/scheduler/ |
| H A D | sched_entity.c | 36 * drm_sched_entity_stats_release - Entity stats kref release function 37 * @kref: Entity stats embedded kref pointer 68 * drm_sched_entity_stats_job_add_gpu_time - Account job execution time to entity 71 * Accounts the execution time of @job to its respective entity stats object. 94 * drm_sched_entity_init - Init a context entity used by scheduler when 97 * @entity: scheduler entity to init 98 * @priority: priority of the entity 100 * entity can be submitted 105 * Note that the &sched_list must have at least one element to schedule the entity 116 drm_sched_entity_init(struct drm_sched_entity * entity,enum drm_sched_priority priority,struct drm_gpu_scheduler ** sched_list,unsigned int num_sched_list,atomic_t * guilty) drm_sched_entity_init() argument 195 drm_sched_entity_modify_sched(struct drm_sched_entity * entity,struct drm_gpu_scheduler ** sched_list,unsigned int num_sched_list) drm_sched_entity_modify_sched() argument 208 drm_sched_entity_is_idle(struct drm_sched_entity * entity) drm_sched_entity_is_idle() argument 227 drm_sched_entity_error(struct drm_sched_entity * entity) drm_sched_entity_error() argument 305 drm_sched_entity_kill(struct drm_sched_entity * entity) drm_sched_entity_kill() argument 354 drm_sched_entity_flush(struct drm_sched_entity * entity,long timeout) drm_sched_entity_flush() argument 397 drm_sched_entity_fini(struct drm_sched_entity * entity) drm_sched_entity_fini() argument 425 drm_sched_entity_destroy(struct drm_sched_entity * entity) drm_sched_entity_destroy() argument 439 struct drm_sched_entity *entity = drm_sched_entity_wakeup() local 455 drm_sched_entity_set_priority(struct drm_sched_entity * entity,enum drm_sched_priority priority) drm_sched_entity_set_priority() argument 468 drm_sched_entity_add_dependency_cb(struct drm_sched_entity * entity,struct drm_sched_job * sched_job) drm_sched_entity_add_dependency_cb() argument 513 drm_sched_job_dependency(struct drm_sched_job * job,struct drm_sched_entity * entity) drm_sched_job_dependency() argument 533 drm_sched_entity_pop_job(struct drm_sched_entity * entity) drm_sched_entity_pop_job() argument 576 drm_sched_entity_select_rq(struct drm_sched_entity * entity) drm_sched_entity_select_rq() argument 629 struct drm_sched_entity *entity = sched_job->entity; drm_sched_entity_push_job() local [all...] |
| H A D | sched_rq.c | 32 struct drm_sched_entity *entity = in drm_sched_rq_update_prio() local 33 rb_entry(rb, typeof(*entity), rb_tree_node); in drm_sched_rq_update_prio() 36 * The normal locking order is entity then run-queue so taking in drm_sched_rq_update_prio() 37 * the entity lock here would be a locking inversion for the in drm_sched_rq_update_prio() 46 prio = READ_ONCE(entity->priority); in drm_sched_rq_update_prio() 52 static void drm_sched_rq_remove_fifo_locked(struct drm_sched_entity *entity, in drm_sched_rq_remove_fifo_locked() argument 55 lockdep_assert_held(&entity->lock); in drm_sched_rq_remove_fifo_locked() 58 if (!RB_EMPTY_NODE(&entity->rb_tree_node)) { in drm_sched_rq_remove_fifo_locked() 59 rb_erase_cached(&entity->rb_tree_node, &rq->rb_tree_root); in drm_sched_rq_remove_fifo_locked() 60 RB_CLEAR_NODE(&entity in drm_sched_rq_remove_fifo_locked() 65 drm_sched_rq_update_fifo_locked(struct drm_sched_entity * entity,struct drm_sched_rq * rq,ktime_t ts) drm_sched_rq_update_fifo_locked() argument 133 struct drm_sched_entity *entity = drm_sched_rq_get_min_vruntime() local 146 drm_sched_entity_save_vruntime(struct drm_sched_entity * entity,ktime_t min_vruntime) drm_sched_entity_save_vruntime() argument 163 drm_sched_entity_restore_vruntime(struct drm_sched_entity * entity,ktime_t min_vruntime,enum drm_sched_priority rq_prio) drm_sched_entity_restore_vruntime() argument 224 drm_sched_entity_update_vruntime(struct drm_sched_entity * entity) drm_sched_entity_update_vruntime() argument 242 drm_sched_entity_get_job_ts(struct drm_sched_entity * entity) drm_sched_entity_get_job_ts() argument 258 drm_sched_rq_add_entity(struct drm_sched_entity * entity,ktime_t ts) drm_sched_rq_add_entity() argument 302 drm_sched_rq_remove_entity(struct drm_sched_rq * rq,struct drm_sched_entity * entity) drm_sched_rq_remove_entity() argument 321 drm_sched_rq_next_rr_ts(struct drm_sched_rq * rq,struct drm_sched_entity * entity) drm_sched_rq_next_rr_ts() argument 341 drm_sched_rq_pop_entity(struct drm_sched_entity * entity) drm_sched_rq_pop_entity() argument 399 struct drm_sched_entity *entity; drm_sched_rq_select_entity() local [all...] |
| /linux/sound/soc/sdca/ |
| H A D | sdca_asoc.c | 36 static bool exported_control(struct sdca_entity *entity, struct sdca_control *control) in exported_control() argument 38 switch (SDCA_CTL_TYPE(entity->type, control->sel)) { in exported_control() 54 static int ge_count_routes(struct sdca_entity *entity) in ge_count_routes() argument 59 for (i = 0; i < entity->ge.num_modes; i++) { in ge_count_routes() 60 struct sdca_ge_mode *mode = &entity->ge.modes[i]; in ge_count_routes() 105 struct sdca_entity *entity = &function->entities[i]; in sdca_asoc_count_component() local 109 switch (entity->type) { in sdca_asoc_count_component() 112 *num_routes += !!entity->iot.clock; in sdca_asoc_count_component() 113 *num_routes += !!entity->iot.is_dataport; in sdca_asoc_count_component() 114 *num_controls += !entity in sdca_asoc_count_component() 192 entity_early_parse_ge(struct device * dev,struct sdca_function_data * function,struct sdca_entity * entity) entity_early_parse_ge() argument 285 entity_parse_simple(struct device * dev,struct sdca_function_data * function,struct sdca_entity * entity,struct snd_soc_dapm_widget ** widget,struct snd_soc_dapm_route ** route,enum snd_soc_dapm_type id) entity_parse_simple() argument 303 entity_parse_it(struct device * dev,struct sdca_function_data * function,struct sdca_entity * entity,struct snd_soc_dapm_widget ** widget,struct snd_soc_dapm_route ** route) entity_parse_it() argument 335 entity_parse_ot(struct device * dev,struct sdca_function_data * function,struct sdca_entity * entity,struct snd_soc_dapm_widget ** widget,struct snd_soc_dapm_route ** route) entity_parse_ot() argument 433 struct sdca_entity *entity = widget->priv; entity_pde_event() local 468 entity_parse_pde(struct device * dev,struct sdca_function_data * function,struct sdca_entity * entity,struct snd_soc_dapm_widget ** widget,struct snd_soc_dapm_route ** route) entity_parse_pde() argument 521 entity_parse_su_device(struct device * dev,struct sdca_function_data * function,struct sdca_entity * entity,struct snd_soc_dapm_widget ** widget,struct snd_soc_dapm_route ** route) entity_parse_su_device() argument 580 entity_parse_su_class(struct device * dev,struct sdca_function_data * function,struct sdca_entity * entity,struct sdca_control * control,struct snd_soc_dapm_widget ** widget,struct snd_soc_dapm_route ** route) entity_parse_su_class() argument 631 entity_parse_su(struct device * dev,struct sdca_function_data * function,struct sdca_entity * entity,struct snd_soc_dapm_widget ** widget,struct snd_soc_dapm_route ** route) entity_parse_su() argument 658 entity_parse_mu(struct device * dev,struct sdca_function_data * function,struct sdca_entity * entity,struct snd_soc_dapm_widget ** widget,struct snd_soc_dapm_route ** route) entity_parse_mu() argument 726 struct sdca_entity *entity = widget->priv; entity_cs_event() local 739 entity_parse_cs(struct device * dev,struct sdca_function_data * function,struct sdca_entity * entity,struct snd_soc_dapm_widget ** widget,struct snd_soc_dapm_route ** route) entity_parse_cs() argument 780 struct sdca_entity *entity = &function->entities[i]; sdca_asoc_populate_dapm() local 798 struct sdca_entity *entity = &function->entities[i]; sdca_asoc_populate_dapm() local 923 control_limit_kctl(struct device * dev,struct sdca_entity * entity,struct sdca_control * control,struct snd_kcontrol_new * kctl) control_limit_kctl() argument 1015 populate_control(struct device * dev,struct sdca_function_data * function,struct sdca_entity * entity,struct sdca_control * control,struct snd_kcontrol_new ** kctl) populate_control() argument 1093 populate_pin_switch(struct device * dev,struct sdca_entity * entity,struct snd_kcontrol_new ** kctl) populate_pin_switch() argument 1134 struct sdca_entity *entity = &function->entities[i]; sdca_asoc_populate_controls() local 1235 sdca_asoc_populate_rate_format(struct device * dev,struct sdca_function_data * function,struct sdca_entity * entity,struct snd_soc_pcm_stream * stream) sdca_asoc_populate_rate_format() argument 1318 struct sdca_entity *entity = &function->entities[i]; sdca_asoc_populate_dais() local 1458 struct sdca_entity *entity = &function->entities[dai->id]; sdca_asoc_set_constraints() local 1548 struct sdca_entity *entity = &function->entities[dai->id]; sdca_asoc_get_port() local 1608 set_cluster(struct device * dev,struct regmap * regmap,struct sdca_function_data * function,struct sdca_entity * entity,unsigned int channels) set_cluster() argument 1651 set_clock(struct device * dev,struct regmap * regmap,struct sdca_function_data * function,struct sdca_entity * entity,int target_rate) set_clock() argument 1691 set_usage(struct device * dev,struct regmap * regmap,struct sdca_function_data * function,struct sdca_entity * entity,int sel,int target_rate,int target_width) set_usage() argument 1748 struct sdca_entity *entity = &function->entities[dai->id]; sdca_asoc_hw_params() local [all...] |
| H A D | sdca_ump.c | 24 * @entity: Pointer to the SDCA Entity. 32 struct sdca_entity *entity, in sdca_ump_get_owner_host() argument 38 reg = SDW_SDCA_CTL(function->desc->adr, entity->id, control->sel, 0); in sdca_ump_get_owner_host() 42 entity->label, ret); in sdca_ump_get_owner_host() 47 dev_err(dev, "%s: host is not the UMP owner\n", entity->label); in sdca_ump_get_owner_host() 60 * @entity: Pointer to the SDCA Entity. 68 struct sdca_entity *entity, in sdca_ump_set_owner_device() argument 74 reg = SDW_SDCA_CTL(function->desc->adr, entity->id, control->sel, 0); in sdca_ump_set_owner_device() 78 entity->label, ret); in sdca_ump_set_owner_device() 90 * @entity: Pointer to the SDCA Entity. [all …]
|
| H A D | sdca_functions.c | 259 const struct sdca_entity *entity, in find_sdca_control_label() 262 switch (SDCA_CTL_TYPE(entity->type, control->sel)) { in find_sdca_control_label() 552 static unsigned int find_sdca_control_bits(const struct sdca_entity *entity, in find_sdca_control_bits() 555 switch (SDCA_CTL_TYPE(entity->type, control->sel)) { in find_sdca_control_bits() 621 find_sdca_control_datatype(const struct sdca_entity *entity, in find_sdca_control_datatype() 624 switch (SDCA_CTL_TYPE(entity->type, control->sel)) { in find_sdca_control_datatype() 792 static bool find_sdca_control_volatile(const struct sdca_entity *entity, in find_sdca_control_volatile() 806 switch (SDCA_CTL_TYPE(entity->type, control->sel)) { in find_sdca_control_volatile() 888 static int find_sdca_control_value(struct device *dev, struct sdca_entity *entity, in find_sdca_control_value() 925 static void find_sdca_control_reset(const struct sdca_entity *entity, in find_sdca_control_reset() 255 find_sdca_control_label(struct device * dev,const struct sdca_entity * entity,const struct sdca_control * control) find_sdca_control_label() argument 548 find_sdca_control_bits(const struct sdca_entity * entity,const struct sdca_control * control) find_sdca_control_bits() argument 617 find_sdca_control_datatype(const struct sdca_entity * entity,const struct sdca_control * control) find_sdca_control_datatype() argument 788 find_sdca_control_volatile(const struct sdca_entity * entity,const struct sdca_control * control) find_sdca_control_volatile() argument 884 find_sdca_control_value(struct device * dev,struct sdca_entity * entity,struct fwnode_handle * control_node,struct sdca_control * control,const char * const label) find_sdca_control_value() argument 921 find_sdca_control_reset(const struct sdca_entity * entity,struct sdca_control * control) find_sdca_control_reset() argument 953 find_sdca_entity_control(struct device * dev,struct sdca_entity * entity,struct fwnode_handle * control_node,struct sdca_control * control) find_sdca_entity_control() argument 1067 find_sdca_entity_controls(struct device * dev,struct fwnode_handle * entity_node,struct sdca_entity * entity) find_sdca_entity_controls() argument 1151 find_sdca_entity_iot(struct device * dev,struct fwnode_handle * entity_node,struct sdca_entity * entity) find_sdca_entity_iot() argument 1201 find_sdca_entity_cs(struct device * dev,struct fwnode_handle * entity_node,struct sdca_entity * entity) find_sdca_entity_cs() argument 1228 find_sdca_entity_pde(struct device * dev,struct fwnode_handle * entity_node,struct sdca_entity * entity) find_sdca_entity_pde() argument 1294 find_sdca_entity_ge(struct device * dev,struct fwnode_handle * entity_node,struct sdca_entity * entity) find_sdca_entity_ge() argument 1369 find_sdca_entity_hide(struct device * dev,struct fwnode_handle * entity_node,struct sdca_entity * entity) find_sdca_entity_hide() argument 1443 find_sdca_entity_xu(struct device * dev,struct fwnode_handle * entity_node,struct sdca_entity * entity) find_sdca_entity_xu() argument 1466 find_sdca_entity(struct device * dev,struct sdca_function_data * function,struct fwnode_handle * function_node,struct fwnode_handle * entity_node,struct sdca_entity * entity) find_sdca_entity() argument 1607 struct sdca_entity *entity = NULL; sdca_find_entity_by_label() local 1641 struct sdca_entity *entity = &function->entities[i]; find_sdca_entity_by_id() local 1653 find_sdca_entity_connection_iot(struct device * dev,struct sdca_function_data * function,struct fwnode_handle * entity_node,struct sdca_entity * entity) find_sdca_entity_connection_iot() argument 1693 find_sdca_entity_connection_pde(struct device * dev,struct sdca_function_data * function,struct fwnode_handle * entity_node,struct sdca_entity * entity) find_sdca_entity_connection_pde() argument 1746 find_sdca_entity_connection_ge(struct device * dev,struct sdca_function_data * function,struct fwnode_handle * entity_node,struct sdca_entity * entity) find_sdca_entity_connection_ge() argument 1782 find_sdca_entity_connection(struct device * dev,struct sdca_function_data * function,struct fwnode_handle * entity_node,struct sdca_entity * entity) find_sdca_entity_connection() argument 1889 struct sdca_entity *entity = &function->entities[i]; find_sdca_connections() local 2316 sdca_selector_find_control(struct device * dev,struct sdca_entity * entity,const int sel) sdca_selector_find_control() argument 2334 sdca_control_find_range(struct device * dev,struct sdca_entity * entity,struct sdca_control * control,int cols,int rows) sdca_control_find_range() argument 2352 sdca_selector_find_range(struct device * dev,struct sdca_entity * entity,int sel,int cols,int rows) sdca_selector_find_range() argument [all...] |
| H A D | sdca_regmap.c | 33 entity_find_control(struct sdca_entity *entity, unsigned int reg) in entity_find_control() argument 37 for (i = 0; i < entity->num_controls; i++) { in entity_find_control() 38 if (SDW_SDCA_CTL_CSEL(reg) == entity->controls[i].sel) in entity_find_control() 39 return &entity->controls[i]; in entity_find_control() 48 struct sdca_entity *entity; in function_find_control() local 50 entity = function_find_entity(function, reg); in function_find_control() 51 if (!entity) in function_find_control() 54 return entity_find_control(entity, reg); in function_find_control() 218 struct sdca_entity *entity = &function->entities[i]; in sdca_regmap_count_constants() 220 for (j = 0; j < entity in sdca_regmap_count_constants() 225 struct sdca_entity *entity = &function->entities[i]; sdca_regmap_count_constants() local 259 struct sdca_entity *entity = &function->entities[i]; sdca_regmap_populate_constants() local 304 struct sdca_entity *entity = &function->entities[i]; sdca_regmap_write_defaults() local [all...] |
| /linux/drivers/media/mc/ |
| H A D | mc-entity.c | 3 * Media entity 15 #include <media/media-entity.h> 99 "%s id %u: entity '%s'\n", in dev_dbg_obj() 123 pad->entity->name, pad->index); in dev_dbg_obj() 194 int media_entity_pads_init(struct media_entity *entity, u16 num_pads, in media_entity_pads_init() argument 197 struct media_device *mdev = entity->graph_obj.mdev; in media_entity_pads_init() 205 entity->num_pads = num_pads; in media_entity_pads_init() 206 entity->pads = pads; in media_entity_pads_init() 211 media_entity_for_each_pad(entity, iter) { in media_entity_pads_init() 216 iter->entity in media_entity_pads_init() 266 media_entity_has_pad_interdep(struct media_entity * entity,unsigned int pad0,unsigned int pad1) media_entity_has_pad_interdep() argument 283 media_entity_other(struct media_entity * entity,struct media_link * link) media_entity_other() argument 293 stack_push(struct media_graph * graph,struct media_entity * entity) stack_push() argument 306 struct media_entity *entity; stack_pop() local 346 media_graph_walk_start(struct media_graph * graph,struct media_entity * entity) media_graph_walk_start() argument 361 struct media_entity *entity = stack_top(graph); media_graph_walk_iter() local 405 struct media_entity *entity; media_graph_walk_next() local 813 struct media_entity *entity = pad->entity; __media_pipeline_start() local 1035 __media_pipeline_entity_iter_next(struct media_pipeline * pipe,struct media_pipeline_entity_iter * iter,struct media_entity * entity) __media_pipeline_entity_iter_next() argument 1042 struct media_entity *entity; __media_pipeline_entity_iter_next() local 1073 __media_entity_remove_link(struct media_entity * entity,struct media_link * link) __media_entity_remove_link() argument 1111 media_get_pad_index(struct media_entity * entity,u32 pad_type,enum media_pad_signal_type sig_type) media_get_pad_index() argument 1206 struct media_entity *entity; media_create_pad_links() local 1261 __media_entity_remove_links(struct media_entity * entity) __media_entity_remove_links() argument 1273 media_entity_remove_links(struct media_entity * entity) media_entity_remove_links() argument 1407 media_entity_remote_pad_unique(const struct media_entity * entity,unsigned int type) media_entity_remote_pad_unique() argument 1476 media_entity_get_fwnode_pad(struct media_entity * entity,const struct fwnode_handle * fwnode,unsigned long direction_flags) media_entity_get_fwnode_pad() argument 1511 media_entity_pipeline(struct media_entity * entity) media_entity_pipeline() argument 1572 media_create_intf_link(struct media_entity * entity,struct media_interface * intf,u32 flags) media_create_intf_link() argument 1662 __media_entity_next_link(struct media_entity * entity,struct media_link * link,unsigned long link_type) __media_entity_next_link() argument [all...] |
| H A D | mc-device.c | 24 #include <media/media-entity.h> 83 struct media_entity *entity; in find_entity() local 88 media_device_for_each_entity(entity, mdev) { in find_entity() 89 if (((media_entity_id(entity) == id) && !next) || in find_entity() 90 ((media_entity_id(entity) > id) && next)) { in find_entity() 91 return entity; in find_entity() 121 * do the wrong thing if the entity function doesn't belong to in media_device_enum_entities() 146 upad->entity = media_entity_id(kpad->entity); in media_device_kpad_to_upad() 154 struct media_entity *entity; in media_device_enum_links() local 156 entity = find_entity(mdev, links->entity); in media_device_enum_links() [all …]
|
| /linux/drivers/staging/media/imx/ |
| H A D | imx-media-dev-common.c | 49 * Continues upstream from the pad entity's sink pads. 55 struct media_entity *entity = srcpad->entity; in imx_media_add_vdev_to_pad() local 62 /* skip this entity if not a v4l2_subdev */ in imx_media_add_vdev_to_pad() 63 if (!is_media_entity_v4l2_subdev(entity)) in imx_media_add_vdev_to_pad() 66 sd = media_entity_to_v4l2_subdev(entity); in imx_media_add_vdev_to_pad() 71 entity->name, srcpad->index); in imx_media_add_vdev_to_pad() 74 * just skip this entity. in imx_media_add_vdev_to_pad() 86 vdev->vfd->entity.name, entity in imx_media_add_vdev_to_pad() 124 struct media_entity *entity; imx_media_alloc_pad_vdev_lists() local 198 imx_media_inherit_controls(struct imx_media_dev * imxmd,struct video_device * vfd,struct media_entity * entity) imx_media_inherit_controls() argument 305 struct media_entity *entity = &sd->entity; imx_media_notify() local [all...] |
| /linux/Documentation/driver-api/media/ |
| H A D | mc-core.rst | 21 An entity is a basic media hardware building block. It can correspond to 27 A pad is a connection endpoint through which an entity can interact with 28 other entities. Data (not restricted to video) produced by an entity 29 flows from the entity's output to one or more entity inputs. Pads should 33 on the same entity or on different entities. Data flows from a source 60 instance, defined in ``include/media/media-entity.h``. The structure is usually 65 Drivers initialize entity pads by calling 78 ``include/media/media-entity.h``. Currently, only one type of interface is 90 defined in ``include/media/media-entity.h``. Each entity stores its pads in 91 a pads array managed by the entity driver. Drivers usually embed the array in [all …]
|
| /linux/drivers/media/usb/au0828/ |
| H A D | au0828-core.c | 216 struct media_entity *entity, *mixer = NULL, *decoder = NULL; in au0828_media_graph_notify() local 224 media_device_for_each_entity(entity, dev->media_dev) { in au0828_media_graph_notify() 225 if (entity->function == MEDIA_ENT_F_AUDIO_MIXER) in au0828_media_graph_notify() 226 mixer = entity; in au0828_media_graph_notify() 227 else if (entity->function == MEDIA_ENT_F_ATV_DECODER) in au0828_media_graph_notify() 228 decoder = entity; in au0828_media_graph_notify() 241 media_device_for_each_entity(entity, dev->media_dev) { in au0828_media_graph_notify() 242 if (entity->function == MEDIA_ENT_F_AUDIO_MIXER) in au0828_media_graph_notify() 243 mixer = entity; in au0828_media_graph_notify() 266 struct media_entity *entity) in au0828_is_link_shareable() argument 288 au0828_enable_source(struct media_entity * entity,struct media_pipeline * pipe) au0828_enable_source() argument 442 au0828_disable_source(struct media_entity * entity) au0828_disable_source() argument 563 struct media_entity *entity, *demod = NULL; au0828_media_device_register() local [all...] |
| /linux/Documentation/userspace-api/media/mediactl/ |
| H A D | media-types.rst | 10 .. _media-entity-functions: 50 .. flat-table:: Media entity functions 56 - Unknown entity. That generally indicates that a driver didn't 57 initialize properly the entity, which is a Kernel bug 60 - Data streaming input and/or output entity. 63 - V4L VBI streaming input or output entity 66 - V4L Software Digital Radio (SDR) streaming input or output entity 69 - DVB Digital TV streaming input or output entity 72 - Digital TV demodulator entity. 75 - MPEG Transport stream demux entity [all...] |
| H A D | media-ioc-enum-entities.rst | 34 To query the attributes of an entity, applications set the id field of a 44 about the entity with the smallest id strictly larger than the requested 45 one ('next entity'), or the ``EINVAL`` error code if there is none. 47 Entity IDs can be non-contiguous. Applications must *not* try to 63 - Entity ID, set by the application. When the ID is or'ed with 65 the first entity with a larger ID. Do not expect that the ID will 67 do not hardcode entity IDs in an application. 72 - Entity name as an UTF-8 NULL-terminated string. This name must be unique 78 - Entity type, see :ref:`media-entity-functions` for details. 83 - Entity revision. Always zero (obsolete) [all …]
|
| H A D | media-ioc-enum-links.rst | 13 MEDIA_IOC_ENUM_LINKS - Enumerate all pads and links for a given entity 34 To enumerate pads and/or links for a given entity, applications set the 35 entity field of a struct :c:type:`media_links_enum` 43 with information about the entity's pads. The array must have enough 44 room to store all the entity's pads. The number of pads can be retrieved 48 with information about the entity's outbound links. The array must have 49 enough room to store all the entity's outbound links. The number of 52 Only forward links that originate at one of the entity's source pads are 65 - ``entity`` 66 - Entity id, set by the application. [all …]
|
| H A D | media-controller-model.rst | 14 - An **entity** is a basic media hardware or software building block. 24 - A **pad** is a data connection endpoint through which an entity can 26 by an entity flows from the entity's output to one or more entity 31 pads, either on the same entity or on different entities. Data flows 35 connection between a Linux Kernel interface and an entity.
|
| /linux/drivers/gpu/drm/scheduler/tests/ |
| H A D | mock_scheduler.c | 16 * drm_mock_sched_entity_new - Create a new mock scheduler entity 18 * @test: KUnit test owning the entity 20 * @sched: Mock scheduler on which the entity can be scheduled 22 * Returns: New mock scheduler entity with allocation managed by the test 29 struct drm_mock_sched_entity *entity; in drm_mock_sched_entity_new() local 33 entity = kunit_kzalloc(test, sizeof(*entity), GFP_KERNEL); in drm_mock_sched_entity_new() 34 KUNIT_ASSERT_NOT_NULL(test, entity); in drm_mock_sched_entity_new() 37 ret = drm_sched_entity_init(&entity->base, in drm_mock_sched_entity_new() 43 entity->test = test; in drm_mock_sched_entity_new() 45 return entity; in drm_mock_sched_entity_new() [all …]
|
| /linux/drivers/media/dvb-core/ |
| H A D | dvbdev.c | 210 if (dvbdev->entity) { in dvb_media_device_free() 211 media_device_unregister_entity(dvbdev->entity); in dvb_media_device_free() 212 kfree(dvbdev->entity); in dvb_media_device_free() 214 dvbdev->entity = NULL; in dvb_media_device_free() 266 struct media_entity *entity = &dvbdev->tsout_entity[i]; in dvb_create_tsout_entity() local 269 entity->name = kasprintf(GFP_KERNEL, "%s #%d", name, i); in dvb_create_tsout_entity() 270 if (!entity->name) in dvb_create_tsout_entity() 273 entity->function = MEDIA_ENT_F_IO_DTV; in dvb_create_tsout_entity() 276 ret = media_entity_pads_init(entity, 1, pads); in dvb_create_tsout_entity() 281 entity); in dvb_create_tsout_entity() [all …]
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_ctx.c | 34 container_of((e), struct amdgpu_ctx_entity, entity) 210 struct amdgpu_ctx_entity *entity; in amdgpu_ctx_init_entity() 216 entity = kzalloc_flex(*entity, fences, amdgpu_sched_jobs); in amdgpu_ctx_init_entity() 217 if (!entity) in amdgpu_ctx_init_entity() 222 entity->hw_ip = hw_ip; in amdgpu_ctx_init_entity() 223 entity->sequence = 1; in amdgpu_ctx_init_entity() 258 r = drm_sched_entity_init(&entity->entity, drm_prio, scheds, num_scheds, in amdgpu_ctx_init_entity() 263 /* It's not an error if we fail to install the new entity */ in amdgpu_ctx_init_entity() 209 struct amdgpu_ctx_entity *entity; amdgpu_ctx_init_entity() local 278 amdgpu_ctx_fini_entity(struct amdgpu_device * adev,struct amdgpu_ctx_entity * entity) amdgpu_ctx_fini_entity() argument 442 amdgpu_ctx_get_entity(struct amdgpu_ctx * ctx,u32 hw_ip,u32 instance,u32 ring,struct drm_sched_entity ** entity) amdgpu_ctx_get_entity() argument 739 amdgpu_ctx_add_fence(struct amdgpu_ctx * ctx,struct drm_sched_entity * entity,struct dma_fence * fence) amdgpu_ctx_add_fence() argument 766 amdgpu_ctx_get_fence(struct amdgpu_ctx * ctx,struct drm_sched_entity * entity,uint64_t seq) amdgpu_ctx_get_fence() argument 841 amdgpu_ctx_wait_prev_fence(struct amdgpu_ctx * ctx,struct drm_sched_entity * entity) amdgpu_ctx_wait_prev_fence() argument 889 struct drm_sched_entity *entity; amdgpu_ctx_mgr_entity_flush() local [all...] |
| /linux/drivers/media/platform/microchip/ |
| H A D | microchip-isc-scaler.c | 3 * Microchip Image Sensor Controller (ISC) Scaler entity support 12 #include <media/media-entity.h> 117 * entity cropping is part of the PFE module (parallel front end) in isc_scaler_enum_mbus_code() 202 isc->scaler_sd.entity.function = MEDIA_ENT_F_PROC_VIDEO_SCALER; in isc_scaler_init() 203 isc->scaler_sd.entity.ops = &isc_scaler_entity_ops; in isc_scaler_init() 216 ret = media_entity_pads_init(&isc->scaler_sd.entity, in isc_scaler_init() 220 dev_err(isc->dev, "scaler sd media entity init failed\n"); in isc_scaler_init() 238 ret = media_create_pad_link(&isc->current_subdev->sd->entity, in isc_scaler_link() 239 isc->remote_pad, &isc->scaler_sd.entity, in isc_scaler_link() 246 isc->current_subdev->sd->entity in isc_scaler_link() [all...] |
| /linux/drivers/media/platform/ti/omap3isp/ |
| H A D | isp.c | 545 pipe = to_isp_pipeline(&isp->isp_ccp2.subdev.entity); in isp_isr_sbl() 551 pipe = to_isp_pipeline(&isp->isp_csi2a.subdev.entity); in isp_isr_sbl() 557 pipe = to_isp_pipeline(&isp->isp_ccdc.subdev.entity); in isp_isr_sbl() 563 pipe = to_isp_pipeline(&isp->isp_prev.subdev.entity); in isp_isr_sbl() 572 pipe = to_isp_pipeline(&isp->isp_res.subdev.entity); in isp_isr_sbl() 675 struct media_entity *entity; in isp_pipeline_enable() local 681 /* Refuse to start streaming if an entity included in the pipeline has in isp_pipeline_enable() 697 entity = &pipe->output->video.entity; in isp_pipeline_enable() 699 pad = &entity->pads[0]; in isp_pipeline_enable() 704 if (!pad || !is_media_entity_v4l2_subdev(pad->entity)) in isp_pipeline_enable() [all …]
|
| /linux/include/uapi/linux/ |
| H A D | media.h | 38 * Base number ranges for entity functions 53 * Initial value to be used when a new entity is created 61 * subdev type before registering the entity. 66 * DVB entity functions 74 * I/O entity functions 110 * Audio entity functions 117 * Processing entity functions 130 * Switch and bridge entity functions 142 /* Entity flags */ 146 /* OR with the entity i 213 __u32 entity; /* entity ID */ global() member 236 __u32 entity; global() member [all...] |
| /linux/drivers/gpu/drm/msm/ |
| H A D | msm_submitqueue.c | 82 if (queue->entity == &queue->_vm_bind_entity[0]) in msm_submitqueue_destroy() 83 drm_sched_entity_destroy(queue->entity); in msm_submitqueue_destroy() 122 if (queue->entity == &queue->_vm_bind_entity[0]) in msm_submitqueue_close() 123 drm_sched_entity_flush(queue->entity, MAX_WAIT_SCHED_ENTITY_Q_EMPTY); in msm_submitqueue_close() 150 struct drm_sched_entity *entity; in get_sched_entity() local 154 entity = kzalloc_obj(*ctx->entities[idx]); in get_sched_entity() 156 ret = drm_sched_entity_init(entity, sched_prio, &sched, 1, NULL); in get_sched_entity() 159 kfree(entity); in get_sched_entity() 163 ctx->entities[idx] = entity; in get_sched_entity() 228 queue->entity in msm_submitqueue_create() [all...] |