/linux-6.3-rc2/drivers/gpu/drm/scheduler/ |
A D | sched_entity.c | 70 entity->rq = NULL; in drm_sched_entity_init() 79 entity->rq = &sched_list[0]->sched_rq[entity->priority]; in drm_sched_entity_init() 183 if (!entity->rq) in drm_sched_entity_kill() 188 drm_sched_rq_remove_entity(entity->rq, entity); in drm_sched_entity_kill() 228 if (!entity->rq) in drm_sched_entity_flush() 278 dma_fence_remove_callback(entity->dependency, &entity->cb); in drm_sched_entity_fini() 385 if (!dma_fence_add_callback(entity->dependency, &entity->cb, in drm_sched_entity_add_dependency_cb() 423 if (entity->guilty && atomic_read(entity->guilty)) in drm_sched_entity_pop_job() 486 drm_sched_rq_remove_entity(entity->rq, entity); in drm_sched_entity_select_rq() 508 struct drm_sched_entity *entity = sched_job->entity; in drm_sched_entity_push_job() local [all …]
|
A D | sched_main.c | 107 rb_add_cached(&entity->rb_tree_node, &entity->rq->rb_tree_root, in drm_sched_rq_update_fifo() 197 if (entity) { in drm_sched_rq_select_entity_rr() 203 return entity; in drm_sched_rq_select_entity_rr() 214 return entity; in drm_sched_rq_select_entity_rr() 629 if (!entity->rq) in drm_sched_job_init() 632 job->entity = entity; in drm_sched_job_init() 661 struct drm_sched_entity *entity = job->entity; in drm_sched_job_arm() local 663 BUG_ON(!entity); in drm_sched_job_arm() 862 if (entity) in drm_sched_select_entity() 866 return entity; in drm_sched_select_entity() [all …]
|
A D | gpu_scheduler_trace.h | 36 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)
|
/linux-6.3-rc2/block/ |
A D | bfq-wf2q.c | 300 entity->finish = entity->start + in bfq_calc_finish() 309 entity->start, entity->finish, in bfq_calc_finish() 434 entity->min_start = entity->start; in bfq_update_active_node() 725 entity->orig_weight = entity->new_weight; in __bfq_entity_update_weight_prio() 789 struct bfq_entity *entity = &bfqq->entity; in bfq_bfqq_served() local 840 struct bfq_entity *entity = &bfqq->entity; in bfq_bfqq_charge_time() local 867 bfq_calc_finish(entity, entity->budget); in bfq_update_fin_time_enqueue() 1014 bfq_calc_finish(entity, entity->service); in __bfq_requeue_entity() 1015 entity->start = entity->finish; in __bfq_requeue_entity() 1129 bfq_calc_finish(entity, entity->service); in __bfq_deactivate_entity() [all …]
|
A D | bfq-cgroup.c | 308 entity) : in bfqq_group() 421 entity->weight = entity->new_weight; in bfq_init_entity() 422 entity->orig_weight = entity->new_weight; in bfq_init_entity() 540 struct bfq_entity *entity = &bfqg->entity; in bfq_pd_init() local 543 entity->orig_weight = entity->weight = entity->new_weight = d->weight; in bfq_pd_init() 577 entity = &bfqg->entity; in bfq_group_set_parent() 592 entity = &bfqg->entity; in bfq_link_bfqg() 644 struct bfq_entity *entity = &bfqq->entity; in bfq_bfqq_move() local 868 for (; entity ; entity = st->first_idle) in bfq_flush_idle_tree() 1460 entity->weight = entity->new_weight; in bfq_init_entity() [all …]
|
/linux-6.3-rc2/drivers/media/usb/uvc/ |
A D | uvc_entity.c | 26 ? (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 D | uvc_ctrl.c | 894 return memcmp(entity->guid, guid, sizeof(entity->guid)) == 0; in uvc_entity_match_guid() 1061 ret = ctrl->entity->get_cur(chain->dev, ctrl->entity, in __uvc_ctrl_load_cur() 1825 if (!entity) in uvc_ctrl_find_ctrl_idx() 2024 ret = ctrl->entity->get_info(dev, ctrl->entity, in uvc_ctrl_get_flags() 2048 u8 entity; in uvc_ctrl_fixup_xu_info() member 2074 if (fixups[i].entity == ctrl->entity->id && in uvc_ctrl_fixup_xu_info() 2095 memcpy(info->entity, ctrl->entity->guid, sizeof(info->entity)); in uvc_ctrl_fill_xu_info() 2456 !uvc_entity_match_guid(entity, mapping->entity)) in uvc_ctrl_add_mapping() 2604 if (uvc_entity_match_guid(ctrl->entity, info->entity) && in uvc_ctrl_init_ctrl() 2650 if (uvc_entity_match_guid(ctrl->entity, mapping->entity) && in uvc_ctrl_init_ctrl() [all …]
|
/linux-6.3-rc2/drivers/media/platform/renesas/vsp1/ |
A D | vsp1_entity.c | 58 source = entity; in vsp1_entity_route_setup() 78 entity->ops->configure_stream(entity, pipe, dl, dlb); in vsp1_entity_configure_stream() 87 entity->ops->configure_frame(entity, pipe, dl, dlb); in vsp1_entity_configure_frame() 96 entity->ops->configure_partition(entity, pipe, dl, dlb); in vsp1_entity_configure_partition() 438 return container_of(entity, struct vsp1_entity, subdev.entity); in media_entity_to_vsp1_entity() 546 entity = media_entity_to_vsp1_entity(link->sink->entity); in vsp1_entity_remote_pad() 683 entity->config = __v4l2_subdev_state_alloc(&entity->subdev, in vsp1_entity_init() 686 media_entity_cleanup(&entity->subdev.entity); in vsp1_entity_init() 695 if (entity->ops && entity->ops->destroy) in vsp1_entity_destroy() 696 entity->ops->destroy(entity); in vsp1_entity_destroy() [all …]
|
A D | vsp1_uds.c | 143 mutex_lock(&uds->entity.lock); in uds_enum_frame_size() 163 mutex_unlock(&uds->entity.lock); in uds_enum_frame_size() 212 mutex_lock(&uds->entity.lock); in uds_set_format() 272 input = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, in uds_configure_stream() 274 output = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, in uds_configure_stream() 317 output = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, in uds_configure_partition() 342 input = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, in uds_max_width() 344 output = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, in uds_max_width() 384 input = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, in uds_partition() 386 output = vsp1_entity_get_pad_format(&uds->entity, uds->entity.config, in uds_partition() [all …]
|
A D | vsp1_sru.c | 137 mutex_lock(&sru->entity.lock); in sru_enum_frame_size() 163 mutex_unlock(&sru->entity.lock); in sru_enum_frame_size() 228 mutex_lock(&sru->entity.lock); in sru_set_format() 252 mutex_unlock(&sru->entity.lock); in sru_set_format() 283 input = vsp1_entity_get_pad_format(&sru->entity, sru->entity.config, in sru_configure_stream() 285 output = vsp1_entity_get_pad_format(&sru->entity, sru->entity.config, in sru_configure_stream() 313 input = vsp1_entity_get_pad_format(&sru->entity, sru->entity.config, in sru_max_width() 315 output = vsp1_entity_get_pad_format(&sru->entity, sru->entity.config, in sru_max_width() 339 input = vsp1_entity_get_pad_format(&sru->entity, sru->entity.config, in sru_partition() 341 output = vsp1_entity_get_pad_format(&sru->entity, sru->entity.config, in sru_partition() [all …]
|
A D | vsp1_brx.c | 143 mutex_lock(&brx->entity.lock); in brx_set_format() 180 mutex_unlock(&brx->entity.lock); in brx_set_format() 208 mutex_lock(&brx->entity.lock); in brx_get_selection() 210 mutex_unlock(&brx->entity.lock); in brx_get_selection() 234 mutex_lock(&brx->entity.lock); in brx_set_selection() 248 brx->entity.source_pad); in brx_set_selection() 264 mutex_unlock(&brx->entity.lock); in brx_set_selection() 296 format = vsp1_entity_get_pad_format(&brx->entity, brx->entity.config, in brx_configure_stream() 297 brx->entity.source_pad); in brx_configure_stream() 422 brx->entity.ops = &brx_entity_ops; in vsp1_brx_create() [all …]
|
A D | vsp1_wpf.c | 69 wpf->entity.config, in vsp1_wpf_set_rotation() 72 wpf->entity.config, in vsp1_wpf_set_rotation() 75 mutex_lock(&wpf->entity.lock); in vsp1_wpf_set_rotation() 87 mutex_unlock(&wpf->entity.lock); in vsp1_wpf_set_rotation() 141 if (wpf->entity.index != 0) { in wpf_init_controls() 181 wpf->entity.index); in wpf_init_controls() 244 dev_err(wpf->entity.vsp1->dev, in wpf_configure_writeback_chain() 272 wpf->entity.config, in wpf_configure_stream() 275 wpf->entity.config, in wpf_configure_stream() 410 wpf->entity.config, in wpf_configure_partition() [all …]
|
A D | vsp1_uif.c | 31 return vsp1_read(uif->entity.vsp1, in vsp1_uif_read() 32 uif->entity.index * VI6_UIF_OFFSET + reg); in vsp1_uif_read() 96 mutex_lock(&uif->entity.lock); in uif_get_selection() 127 mutex_unlock(&uif->entity.lock); in uif_get_selection() 145 mutex_lock(&uif->entity.lock); in uif_set_selection() 170 mutex_unlock(&uif->entity.lock); in uif_set_selection() 201 struct vsp1_uif *uif = to_uif(&entity->subdev); in uif_configure_stream() 209 crop = vsp1_entity_get_pad_selection(entity, entity->config, in uif_configure_stream() 256 uif->entity.ops = &uif_entity_ops; in vsp1_uif_create() 257 uif->entity.type = VSP1_ENTITY_UIF; in vsp1_uif_create() [all …]
|
A D | vsp1_drv.c | 93 struct media_entity *entity = &sink->subdev.entity; in vsp1_create_sink_links() local 135 struct vsp1_entity *entity; in vsp1_uapi_create_links() local 150 ret = media_create_pad_link(&vsp1->hgo->histo.entity.subdev.entity, in vsp1_uapi_create_links() 160 ret = media_create_pad_link(&vsp1->hgt->histo.entity.subdev.entity, in vsp1_uapi_create_links() 173 ret = media_create_pad_link(&vsp1->wpf[i]->entity.subdev.entity, in vsp1_uapi_create_links() 175 &vsp1->lif[i]->entity.subdev.entity, in vsp1_uapi_create_links() 185 &rpf->entity.subdev.entity, in vsp1_uapi_create_links() 200 ret = media_create_pad_link(&wpf->entity.subdev.entity, in vsp1_uapi_create_links() 218 list_del(&entity->list_dev); in vsp1_destroy_entities() 240 struct vsp1_entity *entity; in vsp1_create_entities() local [all …]
|
A D | vsp1_video.c | 256 struct vsp1_entity *entity; in vsp1_video_pipeline_setup_partitions() local 280 entity_max = entity->ops->max_width(entity, pipe); in vsp1_video_pipeline_setup_partitions() 501 entity = to_vsp1_entity( in vsp1_video_pipeline_build_branch() 527 &entity->subdev.entity)) { in vsp1_video_pipeline_build_branch() 539 pipe->uds = entity; in vsp1_video_pipeline_build_branch() 540 pipe->uds_input = brx ? &brx->entity : &input->entity; in vsp1_video_pipeline_build_branch() 544 pad = &entity->pads[entity->source_pad]; in vsp1_video_pipeline_build_branch() 549 if (entity != &output->entity) in vsp1_video_pipeline_build_branch() 562 struct media_entity *entity = &video->video.entity; in vsp1_video_pipeline_build() local 1169 pipe = wpf->entity.pipe; in vsp1_video_suspend() [all …]
|
A D | vsp1_rpf.c | 63 struct vsp1_rwpf *rpf = to_rwpf(&entity->subdev); in rpf_configure_stream() 92 rpf->entity.config, in rpf_configure_stream() 95 rpf->entity.config, in rpf_configure_stream() 112 if (entity->vsp1->info->gen == 4) { in rpf_configure_stream() 210 if (entity->vsp1->info->gen >= 3) { in rpf_configure_stream() 262 auto_fld = &auto_fld[rpf->entity.index]; in vsp1_rpf_configure_autofld() 300 struct vsp1_device *vsp1 = rpf->entity.vsp1; in rpf_configure_partition() 409 rpf->entity.ops = &rpf_entity_ops; in vsp1_rpf_create() 410 rpf->entity.type = VSP1_ENTITY_RPF; in vsp1_rpf_create() 411 rpf->entity.index = index; in vsp1_rpf_create() [all …]
|
A D | vsp1_rwpf.c | 22 return v4l2_subdev_get_try_crop(&rwpf->entity.subdev, sd_state, in vsp1_rwpf_get_crop() 69 mutex_lock(&rwpf->entity.lock); in vsp1_rwpf_set_format() 71 config = vsp1_entity_get_pad_config(&rwpf->entity, sd_state, in vsp1_rwpf_set_format() 106 if (rwpf->entity.type == VSP1_ENTITY_RPF) { in vsp1_rwpf_set_format() 118 format = vsp1_entity_get_pad_format(&rwpf->entity, config, in vsp1_rwpf_set_format() 128 mutex_unlock(&rwpf->entity.lock); in vsp1_rwpf_set_format() 148 mutex_lock(&rwpf->entity.lock); in vsp1_rwpf_get_selection() 177 mutex_unlock(&rwpf->entity.lock); in vsp1_rwpf_get_selection() 201 mutex_lock(&rwpf->entity.lock); in vsp1_rwpf_set_selection() 242 mutex_unlock(&rwpf->entity.lock); in vsp1_rwpf_set_selection() [all …]
|
/linux-6.3-rc2/drivers/media/v4l2-core/ |
A D | v4l2-mc.c | 25 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() 230 switch (entity->function) { in v4l2_mc_create_media_graph() [all …]
|
/linux-6.3-rc2/include/media/ |
A D | media-entity.h | 92 struct media_entity *entity; member 187 struct media_entity *entity; member 237 struct media_entity *entity; member 387 iter < &(entity)->pads[(entity)->num_pads]; \ 435 return entity->graph_obj.id; in media_entity_id() 484 return entity && entity->obj_type == MEDIA_ENTITY_TYPE_VIDEO_DEVICE; in is_media_entity_v4l2_video_device() 497 return entity && entity->obj_type == MEDIA_ENTITY_TYPE_V4L2_SUBDEV; in is_media_entity_v4l2_subdev() 1263 entity != NULL; \ 1264 entity = __media_pipeline_entity_iter_next((pipe), iter, entity)) 1400 (((entity)->ops && (entity)->ops->operation) ? \ [all …]
|
/linux-6.3-rc2/drivers/media/mc/ |
A D | mc-entity.c | 211 iter->entity = entity; in media_entity_pads_init() 272 if (link->source->entity == entity) in media_entity_other() 288 graph->stack[graph->top].entity = entity; in stack_push() 295 entity = graph->stack[graph->top].entity; in stack_pop() 618 if (link->source->entity == pad->entity) { in media_pipeline_explore_next_link() 758 struct media_entity *entity = pad->entity; in __media_pipeline_start() local 992 entity = ppad->pad->entity; in __media_pipeline_entity_iter_next() 1028 if (link->source->entity == entity) in __media_entity_remove_link() 1037 if (link->source->entity == entity) in __media_entity_remove_link() 1372 if (local_pad->entity == entity) { in media_entity_remote_pad_unique() [all …]
|
A D | mc-device.c | 83 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() 487 __u32 entity; member 502 if (get_user(links.entity, &ulinks->entity) in media_device_enum_links32() 591 if (link->entity == entity) in __media_device_unregister_entity() 620 entity->name); in media_device_register_entity() [all …]
|
/linux-6.3-rc2/drivers/staging/media/imx/ |
A D | imx-media-dev-common.c | 70 struct media_entity *entity = srcpad->entity; in imx_media_add_vdev_to_pad() local 86 entity->name, srcpad->index); in imx_media_add_vdev_to_pad() 101 vdev->vfd->entity.name, entity->name, srcpad->index); in imx_media_add_vdev_to_pad() 139 struct media_entity *entity; in imx_media_alloc_pad_vdev_lists() local 144 entity = &sd->entity; in imx_media_alloc_pad_vdev_lists() 213 struct media_entity *entity) in imx_media_inherit_controls() argument 222 vfd->entity.name, sd->entity.name); in imx_media_inherit_controls() 294 vfd->entity.name); in imx_media_link_notify() 306 vfd->entity.name); in imx_media_link_notify() 308 &vfd->entity); in imx_media_link_notify() [all …]
|
/linux-6.3-rc2/drivers/media/usb/au0828/ |
A D | au0828-core.c | 226 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 …]
|
/linux-6.3-rc2/drivers/net/wwan/t7xx/ |
A D | t7xx_pci.c | 154 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in t7xx_pci_pm_entity_register() 295 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_suspend() 299 ret = entity->suspend(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_suspend() 320 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_suspend() 322 entity->suspend_late(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_suspend() 329 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_suspend() 334 entity->resume(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_suspend() 485 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_resume() 487 entity->resume_early(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_resume() 498 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_resume() [all …]
|
/linux-6.3-rc2/include/drm/ |
A D | gpu_scheduler.h | 345 struct drm_sched_entity *entity; member 520 struct drm_sched_entity *entity, 546 struct drm_sched_entity *entity); 550 struct drm_sched_entity *entity); 552 struct drm_sched_entity *entity); 556 int drm_sched_entity_init(struct drm_sched_entity *entity, 562 void drm_sched_entity_fini(struct drm_sched_entity *entity); 563 void drm_sched_entity_destroy(struct drm_sched_entity *entity); 564 void drm_sched_entity_select_rq(struct drm_sched_entity *entity); 569 bool drm_sched_entity_is_ready(struct drm_sched_entity *entity); [all …]
|