Home
last modified time | relevance | path

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

/linux-4.1.27/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.c287 struct uvc_entity *entity; in uvc_entity_by_id() local
289 list_for_each_entry(entity, &dev->entities, list) { in uvc_entity_by_id()
290 if (entity->id == id) in uvc_entity_by_id()
291 return entity; in uvc_entity_by_id()
298 int id, struct uvc_entity *entity) in uvc_entity_by_reference() argument
302 if (entity == NULL) in uvc_entity_by_reference()
303 entity = list_entry(&dev->entities, struct uvc_entity, list); in uvc_entity_by_reference()
305 list_for_each_entry_continue(entity, &dev->entities, list) { in uvc_entity_by_reference()
306 for (i = 0; i < entity->bNrInPins; ++i) in uvc_entity_by_reference()
307 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()
1231 __u8 entity[16]; member
/linux-4.1.27/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.1.27/drivers/media/platform/vsp1/
Dvsp1_entity.c25 bool vsp1_entity_is_streaming(struct vsp1_entity *entity) in vsp1_entity_is_streaming() argument
29 mutex_lock(&entity->lock); in vsp1_entity_is_streaming()
30 streaming = entity->streaming; in vsp1_entity_is_streaming()
31 mutex_unlock(&entity->lock); in vsp1_entity_is_streaming()
36 int vsp1_entity_set_streaming(struct vsp1_entity *entity, bool streaming) in vsp1_entity_set_streaming() argument
40 mutex_lock(&entity->lock); in vsp1_entity_set_streaming()
41 entity->streaming = streaming; in vsp1_entity_set_streaming()
42 mutex_unlock(&entity->lock); in vsp1_entity_set_streaming()
47 if (!entity->subdev.ctrl_handler) in vsp1_entity_set_streaming()
50 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()
191 format = vsp1_entity_get_pad_format(&sru->entity, cfg, in sru_enum_mbus_code()
206 format = vsp1_entity_get_pad_format(&sru->entity, cfg, in sru_enum_frame_size()
238 fmt->format = *vsp1_entity_get_pad_format(&sru->entity, cfg, fmt->pad, in sru_get_format()
265 format = vsp1_entity_get_pad_format(&sru->entity, cfg, in sru_try_format()
303 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()
202 if (rwpf->entity.type == VSP1_ENTITY_WPF) { in vsp1_rwpf_set_selection()
215 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_sru.h28 struct vsp1_entity entity; member
35 return container_of(subdev, struct vsp1_sru, entity.subdev); in to_sru()
Dvsp1_lut.h27 struct vsp1_entity entity; member
33 return container_of(subdev, struct vsp1_lut, entity.subdev); in to_lut()
Dvsp1_hsit.h27 struct vsp1_entity entity; member
33 return container_of(subdev, struct vsp1_hsit, entity.subdev); in to_hsit()
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.1.27/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()
121 struct media_entity *entity; member
129 int media_entity_init(struct media_entity *entity, u16 num_pads,
131 void media_entity_cleanup(struct media_entity *entity);
135 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.h599 struct media_entity entity; member
633 container_of(ent, struct v4l2_subdev, entity)
657 BUG_ON(pad >= sd->entity.num_pads); \
/linux-4.1.27/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.1.27/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.1.27/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 != NULL) { in iss_pipeline_pm_power_one()
[all …]
Diss_video.c195 media_entity_type(remote->entity) != MEDIA_ENT_T_V4L2_SUBDEV) in iss_video_remote_subdev()
201 return media_entity_to_v4l2_subdev(remote->entity); in iss_video_remote_subdev()
209 struct media_entity *entity = &video->video.entity; in iss_video_far_end() local
210 struct media_device *mdev = entity->parent; in iss_video_far_end()
214 media_entity_graph_walk_start(&graph, entity); in iss_video_far_end()
216 while ((entity = media_entity_graph_walk_next(&graph))) { in iss_video_far_end()
217 if (entity == &video->video.entity) in iss_video_far_end()
220 if (media_entity_type(entity) != MEDIA_ENT_T_DEVNODE) in iss_video_far_end()
223 far_end = to_iss_video(media_entity_to_video_device(entity)); in iss_video_far_end()
348 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()
656 static int ipipeif_link_setup(struct media_entity *entity, in ipipeif_link_setup() argument
660 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); in ipipeif_link_setup()
664 switch (local->index | media_entity_type(remote->entity)) { in ipipeif_link_setup()
675 if (remote->entity == &iss->csi2a.subdev.entity) in ipipeif_link_setup()
677 else if (remote->entity == &iss->csi2b.subdev.entity) in ipipeif_link_setup()
727 struct media_entity *me = &sd->entity; in ipipeif_init_entities()
763 ret = media_entity_create_link(&ipipeif->subdev.entity, in ipipeif_init_entities()
765 &ipipeif->video_out.video.entity, 0, 0); in ipipeif_init_entities()
829 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()
711 static int resizer_link_setup(struct media_entity *entity, in resizer_link_setup() argument
715 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); in resizer_link_setup()
719 switch (local->index | media_entity_type(remote->entity)) { in resizer_link_setup()
730 if (remote->entity == &iss->ipipeif.subdev.entity) in resizer_link_setup()
732 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.c165 if (omap4iss_module_sync_idle(&sd->entity, &ipipe->wait, in ipipe_set_stream()
434 static int ipipe_link_setup(struct media_entity *entity, in ipipe_link_setup() argument
438 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); in ipipe_link_setup()
442 switch (local->index | media_entity_type(remote->entity)) { in ipipe_link_setup()
453 if (remote->entity == &iss->ipipeif.subdev.entity) in ipipe_link_setup()
492 struct media_entity *me = &sd->entity; in ipipe_init_entities()
569 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()
1020 struct iss_pipeline *pipe = to_iss_pipeline(&csi2->subdev.entity); in csi2_link_validate()
1023 pipe->external = media_entity_to_v4l2_subdev(link->source->entity); in csi2_link_validate()
1107 if (omap4iss_module_sync_idle(&sd->entity, &csi2->wait, in csi2_set_stream()
1160 static int csi2_link_setup(struct media_entity *entity, in csi2_link_setup() argument
1164 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); in csi2_link_setup()
1173 switch (local->index | media_entity_type(remote->entity)) { in csi2_link_setup()
1251 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.1.27/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.h105 struct media_entity *entity; member
Ddvb_frontend.c622 struct media_entity *entity, *source; in dvb_enable_media_tuner() local
631 entity = fepriv->dvbdev->entity; in dvb_enable_media_tuner()
632 fepriv->pipe_start_entity = entity; in dvb_enable_media_tuner()
634 for (i = 0; i < entity->num_links; i++) { in dvb_enable_media_tuner()
635 link = &entity->links[i]; in dvb_enable_media_tuner()
636 if (link->sink->entity == entity) { in dvb_enable_media_tuner()
659 source = found_link->source->entity; in dvb_enable_media_tuner()
666 sink = link->sink->entity; in dvb_enable_media_tuner()
668 if (sink == entity) in dvb_enable_media_tuner()
/linux-4.1.27/drivers/media/platform/omap3isp/
Disp.c554 pipe = to_isp_pipeline(&isp->isp_ccp2.subdev.entity); in isp_isr_sbl()
560 pipe = to_isp_pipeline(&isp->isp_csi2a.subdev.entity); in isp_isr_sbl()
566 pipe = to_isp_pipeline(&isp->isp_ccdc.subdev.entity); in isp_isr_sbl()
572 pipe = to_isp_pipeline(&isp->isp_prev.subdev.entity); in isp_isr_sbl()
581 pipe = to_isp_pipeline(&isp->isp_res.subdev.entity); in isp_isr_sbl()
688 static int isp_pipeline_pm_use_count(struct media_entity *entity) in isp_pipeline_pm_use_count() argument
693 media_entity_graph_walk_start(&graph, entity); in isp_pipeline_pm_use_count()
695 while ((entity = media_entity_graph_walk_next(&graph))) { in isp_pipeline_pm_use_count()
696 if (media_entity_type(entity) == MEDIA_ENT_T_DEVNODE) in isp_pipeline_pm_use_count()
697 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.h273 int omap3isp_pipeline_pm_use(struct media_entity *entity, int use);
362 if (pad >= subdev->entity.num_pads) in isp_pad_buffer_type()
365 if (subdev->entity.pads[pad].flags & MEDIA_PAD_FL_SINK) in isp_pad_buffer_type()
Disppreview.c1171 struct isp_pipeline *pipe = to_isp_pipeline(&prev->subdev.entity); in preview_adjust_bandwidth()
1483 struct isp_pipeline *pipe = to_isp_pipeline(&prev->subdev.entity); in preview_isr_buffer()
1674 if (omap3isp_module_sync_idle(&sd->entity, &prev->wait, in preview_set_stream()
2145 static int preview_link_setup(struct media_entity *entity, in preview_link_setup() argument
2149 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); in preview_link_setup()
2152 switch (local->index | media_entity_type(remote->entity)) { in preview_link_setup()
2262 struct media_entity *me = &sd->entity; in preview_init_entities()
2319 ret = media_entity_create_link(&prev->video_in.video.entity, 0, in preview_init_entities()
2320 &prev->subdev.entity, PREV_PAD_SINK, 0); in preview_init_entities()
2324 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.c903 pipe = to_isp_pipeline(&stat->subdev.entity); in __stat_isr()
1021 struct media_entity *me = &subdev->entity; in isp_stat_init_entities()
1059 media_entity_cleanup(&stat->subdev.entity); in omap3isp_stat_cleanup()
/linux-4.1.27/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()
915 vdev->entity.type = MEDIA_ENT_T_DEVNODE_V4L; in __video_register_device()
916 vdev->entity.name = vdev->name; in __video_register_device()
917 vdev->entity.info.dev.major = VIDEO_MAJOR; in __video_register_device()
918 vdev->entity.info.dev.minor = vdev->minor; in __video_register_device()
920 &vdev->entity); in __video_register_device()
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.1.27/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.
Dvfio.txt293 represents the minimal entity which isolation can be guaranteed for and
Ddma-buf-sharing.txt75 Userspace entity requests for a file-descriptor (fd) which is a handle to the
Datomic_ops.txt316 be guaranteed that no other entity can be accessing the object:
/linux-4.1.27/Documentation/DocBook/media/
DMakefile293 entity=`echo $$ident | tr _ -` ; \
294 echo "<!ENTITY func-$$entity \"<link" \
295 "linkend='func-$$entity'><function>$$ident()</function></link>\">" \
302 entity=`echo $$ident | tr _ -` ; \
304 echo "<!ENTITY $$entity \"<link" \
312 entity=`echo $$ident | tr _ -` ; \
313 echo "<!ENTITY $$entity \"<link" \
314 "linkend='$$entity'>$$ident</link>\">" >>$@ ; \
320entity=`echo $$ident | sed -e "s/v4l2_mpeg_cx2341x_video_\([a-z]*_spatial_filter_type\)/\1/" | tr …
321 echo "<!ENTITY $$entity \"enum&nbsp;<link" \
[all …]
/linux-4.1.27/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.c276 struct media_entity *me = &ve->vdev.entity; in isp_video_open()
314 struct media_entity *entity = &ivc->ve.vdev.entity; in isp_video_release() local
315 struct media_device *mdev = entity->parent; in isp_video_release()
320 media_entity_pipeline_stop(entity); in isp_video_release()
330 entity->use_count--; in isp_video_release()
459 pad = &sd->entity.pads[0]; in isp_video_pipeline_validate()
471 media_entity_type(pad->entity) != MEDIA_ENT_T_V4L2_SUBDEV) in isp_video_pipeline_validate()
474 sd = media_entity_to_v4l2_subdev(pad->entity); in isp_video_pipeline_validate()
495 struct media_entity *me = &ve->vdev.entity; in isp_video_streamon()
528 media_entity_pipeline_stop(&video->ve.vdev.entity); in isp_video_streamoff()
[all …]
Dfimc-lite.c481 struct media_entity *me = &fimc->ve.vdev.entity; in fimc_lite_open()
530 struct media_entity *entity = &fimc->ve.vdev.entity; in fimc_lite_release() local
537 media_entity_pipeline_stop(entity); in fimc_lite_release()
544 mutex_lock(&entity->parent->graph_mutex); in fimc_lite_release()
545 entity->use_count--; in fimc_lite_release()
546 mutex_unlock(&entity->parent->graph_mutex); in fimc_lite_release()
798 pad = &sd->entity.pads[0]; in fimc_pipeline_validate()
818 media_entity_type(pad->entity) != MEDIA_ENT_T_V4L2_SUBDEV) in fimc_pipeline_validate()
821 sd = media_entity_to_v4l2_subdev(pad->entity); in fimc_pipeline_validate()
840 struct media_entity *entity = &fimc->ve.vdev.entity; in fimc_lite_streamon() local
[all …]
Dfimc-capture.c332 fimc_pipeline_call(ve, open, &ve->vdev.entity, false); in fimc_capture_resume()
504 ret = fimc_pipeline_call(ve, open, &ve->vdev.entity, true); in fimc_capture_open()
518 ve->vdev.entity.use_count++; in fimc_capture_open()
548 media_entity_pipeline_stop(&vc->ve.vdev.entity); in fimc_capture_release()
560 vc->ve.vdev.entity.use_count--; in fimc_capture_release()
765 me = pad->entity; in fimc_pipeline_get_head()
803 me = fimc_pipeline_get_head(&sd->entity); in fimc_pipeline_try_format()
818 while (me != &fimc->vid_cap.subdev.entity) { in fimc_pipeline_try_format()
838 me = pad->entity; in fimc_pipeline_try_format()
885 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.c741 ret = media_entity_init(&vfd->entity, 0, NULL, 0); in fimc_register_m2m_device()
754 media_entity_cleanup(&vfd->entity); in fimc_register_m2m_device()
770 media_entity_cleanup(&fimc->m2m.vfd.entity); in fimc_unregister_m2m_device()
Dmipi-csis.c868 ret = media_entity_init(&state->sd.entity, in s5pcsis_probe()
893 media_entity_cleanup(&state->sd.entity); in s5pcsis_probe()
1004 media_entity_cleanup(&state->sd.entity); in s5pcsis_remove()
/linux-4.1.27/drivers/staging/media/davinci_vpfe/
Dvpfe_video.c47 return remote->entity; in vpfe_get_input_entity()
65 subdev = media_entity_to_v4l2_subdev(remote->entity); in vpfe_update_current_ext_subdev()
94 if (remote == NULL || remote->entity->type != MEDIA_ENT_T_V4L2_SUBDEV) in vpfe_video_remote_subdev()
98 return media_entity_to_v4l2_subdev(remote->entity); in vpfe_video_remote_subdev()
135 struct media_entity *entity = &video->video_dev.entity; in vpfe_prepare_pipeline() local
136 struct media_device *mdev = entity->parent; in vpfe_prepare_pipeline()
150 media_entity_graph_walk_start(&graph, entity); in vpfe_prepare_pipeline()
151 while ((entity = media_entity_graph_walk_next(&graph))) { in vpfe_prepare_pipeline()
152 if (entity == &video->video_dev.entity) in vpfe_prepare_pipeline()
154 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.c1646 static int resizer_link_setup(struct media_entity *entity, in resizer_link_setup() argument
1650 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); in resizer_link_setup()
1657 switch (local->index | media_entity_type(remote->entity)) { in resizer_link_setup()
1706 switch (local->index | media_entity_type(remote->entity)) { in resizer_link_setup()
1731 switch (local->index | media_entity_type(remote->entity)) { in resizer_link_setup()
1781 media_entity_cleanup(&vpfe_rsz->crop_resizer.subdev.entity); in vpfe_resizer_unregister_entities()
1782 media_entity_cleanup(&vpfe_rsz->resizer_a.subdev.entity); in vpfe_resizer_unregister_entities()
1783 media_entity_cleanup(&vpfe_rsz->resizer_b.subdev.entity); in vpfe_resizer_unregister_entities()
1833 ret = media_entity_create_link(&resizer->crop_resizer.subdev.entity, 1, in vpfe_resizer_register_entities()
1834 &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.1.27/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.1.27/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-etm3x34 entity.
148 various aspect of the trace entity such as time stamping,
247 coming from this trace entity.
/linux-4.1.27/include/uapi/linux/
Dmedia.h144 __u32 entity; /* entity ID */ member
162 __u32 entity; member
Duvcvideo.h44 __u8 entity[16]; member
/linux-4.1.27/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.1.27/drivers/gpu/drm/rcar-du/
Drcar_du_kms.c514 struct device_node *entity; in rcar_du_encoders_init_one() local
521 entity = of_graph_get_remote_port_parent(ep->local_node); in rcar_du_encoders_init_one()
522 if (!entity) { in rcar_du_encoders_init_one()
530 for_each_endpoint_of_node(entity, ep_node) { in rcar_du_encoders_init_one()
538 encoder = entity; in rcar_du_encoders_init_one()
584 connector = entity; in rcar_du_encoders_init_one()
/linux-4.1.27/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.c436 ret = media_entity_init(&flash->subdev.entity, 0, NULL, 0); in adp1653_probe()
440 flash->subdev.entity.type = MEDIA_ENT_T_V4L2_SUBDEV_FLASH; in adp1653_probe()
456 media_entity_cleanup(&flash->subdev.entity); in adp1653_remove()
Dtvp7002.c1070 device->sd.entity.flags |= MEDIA_ENT_T_V4L2_SUBDEV_DECODER; in tvp7002_probe()
1072 error = media_entity_init(&device->sd.entity, 1, &device->pad, 0); in tvp7002_probe()
1096 media_entity_cleanup(&device->sd.entity); in tvp7002_probe()
1117 media_entity_cleanup(&device->sd.entity); in tvp7002_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()
Dtvp514x.c1158 decoder->sd.entity.flags |= MEDIA_ENT_T_V4L2_SUBDEV_DECODER; in tvp514x_probe()
1160 ret = media_entity_init(&decoder->sd.entity, 1, &decoder->pad, 0); in tvp514x_probe()
1193 media_entity_cleanup(&decoder->sd.entity); in tvp514x_probe()
1213 media_entity_cleanup(&decoder->sd.entity); in tvp514x_remove()
Dov2659.c1428 sd->entity.type = MEDIA_ENT_T_V4L2_SUBDEV_SENSOR; in ov2659_probe()
1429 ret = media_entity_init(&sd->entity, 1, &ov2659->pad, 0); in ov2659_probe()
1460 media_entity_cleanup(&sd->entity); in ov2659_probe()
1474 media_entity_cleanup(&sd->entity); in ov2659_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()
Dadv7180.c1215 sd->entity.flags |= MEDIA_ENT_T_V4L2_SUBDEV_DECODER; in adv7180_probe()
1216 ret = media_entity_init(&sd->entity, 1, &state->pad, 0); in adv7180_probe()
1242 media_entity_cleanup(&sd->entity); in adv7180_probe()
1265 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.c1381 err = media_entity_init(&sd->entity, 1, &state->pad, 0); in adv7511_probe()
1426 media_entity_cleanup(&sd->entity); in adv7511_probe()
1449 media_entity_cleanup(&sd->entity); in adv7511_remove()
Dadv7842.c3076 err = media_entity_init(&sd->entity, 1, &state->pad, 0); in adv7842_probe()
3089 media_entity_cleanup(&sd->entity); in adv7842_probe()
3112 media_entity_cleanup(&sd->entity); in adv7842_remove()
Dadv7604.c2850 err = media_entity_init(&sd->entity, state->source_pad + 1, in adv76xx_probe()
2868 media_entity_cleanup(&sd->entity); in adv76xx_probe()
2889 media_entity_cleanup(&sd->entity); in adv76xx_remove()
/linux-4.1.27/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.1.27/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.c837 if (!pad || media_entity_type(pad->entity) != MEDIA_ENT_T_V4L2_SUBDEV) in camif_pipeline_validate()
859 struct media_entity *sensor = &camif->sensor.sd->entity; in s3c_camif_streamon()
903 media_entity_pipeline_stop(&camif->sensor.sd->entity); in s3c_camif_streamoff()
1159 ret = media_entity_init(&vfd->entity, 1, &vp->pad, 0); in s3c_camif_register_video_node()
1192 media_entity_cleanup(&vfd->entity); in s3c_camif_register_video_node()
1204 media_entity_cleanup(&vfd->entity); in s3c_camif_unregister_video_node()
1574 ret = media_entity_init(&sd->entity, CAMIF_SD_PADS_NUM, in s3c_camif_create_subdev()
1598 media_entity_cleanup(&sd->entity); in s3c_camif_create_subdev()
1621 media_entity_cleanup(&sd->entity); in s3c_camif_unregister_subdev()
/linux-4.1.27/drivers/media/usb/cx231xx/
Dcx231xx-cards.c1208 struct media_entity *entity; in cx231xx_create_media_graph() local
1214 media_device_for_each_entity(entity, mdev) { in cx231xx_create_media_graph()
1215 switch (entity->type) { in cx231xx_create_media_graph()
1217 tuner = entity; in cx231xx_create_media_graph()
1220 decoder = entity; in cx231xx_create_media_graph()
1233 media_entity_create_link(decoder, 1, &dev->vdev.entity, 0, in cx231xx_create_media_graph()
1235 media_entity_create_link(decoder, 2, &dev->vbi_dev.entity, 0, in cx231xx_create_media_graph()
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()
2176 ret = media_entity_init(&dev->vdev.entity, 1, &dev->video_pad, 0); in cx231xx_register_analog_devices()
2203 ret = media_entity_init(&dev->vbi_dev.entity, 1, &dev->vbi_pad, 0); in cx231xx_register_analog_devices()
/linux-4.1.27/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.1.27/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.1.27/drivers/hwtracing/coresight/
DKconfig21 entity at run time to form a complete trace path.
/linux-4.1.27/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()
3082 rval = media_entity_init(&sensor->src->sd.entity, 2, in smiapp_probe()
3100 media_entity_cleanup(&sensor->src->sd.entity); in smiapp_probe()
3125 media_entity_cleanup(&sensor->ssds[i].sd.entity); in smiapp_remove()
/linux-4.1.27/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.1.27/Documentation/vm/
Dzsmalloc.txt15 page boundaries. The code refers to these linked pages as a single entity
/linux-4.1.27/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.1.27/Documentation/devicetree/bindings/net/dsa/
Ddsa.txt63 managed entity. See
/linux-4.1.27/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.1.27/Documentation/networking/
Dradiotap-headers.txt73 rule is applied dealing with a u16, NOT dealing with a 4-byte single entity.
/linux-4.1.27/Documentation/devicetree/bindings/pinctrl/
Dfsl,mxs-pinctrl.txt49 This integer with mux selection packed is used as an entity by both group
/linux-4.1.27/include/acpi/
Dactbl2.h189 u8 entity; member
/linux-4.1.27/Documentation/devicetree/bindings/pci/
Dmvebu-pci.txt18 - msi-parent: Link to the hardware entity that serves as the Message
/linux-4.1.27/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.1.27/Documentation/isdn/
DREADME.concap131 /* to be called for each data entity received from lower layer*/
/linux-4.1.27/Documentation/filesystems/
Dsysfs.txt225 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.1.27/Documentation/RCU/
Dtrace.txt357 set for each entity in the next lower level that has
360 The qsmaskinit will have one bit for each entity that is
/linux-4.1.27/Documentation/power/
Dfreezing-of-tasks.txt215 successfully acquired the 'pm_mutex' lock, and hence that other entity failed
/linux-4.1.27/Documentation/security/
DSmack.txt300 Subject: A subject is an active entity on the computer system.
304 Object: An object is a passive entity on the computer system.
/linux-4.1.27/Documentation/powerpc/
Dpci_iov_resource_on_powernv.txt34 is a completely separate HW entity that replicates the entire logic, so has
/linux-4.1.27/Documentation/timers/
DNO_HZ.txt344 load, maintaining sched average, computing CFS entity vruntime,
/linux-4.1.27/Documentation/filesystems/configfs/
Dconfigfs.txt446 after which the subsystem can start whatever entity this item
/linux-4.1.27/drivers/media/i2c/cx25840/
Dcx25840-core.c5202 sd->entity.type = MEDIA_ENT_T_V4L2_SUBDEV_DECODER; in cx25840_probe()
5204 ret = media_entity_init(&sd->entity, ARRAY_SIZE(state->pads), in cx25840_probe()
/linux-4.1.27/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.1.27/Documentation/block/
Dbiodoc.txt853 design for representing virtual/real extents as an entity and modifying