Home
last modified time | relevance | path

Searched full:entity (Results 1 – 25 of 364) sorted by relevance

12345678910>>...15

/linux/block/
H A Dbfq-wf2q.c30 static unsigned int bfq_class_idx(struct bfq_entity *entity) in bfq_class_idx() argument
32 struct bfq_queue *bfqq = bfq_entity_to_bfqq(entity); in bfq_class_idx()
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 Dbfq-cgroup.c324 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 Dbfq-iosched.h59 /* 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/sound/soc/sdca/
H A Dsdca_asoc.c36 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->iot.is_dataport; in sdca_asoc_count_component()
[all …]
H A Dsdca_ump.c24 * @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 Dsdca_functions.c255 const struct sdca_entity *entity, in find_sdca_control_label() argument
258 switch (SDCA_CTL_TYPE(entity->type, control->sel)) { in find_sdca_control_label()
548 static unsigned int find_sdca_control_bits(const struct sdca_entity *entity, in find_sdca_control_bits() argument
551 switch (SDCA_CTL_TYPE(entity->type, control->sel)) { in find_sdca_control_bits()
617 find_sdca_control_datatype(const struct sdca_entity *entity, in find_sdca_control_datatype() argument
620 switch (SDCA_CTL_TYPE(entity->type, control->sel)) { in find_sdca_control_datatype()
788 static bool find_sdca_control_volatile(const struct sdca_entity *entity, in find_sdca_control_volatile() argument
802 switch (SDCA_CTL_TYPE(entity->type, control->sel)) { in find_sdca_control_volatile()
884 static int find_sdca_control_value(struct device *dev, struct sdca_entity *entity, in find_sdca_control_value() argument
921 static int find_sdca_control_reset(const struct sdca_entity *entity, in find_sdca_control_reset() argument
[all …]
H A Dsdca_regmap.c33 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 Dmc-entity.c3 * 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()
212 iter->entity = entity; in media_entity_pads_init()
[all …]
H A Dmc-device.c24 #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 Dimx-media-dev-common.c49 * 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->name, srcpad->index); in imx_media_add_vdev_to_pad()
96 /* move upstream from this entity's sink pads */ in imx_media_add_vdev_to_pad()
97 for (i = 0; i < entity->num_pads; i++) { in imx_media_add_vdev_to_pad()
[all …]
/linux/Documentation/driver-api/media/
H A Dmc-core.rst21 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/Documentation/userspace-api/media/mediactl/
H A Dmedia-ioc-enum-entities.rst34 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 Dmedia-types.rst10 .. _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. Could be implemented on
[all …]
H A Dmedia-ioc-enum-links.rst13 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 Dmedia-controller-model.rst14 - 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/media/usb/au0828/
H A Dau0828-core.c216 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
[all …]
/linux/drivers/media/dvb-core/
H A Ddvbdev.c210 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 Damdgpu_ctx.c33 container_of((e), struct amdgpu_ctx_entity, entity)
209 struct amdgpu_ctx_entity *entity; in amdgpu_ctx_init_entity() local
215 entity = kzalloc_flex(*entity, fences, amdgpu_sched_jobs); in amdgpu_ctx_init_entity()
216 if (!entity) in amdgpu_ctx_init_entity()
221 entity->hw_ip = hw_ip; in amdgpu_ctx_init_entity()
222 entity->sequence = 1; in amdgpu_ctx_init_entity()
257 r = drm_sched_entity_init(&entity->entity, drm_prio, scheds, num_scheds, in amdgpu_ctx_init_entity()
262 /* It's not an error if we fail to install the new entity */ in amdgpu_ctx_init_entity()
263 if (cmpxchg(&ctx->entities[hw_ip][ring], NULL, entity)) in amdgpu_ctx_init_entity()
269 drm_sched_entity_fini(&entity->entity); in amdgpu_ctx_init_entity()
[all …]
/linux/drivers/media/platform/microchip/
H A Dmicrochip-isc-scaler.c3 * Microchip Image Sensor Controller (ISC) Scaler entity support
12 #include <media/media-entity.h>
116 * entity cropping is part of the PFE module (parallel front end) in isc_scaler_enum_mbus_code()
200 isc->scaler_sd.entity.function = MEDIA_ENT_F_PROC_VIDEO_SCALER; in isc_scaler_init()
201 isc->scaler_sd.entity.ops = &isc_scaler_entity_ops; in isc_scaler_init()
214 ret = media_entity_pads_init(&isc->scaler_sd.entity, in isc_scaler_init()
218 dev_err(isc->dev, "scaler sd media entity init failed\n"); in isc_scaler_init()
236 ret = media_create_pad_link(&isc->current_subdev->sd->entity, in isc_scaler_link()
237 isc->remote_pad, &isc->scaler_sd.entity, in isc_scaler_link()
244 isc->current_subdev->sd->entity.name, in isc_scaler_link()
[all …]
/linux/drivers/media/platform/ti/omap3isp/
H A Disp.c545 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 Dmedia.h38 * 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 id value to find the next entity */
[all …]
/linux/drivers/media/platform/samsung/exynos4-is/
H A Dmedia-dev.c60 * @me: media entity terminating the pipeline
88 if (!pad || !is_media_entity_v4l2_subdev(pad->entity)) in fimc_pipeline_prepare()
90 sd = media_entity_to_v4l2_subdev(pad->entity); in fimc_pipeline_prepare()
114 me = &sd->entity; in fimc_pipeline_prepare()
139 use_count = &sd->entity.use_count; in __subdev_set_power()
220 * @me: media entity to start graph walk with
271 fmd = entity_to_fimc_mdev(&sd->entity); in __fimc_pipeline_close()
310 fmd = entity_to_fimc_mdev(&sd->entity); in __fimc_pipeline_s_stream()
320 /* Get pipeline sink entity */ in __fimc_pipeline_s_stream()
334 fimc_pipeline_prepare(p, &p->subdevs[sd_id]->entity); in __fimc_pipeline_s_stream()
[all …]
H A Dcommon.c14 * Called with the media graph mutex held or media_entity_is_streaming(entity)
17 struct v4l2_subdev *fimc_find_remote_sensor(struct media_entity *entity) in fimc_find_remote_sensor() argument
19 struct media_pad *pad = &entity->pads[0]; in fimc_find_remote_sensor()
25 if (!pad || !is_media_entity_v4l2_subdev(pad->entity)) in fimc_find_remote_sensor()
28 sd = media_entity_to_v4l2_subdev(pad->entity); in fimc_find_remote_sensor()
34 pad = &sd->entity.pads[0]; in fimc_find_remote_sensor()
/linux/include/media/
H A Dv4l2-mc.h35 * connected directly to the I/O entity. All dirty details, like
52 * entity associated with the video device. This interface
68 * media entity associated with the video device.
144 * @entity: The root entity of a pipeline
157 int v4l2_pipeline_pm_get(struct media_entity *entity);
161 * @entity: The root entity of a pipeline
172 void v4l2_pipeline_pm_put(struct media_entity *entity);
217 static inline int v4l2_pipeline_pm_get(struct media_entity *entity) in v4l2_pipeline_pm_get() argument
222 static inline void v4l2_pipeline_pm_put(struct media_entity *entity) in v4l2_pipeline_pm_put() argument
/linux/drivers/media/test-drivers/vimc/
H A Dvimc-common.c243 if (is_media_entity_v4l2_subdev(pad->entity)) { in vimc_get_pix_format()
245 media_entity_to_v4l2_subdev(pad->entity); in vimc_get_pix_format()
260 } else if (is_media_entity_v4l2_video_device(pad->entity)) { in vimc_get_pix_format()
261 struct video_device *vdev = container_of(pad->entity, in vimc_get_pix_format()
263 entity); in vimc_get_pix_format()
294 link->source->entity->name, in vimc_vdev_link_validate()
300 link->sink->entity->name, in vimc_vdev_link_validate()
369 ved->ent = &sd->entity; in vimc_ent_sd_register()
374 sd->entity.function = function; in vimc_ent_sd_register()
375 sd->entity.ops = &vimc_ent_sd_mops; in vimc_ent_sd_register()
[all …]

12345678910>>...15