| /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() 194 static bool bfq_no_longer_next_in_service(struct bfq_entity *entity) in bfq_no_longer_next_in_service() argument 198 if (bfq_entity_to_bfqq(entity)) in bfq_no_longer_next_in_service() 201 bfqg = container_of(entity, struct bfq_group, entity); in bfq_no_longer_next_in_service() 221 static void bfq_inc_active_entities(struct bfq_entity *entity) in bfq_inc_active_entities() argument 223 struct bfq_sched_data *sd = entity->sched_data; in bfq_inc_active_entities() 230 static void bfq_dec_active_entities(struct bfq_entity *entity) in bfq_dec_active_entities() argument 232 struct bfq_sched_data *sd = entity->sched_data; in bfq_dec_active_entities() 246 static bool bfq_no_longer_next_in_service(struct bfq_entity *entity) in bfq_no_longer_next_in_service() argument [all …]
|
| H A D | bfq-iosched.h | 288 struct bfq_entity entity; member 1008 struct bfq_entity entity; member 1028 struct bfq_entity entity; member 1084 void bfq_init_entity(struct bfq_entity *entity, struct bfq_group *bfqg); 1105 #define for_each_entity(entity) \ argument 1106 for (; entity ; entity = entity->parent) 1114 #define for_each_entity_safe(entity, parent) \ argument 1115 for (; entity && ({ parent = entity->parent; 1; }); entity = parent) 1123 #define for_each_entity(entity) \ argument 1124 for (; entity ; entity = NULL) [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) 59 for (i = 0; i < entity->ge.num_modes; i++) { 60 struct sdca_ge_mode *mode = &entity->ge.modes[i]; 105 struct sdca_entity *entity = &function->entities[i]; in sdca_asoc_count_component() 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() 85 struct sdca_entity *entity = &function->entities[i]; sdca_asoc_count_component() local 156 entity_early_parse_ge(struct device * dev,struct sdca_function_data * function,struct sdca_entity * entity) entity_early_parse_ge() argument 249 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 267 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 299 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 333 struct sdca_entity *entity = widget->priv; entity_pde_event() local 387 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 440 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 505 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 556 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 583 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 651 struct sdca_entity *entity = widget->priv; entity_cs_event() local 664 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 705 struct sdca_entity *entity = &function->entities[i]; sdca_asoc_populate_dapm() local 723 struct sdca_entity *entity = &function->entities[i]; sdca_asoc_populate_dapm() local 782 control_limit_kctl(struct device * dev,struct sdca_entity * entity,struct sdca_control * control,struct snd_kcontrol_new * kctl) control_limit_kctl() argument 875 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 953 populate_pin_switch(struct device * dev,struct sdca_entity * entity,struct snd_kcontrol_new ** kctl) populate_pin_switch() argument 994 struct sdca_entity *entity = &function->entities[i]; sdca_asoc_populate_controls() local 1095 populate_rate_format(struct device * dev,struct sdca_function_data * function,struct sdca_entity * entity,struct snd_soc_pcm_stream * stream) populate_rate_format() argument 1177 struct sdca_entity *entity = &function->entities[i]; sdca_asoc_populate_dais() local 1317 struct sdca_entity *entity = &function->entities[dai->id]; sdca_asoc_set_constraints() local 1407 struct sdca_entity *entity = &function->entities[dai->id]; sdca_asoc_get_port() local 1467 set_cluster(struct device * dev,struct regmap * regmap,struct sdca_function_data * function,struct sdca_entity * entity,unsigned int channels) set_cluster() argument 1510 set_clock(struct device * dev,struct regmap * regmap,struct sdca_function_data * function,struct sdca_entity * entity,int target_rate) set_clock() argument 1550 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 1607 struct sdca_entity *entity = &function->entities[dai->id]; sdca_asoc_hw_params() local [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...] |
| H A D | sdca_functions.c | 255 const struct sdca_entity *entity, in find_sdca_control_label() 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() 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() 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() 802 switch (SDCA_CTL_TYPE(entity->type, control->sel)) { in find_sdca_control_volatile() 882 static int find_sdca_control_value(struct device *dev, struct sdca_entity *entity, in find_sdca_control_value() 919 static int find_sdca_control_reset(const struct sdca_entity *entity, in find_sdca_control_reset() 247 find_sdca_control_label(struct device * dev,const struct sdca_entity * entity,const struct sdca_control * control) find_sdca_control_label() argument 540 find_sdca_control_bits(const struct sdca_entity * entity,const struct sdca_control * control) find_sdca_control_bits() argument 609 find_sdca_control_datatype(const struct sdca_entity * entity,const struct sdca_control * control) find_sdca_control_datatype() argument 780 find_sdca_control_volatile(const struct sdca_entity * entity,const struct sdca_control * control) find_sdca_control_volatile() argument 874 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 911 find_sdca_control_reset(const struct sdca_entity * entity,struct sdca_control * control) find_sdca_control_reset() argument 943 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 1057 find_sdca_entity_controls(struct device * dev,struct fwnode_handle * entity_node,struct sdca_entity * entity) find_sdca_entity_controls() argument 1141 find_sdca_entity_iot(struct device * dev,struct fwnode_handle * entity_node,struct sdca_entity * entity) find_sdca_entity_iot() argument 1191 find_sdca_entity_cs(struct device * dev,struct fwnode_handle * entity_node,struct sdca_entity * entity) find_sdca_entity_cs() argument 1218 find_sdca_entity_pde(struct device * dev,struct fwnode_handle * entity_node,struct sdca_entity * entity) find_sdca_entity_pde() argument 1285 find_sdca_entity_ge(struct device * dev,struct fwnode_handle * entity_node,struct sdca_entity * entity) find_sdca_entity_ge() argument 1361 find_sdca_entity_hide(struct device * dev,struct sdw_slave * sdw,struct fwnode_handle * function_node,struct fwnode_handle * entity_node,struct sdca_entity * entity) find_sdca_entity_hide() argument 1448 find_sdca_entity_xu(struct device * dev,struct fwnode_handle * entity_node,struct sdca_entity * entity) find_sdca_entity_xu() argument 1471 find_sdca_entity(struct device * dev,struct sdw_slave * sdw,struct fwnode_handle * function_node,struct fwnode_handle * entity_node,struct sdca_entity * entity) find_sdca_entity() argument 1607 struct sdca_entity *entity = NULL; find_sdca_entity_by_label() local 1634 struct sdca_entity *entity = &function->entities[i]; find_sdca_entity_by_id() local 1646 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 1686 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 1739 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 1775 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 1882 struct sdca_entity *entity = &function->entities[i]; find_sdca_connections() local 2263 sdca_selector_find_control(struct device * dev,struct sdca_entity * entity,const int sel) sdca_selector_find_control() argument 2281 sdca_control_find_range(struct device * dev,struct sdca_entity * entity,struct sdca_control * control,int cols,int rows) sdca_control_find_range() argument 2299 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_hid.c | 26 struct sdca_entity *entity = hid->driver_data; in sdwhid_parse() 30 rsize = le16_to_cpu(entity->hide.hid_desc.rpt_desc.wDescriptorLength); in sdwhid_parse() 37 ret = hid_parse_report(hid, entity->hide.hid_report_desc, rsize); in sdwhid_parse() 89 struct sdca_entity *entity) in sdca_add_hid_device() 103 hid->version = le16_to_cpu(entity->hide.hid_desc.bcdHID); in sdca_add_hid_device() 112 hid->driver_data = entity; in sdca_add_hid_device() 121 entity->hide.hid = hid; in sdca_add_hid_device() 136 struct hid_device *hid = interrupt->entity->hide.hid; 141 interrupt->function, interrupt->entity, 148 interrupt->function, interrupt->entity, 23 struct sdca_entity *entity = hid->driver_data; sdwhid_parse() local 85 sdca_add_hid_device(struct device * dev,struct sdca_entity * entity) sdca_add_hid_device() argument [all...] |
| H A D | sdca_jack.c | 51 interrupt->entity->label, in sdca_jack_process() 64 reg = SDW_SDCA_CTL(interrupt->function->desc->adr, interrupt->entity->id, in sdca_jack_process() 73 reg = SDW_SDCA_CTL(interrupt->function->desc->adr, interrupt->entity->id, in sdca_jack_process() 191 struct sdca_entity *entity = interrupt->entity; in sdca_jack_report() 198 switch (SDCA_CTL_TYPE(entity->type, control->sel)) { in sdca_jack_report() 200 range = sdca_selector_find_range(interrupt->dev, entity, in sdca_jack_report() 240 reg = SDW_SDCA_CTL(interrupt->function->desc->adr, interrupt->entity->id, in sdca_jack_report() 249 range = sdca_selector_find_range(interrupt->dev, interrupt->entity, 164 struct sdca_entity *entity = interrupt->entity; sdca_jack_set_jack() local
|
| H A D | sdca_interrupts.c | 107 reg = SDW_SDCA_CTL(interrupt->function->desc->adr, interrupt->entity->id, in function_status_handler() 358 * @entity: Pointer to the SDCA Entity. 367 struct sdca_entity *entity, in sdca_irq_data_populate() argument 378 name = kasprintf(GFP_KERNEL, "%s %s", entity->label, control->label); in sdca_irq_data_populate() 390 interrupt->entity = entity; in sdca_irq_data_populate() 437 struct sdca_entity *entity = &function->entities[i]; in sdca_irq_populate_early() 439 for (j = 0; j < entity->num_controls; j++) { in sdca_irq_populate_early() 440 struct sdca_control *control = &entity->controls[j]; in sdca_irq_populate_early() 451 switch (SDCA_CTL_TYPE(entity in sdca_irq_populate_early() 438 struct sdca_entity *entity = &function->entities[i]; sdca_irq_populate_early() local 504 struct sdca_entity *entity = &function->entities[i]; sdca_irq_populate() local [all...] |
| /linux/drivers/media/mc/ |
| H A D | mc-entity.c | 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() 227 media_entity_for_each_pad(entity, iter) in media_entity_pads_init() 266 static bool media_entity_has_pad_interdep(struct media_entity *entity, in media_entity_has_pad_interdep() argument 269 if (pad0 >= entity->num_pads || pad1 >= entity->num_pads) in media_entity_has_pad_interdep() [all …]
|
| H A D | mc-device.c | 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() 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() 157 if (entity == NULL) in media_device_enum_links() 163 for (p = 0; p < entity->num_pads; p++) { in media_device_enum_links() [all …]
|
| /linux/drivers/staging/media/imx/ |
| H A D | imx-media-dev-common.c | 55 struct media_entity *entity = srcpad->entity; in imx_media_add_vdev_to_pad() local 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() 86 vdev->vfd->entity.name, entity->name, srcpad->index); in imx_media_add_vdev_to_pad() 97 for (i = 0; i < entity->num_pads; i++) { in imx_media_add_vdev_to_pad() 98 struct media_pad *pad = &entity->pads[i]; in imx_media_add_vdev_to_pad() 103 list_for_each_entry(link, &entity->links, list) { in imx_media_add_vdev_to_pad() 124 struct media_entity *entity; in imx_media_alloc_pad_vdev_lists() local 129 entity = &sd->entity; in imx_media_alloc_pad_vdev_lists() [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 [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/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 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() 707 entity = pad->entity; in isp_pipeline_enable() [all …]
|
| /linux/drivers/media/platform/samsung/exynos4-is/ |
| H A D | common.c | 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()
|
| H A D | media-dev.c | 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() 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() 334 fimc_pipeline_prepare(p, &p->subdevs[sd_id]->entity); in __fimc_pipeline_s_stream() 833 sink = &fmd->fimc[i]->vid_cap.subdev.entity; in __fimc_md_create_fimc_sink_links() 853 sink = &fmd->fimc_lite[i]->subdev.entity; in __fimc_md_create_fimc_sink_links() 883 source = &fimc->subdev.entity; in __fimc_md_create_flite_source_links() [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/Documentation/userspace-api/media/mediactl/ |
| 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`` 93 - ``entity`` [all …]
|
| 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. Could be implemented on [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/media/platform/microchip/ |
| H A D | microchip-isc-scaler.c | 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() 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() 245 isc->scaler_sd.entity.name); in isc_scaler_link() 252 ret = media_create_pad_link(&isc->scaler_sd.entity, in isc_scaler_link() 254 &isc->video_dev.entity, ISC_PAD_SINK, in isc_scaler_link() 260 isc->scaler_sd.entity.name, in isc_scaler_link() [all …]
|
| /linux/drivers/media/test-drivers/vimc/ |
| H A D | vimc-common.c | 243 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 …]
|
| /linux/include/media/ |
| H A D | v4l2-mc.h | 157 int v4l2_pipeline_pm_get(struct media_entity *entity); 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/platform/st/stm32/stm32-dcmipp/ |
| H A D | dcmipp-common.c | 60 ved->ent = &sd->entity; in dcmipp_ent_sd_register() 65 sd->entity.function = function; in dcmipp_ent_sd_register() 66 sd->entity.ops = &dcmipp_entity_ops; in dcmipp_ent_sd_register() 77 ret = media_entity_pads_init(&sd->entity, num_pads, ved->pads); in dcmipp_ent_sd_register() 100 media_entity_cleanup(&sd->entity); in dcmipp_ent_sd_register()
|
| /linux/drivers/media/platform/sunxi/sun4i-csi/ |
| H A D | sun4i_csi.c | 61 csi->src_pad = media_entity_get_fwnode_pad(&subdev->entity, in sun4i_csi_notify_bound() 95 ret = media_create_pad_link(&subdev->entity, CSI_SUBDEV_SOURCE, in sun4i_csi_notify_complete() 96 &vdev->entity, 0, in sun4i_csi_notify_complete() 102 ret = media_create_pad_link(&csi->src_subdev->entity, csi->src_pad, in sun4i_csi_notify_complete() 103 &subdev->entity, CSI_SUBDEV_SINK, in sun4i_csi_notify_complete() 227 subdev->entity.function = MEDIA_ENT_F_VID_IF_BRIDGE; in sun4i_csi_probe() 228 subdev->entity.ops = &sun4i_csi_subdev_entity_ops; in sun4i_csi_probe() 236 ret = media_entity_pads_init(&subdev->entity, CSI_SUBDEV_PADS, in sun4i_csi_probe() 242 vdev->entity.ops = &sun4i_csi_video_entity_ops; in sun4i_csi_probe() 243 ret = media_entity_pads_init(&vdev->entity, 1, &csi->vdev_pad); in sun4i_csi_probe()
|