Home
last modified time | relevance | path

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

12345678910>>...16

/drivers/gpu/drm/scheduler/
A Dsched_entity.c69 entity->rq = NULL; in drm_sched_entity_init()
99 entity->rq = sched_list[0]->sched_rq[entity->priority]; in drm_sched_entity_init()
232 if (!entity->rq) in drm_sched_entity_kill()
237 drm_sched_rq_remove_entity(entity->rq, entity); in drm_sched_entity_kill()
284 if (!entity->rq) in drm_sched_entity_flush()
334 dma_fence_remove_callback(entity->dependency, &entity->cb); in drm_sched_entity_fini()
424 if (!dma_fence_add_callback(entity->dependency, &entity->cb, in drm_sched_entity_add_dependency_cb()
471 if (entity->guilty && atomic_read(entity->guilty)) in drm_sched_entity_pop_job()
549 drm_sched_rq_remove_entity(entity->rq, entity); in drm_sched_entity_select_rq()
550 entity->rq = rq; in drm_sched_entity_select_rq()
[all …]
A Dsched_main.c264 if (entity) { in drm_sched_rq_select_entity_rr()
289 entity = ERR_PTR(-ENOSPC); in drm_sched_rq_select_entity_rr()
297 return entity; in drm_sched_rq_select_entity_rr()
823 if (!entity->rq) { in drm_sched_job_init()
845 job->entity = entity; in drm_sched_job_init()
879 struct drm_sched_entity *entity = job->entity; in drm_sched_job_arm() local
881 BUG_ON(!entity); in drm_sched_job_arm()
1126 if (entity) in drm_sched_select_entity()
1130 return IS_ERR(entity) ? NULL : entity; in drm_sched_select_entity()
1250 if (!entity) in drm_sched_run_job_work()
[all …]
A Dsched_internal.h16 struct drm_sched_entity *entity);
18 struct drm_sched_entity *entity);
23 void drm_sched_entity_select_rq(struct drm_sched_entity *entity);
29 struct drm_sched_entity *entity);
46 drm_sched_entity_queue_pop(struct drm_sched_entity *entity) in drm_sched_entity_queue_pop() argument
50 node = spsc_queue_pop(&entity->job_queue); in drm_sched_entity_queue_pop()
67 drm_sched_entity_queue_peek(struct drm_sched_entity *entity) in drm_sched_entity_queue_peek() argument
71 node = spsc_queue_peek(&entity->job_queue); in drm_sched_entity_queue_peek()
80 drm_sched_entity_is_ready(struct drm_sched_entity *entity) in drm_sched_entity_is_ready() argument
82 if (!spsc_queue_count(&entity->job_queue)) in drm_sched_entity_is_ready()
[all …]
/drivers/media/usb/uvc/
A Duvc_entity.c26 ? (entity->vdev ? &entity->vdev->entity : NULL) in uvc_mc_create_links()
27 : &entity->subdev.entity; in uvc_mc_create_links()
65 media_entity_cleanup(&entity->subdev.entity); in uvc_mc_cleanup_entity()
67 media_entity_cleanup(&entity->vdev->entity); in uvc_mc_cleanup_entity()
79 strscpy(entity->subdev.name, entity->name, in uvc_mc_init_entity()
114 entity->subdev.entity.function = function; in uvc_mc_init_entity()
116 ret = media_entity_pads_init(&entity->subdev.entity, in uvc_mc_init_entity()
117 entity->num_pads, entity->pads); in uvc_mc_init_entity()
125 ret = media_entity_pads_init(&entity->vdev->entity, in uvc_mc_init_entity()
126 entity->num_pads, entity->pads); in uvc_mc_init_entity()
[all …]
A Duvc_ctrl.c1132 return memcmp(entity->guid, guid, sizeof(entity->guid)) == 0; in uvc_entity_match_guid()
1277 ret = ctrl->entity->get_cur(chain->dev, ctrl->entity, in __uvc_ctrl_load_cur()
2010 if (ctrl->entity != entity) in uvc_ctrl_send_events()
2238 if (!entity) in uvc_ctrl_find_ctrl_idx()
2601 ret = ctrl->entity->get_info(dev, ctrl->entity, in uvc_ctrl_get_flags()
2632 u8 entity; in uvc_ctrl_fixup_xu_info() member
2658 if (fixups[i].entity == ctrl->entity->id && in uvc_ctrl_fixup_xu_info()
2679 memcpy(info->entity, ctrl->entity->guid, sizeof(info->entity)); in uvc_ctrl_fill_xu_info()
3049 !uvc_entity_match_guid(entity, mapping->entity)) in uvc_ctrl_add_mapping()
3196 if (uvc_entity_match_guid(ctrl->entity, info->entity) && in uvc_ctrl_init_ctrl()
[all …]
A Duvc_driver.c142 return entity; in uvc_entity_by_id()
159 return entity; in uvc_entity_by_reference()
841 entity->pads = ((void *)(entity + 1)) + extra_size; in uvc_alloc_entity()
849 entity->baSourceID = (u8 *)(&entity->pads[num_pads]); in uvc_alloc_entity()
851 return entity; in uvc_alloc_entity()
872 sprintf(entity->name, "%s %u", type_name, entity->id); in uvc_entity_set_name()
1404 entity->id); in uvc_scan_chain_entity()
1628 id = UVC_ENTITY_IS_OTERM(entity) ? entity->baSourceID[0] : 0; in uvc_scan_chain_backward()
1655 entity = term; in uvc_scan_chain()
1660 if (entity->chain.next || entity->chain.prev) { in uvc_scan_chain()
[all …]
/drivers/media/platform/renesas/vsp1/
A Dvsp1_entity.c58 source = entity; in vsp1_entity_route_setup()
84 entity->ops->configure_stream(entity, state, pipe, dl, dlb); in vsp1_entity_configure_stream()
93 entity->ops->configure_frame(entity, pipe, dl, dlb); in vsp1_entity_configure_frame()
103 entity->ops->configure_partition(entity, pipe, partition, in vsp1_entity_configure_partition()
413 return container_of(entity, struct vsp1_entity, subdev.entity); in media_entity_to_vsp1_entity()
521 entity = media_entity_to_vsp1_entity(link->sink->entity); in vsp1_entity_remote_pad()
662 entity->state = __v4l2_subdev_state_alloc(&entity->subdev, in vsp1_entity_init()
665 media_entity_cleanup(&entity->subdev.entity); in vsp1_entity_init()
674 if (entity->ops && entity->ops->destroy) in vsp1_entity_destroy()
675 entity->ops->destroy(entity); in vsp1_entity_destroy()
[all …]
A Dvsp1_drv.c104 struct media_entity *entity = &sink->subdev.entity; in vsp1_create_sink_links() local
146 struct vsp1_entity *entity; in vsp1_uapi_create_links() local
161 ret = media_create_pad_link(&vsp1->hgo->histo.entity.subdev.entity, in vsp1_uapi_create_links()
171 ret = media_create_pad_link(&vsp1->hgt->histo.entity.subdev.entity, in vsp1_uapi_create_links()
184 ret = media_create_pad_link(&vsp1->wpf[i]->entity.subdev.entity, in vsp1_uapi_create_links()
186 &vsp1->lif[i]->entity.subdev.entity, in vsp1_uapi_create_links()
196 &rpf->entity.subdev.entity, in vsp1_uapi_create_links()
211 ret = media_create_pad_link(&wpf->entity.subdev.entity, in vsp1_uapi_create_links()
229 list_del(&entity->list_dev); in vsp1_destroy_entities()
251 struct vsp1_entity *entity; in vsp1_create_entities() local
[all …]
A Dvsp1_video.c394 entity = to_vsp1_entity( in vsp1_video_pipeline_build_branch()
420 &entity->subdev.entity)) { in vsp1_video_pipeline_build_branch()
432 pipe->uds = entity; in vsp1_video_pipeline_build_branch()
433 pipe->uds_input = brx ? &brx->entity : &input->entity; in vsp1_video_pipeline_build_branch()
437 pad = &entity->pads[entity->source_pad]; in vsp1_video_pipeline_build_branch()
442 if (entity != &output->entity) in vsp1_video_pipeline_build_branch()
455 struct media_entity *entity = &video->video.entity; in vsp1_video_pipeline_build() local
714 entity_max = entity->ops->max_width(entity, in vsp1_video_pipeline_setup_partitions()
715 entity->state, in vsp1_video_pipeline_setup_partitions()
777 vsp1_entity_configure_stream(entity, entity->state, pipe, NULL, in vsp1_video_setup_pipeline()
[all …]
A Dvsp1_brx.c143 mutex_lock(&brx->entity.lock); in brx_set_format()
178 mutex_unlock(&brx->entity.lock); in brx_set_format()
189 if (sel->pad == brx->entity.source_pad) in brx_get_selection()
206 mutex_lock(&brx->entity.lock); in brx_get_selection()
208 mutex_unlock(&brx->entity.lock); in brx_get_selection()
232 mutex_lock(&brx->entity.lock); in brx_set_selection()
260 mutex_unlock(&brx->entity.lock); in brx_set_selection()
328 if (entity->type == VSP1_ENTITY_BRU) in brx_configure_stream()
417 brx->entity.ops = &brx_entity_ops; in vsp1_brx_create()
418 brx->entity.type = type; in vsp1_brx_create()
[all …]
A Dvsp1_wpf.c73 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()
140 if (wpf->entity.index != 0) { in wpf_init_controls()
213 unsigned int index = wpf->entity.index; in wpf_configure_writeback_chain()
219 dev_err(wpf->entity.vsp1->dev, in wpf_configure_writeback_chain()
241 unsigned int index = wpf->entity.index; in wpf_configure_stream()
578 wpf->entity.ops = &wpf_entity_ops; in vsp1_wpf_create()
579 wpf->entity.type = VSP1_ENTITY_WPF; in vsp1_wpf_create()
580 wpf->entity.index = index; in vsp1_wpf_create()
[all …]
A Dvsp1_entity.h81 void (*destroy)(struct vsp1_entity *entity);
82 void (*configure_stream)(struct vsp1_entity *entity,
87 void (*configure_frame)(struct vsp1_entity *entity,
91 void (*configure_partition)(struct vsp1_entity *entity,
96 unsigned int (*max_width)(struct vsp1_entity *entity,
99 void (*partition)(struct vsp1_entity *entity,
142 void vsp1_entity_destroy(struct vsp1_entity *entity);
144 int vsp1_entity_link_setup(struct media_entity *entity,
149 vsp1_entity_get_state(struct vsp1_entity *entity,
153 void vsp1_entity_route_setup(struct vsp1_entity *entity,
[all …]
A Dvsp1_drm.c165 rpf->entity.index); in vsp1_du_pipeline_setup_rpf()
246 brx = &vsp1->bru->entity; in vsp1_du_pipeline_setup_brx()
250 brx = &vsp1->bru->entity; in vsp1_du_pipeline_setup_brx()
252 brx = &vsp1->brs->entity; in vsp1_du_pipeline_setup_brx()
426 if (!rpf->entity.pipe) { in vsp1_du_pipeline_setup_inputs()
427 rpf->entity.pipe = pipe; in vsp1_du_pipeline_setup_inputs()
434 rpf->entity.sink_pad = i; in vsp1_du_pipeline_setup_inputs()
567 if (!entity->pipe) { in vsp1_du_pipeline_configure()
571 entity->sink = NULL; in vsp1_du_pipeline_configure()
578 vsp1_entity_configure_stream(entity, entity->state, pipe, in vsp1_du_pipeline_configure()
[all …]
A Dvsp1_uds.c44 struct vsp1_uds *uds = to_uds(&entity->subdev); in vsp1_uds_set_alpha()
142 mutex_lock(&uds->entity.lock); in uds_enum_frame_size()
162 mutex_unlock(&uds->entity.lock); in uds_enum_frame_size()
216 mutex_lock(&uds->entity.lock); in uds_set_format()
238 mutex_unlock(&uds->entity.lock); in uds_set_format()
267 struct vsp1_uds *uds = to_uds(&entity->subdev); in uds_configure_stream()
314 struct vsp1_uds *uds = to_uds(&entity->subdev); in uds_configure_partition()
364 static void uds_partition(struct vsp1_entity *entity, in uds_partition() argument
410 uds->entity.ops = &uds_entity_ops; in vsp1_uds_create()
411 uds->entity.type = VSP1_ENTITY_UDS; in vsp1_uds_create()
[all …]
A Dvsp1_rpf.c56 struct vsp1_rwpf *rpf = to_rwpf(&entity->subdev); in rpf_configure_stream()
133 if (entity->vsp1->info->gen == 4) { in rpf_configure_stream()
229 if (entity->vsp1->info->gen >= 3) { in rpf_configure_stream()
281 auto_fld = &auto_fld[rpf->entity.index]; in vsp1_rpf_configure_autofld()
302 struct vsp1_rwpf *rpf = to_rwpf(&entity->subdev); in rpf_configure_frame()
318 struct vsp1_rwpf *rpf = to_rwpf(&entity->subdev); in rpf_configure_partition()
320 struct vsp1_device *vsp1 = rpf->entity.vsp1; in rpf_configure_partition()
431 rpf->entity.ops = &rpf_entity_ops; in vsp1_rpf_create()
432 rpf->entity.type = VSP1_ENTITY_RPF; in vsp1_rpf_create()
433 rpf->entity.index = index; in vsp1_rpf_create()
[all …]
/drivers/media/v4l2-core/
A Dv4l2-mc.c25 struct media_entity *entity; in v4l2_mc_create_media_graph() local
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()
241 switch (entity->function) { in v4l2_mc_create_media_graph()
[all …]
/drivers/gpu/drm/scheduler/tests/
A Dtests_basic.c41 struct drm_mock_sched_entity *entity; in drm_sched_basic_submit() local
70 drm_mock_sched_entity_free(entity); in drm_sched_basic_submit()
127 entity = kunit_kcalloc(test, params->num_entities, sizeof(*entity), in drm_sched_basic_test()
129 KUNIT_ASSERT_NOT_NULL(test, entity); in drm_sched_basic_test()
176 cur_ent %= ARRAY_SIZE(entity); in drm_sched_basic_entity_cleanup()
232 drm_mock_sched_entity_free(entity); in drm_sched_basic_cancel()
368 cur_ent %= ARRAY_SIZE(entity); in drm_sched_priorities()
404 cur_ent %= ARRAY_SIZE(entity); in drm_sched_change_priority()
414 cur_ent %= ARRAY_SIZE(entity); in drm_sched_change_priority()
466 cur_ent %= ARRAY_SIZE(entity); in drm_sched_test_modify_sched()
[all …]
/drivers/media/mc/
A Dmc-entity.c212 iter->entity = entity; in media_entity_pads_init()
285 if (link->source->entity == entity) in media_entity_other()
301 graph->stack[graph->top].entity = entity; in stack_push()
308 entity = graph->stack[graph->top].entity; in stack_pop()
813 struct media_entity *entity = pad->entity; in __media_pipeline_start() local
1045 entity = ppad->pad->entity; in __media_pipeline_entity_iter_next()
1084 if (link->source->entity == entity) in __media_entity_remove_link()
1093 if (link->source->entity == entity) in __media_entity_remove_link()
1377 link->sink->entity == sink->entity && in media_entity_find_link()
1430 if (local_pad->entity == entity) { in media_entity_remote_pad_unique()
[all …]
A Dmc-device.c83 struct media_entity *entity; in find_entity() local
91 return entity; in find_entity()
146 upad->entity = media_entity_id(kpad->entity); in media_device_kpad_to_upad()
156 entity = find_entity(mdev, links->entity); in media_device_enum_links()
157 if (entity == NULL) in media_device_enum_links()
181 if (link->source->entity != entity) in media_device_enum_links()
483 __u32 entity; member
498 if (get_user(links.entity, &ulinks->entity) in media_device_enum_links32()
587 if (link->entity == entity) in __media_device_unregister_entity()
616 entity->name); in media_device_register_entity()
[all …]
/drivers/staging/media/imx/
A Dimx-media-dev-common.c55 struct media_entity *entity = srcpad->entity; in imx_media_add_vdev_to_pad() local
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()
124 struct media_entity *entity; in imx_media_alloc_pad_vdev_lists() local
129 entity = &sd->entity; in imx_media_alloc_pad_vdev_lists()
198 struct media_entity *entity) in imx_media_inherit_controls() argument
207 vfd->entity.name, sd->entity.name); in imx_media_inherit_controls()
279 vfd->entity.name); in imx_media_link_notify()
291 vfd->entity.name); in imx_media_link_notify()
293 &vfd->entity); in imx_media_link_notify()
[all …]
/drivers/media/usb/au0828/
A Dau0828-core.c226 mixer = entity; in au0828_media_graph_notify()
228 decoder = entity; in au0828_media_graph_notify()
243 mixer = entity; in au0828_media_graph_notify()
315 sink = entity; in au0828_enable_source()
366 entity)) { in au0828_enable_source()
381 entity->name); in au0828_enable_source()
437 __func__, entity->name, entity->function, ret); in au0828_enable_source()
604 switch (entity->function) { in au0828_media_device_register()
606 dev->tuner = entity; in au0828_media_device_register()
609 dev->decoder = entity; in au0828_media_device_register()
[all …]
/drivers/net/wwan/t7xx/
A Dt7xx_pci.c290 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in t7xx_pci_pm_entity_register()
432 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_suspend()
436 ret = entity->suspend(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_suspend()
457 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_suspend()
459 entity->suspend_late(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_suspend()
466 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_suspend()
471 entity->resume(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_suspend()
644 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_resume()
646 entity->resume_early(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_resume()
657 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_resume()
[all …]
/drivers/media/dvb-core/
A Ddvbdev.c210 if (dvbdev->entity) { in dvb_media_device_free()
212 kfree(dvbdev->entity); in dvb_media_device_free()
272 if (!entity->name) in dvb_create_tsout_entity()
283 entity); in dvb_create_tsout_entity()
331 dvbdev->entity = kzalloc(sizeof(*dvbdev->entity), GFP_KERNEL); in dvb_create_media_entity()
332 if (!dvbdev->entity) in dvb_create_media_entity()
441 if (!dvbdev->entity) in dvb_register_media_device()
686 tuner = entity; in dvb_create_media_graph()
690 demod = entity; in dvb_create_media_graph()
694 demux = entity; in dvb_create_media_graph()
[all …]
/drivers/media/platform/xilinx/
A 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()
68 return entity; in xvip_graph_find_entity()
79 struct media_entity *local = entity->entity; in xvip_graph_build_one()
144 remote = ent->entity; in xvip_graph_build_one()
253 sink = ent->entity; in xvip_graph_build_dma()
256 source = ent->entity; in xvip_graph_build_dma()
258 sink = &dma->video.entity; in xvip_graph_build_dma()
321 entity->entity = &subdev->entity; in xvip_graph_notify_bound()
[all …]
/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_ctx.c215 entity = kzalloc(struct_size(entity, fences, amdgpu_sched_jobs), in amdgpu_ctx_init_entity()
217 if (!entity) in amdgpu_ctx_init_entity()
222 entity->hw_ip = hw_ip; in amdgpu_ctx_init_entity()
223 entity->sequence = 1; in amdgpu_ctx_init_entity()
252 r = drm_sched_entity_init(&entity->entity, drm_prio, scheds, num_scheds, in amdgpu_ctx_init_entity()
264 drm_sched_entity_fini(&entity->entity); in amdgpu_ctx_init_entity()
267 kfree(entity); in amdgpu_ctx_init_entity()
278 if (!entity) in amdgpu_ctx_fini_entity()
288 kfree(entity); in amdgpu_ctx_fini_entity()
913 entity = &ctx->entities[i][j]->entity; in amdgpu_ctx_mgr_entity_flush()
[all …]

Completed in 65 milliseconds

12345678910>>...16