Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/media/usb/uvc/
Duvc_entity.c27 struct uvc_entity *entity) in uvc_mc_register_entity() argument
34 sink = (UVC_ENTITY_TYPE(entity) == UVC_TT_STREAMING) in uvc_mc_register_entity()
35 ? (entity->vdev ? &entity->vdev->entity : NULL) in uvc_mc_register_entity()
36 : &entity->subdev.entity; in uvc_mc_register_entity()
40 for (i = 0; i < entity->num_pads; ++i) { in uvc_mc_register_entity()
45 if (!(entity->pads[i].flags & MEDIA_PAD_FL_SINK)) in uvc_mc_register_entity()
48 remote = uvc_entity_by_id(chain->dev, entity->baSourceID[i]); in uvc_mc_register_entity()
53 ? (remote->vdev ? &remote->vdev->entity : NULL) in uvc_mc_register_entity()
54 : &remote->subdev.entity; in uvc_mc_register_entity()
65 if (UVC_ENTITY_TYPE(entity) == UVC_TT_STREAMING) in uvc_mc_register_entity()
[all …]
Duvc_ctrl.c42 .entity = UVC_GUID_UVC_PROCESSING,
51 .entity = UVC_GUID_UVC_PROCESSING,
60 .entity = UVC_GUID_UVC_PROCESSING,
70 .entity = UVC_GUID_UVC_PROCESSING,
79 .entity = UVC_GUID_UVC_PROCESSING,
88 .entity = UVC_GUID_UVC_PROCESSING,
97 .entity = UVC_GUID_UVC_PROCESSING,
107 .entity = UVC_GUID_UVC_PROCESSING,
117 .entity = UVC_GUID_UVC_PROCESSING,
126 .entity = UVC_GUID_UVC_PROCESSING,
[all …]
Duvc_driver.c288 struct uvc_entity *entity; in uvc_entity_by_id() local
290 list_for_each_entry(entity, &dev->entities, list) { in uvc_entity_by_id()
291 if (entity->id == id) in uvc_entity_by_id()
292 return entity; in uvc_entity_by_id()
299 int id, struct uvc_entity *entity) in uvc_entity_by_reference() argument
303 if (entity == NULL) in uvc_entity_by_reference()
304 entity = list_entry(&dev->entities, struct uvc_entity, list); in uvc_entity_by_reference()
306 list_for_each_entry_continue(entity, &dev->entities, list) { in uvc_entity_by_reference()
307 for (i = 0; i < entity->bNrInPins; ++i) in uvc_entity_by_reference()
308 if (entity->baSourceID[i] == id) in uvc_entity_by_reference()
[all …]
Duvcvideo.h28 #define UVC_ENTITY_TYPE(entity) ((entity)->type & 0x7fff) argument
29 #define UVC_ENTITY_IS_UNIT(entity) (((entity)->type & 0xff00) == 0) argument
30 #define UVC_ENTITY_IS_TERM(entity) (((entity)->type & 0xff00) != 0) argument
31 #define UVC_ENTITY_IS_ITERM(entity) \ argument
32 (UVC_ENTITY_IS_TERM(entity) && \
33 ((entity)->type & 0x8000) == UVC_TERM_INPUT)
34 #define UVC_ENTITY_IS_OTERM(entity) \ argument
35 (UVC_ENTITY_IS_TERM(entity) && \
36 ((entity)->type & 0x8000) == UVC_TERM_OUTPUT)
172 __u8 entity[16]; member
[all …]
Duvc_v4l2.c49 memcpy(map->entity, xmap->entity, sizeof map->entity); in uvc_ioctl_ctrl_map()
1240 __u8 entity[16]; member
/linux-4.4.14/drivers/media/
Dmedia-entity.c54 media_entity_init(struct media_entity *entity, u16 num_pads, in media_entity_init() argument
65 entity->group_id = 0; in media_entity_init()
66 entity->max_links = max_links; in media_entity_init()
67 entity->num_links = 0; in media_entity_init()
68 entity->num_backlinks = 0; in media_entity_init()
69 entity->num_pads = num_pads; in media_entity_init()
70 entity->pads = pads; in media_entity_init()
71 entity->links = links; in media_entity_init()
74 pads[i].entity = entity; in media_entity_init()
83 media_entity_cleanup(struct media_entity *entity) in media_entity_cleanup() argument
[all …]
Dmedia-device.c70 struct media_entity *entity; in find_entity() local
77 media_device_for_each_entity(entity, mdev) { in find_entity()
78 if ((entity->id == id && !next) || in find_entity()
79 (entity->id > id && next)) { in find_entity()
81 return entity; in find_entity()
123 upad->entity = kpad->entity->id; in media_device_kpad_to_upad()
131 struct media_entity *entity; in __media_device_enum_links() local
133 entity = find_entity(mdev, links->entity); in __media_device_enum_links()
134 if (entity == NULL) in __media_device_enum_links()
140 for (p = 0; p < entity->num_pads; p++) { in __media_device_enum_links()
[all …]
DMakefile5 media-objs := media-device.o media-devnode.o media-entity.o
/linux-4.4.14/drivers/gpu/drm/amd/scheduler/
Dgpu_scheduler.c33 static bool amd_sched_entity_is_ready(struct amd_sched_entity *entity);
48 struct amd_sched_entity *entity) in amd_sched_rq_add_entity() argument
51 list_add_tail(&entity->list, &rq->entities); in amd_sched_rq_add_entity()
56 struct amd_sched_entity *entity) in amd_sched_rq_remove_entity() argument
59 list_del_init(&entity->list); in amd_sched_rq_remove_entity()
60 if (rq->current_entity == entity) in amd_sched_rq_remove_entity()
75 struct amd_sched_entity *entity; in amd_sched_rq_select_entity() local
79 entity = rq->current_entity; in amd_sched_rq_select_entity()
80 if (entity) { in amd_sched_rq_select_entity()
81 list_for_each_entry_continue(entity, &rq->entities, list) { in amd_sched_rq_select_entity()
[all …]
Dgpu_sched_trace.h18 __field(struct amd_sched_entity *, entity)
27 __entry->entity = sched_job->s_entity;
37 __entry->entity, __entry->sched_job, __entry->fence, __entry->name,
Dgpu_scheduler.h131 struct amd_sched_entity *entity,
135 struct amd_sched_entity *entity);
/linux-4.4.14/drivers/media/platform/vsp1/
Dvsp1_entity.c25 bool vsp1_entity_is_streaming(struct vsp1_entity *entity) in vsp1_entity_is_streaming() argument
30 spin_lock_irqsave(&entity->lock, flags); in vsp1_entity_is_streaming()
31 streaming = entity->streaming; in vsp1_entity_is_streaming()
32 spin_unlock_irqrestore(&entity->lock, flags); in vsp1_entity_is_streaming()
37 int vsp1_entity_set_streaming(struct vsp1_entity *entity, bool streaming) in vsp1_entity_set_streaming() argument
42 spin_lock_irqsave(&entity->lock, flags); in vsp1_entity_set_streaming()
43 entity->streaming = streaming; in vsp1_entity_set_streaming()
44 spin_unlock_irqrestore(&entity->lock, flags); in vsp1_entity_set_streaming()
49 if (!entity->subdev.ctrl_handler) in vsp1_entity_set_streaming()
52 ret = v4l2_ctrl_handler_setup(entity->subdev.ctrl_handler); in vsp1_entity_set_streaming()
[all …]
Dvsp1_wpf.c31 return vsp1_read(wpf->entity.vsp1, in vsp1_wpf_read()
32 reg + wpf->entity.index * VI6_WPF_OFFSET); in vsp1_wpf_read()
37 vsp1_write(wpf->entity.vsp1, in vsp1_wpf_write()
38 reg + wpf->entity.index * VI6_WPF_OFFSET, data); in vsp1_wpf_write()
51 if (!vsp1_entity_is_streaming(&wpf->entity)) in wpf_s_ctrl()
76 struct vsp1_pipeline *pipe = to_vsp1_pipeline(&subdev->entity); in wpf_s_stream()
78 struct vsp1_device *vsp1 = wpf->entity.vsp1; in wpf_s_stream()
85 ret = vsp1_entity_set_streaming(&wpf->entity, enable); in wpf_s_stream()
90 vsp1_write(vsp1, VI6_WPF_IRQ_ENB(wpf->entity.index), 0); in wpf_s_stream()
104 ? VI6_WPF_SRCRPF_RPF_ACT_MST(input->entity.index) in wpf_s_stream()
[all …]
Dvsp1_rpf.c31 return vsp1_read(rpf->entity.vsp1, in vsp1_rpf_read()
32 reg + rpf->entity.index * VI6_RPF_OFFSET); in vsp1_rpf_read()
37 vsp1_write(rpf->entity.vsp1, in vsp1_rpf_write()
38 reg + rpf->entity.index * VI6_RPF_OFFSET, data); in vsp1_rpf_write()
51 if (!vsp1_entity_is_streaming(&rpf->entity)) in rpf_s_ctrl()
59 pipe = to_vsp1_pipeline(&rpf->entity.subdev.entity); in rpf_s_ctrl()
60 vsp1_pipeline_propagate_alpha(pipe, &rpf->entity, ctrl->val); in rpf_s_ctrl()
85 ret = vsp1_entity_set_streaming(&rpf->entity, enable); in rpf_s_stream()
138 if (rpf->entity.formats[RWPF_PAD_SINK].code != in rpf_s_stream()
139 rpf->entity.formats[RWPF_PAD_SOURCE].code) in rpf_s_stream()
[all …]
Dvsp1_drv.c51 pipe = to_vsp1_pipeline(&wpf->entity.subdev.entity); in vsp1_irq_handler()
80 struct media_entity *entity = &sink->subdev.entity; in vsp1_create_links() local
100 for (pad = 0; pad < entity->num_pads; ++pad) { in vsp1_create_links()
101 if (!(entity->pads[pad].flags & MEDIA_PAD_FL_SINK)) in vsp1_create_links()
104 ret = media_entity_create_link(&source->subdev.entity, in vsp1_create_links()
106 entity, pad, flags); in vsp1_create_links()
111 source->sink = entity; in vsp1_create_links()
120 struct vsp1_entity *entity; in vsp1_destroy_entities() local
123 list_for_each_entry_safe(entity, next, &vsp1->entities, list_dev) { in vsp1_destroy_entities()
124 list_del(&entity->list_dev); in vsp1_destroy_entities()
[all …]
Dvsp1_video.c164 media_entity_type(remote->entity) != MEDIA_ENT_T_V4L2_SUBDEV) in vsp1_video_remote_subdev()
170 return media_entity_to_v4l2_subdev(remote->entity); in vsp1_video_remote_subdev()
314 struct vsp1_entity *entity; in vsp1_pipeline_validate_branch() local
322 pad = media_entity_remote_pad(&input->entity.pads[RWPF_PAD_SOURCE]); in vsp1_pipeline_validate_branch()
329 if (media_entity_type(pad->entity) != MEDIA_ENT_T_V4L2_SUBDEV) in vsp1_pipeline_validate_branch()
332 entity = to_vsp1_entity(media_entity_to_v4l2_subdev(pad->entity)); in vsp1_pipeline_validate_branch()
337 if (entity->type == VSP1_ENTITY_BRU) { in vsp1_pipeline_validate_branch()
338 struct vsp1_bru *bru = to_bru(&entity->subdev); in vsp1_pipeline_validate_branch()
351 if (entity->type == VSP1_ENTITY_WPF) in vsp1_pipeline_validate_branch()
355 if (entities & (1 << entity->subdev.entity.id)) in vsp1_pipeline_validate_branch()
[all …]
Dvsp1_uds.c34 return vsp1_read(uds->entity.vsp1, in vsp1_uds_read()
35 reg + uds->entity.index * VI6_UDS_OFFSET); in vsp1_uds_read()
40 vsp1_write(uds->entity.vsp1, in vsp1_uds_write()
41 reg + uds->entity.index * VI6_UDS_OFFSET, data); in vsp1_uds_write()
129 input = &uds->entity.formats[UDS_PAD_SINK]; in uds_s_stream()
130 output = &uds->entity.formats[UDS_PAD_SOURCE]; in uds_s_stream()
135 dev_dbg(uds->entity.vsp1->dev, "hscale %u vscale %u\n", hscale, vscale); in uds_s_stream()
195 format = vsp1_entity_get_pad_format(&uds->entity, cfg, in uds_enum_mbus_code()
210 format = vsp1_entity_get_pad_format(&uds->entity, cfg, in uds_enum_frame_size()
236 fmt->format = *vsp1_entity_get_pad_format(&uds->entity, cfg, fmt->pad, in uds_get_format()
[all …]
Dvsp1_bru.c32 return vsp1_read(bru->entity.vsp1, reg); in vsp1_bru_read()
37 vsp1_write(bru->entity.vsp1, reg, data); in vsp1_bru_write()
49 if (!vsp1_entity_is_streaming(&bru->entity)) in bru_s_ctrl()
72 struct vsp1_pipeline *pipe = to_vsp1_pipeline(&subdev->entity); in bru_s_stream()
79 ret = vsp1_entity_set_streaming(&bru->entity, enable); in bru_s_stream()
86 format = &bru->entity.formats[BRU_PAD_SOURCE]; in bru_s_stream()
205 format = vsp1_entity_get_pad_format(&bru->entity, cfg, in bru_enum_mbus_code()
238 return v4l2_subdev_get_try_crop(&bru->entity.subdev, cfg, pad); in bru_get_compose()
251 fmt->format = *vsp1_entity_get_pad_format(&bru->entity, cfg, fmt->pad, in bru_get_format()
273 format = vsp1_entity_get_pad_format(&bru->entity, cfg, in bru_try_format()
[all …]
Dvsp1_lut.c32 return vsp1_read(lut->entity.vsp1, reg); in vsp1_lut_read()
37 vsp1_write(lut->entity.vsp1, reg, data); in vsp1_lut_write()
46 memcpy_toio(lut->entity.vsp1->mmio + VI6_LUT_TABLE, config->lut, in lut_configure()
108 format = vsp1_entity_get_pad_format(&lut->entity, cfg, in lut_enum_mbus_code()
123 format = vsp1_entity_get_pad_format(&lut->entity, cfg, in lut_enum_frame_size()
152 fmt->format = *vsp1_entity_get_pad_format(&lut->entity, cfg, fmt->pad, in lut_get_format()
170 format = vsp1_entity_get_pad_format(&lut->entity, cfg, fmt->pad, in lut_set_format()
189 format = vsp1_entity_get_pad_format(&lut->entity, cfg, LUT_PAD_SOURCE, in lut_set_format()
235 lut->entity.type = VSP1_ENTITY_LUT; in vsp1_lut_create()
237 ret = vsp1_entity_init(vsp1, &lut->entity, 2); in vsp1_lut_create()
[all …]
Dvsp1_lif.c31 return vsp1_read(lif->entity.vsp1, reg); in vsp1_lif_read()
36 vsp1_write(lif->entity.vsp1, reg, data); in vsp1_lif_write()
56 format = &lif->entity.formats[LIF_PAD_SOURCE]; in lif_s_stream()
100 format = vsp1_entity_get_pad_format(&lif->entity, cfg, in lif_enum_mbus_code()
115 format = vsp1_entity_get_pad_format(&lif->entity, cfg, LIF_PAD_SINK, in lif_enum_frame_size()
141 fmt->format = *vsp1_entity_get_pad_format(&lif->entity, cfg, fmt->pad, in lif_get_format()
158 format = vsp1_entity_get_pad_format(&lif->entity, cfg, fmt->pad, in lif_set_format()
180 format = vsp1_entity_get_pad_format(&lif->entity, cfg, LIF_PAD_SOURCE, in lif_set_format()
221 lif->entity.type = VSP1_ENTITY_LIF; in vsp1_lif_create()
223 ret = vsp1_entity_init(vsp1, &lif->entity, 2); in vsp1_lif_create()
[all …]
Dvsp1_sru.c31 return vsp1_read(sru->entity.vsp1, reg); in vsp1_sru_read()
36 vsp1_write(sru->entity.vsp1, reg, data); in vsp1_sru_write()
132 ret = vsp1_entity_set_streaming(&sru->entity, enable); in sru_s_stream()
139 input = &sru->entity.formats[SRU_PAD_SINK]; in sru_s_stream()
140 output = &sru->entity.formats[SRU_PAD_SOURCE]; in sru_s_stream()
192 format = vsp1_entity_get_pad_format(&sru->entity, cfg, in sru_enum_mbus_code()
207 format = vsp1_entity_get_pad_format(&sru->entity, cfg, in sru_enum_frame_size()
239 fmt->format = *vsp1_entity_get_pad_format(&sru->entity, cfg, fmt->pad, in sru_get_format()
266 format = vsp1_entity_get_pad_format(&sru->entity, cfg, in sru_try_format()
304 format = vsp1_entity_get_pad_format(&sru->entity, cfg, fmt->pad, in sru_set_format()
[all …]
Dvsp1_hsit.c31 vsp1_write(hsit->entity.vsp1, reg, data); in vsp1_hsit_write()
82 format = vsp1_entity_get_pad_format(&hsit->entity, cfg, fse->pad, in hsit_enum_frame_size()
112 fmt->format = *vsp1_entity_get_pad_format(&hsit->entity, cfg, fmt->pad, in hsit_get_format()
125 format = vsp1_entity_get_pad_format(&hsit->entity, cfg, fmt->pad, in hsit_set_format()
148 format = vsp1_entity_get_pad_format(&hsit->entity, cfg, HSIT_PAD_SOURCE, in hsit_set_format()
194 hsit->entity.type = VSP1_ENTITY_HSI; in vsp1_hsit_create()
196 hsit->entity.type = VSP1_ENTITY_HST; in vsp1_hsit_create()
198 ret = vsp1_entity_init(vsp1, &hsit->entity, 2); in vsp1_hsit_create()
203 subdev = &hsit->entity.subdev; in vsp1_hsit_create()
206 subdev->entity.ops = &vsp1_media_ops; in vsp1_hsit_create()
Dvsp1_entity.h85 int vsp1_entity_init(struct vsp1_device *vsp1, struct vsp1_entity *entity,
87 void vsp1_entity_destroy(struct vsp1_entity *entity);
93 vsp1_entity_get_pad_format(struct vsp1_entity *entity,
99 bool vsp1_entity_is_streaming(struct vsp1_entity *entity);
100 int vsp1_entity_set_streaming(struct vsp1_entity *entity, bool streaming);
Dvsp1_rwpf.c51 format = vsp1_entity_get_pad_format(&rwpf->entity, cfg, fse->pad, in vsp1_rwpf_enum_frame_size()
80 return v4l2_subdev_get_try_crop(&rwpf->entity.subdev, cfg, RWPF_PAD_SINK); in vsp1_rwpf_get_crop()
93 fmt->format = *vsp1_entity_get_pad_format(&rwpf->entity, cfg, fmt->pad, in vsp1_rwpf_get_format()
111 format = vsp1_entity_get_pad_format(&rwpf->entity, cfg, fmt->pad, in vsp1_rwpf_set_format()
141 format = vsp1_entity_get_pad_format(&rwpf->entity, cfg, RWPF_PAD_SOURCE, in vsp1_rwpf_set_format()
165 format = vsp1_entity_get_pad_format(&rwpf->entity, cfg, in vsp1_rwpf_get_selection()
198 format = vsp1_entity_get_pad_format(&rwpf->entity, cfg, RWPF_PAD_SINK, in vsp1_rwpf_set_selection()
213 if (rwpf->entity.type == VSP1_ENTITY_WPF) { in vsp1_rwpf_set_selection()
226 format = vsp1_entity_get_pad_format(&rwpf->entity, cfg, RWPF_PAD_SOURCE, in vsp1_rwpf_set_selection()
Dvsp1_lif.h27 struct vsp1_entity entity; member
32 return container_of(subdev, struct vsp1_lif, entity.subdev); in to_lif()
Dvsp1_hsit.h27 struct vsp1_entity entity; member
33 return container_of(subdev, struct vsp1_hsit, entity.subdev); in to_hsit()
Dvsp1_lut.h27 struct vsp1_entity entity; member
33 return container_of(subdev, struct vsp1_lut, entity.subdev); in to_lut()
Dvsp1_sru.h28 struct vsp1_entity entity; member
35 return container_of(subdev, struct vsp1_sru, entity.subdev); in to_sru()
Dvsp1_uds.h27 struct vsp1_entity entity; member
33 return container_of(subdev, struct vsp1_uds, entity.subdev); in to_uds()
Dvsp1_bru.h29 struct vsp1_entity entity; member
41 return container_of(subdev, struct vsp1_bru, entity.subdev); in to_bru()
Dvsp1_rwpf.h28 struct vsp1_entity entity; member
47 return container_of(subdev, struct vsp1_rwpf, entity.subdev); in to_rwpf()
/linux-4.4.14/include/media/
Dmedia-entity.h42 struct media_entity *entity; /* Entity this pad belongs to */ member
57 int (*link_setup)(struct media_entity *entity,
106 static inline u32 media_entity_type(struct media_entity *entity) in media_entity_type() argument
108 return entity->type & MEDIA_ENT_TYPE_MASK; in media_entity_type()
111 static inline u32 media_entity_subtype(struct media_entity *entity) in media_entity_subtype() argument
113 return entity->type & MEDIA_ENT_SUBTYPE_MASK; in media_entity_subtype()
128 struct media_entity *entity; member
136 int media_entity_init(struct media_entity *entity, u16 num_pads,
138 void media_entity_cleanup(struct media_entity *entity);
142 void __media_entity_remove_links(struct media_entity *entity);
[all …]
Dmedia-device.h96 struct media_entity *entity);
97 void media_device_unregister_entity(struct media_entity *entity);
100 #define media_device_for_each_entity(entity, mdev) \ argument
101 list_for_each_entry(entity, &(mdev)->entities, list)
Dv4l2-dev.h88 struct media_entity entity; member
145 container_of(__e, struct video_device, entity)
Dv4l2-subdev.h704 struct media_entity entity; member
740 container_of(ent, struct v4l2_subdev, entity)
764 BUG_ON(pad >= sd->entity.num_pads); \
/linux-4.4.14/drivers/media/platform/xilinx/
Dxilinx-vipp.c44 struct media_entity *entity; member
58 struct xvip_graph_entity *entity; in xvip_graph_find_entity() local
60 list_for_each_entry(entity, &xdev->entities, list) { in xvip_graph_find_entity()
61 if (entity->node == node) in xvip_graph_find_entity()
62 return entity; in xvip_graph_find_entity()
69 struct xvip_graph_entity *entity) in xvip_graph_build_one() argument
72 struct media_entity *local = entity->entity; in xvip_graph_build_one()
86 next = of_graph_get_next_endpoint(entity->node, ep); in xvip_graph_build_one()
140 remote = ent->entity; in xvip_graph_build_one()
246 if (link.remote_port >= ent->entity->num_pads) { in xvip_graph_build_dma()
[all …]
Dxilinx-dma.c53 media_entity_type(remote->entity) != MEDIA_ENT_T_V4L2_SUBDEV) in xvip_dma_remote_subdev()
59 return media_entity_to_v4l2_subdev(remote->entity); in xvip_dma_remote_subdev()
104 struct media_entity *entity; in xvip_pipeline_start_stop() local
109 entity = &dma->video.entity; in xvip_pipeline_start_stop()
111 pad = &entity->pads[0]; in xvip_pipeline_start_stop()
117 media_entity_type(pad->entity) != MEDIA_ENT_T_V4L2_SUBDEV) in xvip_pipeline_start_stop()
120 entity = pad->entity; in xvip_pipeline_start_stop()
121 subdev = media_entity_to_v4l2_subdev(entity); in xvip_pipeline_start_stop()
183 struct media_entity *entity = &start->video.entity; in xvip_pipeline_validate() local
184 struct media_device *mdev = entity->parent; in xvip_pipeline_validate()
[all …]
Dxilinx-tpg.c837 subdev->entity.ops = &xtpg_media_ops; in xtpg_probe()
839 ret = media_entity_init(&subdev->entity, xtpg->npads, xtpg->pads, 0); in xtpg_probe()
888 media_entity_cleanup(&subdev->entity); in xtpg_probe()
902 media_entity_cleanup(&subdev->entity); in xtpg_remove()
/linux-4.4.14/drivers/isdn/hardware/eicon/
Dum_idi.h13 int divas_um_idi_delete_entity(int adapter_nr, void *entity);
24 int diva_um_idi_read(void *entity,
29 int diva_um_idi_write(void *entity,
34 int diva_user_mode_idi_ind_ready(void *entity, void *os_handle);
35 void *diva_um_id_get_os_context(void *entity);
37 int divas_um_idi_entity_assigned(void *entity);
38 int divas_um_idi_entity_start_remove(void *entity);
40 void diva_um_idi_start_wdog(void *entity);
41 void diva_um_idi_stop_wdog(void *entity);
Ddivasi.c80 static int remove_entity(void *entity);
475 static int remove_entity(void *entity) in remove_entity() argument
480 diva_um_idi_stop_wdog(entity); in remove_entity()
482 if (!entity) { in remove_entity()
489 diva_um_id_get_os_context(entity))) { in remove_entity()
494 if (!divas_um_idi_entity_assigned(entity) || p_os->aborted) { in remove_entity()
501 DBG_TRC(("E(%08x) check remove", entity)) in remove_entity()
507 diva_um_idi_start_wdog(entity); in remove_entity()
515 if (!divas_um_idi_entity_start_remove(entity) in remove_entity()
525 DBG_TRC(("E(%08x) start remove", entity)) in remove_entity()
[all …]
Dum_idi.c272 int divas_um_idi_delete_entity(int adapter_nr, void *entity) in divas_um_idi_delete_entity() argument
278 if (!(e = (divas_um_idi_entity_t *) entity)) in divas_um_idi_delete_entity()
287 diva_um_idi_stop_wdog(entity); in divas_um_idi_delete_entity()
301 int diva_um_idi_read(void *entity, in diva_um_idi_read() argument
315 e = (divas_um_idi_entity_t *) entity; in diva_um_idi_read()
381 int diva_um_idi_write(void *entity, in diva_um_idi_write() argument
395 e = (divas_um_idi_entity_t *) entity; in diva_um_idi_write()
491 static void diva_um_idi_xdi_callback(ENTITY *entity) in diva_um_idi_xdi_callback() argument
493 divas_um_idi_entity_t *e = DIVAS_CONTAINING_RECORD(entity, in diva_um_idi_xdi_callback()
759 int diva_user_mode_idi_ind_ready(void *entity, void *os_handle) in diva_user_mode_idi_ind_ready() argument
[all …]
/linux-4.4.14/drivers/staging/media/omap4iss/
Diss.c145 ret = v4l2_subdev_call(media_entity_to_v4l2_subdev(link->sink->entity), in omap4iss_get_external_info()
392 static int iss_pipeline_pm_use_count(struct media_entity *entity) in iss_pipeline_pm_use_count() argument
397 media_entity_graph_walk_start(&graph, entity); in iss_pipeline_pm_use_count()
399 while ((entity = media_entity_graph_walk_next(&graph))) { in iss_pipeline_pm_use_count()
400 if (media_entity_type(entity) == MEDIA_ENT_T_DEVNODE) in iss_pipeline_pm_use_count()
401 use += entity->use_count; in iss_pipeline_pm_use_count()
418 static int iss_pipeline_pm_power_one(struct media_entity *entity, int change) in iss_pipeline_pm_power_one() argument
422 subdev = media_entity_type(entity) == MEDIA_ENT_T_V4L2_SUBDEV in iss_pipeline_pm_power_one()
423 ? media_entity_to_v4l2_subdev(entity) : NULL; in iss_pipeline_pm_power_one()
425 if (entity->use_count == 0 && change > 0 && subdev) { in iss_pipeline_pm_power_one()
[all …]
Diss_video.c194 media_entity_type(remote->entity) != MEDIA_ENT_T_V4L2_SUBDEV) in iss_video_remote_subdev()
200 return media_entity_to_v4l2_subdev(remote->entity); in iss_video_remote_subdev()
208 struct media_entity *entity = &video->video.entity; in iss_video_far_end() local
209 struct media_device *mdev = entity->parent; in iss_video_far_end()
213 media_entity_graph_walk_start(&graph, entity); in iss_video_far_end()
215 while ((entity = media_entity_graph_walk_next(&graph))) { in iss_video_far_end()
216 if (entity == &video->video.entity) in iss_video_far_end()
219 if (media_entity_type(entity) != MEDIA_ENT_T_DEVNODE) in iss_video_far_end()
222 far_end = to_iss_video(media_entity_to_video_device(entity)); in iss_video_far_end()
350 struct iss_pipeline *pipe = to_iss_pipeline(&video->video.entity); in iss_video_buf_queue()
[all …]
Diss_ipipeif.c346 if (omap4iss_module_sync_idle(&sd->entity, &ipipeif->wait, in ipipeif_set_stream()
658 static int ipipeif_link_setup(struct media_entity *entity, in ipipeif_link_setup() argument
662 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); in ipipeif_link_setup()
666 switch (local->index | media_entity_type(remote->entity)) { in ipipeif_link_setup()
677 if (remote->entity == &iss->csi2a.subdev.entity) in ipipeif_link_setup()
679 else if (remote->entity == &iss->csi2b.subdev.entity) in ipipeif_link_setup()
729 struct media_entity *me = &sd->entity; in ipipeif_init_entities()
765 ret = media_entity_create_link(&ipipeif->subdev.entity, in ipipeif_init_entities()
767 &ipipeif->video_out.video.entity, 0, 0); in ipipeif_init_entities()
831 media_entity_cleanup(&ipipeif->subdev.entity); in omap4iss_ipipeif_cleanup()
Diss_resizer.c294 to_iss_pipeline(&resizer->subdev.entity); in omap4iss_resizer_isr()
401 if (omap4iss_module_sync_idle(&sd->entity, &resizer->wait, in resizer_set_stream()
712 static int resizer_link_setup(struct media_entity *entity, in resizer_link_setup() argument
716 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); in resizer_link_setup()
720 switch (local->index | media_entity_type(remote->entity)) { in resizer_link_setup()
731 if (remote->entity == &iss->ipipeif.subdev.entity) in resizer_link_setup()
733 else if (remote->entity == &iss->ipipe.subdev.entity) in resizer_link_setup()
772 struct media_entity *me = &sd->entity; in resizer_init_entities()
807 ret = media_entity_create_link(&resizer->subdev.entity, in resizer_init_entities()
809 &resizer->video_out.video.entity, 0, 0); in resizer_init_entities()
[all …]
Diss_ipipe.c167 if (omap4iss_module_sync_idle(&sd->entity, &ipipe->wait, in ipipe_set_stream()
442 static int ipipe_link_setup(struct media_entity *entity, in ipipe_link_setup() argument
446 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); in ipipe_link_setup()
450 switch (local->index | media_entity_type(remote->entity)) { in ipipe_link_setup()
461 if (remote->entity == &iss->ipipeif.subdev.entity) in ipipe_link_setup()
500 struct media_entity *me = &sd->entity; in ipipe_init_entities()
577 media_entity_cleanup(&ipipe->subdev.entity); in omap4iss_ipipe_cleanup()
Diss_csi2.c546 sensor = media_entity_to_v4l2_subdev(pad->entity); in csi2_configure()
680 to_iss_pipeline(&csi2->subdev.entity); in csi2_isr_ctx()
743 struct iss_pipeline *pipe = to_iss_pipeline(&csi2->subdev.entity); in omap4iss_csi2_isr()
1026 struct iss_pipeline *pipe = to_iss_pipeline(&csi2->subdev.entity); in csi2_link_validate()
1029 pipe->external = media_entity_to_v4l2_subdev(link->source->entity); in csi2_link_validate()
1113 if (omap4iss_module_sync_idle(&sd->entity, &csi2->wait, in csi2_set_stream()
1166 static int csi2_link_setup(struct media_entity *entity, in csi2_link_setup() argument
1170 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); in csi2_link_setup()
1179 switch (local->index | media_entity_type(remote->entity)) { in csi2_link_setup()
1257 struct media_entity *me = &sd->entity; in csi2_init_entities()
[all …]
Diss.h154 int omap4iss_pipeline_pm_use(struct media_entity *entity, int use);
Diss_csiphy.c123 struct iss_pipeline *pipe = to_iss_pipeline(&csi2_subdev->entity); in omap4iss_csiphy_config()
/linux-4.4.14/Documentation/DocBook/media/
DMakefile252 entity=`echo $$ident | tr _ -` ; \
253 r="$$r s/([^\w\-])$$ident([^\w\-])/\1\&$$entity\;\2/g;";\
268 entity=`echo $$ident | tr _ -` ; \
269 r="$$r s/([^\w\-])$$ident([^\w\-])/\1\&$$entity\;\2/g;";\
308 entity=`echo $$ident | tr _ -` ; \
309 echo "<!ENTITY func-$$entity \"<link" \
310 "linkend='func-$$entity'><function>$$ident()</function></link>\">" \
317 entity=`echo $$ident | tr _ -` ; \
319 if [ "$$id" != "" ]; then echo "<!ENTITY $$entity \"<link" \
329 entity=`echo $$ident | tr _ -` ; \
[all …]
/linux-4.4.14/drivers/media/dvb-core/
Ddvbdev.c192 dvbdev->entity = kzalloc(sizeof(*dvbdev->entity), GFP_KERNEL); in dvb_register_media_device()
193 if (!dvbdev->entity) in dvb_register_media_device()
196 dvbdev->entity->info.dev.major = DVB_MAJOR; in dvb_register_media_device()
197 dvbdev->entity->info.dev.minor = minor; in dvb_register_media_device()
198 dvbdev->entity->name = dvbdev->name; in dvb_register_media_device()
217 kfree(dvbdev->entity); in dvb_register_media_device()
224 dvbdev->entity->type = MEDIA_ENT_T_DEVNODE_DVB_FE; in dvb_register_media_device()
229 dvbdev->entity->type = MEDIA_ENT_T_DEVNODE_DVB_DEMUX; in dvb_register_media_device()
234 dvbdev->entity->type = MEDIA_ENT_T_DEVNODE_DVB_DVR; in dvb_register_media_device()
238 dvbdev->entity->type = MEDIA_ENT_T_DEVNODE_DVB_CA; in dvb_register_media_device()
[all …]
Ddvbdev.h151 struct media_entity *entity; member
Ddvb_frontend.c623 struct media_entity *entity, *source; in dvb_enable_media_tuner() local
632 entity = fepriv->dvbdev->entity; in dvb_enable_media_tuner()
633 fepriv->pipe_start_entity = entity; in dvb_enable_media_tuner()
635 for (i = 0; i < entity->num_links; i++) { in dvb_enable_media_tuner()
636 link = &entity->links[i]; in dvb_enable_media_tuner()
637 if (link->sink->entity == entity) { in dvb_enable_media_tuner()
660 source = found_link->source->entity; in dvb_enable_media_tuner()
667 sink = link->sink->entity; in dvb_enable_media_tuner()
669 if (sink == entity) in dvb_enable_media_tuner()
/linux-4.4.14/drivers/media/platform/omap3isp/
Disp.c552 pipe = to_isp_pipeline(&isp->isp_ccp2.subdev.entity); in isp_isr_sbl()
558 pipe = to_isp_pipeline(&isp->isp_csi2a.subdev.entity); in isp_isr_sbl()
564 pipe = to_isp_pipeline(&isp->isp_ccdc.subdev.entity); in isp_isr_sbl()
570 pipe = to_isp_pipeline(&isp->isp_prev.subdev.entity); in isp_isr_sbl()
579 pipe = to_isp_pipeline(&isp->isp_res.subdev.entity); in isp_isr_sbl()
686 static int isp_pipeline_pm_use_count(struct media_entity *entity) in isp_pipeline_pm_use_count() argument
691 media_entity_graph_walk_start(&graph, entity); in isp_pipeline_pm_use_count()
693 while ((entity = media_entity_graph_walk_next(&graph))) { in isp_pipeline_pm_use_count()
694 if (media_entity_type(entity) == MEDIA_ENT_T_DEVNODE) in isp_pipeline_pm_use_count()
695 use += entity->use_count; in isp_pipeline_pm_use_count()
[all …]
Dispvideo.c214 media_entity_type(remote->entity) != MEDIA_ENT_T_V4L2_SUBDEV) in isp_video_remote_subdev()
220 return media_entity_to_v4l2_subdev(remote->entity); in isp_video_remote_subdev()
228 struct media_entity *entity = &video->video.entity; in isp_video_get_graph_data() local
229 struct media_device *mdev = entity->parent; in isp_video_get_graph_data()
233 media_entity_graph_walk_start(&graph, entity); in isp_video_get_graph_data()
235 while ((entity = media_entity_graph_walk_next(&graph))) { in isp_video_get_graph_data()
238 pipe->entities |= 1 << entity->id; in isp_video_get_graph_data()
243 if (entity == &video->video.entity) in isp_video_get_graph_data()
246 if (media_entity_type(entity) != MEDIA_ENT_T_DEVNODE) in isp_video_get_graph_data()
249 __video = to_isp_video(media_entity_to_video_device(entity)); in isp_video_get_graph_data()
[all …]
Dispccp2.c360 sensor = media_entity_to_v4l2_subdev(pad->entity); in ccp2_if_configure()
385 struct isp_pipeline *pipe = to_isp_pipeline(&ccp2->subdev.entity); in ccp2_adjust_bandwidth()
537 struct isp_pipeline *pipe = to_isp_pipeline(&ccp2->subdev.entity); in ccp2_isr_buffer()
561 struct isp_pipeline *pipe = to_isp_pipeline(&ccp2->subdev.entity); in omap3isp_ccp2_isr()
876 if (omap3isp_module_sync_idle(&sd->entity, &ccp2->wait, in ccp2_s_stream()
953 static int ccp2_link_setup(struct media_entity *entity, in ccp2_link_setup() argument
957 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); in ccp2_link_setup()
960 switch (local->index | media_entity_type(remote->entity)) { in ccp2_link_setup()
1056 struct media_entity *me = &sd->entity; in ccp2_init_entities()
1103 ret = media_entity_create_link(&ccp2->video_in.video.entity, 0, in ccp2_init_entities()
[all …]
Dispresizer.c503 struct isp_pipeline *pipe = to_isp_pipeline(&res->subdev.entity); in omap3isp_resizer_max_rate()
544 struct isp_pipeline *pipe = to_isp_pipeline(&res->subdev.entity); in resizer_adjust_bandwidth()
1017 struct isp_pipeline *pipe = to_isp_pipeline(&res->subdev.entity); in resizer_isr_buffer()
1167 if (omap3isp_module_sync_idle(&sd->entity, &res->wait, in resizer_set_stream()
1548 struct isp_pipeline *pipe = to_isp_pipeline(&sd->entity); in resizer_link_validate()
1620 static int resizer_link_setup(struct media_entity *entity, in resizer_link_setup() argument
1624 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); in resizer_link_setup()
1627 switch (local->index | media_entity_type(remote->entity)) { in resizer_link_setup()
1714 struct media_entity *me = &sd->entity; in resizer_init_entities()
1756 res->video_out.video.entity.flags |= MEDIA_ENT_FL_DEFAULT; in resizer_init_entities()
[all …]
Dispcsi2.c551 struct isp_pipeline *pipe = to_isp_pipeline(&csi2->subdev.entity); in csi2_configure()
568 sensor = media_entity_to_v4l2_subdev(pad->entity); in csi2_configure()
740 struct isp_pipeline *pipe = to_isp_pipeline(&csi2->subdev.entity); in omap3isp_csi2_isr()
1087 if (omap3isp_module_sync_idle(&sd->entity, &csi2->wait, in csi2_set_stream()
1140 static int csi2_link_setup(struct media_entity *entity, in csi2_link_setup() argument
1144 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); in csi2_link_setup()
1153 switch (local->index | media_entity_type(remote->entity)) { in csi2_link_setup()
1232 struct media_entity *me = &sd->entity; in csi2_init_entities()
1268 ret = media_entity_create_link(&csi2->subdev.entity, CSI2_PAD_SOURCE, in csi2_init_entities()
1269 &csi2->video_out.video.entity, 0, 0); in csi2_init_entities()
[all …]
Dispccdc.c807 struct isp_pipeline *pipe = to_isp_pipeline(&ccdc->subdev.entity); in ccdc_config_vp()
940 struct isp_pipeline *pipe = to_isp_pipeline(&ccdc->subdev.entity); in omap3isp_ccdc_max_rate()
1139 sensor = media_entity_to_v4l2_subdev(pad->entity); in ccdc_configure()
1464 struct isp_pipeline *pipe = to_isp_pipeline(&ccdc->subdev.entity); in ccdc_hs_vs_isr()
1489 to_isp_pipeline(&ccdc->subdev.entity); in ccdc_lsc_isr()
1542 struct isp_pipeline *pipe = to_isp_pipeline(&ccdc->subdev.entity); in ccdc_has_all_fields()
1586 struct isp_pipeline *pipe = to_isp_pipeline(&ccdc->subdev.entity); in ccdc_isr_buffer()
1611 isp->crashed |= 1U << ccdc->subdev.entity.id; in ccdc_isr_buffer()
1649 to_isp_pipeline(&ccdc->subdev.entity); in ccdc_vd0_isr()
2422 media_entity_to_v4l2_subdev(link->source->entity) in ccdc_link_validate()
[all …]
Disp.h268 int omap3isp_pipeline_pm_use(struct media_entity *entity, int use);
357 if (pad >= subdev->entity.num_pads) in isp_pad_buffer_type()
360 if (subdev->entity.pads[pad].flags & MEDIA_PAD_FL_SINK) in isp_pad_buffer_type()
Disppreview.c1167 struct isp_pipeline *pipe = to_isp_pipeline(&prev->subdev.entity); in preview_adjust_bandwidth()
1479 struct isp_pipeline *pipe = to_isp_pipeline(&prev->subdev.entity); in preview_isr_buffer()
1670 if (omap3isp_module_sync_idle(&sd->entity, &prev->wait, in preview_set_stream()
2141 static int preview_link_setup(struct media_entity *entity, in preview_link_setup() argument
2145 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); in preview_link_setup()
2148 switch (local->index | media_entity_type(remote->entity)) { in preview_link_setup()
2258 struct media_entity *me = &sd->entity; in preview_init_entities()
2315 ret = media_entity_create_link(&prev->video_in.video.entity, 0, in preview_init_entities()
2316 &prev->subdev.entity, PREV_PAD_SINK, 0); in preview_init_entities()
2320 ret = media_entity_create_link(&prev->subdev.entity, PREV_PAD_SOURCE, in preview_init_entities()
[all …]
Dispcsiphy.c168 struct isp_pipeline *pipe = to_isp_pipeline(&csi2->subdev.entity); in omap3isp_csiphy_config()
309 to_isp_pipeline(&csi2->subdev.entity); in omap3isp_csiphy_release()
Dispstat.c902 pipe = to_isp_pipeline(&stat->subdev.entity); in __stat_isr()
1020 struct media_entity *me = &subdev->entity; in isp_stat_init_entities()
1058 media_entity_cleanup(&stat->subdev.entity); in omap3isp_stat_cleanup()
/linux-4.4.14/drivers/media/v4l2-core/
Dv4l2-subdev.c38 fh->pad = kzalloc(sizeof(*fh->pad) * sd->entity.num_pads, GFP_KERNEL); in subdev_fh_init()
59 struct media_entity *entity = NULL; in subdev_open() local
78 entity = media_entity_get(&sd->entity); in subdev_open()
79 if (!entity) { in subdev_open()
96 media_entity_put(entity); in subdev_open()
117 media_entity_put(&sd->entity); in subdev_close()
136 if (format->pad >= sd->entity.num_pads) in check_format()
148 if (crop->pad >= sd->entity.num_pads) in check_crop()
161 if (sel->pad >= sd->entity.num_pads) in check_selection()
169 if (edid->pad >= sd->entity.num_pads) in check_edid()
[all …]
Dv4l2-device.c149 struct media_entity *entity = &sd->entity; in v4l2_device_register_subdev() local
188 err = media_device_register_entity(v4l2_dev->mdev, entity); in v4l2_device_register_subdev()
250 sd->entity.info.dev.major = VIDEO_MAJOR; in v4l2_device_register_subdev_nodes()
251 sd->entity.info.dev.minor = vdev->minor; in v4l2_device_register_subdev_nodes()
288 media_entity_remove_links(&sd->entity); in v4l2_device_unregister_subdev()
289 media_device_unregister_entity(&sd->entity); in v4l2_device_unregister_subdev()
Dv4l2-dev.c199 media_device_unregister_entity(&vdev->entity); in v4l2_device_release()
925 vdev->entity.type = MEDIA_ENT_T_DEVNODE_V4L; in __video_register_device()
926 vdev->entity.name = vdev->name; in __video_register_device()
927 vdev->entity.info.dev.major = VIDEO_MAJOR; in __video_register_device()
928 vdev->entity.info.dev.minor = vdev->minor; in __video_register_device()
930 &vdev->entity); in __video_register_device()
Dv4l2-flash-led-class.c654 ret = media_entity_init(&sd->entity, 0, NULL, 0); in v4l2_flash_init()
658 sd->entity.type = MEDIA_ENT_T_V4L2_SUBDEV_FLASH; in v4l2_flash_init()
679 media_entity_cleanup(&sd->entity); in v4l2_flash_init()
704 media_entity_cleanup(&sd->entity); in v4l2_flash_release()
Dtuner-core.c441 t->sd.entity.name = t->name; in set_type()
699 t->sd.entity.type = MEDIA_ENT_T_V4L2_SUBDEV_TUNER; in tuner_probe()
700 t->sd.entity.name = t->name; in tuner_probe()
702 ret = media_entity_init(&t->sd.entity, 1, &t->pad, 0); in tuner_probe()
/linux-4.4.14/Documentation/
Dmedia-framework.txt24 An entity is a basic media hardware building block. It can correspond to
30 A pad is a connection endpoint through which an entity can interact with
31 other entities. Data (not restricted to video) produced by an entity
32 flows from the entity's output to one or more entity inputs. Pads should
36 on the same entity or on different entities. Data flows from a source
100 include/media/media-entity.h. The structure is usually embedded into a
106 media_entity_init(struct media_entity *entity, u16 num_pads,
115 dynamically but is managed by the entity driver. Most drivers will embed the
122 advance by the entity driver. As an initial estimate, media_entity_init
130 struct media_entity *entity);
[all …]
DSubmittingDrivers58 are the same person/entity. If not, the name of
59 the person/entity authorizing use of GPL should be
Dphy.txt26 PHY provider refers to an entity that implements one or more PHY instances.
Ddma-buf-sharing.txt75 Userspace entity requests for a file-descriptor (fd) which is a handle to the
Datomic_ops.txt318 be guaranteed that no other entity can be accessing the object:
/linux-4.4.14/drivers/media/platform/exynos4-is/
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()
26 media_entity_type(pad->entity) != MEDIA_ENT_T_V4L2_SUBDEV) in fimc_find_remote_sensor()
29 sd = media_entity_to_v4l2_subdev(pad->entity); in fimc_find_remote_sensor()
35 pad = &sd->entity.pads[0]; in fimc_find_remote_sensor()
Dmedia-dev.c92 media_entity_type(pad->entity) != MEDIA_ENT_T_V4L2_SUBDEV) in fimc_pipeline_prepare()
94 sd = media_entity_to_v4l2_subdev(pad->entity); in fimc_pipeline_prepare()
118 me = &sd->entity; in fimc_pipeline_prepare()
143 use_count = &sd->entity.use_count; in __subdev_set_power()
252 fmd = entity_to_fimc_mdev(&sd->entity); in __fimc_pipeline_close()
731 sink = &fmd->fimc[i]->vid_cap.subdev.entity; in __fimc_md_create_fimc_sink_links()
751 sink = &fmd->fimc_lite[i]->subdev.entity; in __fimc_md_create_fimc_sink_links()
781 source = &fimc->subdev.entity; in __fimc_md_create_flite_source_links()
782 sink = &fimc->ve.vdev.entity; in __fimc_md_create_flite_source_links()
789 sink = &fmd->fimc_is->isp.subdev.entity; in __fimc_md_create_flite_source_links()
[all …]
Dfimc-isp-video.c278 struct media_entity *me = &ve->vdev.entity; in isp_video_open()
316 struct media_entity *entity = &ivc->ve.vdev.entity; in isp_video_release() local
317 struct media_device *mdev = entity->parent; in isp_video_release()
322 media_entity_pipeline_stop(entity); in isp_video_release()
332 entity->use_count--; in isp_video_release()
461 pad = &sd->entity.pads[0]; in isp_video_pipeline_validate()
473 media_entity_type(pad->entity) != MEDIA_ENT_T_V4L2_SUBDEV) in isp_video_pipeline_validate()
476 sd = media_entity_to_v4l2_subdev(pad->entity); in isp_video_pipeline_validate()
497 struct media_entity *me = &ve->vdev.entity; in isp_video_streamon()
530 media_entity_pipeline_stop(&video->ve.vdev.entity); in isp_video_streamoff()
[all …]
Dfimc-lite.c478 struct media_entity *me = &fimc->ve.vdev.entity; in fimc_lite_open()
527 struct media_entity *entity = &fimc->ve.vdev.entity; in fimc_lite_release() local
534 media_entity_pipeline_stop(entity); in fimc_lite_release()
541 mutex_lock(&entity->parent->graph_mutex); in fimc_lite_release()
542 entity->use_count--; in fimc_lite_release()
543 mutex_unlock(&entity->parent->graph_mutex); in fimc_lite_release()
795 pad = &sd->entity.pads[0]; in fimc_pipeline_validate()
815 media_entity_type(pad->entity) != MEDIA_ENT_T_V4L2_SUBDEV) in fimc_pipeline_validate()
818 sd = media_entity_to_v4l2_subdev(pad->entity); in fimc_pipeline_validate()
837 struct media_entity *entity = &fimc->ve.vdev.entity; in fimc_lite_streamon() local
[all …]
Dfimc-capture.c326 fimc_pipeline_call(ve, open, &ve->vdev.entity, false); in fimc_capture_resume()
500 ret = fimc_pipeline_call(ve, open, &ve->vdev.entity, true); in fimc_capture_open()
514 ve->vdev.entity.use_count++; in fimc_capture_open()
544 media_entity_pipeline_stop(&vc->ve.vdev.entity); in fimc_capture_release()
556 vc->ve.vdev.entity.use_count--; in fimc_capture_release()
761 me = pad->entity; in fimc_pipeline_get_head()
799 me = fimc_pipeline_get_head(&sd->entity); in fimc_pipeline_try_format()
814 while (me != &fimc->vid_cap.subdev.entity) { in fimc_pipeline_try_format()
834 me = pad->entity; in fimc_pipeline_try_format()
881 pad = sensor->entity.num_pads - 1; in fimc_get_sensor_frame_desc()
[all …]
Dmedia-dev.h178 mutex_lock(&ve->vdev.entity.parent->graph_mutex); in fimc_md_graph_lock()
183 mutex_unlock(&ve->vdev.entity.parent->graph_mutex); in fimc_md_graph_unlock()
Dcommon.h14 struct v4l2_subdev *fimc_find_remote_sensor(struct media_entity *entity);
Dfimc-isp.c103 static int fimc_is_link_setup(struct media_entity *entity, in fimc_is_link_setup() argument
232 if (sd->entity.stream_count == 0) { in fimc_isp_subdev_set_fmt()
711 ret = media_entity_init(&sd->entity, FIMC_ISP_SD_PADS_NUM, in fimc_isp_subdev_create()
761 media_entity_cleanup(&sd->entity); in fimc_isp_subdev_create()
770 sd->entity.ops = &fimc_is_subdev_media_ops; in fimc_isp_subdev_create()
783 media_entity_cleanup(&sd->entity); in fimc_isp_subdev_destroy()
Dfimc-m2m.c742 ret = media_entity_init(&vfd->entity, 0, NULL, 0); in fimc_register_m2m_device()
755 media_entity_cleanup(&vfd->entity); in fimc_register_m2m_device()
771 media_entity_cleanup(&fimc->m2m.vfd.entity); in fimc_unregister_m2m_device()
Dmipi-csis.c869 ret = media_entity_init(&state->sd.entity, in s5pcsis_probe()
894 media_entity_cleanup(&state->sd.entity); in s5pcsis_probe()
1005 media_entity_cleanup(&state->sd.entity); in s5pcsis_remove()
/linux-4.4.14/drivers/staging/media/davinci_vpfe/
Dvpfe_video.c44 return remote->entity; in vpfe_get_input_entity()
62 subdev = media_entity_to_v4l2_subdev(remote->entity); in vpfe_update_current_ext_subdev()
91 if (remote == NULL || remote->entity->type != MEDIA_ENT_T_V4L2_SUBDEV) in vpfe_video_remote_subdev()
95 return media_entity_to_v4l2_subdev(remote->entity); in vpfe_video_remote_subdev()
132 struct media_entity *entity = &video->video_dev.entity; in vpfe_prepare_pipeline() local
133 struct media_device *mdev = entity->parent; in vpfe_prepare_pipeline()
147 media_entity_graph_walk_start(&graph, entity); in vpfe_prepare_pipeline()
148 while ((entity = media_entity_graph_walk_next(&graph))) { in vpfe_prepare_pipeline()
149 if (entity == &video->video_dev.entity) in vpfe_prepare_pipeline()
151 if (media_entity_type(entity) != MEDIA_ENT_T_DEVNODE) in vpfe_prepare_pipeline()
[all …]
Dvpfe_mc_capture.c447 if (vpfe_dev->sd[i]->entity.num_pads) { in vpfe_register_entities()
448 ret = media_entity_create_link(&vpfe_dev->sd[i]->entity, in vpfe_register_entities()
449 0, &vpfe_dev->vpfe_isif.subdev.entity, in vpfe_register_entities()
455 ret = media_entity_create_link(&vpfe_dev->vpfe_isif.subdev.entity, 1, in vpfe_register_entities()
456 &vpfe_dev->vpfe_ipipeif.subdev.entity, in vpfe_register_entities()
461 ret = media_entity_create_link(&vpfe_dev->vpfe_ipipeif.subdev.entity, 1, in vpfe_register_entities()
462 &vpfe_dev->vpfe_ipipe.subdev.entity, in vpfe_register_entities()
467 ret = media_entity_create_link(&vpfe_dev->vpfe_ipipe.subdev.entity, in vpfe_register_entities()
468 1, &vpfe_dev->vpfe_resizer.crop_resizer.subdev.entity, in vpfe_register_entities()
473 ret = media_entity_create_link(&vpfe_dev->vpfe_ipipeif.subdev.entity, 1, in vpfe_register_entities()
[all …]
Ddm365_ipipeif.c882 ipipeif_link_setup(struct media_entity *entity, const struct media_pad *local, in ipipeif_link_setup() argument
885 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); in ipipeif_link_setup()
889 switch (local->index | media_entity_type(remote->entity)) { in ipipeif_link_setup()
916 if (remote->entity == &vpfe->vpfe_ipipe.subdev.entity) in ipipeif_link_setup()
919 else if (remote->entity == &vpfe->vpfe_resizer. in ipipeif_link_setup()
920 crop_resizer.subdev.entity) in ipipeif_link_setup()
950 media_entity_cleanup(&ipipeif->subdev.entity); in vpfe_ipipeif_unregister_entities()
974 ret = media_entity_create_link(&ipipeif->video_in.video_dev.entity, 0, in vpfe_ipipeif_register_entities()
975 &ipipeif->subdev.entity, 0, flags); in vpfe_ipipeif_register_entities()
994 struct media_entity *me = &sd->entity; in vpfe_ipipeif_init()
Ddm365_resizer.c1647 static int resizer_link_setup(struct media_entity *entity, in resizer_link_setup() argument
1651 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); in resizer_link_setup()
1658 switch (local->index | media_entity_type(remote->entity)) { in resizer_link_setup()
1707 switch (local->index | media_entity_type(remote->entity)) { in resizer_link_setup()
1732 switch (local->index | media_entity_type(remote->entity)) { in resizer_link_setup()
1782 media_entity_cleanup(&vpfe_rsz->crop_resizer.subdev.entity); in vpfe_resizer_unregister_entities()
1783 media_entity_cleanup(&vpfe_rsz->resizer_a.subdev.entity); in vpfe_resizer_unregister_entities()
1784 media_entity_cleanup(&vpfe_rsz->resizer_b.subdev.entity); in vpfe_resizer_unregister_entities()
1834 ret = media_entity_create_link(&resizer->crop_resizer.subdev.entity, 1, in vpfe_resizer_register_entities()
1835 &resizer->resizer_a.subdev.entity, in vpfe_resizer_register_entities()
[all …]
Ddm365_isif.c1705 isif_link_setup(struct media_entity *entity, const struct media_pad *local, in isif_link_setup() argument
1708 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); in isif_link_setup()
1711 switch (local->index | media_entity_type(remote->entity)) { in isif_link_setup()
1758 media_entity_cleanup(&isif->subdev.entity); in vpfe_isif_unregister_entities()
1820 ret = media_entity_create_link(&isif->subdev.entity, 1, in vpfe_isif_register_entities()
1821 &isif->video_out.video_dev.entity, in vpfe_isif_register_entities()
1994 struct media_entity *me = &sd->entity; in vpfe_isif_init()
Ddm365_ipipe.c1706 ipipe_link_setup(struct media_entity *entity, const struct media_pad *local, in ipipe_link_setup() argument
1709 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); in ipipe_link_setup()
1714 switch (local->index | media_entity_type(remote->entity)) { in ipipe_link_setup()
1756 media_entity_cleanup(&vpfe_ipipe->subdev.entity); in vpfe_ipipe_unregister_entities()
1793 struct media_entity *me = &sd->entity; in vpfe_ipipe_init()
/linux-4.4.14/drivers/video/fbdev/
Dsh_mipi_dsi.c55 struct sh_mobile_lcdc_entity entity; member
63 #define to_sh_mipi(e) container_of(e, struct sh_mipi, entity)
379 static int mipi_display_on(struct sh_mobile_lcdc_entity *entity) in mipi_display_on() argument
381 struct sh_mipi *mipi = to_sh_mipi(entity); in mipi_display_on()
391 ret = sh_mipi_setup(mipi, &entity->def_mode); in mipi_display_on()
407 static void mipi_display_off(struct sh_mobile_lcdc_entity *entity) in mipi_display_off() argument
409 struct sh_mipi *mipi = to_sh_mipi(entity); in mipi_display_off()
455 mipi->entity.owner = THIS_MODULE; in sh_mipi_probe()
456 mipi->entity.ops = &mipi_ops; in sh_mipi_probe()
512 platform_set_drvdata(pdev, &mipi->entity); in sh_mipi_probe()
Dsh_mobile_lcdcfb.h30 int (*display_on)(struct sh_mobile_lcdc_entity *entity);
31 void (*display_off)(struct sh_mobile_lcdc_entity *entity);
Dsh_mobile_hdmi.c274 struct sh_mobile_lcdc_entity entity; member
296 #define entity_to_sh_hdmi(e) container_of(e, struct sh_hdmi, entity)
847 struct sh_mobile_lcdc_chan *ch = hdmi->entity.lcdc; in sh_hdmi_read_edid()
988 if (!found && hdmi->entity.def_mode.xres != 0) { in sh_hdmi_read_edid()
989 found = &hdmi->entity.def_mode; in sh_hdmi_read_edid()
1102 static int sh_hdmi_display_on(struct sh_mobile_lcdc_entity *entity) in sh_hdmi_display_on() argument
1104 struct sh_hdmi *hdmi = entity_to_sh_hdmi(entity); in sh_hdmi_display_on()
1126 static void sh_hdmi_display_off(struct sh_mobile_lcdc_entity *entity) in sh_hdmi_display_off() argument
1128 struct sh_hdmi *hdmi = entity_to_sh_hdmi(entity); in sh_hdmi_display_off()
1179 struct sh_mobile_lcdc_chan *ch = hdmi->entity.lcdc; in sh_hdmi_edid_work_fn()
[all …]
/linux-4.4.14/Documentation/ABI/testing/
Dsysfs-bus-rpmsg20 and remote ("destination") rpmsg address. When an entity
24 dispatches them to the listening entity (a kernel driver).
38 and remote ("destination") rpmsg address. When an entity
42 dispatches them to the listening entity.
51 remote entity).
64 A channel is first created when an entity, whether local
Dsysfs-bus-coresight-devices-etm3x27 entity.
141 various aspect of the trace entity such as time stamping,
240 coming from this trace entity.
Dsysfs-bus-coresight-devices-etm4x15 Description: (R) The CPU this tracing entity is associated with.
/linux-4.4.14/include/uapi/linux/
Dmedia.h144 __u32 entity; /* entity ID */ member
162 __u32 entity; member
Duvcvideo.h44 __u8 entity[16]; member
/linux-4.4.14/Documentation/zh_CN/video4linux/
Dv4l2-framework.txt293 结构体中的 media_entity 结构体(entity 域):
298 err = media_entity_init(&sd->entity, npads, pads, 0);
303 当(任何)子设备节点被打开/关闭,对 entity 的引用将被自动获取/释放。
307 media_entity_cleanup(&sd->entity);
600 嵌入在 video_device 结构体中的 media_entity(entity 域)结构体:
605 err = media_entity_init(&vdev->entity, 1, pad, 0);
610 当(任何)子设备节点被打开/关闭,对 entity 的引用将被自动获取/释放。
725 media_entity_cleanup(&vdev->entity);
/linux-4.4.14/drivers/gpu/drm/rcar-du/
Drcar_du_kms.c571 struct device_node *entity; in rcar_du_encoders_init_one() local
578 entity = of_graph_get_remote_port_parent(ep->local_node); in rcar_du_encoders_init_one()
579 if (!entity) { in rcar_du_encoders_init_one()
587 for_each_endpoint_of_node(entity, ep_node) { in rcar_du_encoders_init_one()
595 encoder = entity; in rcar_du_encoders_init_one()
641 connector = entity; in rcar_du_encoders_init_one()
/linux-4.4.14/drivers/media/i2c/
Dlm3646.c285 rval = media_entity_init(&flash->subdev_led.entity, 0, NULL, 0); in lm3646_subdev_init()
288 flash->subdev_led.entity.type = MEDIA_ENT_T_V4L2_SUBDEV_FLASH; in lm3646_subdev_init()
388 media_entity_cleanup(&flash->subdev_led.entity); in lm3646_remove()
Ds5k6a3.c336 ret = media_entity_init(&sd->entity, 1, &sensor->pad, 0); in s5k6a3_probe()
347 media_entity_cleanup(&sd->entity); in s5k6a3_probe()
359 media_entity_cleanup(&sd->entity); in s5k6a3_remove()
Ds5k5baf.c411 return sd->entity.type == MEDIA_ENT_T_V4L2_SUBDEV_SENSOR; in s5k5baf_is_cis_subdev()
1759 ret = media_entity_create_link(&state->cis_sd.entity, PAD_CIS, in s5k5baf_registered()
1760 &state->sd.entity, PAD_CIS, in s5k5baf_registered()
1907 sd->entity.type = MEDIA_ENT_T_V4L2_SUBDEV_SENSOR; in s5k5baf_configure_subdevs()
1908 ret = media_entity_init(&sd->entity, NUM_CIS_PADS, &state->cis_pad, 0); in s5k5baf_configure_subdevs()
1922 sd->entity.type = MEDIA_ENT_T_V4L2_SUBDEV; in s5k5baf_configure_subdevs()
1923 ret = media_entity_init(&sd->entity, NUM_ISP_PADS, state->pads, 0); in s5k5baf_configure_subdevs()
1928 media_entity_cleanup(&state->cis_sd.entity); in s5k5baf_configure_subdevs()
2012 media_entity_cleanup(&state->sd.entity); in s5k5baf_probe()
2013 media_entity_cleanup(&state->cis_sd.entity); in s5k5baf_probe()
[all …]
Dlm3560.c368 rval = media_entity_init(&flash->subdev_led[led_no].entity, 0, NULL, 0); in lm3560_subdev_init()
371 flash->subdev_led[led_no].entity.type = MEDIA_ENT_T_V4L2_SUBDEV_FLASH; in lm3560_subdev_init()
460 media_entity_cleanup(&flash->subdev_led[i].entity); in lm3560_remove()
Dadp1653.c515 ret = media_entity_init(&flash->subdev.entity, 0, NULL, 0); in adp1653_probe()
519 flash->subdev.entity.type = MEDIA_ENT_T_V4L2_SUBDEV_FLASH; in adp1653_probe()
536 media_entity_cleanup(&flash->subdev.entity); in adp1653_remove()
Dtvp7002.c1015 device->sd.entity.flags |= MEDIA_ENT_T_V4L2_SUBDEV_DECODER; in tvp7002_probe()
1017 error = media_entity_init(&device->sd.entity, 1, &device->pad, 0); in tvp7002_probe()
1041 media_entity_cleanup(&device->sd.entity); in tvp7002_probe()
1062 media_entity_cleanup(&device->sd.entity); in tvp7002_remove()
Dtvp514x.c1098 decoder->sd.entity.flags |= MEDIA_ENT_T_V4L2_SUBDEV_DECODER; in tvp514x_probe()
1100 ret = media_entity_init(&decoder->sd.entity, 1, &decoder->pad, 0); in tvp514x_probe()
1133 media_entity_cleanup(&decoder->sd.entity); in tvp514x_probe()
1153 media_entity_cleanup(&decoder->sd.entity); in tvp514x_remove()
Das3645a.c830 ret = media_entity_init(&flash->subdev.entity, 0, NULL, 0); in as3645a_probe()
834 flash->subdev.entity.type = MEDIA_ENT_T_V4L2_SUBDEV_FLASH; in as3645a_probe()
854 media_entity_cleanup(&flash->subdev.entity); in as3645a_remove()
Ds5k4ecgx.c964 sd->entity.type = MEDIA_ENT_T_V4L2_SUBDEV_SENSOR; in s5k4ecgx_probe()
965 ret = media_entity_init(&sd->entity, 1, &priv->pad, 0); in s5k4ecgx_probe()
995 media_entity_cleanup(&priv->sd.entity); in s5k4ecgx_probe()
1009 media_entity_cleanup(&sd->entity); in s5k4ecgx_remove()
Dnoon010pc30.c782 sd->entity.type = MEDIA_ENT_T_V4L2_SUBDEV_SENSOR; in noon010_probe()
783 ret = media_entity_init(&sd->entity, 1, &info->pad, 0); in noon010_probe()
804 media_entity_cleanup(&sd->entity); in noon010_remove()
Dmt9m032.c802 ret = media_entity_init(&sensor->subdev.entity, 1, &sensor->pad, 0); in mt9m032_probe()
861 media_entity_cleanup(&sensor->subdev.entity); in mt9m032_probe()
876 media_entity_cleanup(&subdev->entity); in mt9m032_remove()
Dov2659.c1448 sd->entity.type = MEDIA_ENT_T_V4L2_SUBDEV_SENSOR; in ov2659_probe()
1449 ret = media_entity_init(&sd->entity, 1, &ov2659->pad, 0); in ov2659_probe()
1480 media_entity_cleanup(&sd->entity); in ov2659_probe()
1494 media_entity_cleanup(&sd->entity); in ov2659_remove()
Dadv7180.c1216 sd->entity.flags |= MEDIA_ENT_T_V4L2_SUBDEV_DECODER; in adv7180_probe()
1217 ret = media_entity_init(&sd->entity, 1, &state->pad, 0); in adv7180_probe()
1243 media_entity_cleanup(&sd->entity); in adv7180_probe()
1266 media_entity_cleanup(&sd->entity); in adv7180_remove()
Dmt9t001.c936 ret = media_entity_init(&mt9t001->subdev.entity, 1, &mt9t001->pad, 0); in mt9t001_probe()
941 media_entity_cleanup(&mt9t001->subdev.entity); in mt9t001_probe()
954 media_entity_cleanup(&subdev->entity); in mt9t001_remove()
Dmt9v032.c1049 ret = media_entity_init(&mt9v032->subdev.entity, 1, &mt9v032->pad, 0); in mt9v032_probe()
1061 media_entity_cleanup(&mt9v032->subdev.entity); in mt9v032_probe()
1073 media_entity_cleanup(&subdev->entity); in mt9v032_remove()
Dmt9p031.c1115 ret = media_entity_init(&mt9p031->subdev.entity, 1, &mt9p031->pad, 0); in mt9p031_probe()
1148 media_entity_cleanup(&mt9p031->subdev.entity); in mt9p031_probe()
1162 media_entity_cleanup(&subdev->entity); in mt9p031_remove()
Dov9650.c1503 sd->entity.type = MEDIA_ENT_T_V4L2_SUBDEV_SENSOR; in ov965x_probe()
1504 ret = media_entity_init(&sd->entity, 1, &ov965x->pad, 0); in ov965x_probe()
1527 media_entity_cleanup(&sd->entity); in ov965x_probe()
1537 media_entity_cleanup(&sd->entity); in ov965x_remove()
Dad9389b.c1161 err = media_entity_init(&sd->entity, 1, &state->pad, 0); in ad9389b_probe()
1201 media_entity_cleanup(&sd->entity); in ad9389b_probe()
1226 media_entity_cleanup(&sd->entity); in ad9389b_remove()
Ds5k6aa.c1580 sd->entity.type = MEDIA_ENT_T_V4L2_SUBDEV_SENSOR; in s5k6aa_probe()
1581 ret = media_entity_init(&sd->entity, 1, &s5k6aa->pad, 0); in s5k6aa_probe()
1613 media_entity_cleanup(&s5k6aa->sd.entity); in s5k6aa_probe()
1623 media_entity_cleanup(&sd->entity); in s5k6aa_remove()
Dadv7511.c1494 err = media_entity_init(&sd->entity, 1, &state->pad, 0); in adv7511_probe()
1549 media_entity_cleanup(&sd->entity); in adv7511_probe()
1573 media_entity_cleanup(&sd->entity); in adv7511_remove()
Dtc358743.c1892 err = media_entity_init(&sd->entity, 1, &state->pad, 0); in tc358743_probe()
1942 media_entity_cleanup(&sd->entity); in tc358743_probe()
1957 media_entity_cleanup(&sd->entity); in tc358743_remove()
Dadv7604.c3210 err = media_entity_init(&sd->entity, state->source_pad + 1, in adv76xx_probe()
3233 media_entity_cleanup(&sd->entity); in adv76xx_probe()
3254 media_entity_cleanup(&sd->entity); in adv76xx_remove()
Dadv7842.c3312 err = media_entity_init(&sd->entity, 1, &state->pad, 0); in adv7842_probe()
3325 media_entity_cleanup(&sd->entity); in adv7842_probe()
3348 media_entity_cleanup(&sd->entity); in adv7842_remove()
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ctx.c50 &ctx->rings[i].entity, in amdgpu_ctx_init()
59 &ctx->rings[j].entity); in amdgpu_ctx_init()
82 &ctx->rings[i].entity); in amdgpu_ctx_fini()
Damdgpu_sched.c86 job->base.s_entity = &adev->kernel_ctx.rings[ring->idx].entity; in amdgpu_sched_ib_submit_kernel_helper()
Damdgpu_cs.c865 job->base.s_entity = &parser.ctx->rings[ring->idx].entity; in amdgpu_cs_ioctl()
Damdgpu.h1030 struct amd_sched_entity entity; member
/linux-4.4.14/drivers/media/i2c/s5c73m3/
Ds5c73m3-core.c1485 ret = media_entity_create_link(&state->sensor_sd.entity, in s5c73m3_oif_registered()
1486 S5C73M3_ISP_PAD, &state->oif_sd.entity, OIF_ISP_PAD, in s5c73m3_oif_registered()
1489 ret = media_entity_create_link(&state->sensor_sd.entity, in s5c73m3_oif_registered()
1490 S5C73M3_JPEG_PAD, &state->oif_sd.entity, OIF_JPEG_PAD, in s5c73m3_oif_registered()
1691 sd->entity.type = MEDIA_ENT_T_V4L2_SUBDEV; in s5c73m3_probe()
1693 ret = media_entity_init(&sd->entity, S5C73M3_NUM_PADS, in s5c73m3_probe()
1707 oif_sd->entity.type = MEDIA_ENT_T_V4L2_SUBDEV; in s5c73m3_probe()
1709 ret = media_entity_init(&oif_sd->entity, OIF_NUM_PADS, in s5c73m3_probe()
1772 media_entity_cleanup(&sd->entity); in s5c73m3_probe()
1785 media_entity_cleanup(&oif_sd->entity); in s5c73m3_remove()
[all …]
/linux-4.4.14/drivers/media/platform/s3c-camif/
Dcamif-core.c266 ret = media_entity_create_link(&camif->sensor.sd->entity, 0, in camif_create_media_links()
267 &camif->subdev.entity, CAMIF_SD_PAD_SINK, in camif_create_media_links()
274 ret = media_entity_create_link(&camif->subdev.entity, i, in camif_create_media_links()
275 &camif->vp[i - 1].vdev.entity, 0, in camif_create_media_links()
Dcamif-capture.c836 if (!pad || media_entity_type(pad->entity) != MEDIA_ENT_T_V4L2_SUBDEV) in camif_pipeline_validate()
858 struct media_entity *sensor = &camif->sensor.sd->entity; in s3c_camif_streamon()
902 media_entity_pipeline_stop(&camif->sensor.sd->entity); in s3c_camif_streamoff()
1158 ret = media_entity_init(&vfd->entity, 1, &vp->pad, 0); in s3c_camif_register_video_node()
1191 media_entity_cleanup(&vfd->entity); in s3c_camif_register_video_node()
1203 media_entity_cleanup(&vfd->entity); in s3c_camif_unregister_video_node()
1573 ret = media_entity_init(&sd->entity, CAMIF_SD_PADS_NUM, in s3c_camif_create_subdev()
1597 media_entity_cleanup(&sd->entity); in s3c_camif_create_subdev()
1620 media_entity_cleanup(&sd->entity); in s3c_camif_unregister_subdev()
/linux-4.4.14/drivers/media/usb/cx231xx/
Dcx231xx-video.c107 struct media_entity *entity, *decoder = NULL, *source; in cx231xx_enable_analog_tuner() local
121 media_device_for_each_entity(entity, mdev) { in cx231xx_enable_analog_tuner()
122 if (entity->type == MEDIA_ENT_T_V4L2_SUBDEV_DECODER) { in cx231xx_enable_analog_tuner()
123 decoder = entity; in cx231xx_enable_analog_tuner()
132 if (link->sink->entity == decoder) { in cx231xx_enable_analog_tuner()
143 source = found_link->source->entity; in cx231xx_enable_analog_tuner()
149 sink = link->sink->entity; in cx231xx_enable_analog_tuner()
151 if (sink == entity) in cx231xx_enable_analog_tuner()
2179 ret = media_entity_init(&dev->vdev.entity, 1, &dev->video_pad, 0); in cx231xx_register_analog_devices()
2206 ret = media_entity_init(&dev->vbi_dev.entity, 1, &dev->vbi_pad, 0); in cx231xx_register_analog_devices()
Dcx231xx-cards.c1244 struct media_entity *entity; in cx231xx_create_media_graph() local
1250 media_device_for_each_entity(entity, mdev) { in cx231xx_create_media_graph()
1251 switch (entity->type) { in cx231xx_create_media_graph()
1253 tuner = entity; in cx231xx_create_media_graph()
1256 decoder = entity; in cx231xx_create_media_graph()
1269 media_entity_create_link(decoder, 1, &dev->vdev.entity, 0, in cx231xx_create_media_graph()
1271 media_entity_create_link(decoder, 2, &dev->vbi_dev.entity, 0, in cx231xx_create_media_graph()
/linux-4.4.14/Documentation/devicetree/bindings/pci/
Daltera-pcie.txt23 - msi-parent: Link to the hardware entity that serves as the MSI controller for this PCIe
Dmvebu-pci.txt18 - msi-parent: Link to the hardware entity that serves as the Message
/linux-4.4.14/drivers/media/i2c/m5mols/
Dm5mols_core.c978 ret = media_entity_init(&sd->entity, 1, &info->pad, 0); in m5mols_probe()
981 sd->entity.type = MEDIA_ENT_T_V4L2_SUBDEV_SENSOR; in m5mols_probe()
1008 media_entity_cleanup(&sd->entity); in m5mols_probe()
1018 media_entity_cleanup(&sd->entity); in m5mols_remove()
/linux-4.4.14/drivers/usb/gadget/function/
Df_fs.c1704 typedef int (*ffs_entity_callback)(enum ffs_entity_type entity,
1709 typedef int (*ffs_os_desc_callback)(enum ffs_os_desc_type entity,
1714 ffs_entity_callback entity, in ffs_do_single_desc() argument
1745 ret = entity(FFS_ ##type, &val, _ds, priv); \ in ffs_do_single_desc()
1843 ffs_entity_callback entity, void *priv) in ffs_do_descs() argument
1857 ret = entity(FFS_DESCRIPTOR, (u8 *)num, (void *)data, priv); in ffs_do_descs()
1867 ret = ffs_do_single_desc(data, len, entity, priv); in ffs_do_descs()
1962 ffs_os_desc_callback entity, in ffs_do_single_os_desc() argument
1973 ret = entity(type, h, data, len, priv); in ffs_do_single_os_desc()
1987 ffs_os_desc_callback entity, void *priv) in ffs_do_os_descs() argument
[all …]
/linux-4.4.14/drivers/media/i2c/smiapp/
Dsmiapp-core.c1662 for (i = 0; i < subdev->entity.num_pads; i++) in smiapp_get_crop_compose()
1668 for (i = 0; i < subdev->entity.num_pads; i++) { in smiapp_get_crop_compose()
2490 rval = media_entity_init(&this->sd.entity, in smiapp_register_subdevs()
2498 rval = media_entity_create_link(&this->sd.entity, in smiapp_register_subdevs()
2500 &last->sd.entity, in smiapp_register_subdevs()
2749 this->sd.entity.ops = &smiapp_entity_ops; in smiapp_init()
2766 sensor->pixel_array->sd.entity.type = MEDIA_ENT_T_V4L2_SUBDEV_SENSOR; in smiapp_init()
3080 rval = media_entity_init(&sensor->src->sd.entity, 2, in smiapp_probe()
3098 media_entity_cleanup(&sensor->src->sd.entity); in smiapp_probe()
3123 media_entity_cleanup(&sensor->ssds[i].sd.entity); in smiapp_remove()
/linux-4.4.14/Documentation/scheduler/
Dsched-design-CFS.txt162 It puts the scheduling entity (task) into the red-black tree and
168 corresponding scheduling entity out of the red-black tree. It decrements
175 entity at the right-most end of the red-black tree.
Dsched-bwc.txt78 The interface enforces that an individual entity's bandwidth is always
Dsched-domains.txt24 is treated as one entity. The load of a group is defined as the sum of the
/linux-4.4.14/drivers/hwtracing/coresight/
DKconfig21 entity at run time to form a complete trace path.
/linux-4.4.14/Documentation/vm/
Dzsmalloc.txt15 page boundaries. The code refers to these linked pages as a single entity
/linux-4.4.14/Documentation/video4linux/
Dv4l2-framework.txt297 media_entity struct embedded in the v4l2_subdev struct (entity field) by
303 err = media_entity_init(&sd->entity, npads, pads, 0);
309 A reference to the entity will be automatically acquired/released when the
312 Don't forget to cleanup the media entity before the sub-device is destroyed:
314 media_entity_cleanup(&sd->entity);
361 entity will be automatically registered with the media device.
697 media_entity struct embedded in the video_device struct (entity field) by
703 err = media_entity_init(&vdev->entity, 1, pad, 0);
708 A reference to the entity will be automatically acquired/released when the
762 entity will be automatically registered with the media device.
[all …]
Dfimc.txt73 through media entity and links enumeration.
Duvcvideo.txt145 __u8 entity[16] UVC extension unit GUID
/linux-4.4.14/net/ipv6/
DKconfig104 identifier is the identity of an entity in communication
106 entity ("where").
/linux-4.4.14/Documentation/leds/
Dleds-class-flash.txt49 * dev_name - the name of the media entity, unique in the system,
/linux-4.4.14/Documentation/devicetree/bindings/net/dsa/
Ddsa.txt68 managed entity. See
/linux-4.4.14/Documentation/devicetree/bindings/powerpc/fsl/cpm_qe/
Dqe.txt8 as a complete entity (UCC, USB etc ). All of them should be siblings on
/linux-4.4.14/Documentation/nvmem/
Dnvmem.txt31 NVMEM provider refers to an entity that implements methods to initialize, read
/linux-4.4.14/Documentation/DocBook/
D.device-drivers.xml.cmd2 …e/media/media-device.h include/media/media-devnode.h include/media/media-entity.h drivers/tty/seri…
Ddevice-drivers.xml.db936 API-struct-media-entity-operations
/linux-4.4.14/Documentation/networking/
Dradiotap-headers.txt73 rule is applied dealing with a u16, NOT dealing with a 4-byte single entity.
/linux-4.4.14/Documentation/devicetree/bindings/pinctrl/
Dfsl,mxs-pinctrl.txt49 This integer with mux selection packed is used as an entity by both group
/linux-4.4.14/include/acpi/
Dactbl2.h191 u8 entity; member
/linux-4.4.14/Documentation/scsi/
Dscsi_fc_transport.txt51 an entity that has a world-wide unique World Wide Port Name (wwpn) and
70 up to an administrative entity controlling the vport. For example,
/linux-4.4.14/Documentation/isdn/
DREADME.concap131 /* to be called for each data entity received from lower layer*/
/linux-4.4.14/Documentation/filesystems/
Dsysfs.txt229 entity (e.g. device) the object represents may not be present. Be
Dsharedsubtree.txt845 mounts as a conceptual entity called 'pnode', it becomes a tree]
/linux-4.4.14/Documentation/RCU/
Dtrace.txt341 set for each entity in the next lower level that has
344 The qsmaskinit will have one bit for each entity that is
/linux-4.4.14/Documentation/power/
Dfreezing-of-tasks.txt215 successfully acquired the 'pm_mutex' lock, and hence that other entity failed
/linux-4.4.14/Documentation/powerpc/
Dcxlflash.txt77 adapter driver. The driver is the only entity that is considered a
Dpci_iov_resource_on_powernv.txt34 is a completely separate HW entity that replicates the entire logic, so has
/linux-4.4.14/Documentation/security/
DSmack.txt335 Subject: A subject is an active entity on the computer system.
339 Object: An object is a passive entity on the computer system.
/linux-4.4.14/Documentation/timers/
DNO_HZ.txt344 load, maintaining sched average, computing CFS entity vruntime,
/linux-4.4.14/Documentation/filesystems/configfs/
Dconfigfs.txt430 after which the subsystem can start whatever entity this item
/linux-4.4.14/drivers/media/i2c/cx25840/
Dcx25840-core.c5211 sd->entity.type = MEDIA_ENT_T_V4L2_SUBDEV_DECODER; in cx25840_probe()
5213 ret = media_entity_init(&sd->entity, ARRAY_SIZE(state->pads), in cx25840_probe()
/linux-4.4.14/drivers/staging/speakup/
Dspkguide.txt1426 through arrangements made by) any one entity. If the Document already
1428 by arrangement made by the same entity you are acting on behalf of,
/linux-4.4.14/Documentation/block/
Dbiodoc.txt853 design for representing virtual/real extents as an entity and modifying