Home
last modified time | relevance | path

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

123456789

/linux/drivers/gpu/drm/scheduler/
H A Dsched_entity.c58 int drm_sched_entity_init(struct drm_sched_entity *entity, in drm_sched_entity_init() argument
64 if (!(entity && sched_list && (num_sched_list == 0 || sched_list[0]))) in drm_sched_entity_init()
67 memset(entity, 0, sizeof(struct drm_sched_entity)); in drm_sched_entity_init()
68 INIT_LIST_HEAD(&entity->list); in drm_sched_entity_init()
69 entity->rq = NULL; in drm_sched_entity_init()
70 entity->guilty = guilty; in drm_sched_entity_init()
71 entity->num_sched_list = num_sched_list; in drm_sched_entity_init()
72 entity->priority = priority; in drm_sched_entity_init()
73 entity->last_user = current->group_leader; in drm_sched_entity_init()
79 entity->sched_list = num_sched_list > 1 ? sched_list : NULL; in drm_sched_entity_init()
[all …]
H A Dsched_main.c116 struct drm_sched_entity *entity) in drm_sched_can_queue() argument
120 s_job = drm_sched_entity_queue_peek(entity); in drm_sched_can_queue()
145 static void drm_sched_rq_remove_fifo_locked(struct drm_sched_entity *entity, in drm_sched_rq_remove_fifo_locked() argument
148 if (!RB_EMPTY_NODE(&entity->rb_tree_node)) { in drm_sched_rq_remove_fifo_locked()
149 rb_erase_cached(&entity->rb_tree_node, &rq->rb_tree_root); in drm_sched_rq_remove_fifo_locked()
150 RB_CLEAR_NODE(&entity->rb_tree_node); in drm_sched_rq_remove_fifo_locked()
154 void drm_sched_rq_update_fifo_locked(struct drm_sched_entity *entity, in drm_sched_rq_update_fifo_locked() argument
163 lockdep_assert_held(&entity->lock); in drm_sched_rq_update_fifo_locked()
166 drm_sched_rq_remove_fifo_locked(entity, rq); in drm_sched_rq_update_fifo_locked()
168 entity->oldest_job_waiting = ts; in drm_sched_rq_update_fifo_locked()
[all …]
/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()
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 Dbfq-cgroup.c305 struct bfq_entity *group_entity = bfqq->entity.parent; in bfqq_group()
308 entity) : in bfqq_group()
417 void bfq_init_entity(struct bfq_entity *entity, struct bfq_group *bfqg) in bfq_init_entity() argument
419 struct bfq_queue *bfqq = bfq_entity_to_bfqq(entity); in bfq_init_entity()
421 entity->weight = entity->new_weight; in bfq_init_entity()
422 entity->orig_weight = entity->new_weight; in bfq_init_entity()
432 entity->parent = bfqg->my_entity; /* NULL for root group */ in bfq_init_entity()
433 entity->sched_data = &bfqg->sched_data; in bfq_init_entity()
534 struct bfq_entity *entity = &bfqg->entity; in bfq_pd_init() local
537 entity->orig_weight = entity->weight = entity->new_weight = d->weight; in bfq_pd_init()
[all …]
H A Dbfq-iosched.h288 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 …]
H A Dbfq-iosched.c586 struct bfq_entity *entity; in bfqq_request_over_limit() local
599 entity = &bfqq->entity; in bfqq_request_over_limit()
600 if (!entity->on_st_or_in_serv) in bfqq_request_over_limit()
616 sched_data = entity->sched_data; in bfqq_request_over_limit()
619 for_each_entity(entity) { in bfqq_request_over_limit()
625 if (!entity->on_st_or_in_serv) in bfqq_request_over_limit()
630 entities[level++] = entity; in bfqq_request_over_limit()
634 entity = entities[level]; in bfqq_request_over_limit()
636 wsum = bfq_entity_service_tree(entity)->wsum; in bfqq_request_over_limit()
654 limit = DIV_ROUND_CLOSEST(limit * entity->weight, wsum); in bfqq_request_over_limit()
[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)
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 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...]
H A Dsdca_functions.c247 const struct sdca_entity *entity, in find_sdca_control_label() argument
250 switch (SDCA_CTL_TYPE(entity->type, control->sel)) { in find_sdca_control_label()
540 static unsigned int find_sdca_control_bits(const struct sdca_entity *entity, in find_sdca_control_bits() argument
543 switch (SDCA_CTL_TYPE(entity->type, control->sel)) { in find_sdca_control_bits()
609 find_sdca_control_datatype(const struct sdca_entity *entity, in find_sdca_control_datatype() argument
612 switch (SDCA_CTL_TYPE(entity->type, control->sel)) { in find_sdca_control_datatype()
780 static bool find_sdca_control_volatile(const struct sdca_entity *entity, in find_sdca_control_volatile() argument
794 switch (SDCA_CTL_TYPE(entity->type, control->sel)) { in find_sdca_control_volatile()
874 static int find_sdca_control_value(struct device *dev, struct sdca_entity *entity, in find_sdca_control_value() argument
911 static int find_sdca_control_reset(const struct sdca_entity *entity, in find_sdca_control_reset() argument
[all …]
H A Dsdca_hid.c26 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...]
/linux/drivers/media/mc/
H A Dmc-entity.c123 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 Dmc-device.c83 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/media/usb/uvc/
H A Duvc_ctrl.c41 .entity = UVC_GUID_UVC_PROCESSING,
50 .entity = UVC_GUID_UVC_PROCESSING,
59 .entity = UVC_GUID_UVC_PROCESSING,
69 .entity = UVC_GUID_UVC_PROCESSING,
78 .entity = UVC_GUID_UVC_PROCESSING,
87 .entity = UVC_GUID_UVC_PROCESSING,
96 .entity = UVC_GUID_UVC_PROCESSING,
106 .entity = UVC_GUID_UVC_PROCESSING,
116 .entity = UVC_GUID_UVC_PROCESSING,
125 .entity = UVC_GUID_UVC_PROCESSING,
[all …]
/linux/drivers/staging/media/imx/
H A Dimx-media-dev-common.c55 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 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/platform/renesas/vsp1/
H A Dvsp1_video.c54 if (!remote || !is_media_entity_v4l2_subdev(remote->entity)) in vsp1_video_remote_subdev()
60 return media_entity_to_v4l2_subdev(remote->entity); in vsp1_video_remote_subdev()
209 struct vsp1_pipeline *pipe = video->rwpf->entity.pipe; in vsp1_video_complete_buffer()
263 struct vsp1_entity *entity; in vsp1_video_pipeline_run_partition() local
265 list_for_each_entry(entity, &pipe->entities, list_pipe) in vsp1_video_pipeline_run_partition()
266 vsp1_entity_configure_partition(entity, pipe, part, dl, dlb); in vsp1_video_pipeline_run_partition()
271 struct vsp1_device *vsp1 = pipe->output->entity.vsp1; in vsp1_video_pipeline_run()
272 struct vsp1_entity *entity; in vsp1_video_pipeline_run() local
290 list_for_each_entry(entity, &pipe->entities, list_pipe) in vsp1_video_pipeline_run()
291 vsp1_entity_configure_frame(entity, pipe, dl, dlb); in vsp1_video_pipeline_run()
[all …]
/linux/drivers/net/wwan/t7xx/
H A Dt7xx_pci.c287 struct md_pm_entity *entity; in t7xx_pci_pm_entity_register() local
290 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in t7xx_pci_pm_entity_register()
291 if (entity->id == pm_entity->id) { in t7xx_pci_pm_entity_register()
297 list_add_tail(&pm_entity->entity, &t7xx_dev->md_pm_entities); in t7xx_pci_pm_entity_register()
304 struct md_pm_entity *entity, *tmp_entity; in t7xx_pci_pm_entity_unregister() local
307 list_for_each_entry_safe(entity, tmp_entity, &t7xx_dev->md_pm_entities, entity) { in t7xx_pci_pm_entity_unregister()
308 if (entity->id == pm_entity->id) { in t7xx_pci_pm_entity_unregister()
309 list_del(&pm_entity->entity); in t7xx_pci_pm_entity_unregister()
411 struct md_pm_entity *entity; in __t7xx_pci_pm_suspend() local
432 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_suspend()
[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/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
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/gpu/drm/msm/
H A Dmsm_submitqueue.c79 if (queue->entity == &queue->_vm_bind_entity[0]) in msm_submitqueue_destroy()
80 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()
222 queue->entity = &queue->_vm_bind_entity[0]; in msm_submitqueue_create()
[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/drivers/media/v4l2-core/
H A Dv4l2-dev.c207 if (vdev->entity.function != MEDIA_ENT_F_UNKNOWN) in v4l2_device_release()
208 media_device_unregister_entity(&vdev->entity); in v4l2_device_release()
829 vdev->entity.obj_type = MEDIA_ENTITY_TYPE_VIDEO_DEVICE; in video_register_media_controller()
830 vdev->entity.function = MEDIA_ENT_F_UNKNOWN; in video_register_media_controller()
835 vdev->entity.function = MEDIA_ENT_F_IO_V4L; in video_register_media_controller()
839 vdev->entity.function = MEDIA_ENT_F_IO_VBI; in video_register_media_controller()
843 vdev->entity.function = MEDIA_ENT_F_IO_SWRADIO; in video_register_media_controller()
847 vdev->entity.function = MEDIA_ENT_F_IO_V4L; in video_register_media_controller()
865 if (vdev->entity.function != MEDIA_ENT_F_UNKNOWN) { in video_register_media_controller()
866 vdev->entity.name = vdev->name; in video_register_media_controller()
[all …]
/linux/Documentation/userspace-api/media/mediactl/
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``
93 - ``entity``
[all …]
/linux/drivers/media/platform/microchip/
H A Dmicrochip-isc-scaler.c200 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/platform/samsung/exynos4-is/
H A Dcommon.c17 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()

123456789