Home
last modified time | relevance | path

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

12345

/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.c71 struct media_entity *entity; in find_entity() local
78 media_device_for_each_entity(entity, mdev) { in find_entity()
79 if ((entity->id == id && !next) || in find_entity()
80 (entity->id > id && next)) { in find_entity()
82 return entity; in find_entity()
124 upad->entity = kpad->entity->id; in media_device_kpad_to_upad()
132 struct media_entity *entity; in __media_device_enum_links() local
134 entity = find_entity(mdev, links->entity); in __media_device_enum_links()
135 if (entity == NULL) in __media_device_enum_links()
141 for (p = 0; p < entity->num_pads; p++) { in __media_device_enum_links()
[all …]
/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.c308 struct uvc_entity *entity; in uvc_entity_by_id() local
310 list_for_each_entry(entity, &dev->entities, list) { in uvc_entity_by_id()
311 if (entity->id == id) in uvc_entity_by_id()
312 return entity; in uvc_entity_by_id()
319 int id, struct uvc_entity *entity) in uvc_entity_by_reference() argument
323 if (entity == NULL) in uvc_entity_by_reference()
324 entity = list_entry(&dev->entities, struct uvc_entity, list); in uvc_entity_by_reference()
326 list_for_each_entry_continue(entity, &dev->entities, list) { in uvc_entity_by_reference()
327 for (i = 0; i < entity->bNrInPins; ++i) in uvc_entity_by_reference()
328 if (entity->baSourceID[i] == id) in uvc_entity_by_reference()
[all …]
/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 …]
/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_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_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_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_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_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_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()
/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 …]
/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 …]
/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 …]
/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 …]
/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 …]
/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 …]

12345