Home
last modified time | relevance | path

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

12345678910>>...15

/drivers/gpu/drm/scheduler/
Dsched_entity.c59 int drm_sched_entity_init(struct drm_sched_entity *entity, in drm_sched_entity_init() argument
65 if (!(entity && sched_list && (num_sched_list == 0 || sched_list[0]))) in drm_sched_entity_init()
68 memset(entity, 0, sizeof(struct drm_sched_entity)); in drm_sched_entity_init()
69 INIT_LIST_HEAD(&entity->list); in drm_sched_entity_init()
70 entity->rq = NULL; in drm_sched_entity_init()
71 entity->guilty = guilty; in drm_sched_entity_init()
72 entity->num_sched_list = num_sched_list; in drm_sched_entity_init()
73 entity->priority = priority; in drm_sched_entity_init()
79 entity->sched_list = num_sched_list > 1 ? sched_list : NULL; in drm_sched_entity_init()
80 RCU_INIT_POINTER(entity->last_scheduled, NULL); in drm_sched_entity_init()
[all …]
Dsched_main.c128 struct drm_sched_entity *entity) in drm_sched_can_queue() argument
132 s_job = to_drm_sched_job(spsc_queue_peek(&entity->job_queue)); in drm_sched_can_queue()
162 static inline void drm_sched_rq_remove_fifo_locked(struct drm_sched_entity *entity) in drm_sched_rq_remove_fifo_locked() argument
164 struct drm_sched_rq *rq = entity->rq; in drm_sched_rq_remove_fifo_locked()
166 if (!RB_EMPTY_NODE(&entity->rb_tree_node)) { in drm_sched_rq_remove_fifo_locked()
167 rb_erase_cached(&entity->rb_tree_node, &rq->rb_tree_root); in drm_sched_rq_remove_fifo_locked()
168 RB_CLEAR_NODE(&entity->rb_tree_node); in drm_sched_rq_remove_fifo_locked()
172 void drm_sched_rq_update_fifo(struct drm_sched_entity *entity, ktime_t ts) in drm_sched_rq_update_fifo() argument
179 spin_lock(&entity->rq_lock); in drm_sched_rq_update_fifo()
180 spin_lock(&entity->rq->lock); in drm_sched_rq_update_fifo()
[all …]
Dgpu_scheduler_trace.h36 TP_PROTO(struct drm_sched_job *sched_job, struct drm_sched_entity *entity),
37 TP_ARGS(sched_job, entity),
39 __field(struct drm_sched_entity *, entity)
48 __entry->entity = entity;
52 __entry->job_count = spsc_queue_count(&entity->job_queue);
57 __entry->entity, __entry->id,
63 TP_PROTO(struct drm_sched_job *sched_job, struct drm_sched_entity *entity),
64 TP_ARGS(sched_job, entity)
68 TP_PROTO(struct drm_sched_job *sched_job, struct drm_sched_entity *entity),
69 TP_ARGS(sched_job, entity)
/drivers/media/usb/uvc/
Duvc_entity.c18 struct uvc_entity *entity) in uvc_mc_create_links() argument
25 sink = (UVC_ENTITY_TYPE(entity) == UVC_TT_STREAMING) in uvc_mc_create_links()
26 ? (entity->vdev ? &entity->vdev->entity : NULL) in uvc_mc_create_links()
27 : &entity->subdev.entity; in uvc_mc_create_links()
31 for (i = 0; i < entity->num_pads; ++i) { in uvc_mc_create_links()
36 if (!(entity->pads[i].flags & MEDIA_PAD_FL_SINK)) in uvc_mc_create_links()
39 remote = uvc_entity_by_id(chain->dev, entity->baSourceID[i]); in uvc_mc_create_links()
44 ? (remote->vdev ? &remote->vdev->entity : NULL) in uvc_mc_create_links()
45 : &remote->subdev.entity; in uvc_mc_create_links()
62 void uvc_mc_cleanup_entity(struct uvc_entity *entity) in uvc_mc_cleanup_entity() argument
[all …]
Duvc_ctrl.c41 .entity = UVC_GUID_UVC_PROCESSING,
50 .entity = UVC_GUID_UVC_PROCESSING,
59 .entity = UVC_GUID_UVC_PROCESSING,
69 .entity = UVC_GUID_UVC_PROCESSING,
78 .entity = UVC_GUID_UVC_PROCESSING,
87 .entity = UVC_GUID_UVC_PROCESSING,
96 .entity = UVC_GUID_UVC_PROCESSING,
106 .entity = UVC_GUID_UVC_PROCESSING,
116 .entity = UVC_GUID_UVC_PROCESSING,
125 .entity = UVC_GUID_UVC_PROCESSING,
[all …]
Duvc_driver.c136 struct uvc_entity *entity; in uvc_entity_by_id() local
141 list_for_each_entry(entity, &dev->entities, list) { in uvc_entity_by_id()
142 if (entity->id == id) in uvc_entity_by_id()
143 return entity; in uvc_entity_by_id()
150 int id, struct uvc_entity *entity) in uvc_entity_by_reference() argument
154 if (entity == NULL) in uvc_entity_by_reference()
155 entity = list_entry(&dev->entities, struct uvc_entity, list); in uvc_entity_by_reference()
157 list_for_each_entry_continue(entity, &dev->entities, list) { in uvc_entity_by_reference()
158 for (i = 0; i < entity->bNrInPins; ++i) in uvc_entity_by_reference()
159 if (entity->baSourceID[i] == id) in uvc_entity_by_reference()
[all …]
/drivers/media/platform/renesas/vsp1/
Dvsp1_entity.c23 void vsp1_entity_route_setup(struct vsp1_entity *entity, in vsp1_entity_route_setup() argument
30 if (entity->type == VSP1_ENTITY_HGO) { in vsp1_entity_route_setup()
37 source = entity->sources[0]; in vsp1_entity_route_setup()
38 smppt = (pipe->output->entity.index << VI6_DPR_SMPPT_TGW_SHIFT) in vsp1_entity_route_setup()
43 } else if (entity->type == VSP1_ENTITY_HGT) { in vsp1_entity_route_setup()
50 source = entity->sources[0]; in vsp1_entity_route_setup()
51 smppt = (pipe->output->entity.index << VI6_DPR_SMPPT_TGW_SHIFT) in vsp1_entity_route_setup()
58 source = entity; in vsp1_entity_route_setup()
72 void vsp1_entity_configure_stream(struct vsp1_entity *entity, in vsp1_entity_configure_stream() argument
78 if (entity->ops->configure_stream) in vsp1_entity_configure_stream()
[all …]
Dvsp1_drv.c63 if ((status & VI6_WPF_IRQ_STA_UND) && wpf->entity.pipe) { in vsp1_irq_handler()
64 wpf->entity.pipe->underrun_count++; in vsp1_irq_handler()
68 i, wpf->entity.pipe->underrun_count); in vsp1_irq_handler()
72 vsp1_pipeline_frame_end(wpf->entity.pipe); in vsp1_irq_handler()
101 struct media_entity *entity = &sink->subdev.entity; in vsp1_create_sink_links() local
123 for (pad = 0; pad < entity->num_pads; ++pad) { in vsp1_create_sink_links()
124 if (!(entity->pads[pad].flags & MEDIA_PAD_FL_SINK)) in vsp1_create_sink_links()
127 ret = media_create_pad_link(&source->subdev.entity, in vsp1_create_sink_links()
129 entity, pad, flags); in vsp1_create_sink_links()
143 struct vsp1_entity *entity; in vsp1_uapi_create_links() local
[all …]
Dvsp1_video.c54 if (!remote || !is_media_entity_v4l2_subdev(remote->entity)) in vsp1_video_remote_subdev()
60 return media_entity_to_v4l2_subdev(remote->entity); in vsp1_video_remote_subdev()
197 struct vsp1_pipeline *pipe = video->rwpf->entity.pipe; in vsp1_video_complete_buffer()
251 struct vsp1_entity *entity; in vsp1_video_pipeline_run_partition() local
253 list_for_each_entry(entity, &pipe->entities, list_pipe) in vsp1_video_pipeline_run_partition()
254 vsp1_entity_configure_partition(entity, pipe, part, dl, dlb); in vsp1_video_pipeline_run_partition()
259 struct vsp1_device *vsp1 = pipe->output->entity.vsp1; in vsp1_video_pipeline_run()
260 struct vsp1_entity *entity; in vsp1_video_pipeline_run() local
278 list_for_each_entry(entity, &pipe->entities, list_pipe) in vsp1_video_pipeline_run()
279 vsp1_entity_configure_frame(entity, pipe, dl, dlb); in vsp1_video_pipeline_run()
[all …]
Dvsp1_wpf.c32 vsp1_dl_body_write(dlb, reg + wpf->entity.index * VI6_WPF_OFFSET, data); in vsp1_wpf_write()
68 sink_format = v4l2_subdev_state_get_format(wpf->entity.state, in vsp1_wpf_set_rotation()
70 source_format = v4l2_subdev_state_get_format(wpf->entity.state, in vsp1_wpf_set_rotation()
73 mutex_lock(&wpf->entity.lock); in vsp1_wpf_set_rotation()
85 mutex_unlock(&wpf->entity.lock); in vsp1_wpf_set_rotation()
134 struct vsp1_device *vsp1 = wpf->entity.vsp1; in wpf_init_controls()
139 if (wpf->entity.index != 0) { in wpf_init_controls()
179 wpf->entity.index); in wpf_init_controls()
192 struct vsp1_device *vsp1 = wpf->entity.vsp1; in vsp1_wpf_stop()
198 vsp1_write(vsp1, VI6_WPF_IRQ_ENB(wpf->entity.index), 0); in vsp1_wpf_stop()
[all …]
Dvsp1_brx.c136 mutex_lock(&brx->entity.lock); in brx_set_format()
138 state = vsp1_entity_get_state(&brx->entity, sd_state, fmt->which); in brx_set_format()
150 if (fmt->pad != brx->entity.source_pad) { in brx_set_format()
164 for (i = 0; i <= brx->entity.source_pad; ++i) { in brx_set_format()
171 mutex_unlock(&brx->entity.lock); in brx_set_format()
182 if (sel->pad == brx->entity.source_pad) in brx_get_selection()
194 state = vsp1_entity_get_state(&brx->entity, sd_state, in brx_get_selection()
199 mutex_lock(&brx->entity.lock); in brx_get_selection()
201 mutex_unlock(&brx->entity.lock); in brx_get_selection()
219 if (sel->pad == brx->entity.source_pad) in brx_set_selection()
[all …]
Dvsp1_entity.h80 void (*destroy)(struct vsp1_entity *entity);
81 void (*configure_stream)(struct vsp1_entity *entity,
86 void (*configure_frame)(struct vsp1_entity *entity,
90 void (*configure_partition)(struct vsp1_entity *entity,
95 unsigned int (*max_width)(struct vsp1_entity *entity,
98 void (*partition)(struct vsp1_entity *entity,
138 int vsp1_entity_init(struct vsp1_device *vsp1, struct vsp1_entity *entity,
141 void vsp1_entity_destroy(struct vsp1_entity *entity);
143 int vsp1_entity_link_setup(struct media_entity *entity,
148 vsp1_entity_get_state(struct vsp1_entity *entity,
[all …]
Dvsp1_drm.c134 crop = &vsp1->drm->inputs[rpf->entity.index].crop; in vsp1_du_pipeline_setup_rpf()
142 ret = v4l2_subdev_call(&rpf->entity.subdev, pad, set_fmt, NULL, in vsp1_du_pipeline_setup_rpf()
150 format.format.code, rpf->entity.index); in vsp1_du_pipeline_setup_rpf()
156 ret = v4l2_subdev_call(&rpf->entity.subdev, pad, set_selection, NULL, in vsp1_du_pipeline_setup_rpf()
164 rpf->entity.index); in vsp1_du_pipeline_setup_rpf()
172 ret = v4l2_subdev_call(&rpf->entity.subdev, pad, get_fmt, NULL, in vsp1_du_pipeline_setup_rpf()
180 format.format.code, rpf->entity.index); in vsp1_du_pipeline_setup_rpf()
184 ret = v4l2_subdev_call(&rpf->entity.subdev, pad, set_fmt, NULL, in vsp1_du_pipeline_setup_rpf()
190 ret = vsp1_du_insert_uif(vsp1, pipe, uif, &rpf->entity, RWPF_PAD_SOURCE, in vsp1_du_pipeline_setup_rpf()
209 sel.r = vsp1->drm->inputs[rpf->entity.index].compose; in vsp1_du_pipeline_setup_rpf()
[all …]
Dvsp1_uds.c33 vsp1_dl_body_write(dlb, reg + uds->entity.index * VI6_UDS_OFFSET, data); in vsp1_uds_write()
40 void vsp1_uds_set_alpha(struct vsp1_entity *entity, struct vsp1_dl_body *dlb, in vsp1_uds_set_alpha() argument
43 struct vsp1_uds *uds = to_uds(&entity->subdev); in vsp1_uds_set_alpha()
135 state = vsp1_entity_get_state(&uds->entity, sd_state, fse->which); in uds_enum_frame_size()
141 mutex_lock(&uds->entity.lock); in uds_enum_frame_size()
161 mutex_unlock(&uds->entity.lock); in uds_enum_frame_size()
209 mutex_lock(&uds->entity.lock); in uds_set_format()
211 state = vsp1_entity_get_state(&uds->entity, sd_state, fmt->which); in uds_set_format()
231 mutex_unlock(&uds->entity.lock); in uds_set_format()
254 static void uds_configure_stream(struct vsp1_entity *entity, in uds_configure_stream() argument
[all …]
Dvsp1_pipe.c264 struct vsp1_entity *entity; in vsp1_pipeline_reset() local
279 list_for_each_entry(entity, &pipe->entities, list_pipe) in vsp1_pipeline_reset()
280 entity->pipe = NULL; in vsp1_pipeline_reset()
307 struct vsp1_device *vsp1 = pipe->output->entity.vsp1; in __vsp1_pipeline_dump()
308 struct vsp1_entity *entity; in __vsp1_pipeline_dump() local
313 list_for_each_entry(entity, &pipe->entities, list_pipe) { in __vsp1_pipeline_dump()
316 name = strchrnul(entity->subdev.name, ' '); in __vsp1_pipeline_dump()
317 name = name ? name + 1 : entity->subdev.name; in __vsp1_pipeline_dump()
329 struct vsp1_device *vsp1 = pipe->output->entity.vsp1; in vsp1_pipeline_run()
332 vsp1_write(vsp1, VI6_CMD(pipe->output->entity.index), in vsp1_pipeline_run()
[all …]
Dvsp1_rpf.c42 vsp1_dl_body_write(dlb, reg + rpf->entity.index * VI6_RPF_OFFSET, in vsp1_rpf_write()
50 static void rpf_configure_stream(struct vsp1_entity *entity, in rpf_configure_stream() argument
56 struct vsp1_rwpf *rpf = to_rwpf(&entity->subdev); in rpf_configure_stream()
101 if (entity->vsp1->info->gen == 4) { in rpf_configure_stream()
197 if (entity->vsp1->info->gen >= 3) { in rpf_configure_stream()
249 auto_fld = &auto_fld[rpf->entity.index]; in vsp1_rpf_configure_autofld()
262 cmd->flags |= VI6_DL_EXT_AUTOFLD_INT | BIT(16 + rpf->entity.index); in vsp1_rpf_configure_autofld()
265 static void rpf_configure_frame(struct vsp1_entity *entity, in rpf_configure_frame() argument
270 struct vsp1_rwpf *rpf = to_rwpf(&entity->subdev); in rpf_configure_frame()
280 static void rpf_configure_partition(struct vsp1_entity *entity, in rpf_configure_partition() argument
[all …]
Dvsp1_uif.c31 return vsp1_read(uif->entity.vsp1, in vsp1_uif_read()
32 uif->entity.index * VI6_UIF_OFFSET + reg); in vsp1_uif_read()
38 vsp1_dl_body_write(dlb, reg + uif->entity.index * VI6_UIF_OFFSET, data); in vsp1_uif_write()
96 mutex_lock(&uif->entity.lock); in uif_get_selection()
98 state = vsp1_entity_get_state(&uif->entity, sd_state, sel->which); in uif_get_selection()
124 mutex_unlock(&uif->entity.lock); in uif_get_selection()
142 mutex_lock(&uif->entity.lock); in uif_set_selection()
144 state = vsp1_entity_get_state(&uif->entity, sd_state, sel->which); in uif_set_selection()
165 mutex_unlock(&uif->entity.lock); in uif_set_selection()
190 static void uif_configure_stream(struct vsp1_entity *entity, in uif_configure_stream() argument
[all …]
/drivers/media/v4l2-core/
Dv4l2-mc.c25 struct media_entity *entity; in v4l2_mc_create_media_graph() local
36 media_device_for_each_entity(entity, mdev) { in v4l2_mc_create_media_graph()
37 switch (entity->function) { in v4l2_mc_create_media_graph()
39 if_vid = entity; in v4l2_mc_create_media_graph()
42 if_aud = entity; in v4l2_mc_create_media_graph()
45 tuner = entity; in v4l2_mc_create_media_graph()
48 decoder = entity; in v4l2_mc_create_media_graph()
51 io_v4l = entity; in v4l2_mc_create_media_graph()
54 io_vbi = entity; in v4l2_mc_create_media_graph()
57 io_swradio = entity; in v4l2_mc_create_media_graph()
[all …]
/drivers/media/mc/
Dmc-entity.c123 pad->entity->name, pad->index); in dev_dbg_obj()
194 int media_entity_pads_init(struct media_entity *entity, u16 num_pads, in media_entity_pads_init() argument
197 struct media_device *mdev = entity->graph_obj.mdev; in media_entity_pads_init()
205 entity->num_pads = num_pads; in media_entity_pads_init()
206 entity->pads = pads; in media_entity_pads_init()
211 media_entity_for_each_pad(entity, iter) { in media_entity_pads_init()
212 iter->entity = entity; in media_entity_pads_init()
227 media_entity_for_each_pad(entity, iter) in media_entity_pads_init()
266 static bool media_entity_has_pad_interdep(struct media_entity *entity, in media_entity_has_pad_interdep() argument
269 if (pad0 >= entity->num_pads || pad1 >= entity->num_pads) in media_entity_has_pad_interdep()
[all …]
Dmc-device.c83 struct media_entity *entity; in find_entity() local
88 media_device_for_each_entity(entity, mdev) { in find_entity()
89 if (((media_entity_id(entity) == id) && !next) || in find_entity()
90 ((media_entity_id(entity) > id) && next)) { in find_entity()
91 return entity; in find_entity()
146 upad->entity = media_entity_id(kpad->entity); in media_device_kpad_to_upad()
154 struct media_entity *entity; in media_device_enum_links() local
156 entity = find_entity(mdev, links->entity); in media_device_enum_links()
157 if (entity == NULL) in media_device_enum_links()
163 for (p = 0; p < entity->num_pads; p++) { in media_device_enum_links()
[all …]
/drivers/staging/media/imx/
Dimx-media-dev-common.c55 struct media_entity *entity = srcpad->entity; in imx_media_add_vdev_to_pad() local
63 if (!is_media_entity_v4l2_subdev(entity)) in imx_media_add_vdev_to_pad()
66 sd = media_entity_to_v4l2_subdev(entity); in imx_media_add_vdev_to_pad()
71 entity->name, srcpad->index); in imx_media_add_vdev_to_pad()
86 vdev->vfd->entity.name, entity->name, srcpad->index); in imx_media_add_vdev_to_pad()
97 for (i = 0; i < entity->num_pads; i++) { in imx_media_add_vdev_to_pad()
98 struct media_pad *pad = &entity->pads[i]; in imx_media_add_vdev_to_pad()
103 list_for_each_entry(link, &entity->links, list) { in imx_media_add_vdev_to_pad()
124 struct media_entity *entity; in imx_media_alloc_pad_vdev_lists() local
129 entity = &sd->entity; in imx_media_alloc_pad_vdev_lists()
[all …]
/drivers/media/usb/au0828/
Dau0828-core.c216 struct media_entity *entity, *mixer = NULL, *decoder = NULL; in au0828_media_graph_notify() local
224 media_device_for_each_entity(entity, dev->media_dev) { in au0828_media_graph_notify()
225 if (entity->function == MEDIA_ENT_F_AUDIO_MIXER) in au0828_media_graph_notify()
226 mixer = entity; in au0828_media_graph_notify()
227 else if (entity->function == MEDIA_ENT_F_ATV_DECODER) in au0828_media_graph_notify()
228 decoder = entity; in au0828_media_graph_notify()
241 media_device_for_each_entity(entity, dev->media_dev) { in au0828_media_graph_notify()
242 if (entity->function == MEDIA_ENT_F_AUDIO_MIXER) in au0828_media_graph_notify()
243 mixer = entity; in au0828_media_graph_notify()
266 struct media_entity *entity) in au0828_is_link_shareable() argument
[all …]
/drivers/net/wwan/t7xx/
Dt7xx_pci.c240 struct md_pm_entity *entity; in t7xx_pci_pm_entity_register() local
243 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in t7xx_pci_pm_entity_register()
244 if (entity->id == pm_entity->id) { in t7xx_pci_pm_entity_register()
250 list_add_tail(&pm_entity->entity, &t7xx_dev->md_pm_entities); in t7xx_pci_pm_entity_register()
257 struct md_pm_entity *entity, *tmp_entity; in t7xx_pci_pm_entity_unregister() local
260 list_for_each_entry_safe(entity, tmp_entity, &t7xx_dev->md_pm_entities, entity) { in t7xx_pci_pm_entity_unregister()
261 if (entity->id == pm_entity->id) { in t7xx_pci_pm_entity_unregister()
262 list_del(&pm_entity->entity); in t7xx_pci_pm_entity_unregister()
364 struct md_pm_entity *entity; in __t7xx_pci_pm_suspend() local
385 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_suspend()
[all …]
/drivers/media/dvb-core/
Ddvbdev.c210 if (dvbdev->entity) { in dvb_media_device_free()
211 media_device_unregister_entity(dvbdev->entity); in dvb_media_device_free()
212 kfree(dvbdev->entity); in dvb_media_device_free()
214 dvbdev->entity = NULL; in dvb_media_device_free()
268 struct media_entity *entity = &dvbdev->tsout_entity[i]; in dvb_create_tsout_entity() local
271 entity->name = kasprintf(GFP_KERNEL, "%s #%d", name, i); in dvb_create_tsout_entity()
272 if (!entity->name) in dvb_create_tsout_entity()
275 entity->function = MEDIA_ENT_F_IO_DTV; in dvb_create_tsout_entity()
278 ret = media_entity_pads_init(entity, 1, pads); in dvb_create_tsout_entity()
283 entity); in dvb_create_tsout_entity()
[all …]
/drivers/media/platform/xilinx/
Dxilinx-vipp.c38 struct media_entity *entity; member
56 struct xvip_graph_entity *entity; in xvip_graph_find_entity() local
66 entity = to_xvip_entity(asd); in xvip_graph_find_entity()
67 if (entity->asd.match.fwnode == fwnode) in xvip_graph_find_entity()
68 return entity; in xvip_graph_find_entity()
76 struct xvip_graph_entity *entity) in xvip_graph_build_one() argument
79 struct media_entity *local = entity->entity; in xvip_graph_build_one()
92 ep = fwnode_graph_get_next_endpoint(entity->asd.match.fwnode, in xvip_graph_build_one()
144 remote = ent->entity; in xvip_graph_build_one()
241 if (link.remote_port >= ent->entity->num_pads) { in xvip_graph_build_dma()
[all …]

12345678910>>...15