/openbmc/linux/drivers/gpu/drm/scheduler/ |
H 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() 220 if (!entity->rq) in drm_sched_entity_kill() 225 drm_sched_rq_remove_entity(entity->rq, entity); in drm_sched_entity_kill() 265 if (!entity->rq) in drm_sched_entity_flush() 315 dma_fence_remove_callback(entity->dependency, &entity->cb); in drm_sched_entity_fini() 422 if (!dma_fence_add_callback(entity->dependency, &entity->cb, in drm_sched_entity_add_dependency_cb() 469 if (entity->guilty && atomic_read(entity->guilty)) in drm_sched_entity_pop_job() 538 drm_sched_rq_remove_entity(entity->rq, entity); in drm_sched_entity_select_rq() 560 struct drm_sched_entity *entity = sched_job->entity; in drm_sched_entity_push_job() local [all …]
|
H A D | sched_main.c | 112 rb_add_cached(&entity->rb_tree_node, &entity->rq->rb_tree_root, in drm_sched_rq_update_fifo() 202 if (entity) { in drm_sched_rq_select_entity_rr() 208 return entity; in drm_sched_rq_select_entity_rr() 219 return entity; in drm_sched_rq_select_entity_rr() 635 if (!entity->rq) in drm_sched_job_init() 638 job->entity = entity; in drm_sched_job_init() 667 struct drm_sched_entity *entity = job->entity; in drm_sched_job_arm() local 669 BUG_ON(!entity); in drm_sched_job_arm() 895 if (entity) in drm_sched_select_entity() 899 return entity; in drm_sched_select_entity() [all …]
|
H 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)
|
/openbmc/linux/block/ |
H 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 …]
|
H 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() 534 struct bfq_entity *entity = &bfqg->entity; in bfq_pd_init() local 537 entity->orig_weight = entity->weight = entity->new_weight = d->weight; in bfq_pd_init() 571 entity = &bfqg->entity; in bfq_group_set_parent() 586 entity = &bfqg->entity; in bfq_link_bfqg() 638 struct bfq_entity *entity = &bfqq->entity; in bfq_bfqq_move() local 862 for (; entity ; entity = st->first_idle) in bfq_flush_idle_tree() 1454 entity->weight = entity->new_weight; in bfq_init_entity() [all …]
|
/openbmc/linux/drivers/media/usb/uvc/ |
H 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 …]
|
H 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() 1828 if (!entity) in uvc_ctrl_find_ctrl_idx() 2027 ret = ctrl->entity->get_info(dev, ctrl->entity, in uvc_ctrl_get_flags() 2051 u8 entity; in uvc_ctrl_fixup_xu_info() member 2077 if (fixups[i].entity == ctrl->entity->id && in uvc_ctrl_fixup_xu_info() 2098 memcpy(info->entity, ctrl->entity->guid, sizeof(info->entity)); in uvc_ctrl_fill_xu_info() 2459 !uvc_entity_match_guid(entity, mapping->entity)) in uvc_ctrl_add_mapping() 2607 if (uvc_entity_match_guid(ctrl->entity, info->entity) && in uvc_ctrl_init_ctrl() 2653 if (uvc_entity_match_guid(ctrl->entity, mapping->entity) && in uvc_ctrl_init_ctrl() [all …]
|
/openbmc/linux/drivers/media/platform/renesas/vsp1/ |
H 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() 437 return container_of(entity, struct vsp1_entity, subdev.entity); in media_entity_to_vsp1_entity() 545 entity = media_entity_to_vsp1_entity(link->sink->entity); in vsp1_entity_remote_pad() 682 entity->config = __v4l2_subdev_state_alloc(&entity->subdev, in vsp1_entity_init() 685 media_entity_cleanup(&entity->subdev.entity); in vsp1_entity_init() 694 if (entity->ops && entity->ops->destroy) in vsp1_entity_destroy() 695 entity->ops->destroy(entity); in vsp1_entity_destroy() [all …]
|
H 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 …]
|
H 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 …]
|
H 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 …]
|
H 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() 221 dev_err(wpf->entity.vsp1->dev, in wpf_configure_writeback_chain() 249 wpf->entity.config, in wpf_configure_stream() 252 wpf->entity.config, in wpf_configure_stream() 387 wpf->entity.config, in wpf_configure_partition() [all …]
|
H 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 …]
|
H A D | vsp1_drv.c | 101 struct media_entity *entity = &sink->subdev.entity; in vsp1_create_sink_links() local 143 struct vsp1_entity *entity; in vsp1_uapi_create_links() local 158 ret = media_create_pad_link(&vsp1->hgo->histo.entity.subdev.entity, in vsp1_uapi_create_links() 168 ret = media_create_pad_link(&vsp1->hgt->histo.entity.subdev.entity, in vsp1_uapi_create_links() 181 ret = media_create_pad_link(&vsp1->wpf[i]->entity.subdev.entity, in vsp1_uapi_create_links() 183 &vsp1->lif[i]->entity.subdev.entity, in vsp1_uapi_create_links() 193 &rpf->entity.subdev.entity, in vsp1_uapi_create_links() 208 ret = media_create_pad_link(&wpf->entity.subdev.entity, in vsp1_uapi_create_links() 226 list_del(&entity->list_dev); in vsp1_destroy_entities() 248 struct vsp1_entity *entity; in vsp1_create_entities() local [all …]
|
H A D | vsp1_video.c | 257 struct vsp1_entity *entity; in vsp1_video_pipeline_setup_partitions() local 281 entity_max = entity->ops->max_width(entity, pipe); in vsp1_video_pipeline_setup_partitions() 502 entity = to_vsp1_entity( in vsp1_video_pipeline_build_branch() 528 &entity->subdev.entity)) { in vsp1_video_pipeline_build_branch() 540 pipe->uds = entity; in vsp1_video_pipeline_build_branch() 541 pipe->uds_input = brx ? &brx->entity : &input->entity; in vsp1_video_pipeline_build_branch() 545 pad = &entity->pads[entity->source_pad]; in vsp1_video_pipeline_build_branch() 550 if (entity != &output->entity) in vsp1_video_pipeline_build_branch() 563 struct media_entity *entity = &video->video.entity; in vsp1_video_pipeline_build() local 1170 pipe = wpf->entity.pipe; in vsp1_video_suspend() [all …]
|
H A D | vsp1_rpf.c | 55 struct vsp1_rwpf *rpf = to_rwpf(&entity->subdev); in rpf_configure_stream() 84 rpf->entity.config, in rpf_configure_stream() 87 rpf->entity.config, in rpf_configure_stream() 104 if (entity->vsp1->info->gen == 4) { in rpf_configure_stream() 202 if (entity->vsp1->info->gen >= 3) { in rpf_configure_stream() 254 auto_fld = &auto_fld[rpf->entity.index]; in vsp1_rpf_configure_autofld() 292 struct vsp1_device *vsp1 = rpf->entity.vsp1; in rpf_configure_partition() 401 rpf->entity.ops = &rpf_entity_ops; in vsp1_rpf_create() 402 rpf->entity.type = VSP1_ENTITY_RPF; in vsp1_rpf_create() 403 rpf->entity.index = index; in vsp1_rpf_create() [all …]
|
/openbmc/linux/include/media/ |
H A D | media-entity.h | 92 struct media_entity *entity; member 187 struct media_entity *entity; member 238 struct media_entity *entity; member 389 iter < &(entity)->pads[(entity)->num_pads]; \ 437 return entity->graph_obj.id; in media_entity_id() 486 return entity && entity->obj_type == MEDIA_ENTITY_TYPE_VIDEO_DEVICE; in is_media_entity_v4l2_video_device() 499 return entity && entity->obj_type == MEDIA_ENTITY_TYPE_V4L2_SUBDEV; in is_media_entity_v4l2_subdev() 1265 entity != NULL; \ 1266 entity = __media_pipeline_entity_iter_next((pipe), iter, entity)) 1402 (((entity)->ops && (entity)->ops->operation) ? \ [all …]
|
/openbmc/linux/drivers/media/v4l2-core/ |
H 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() 241 switch (entity->function) { in v4l2_mc_create_media_graph() [all …]
|
/openbmc/linux/drivers/media/mc/ |
H 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() 800 struct media_entity *entity = pad->entity; in __media_pipeline_start() local 1032 entity = ppad->pad->entity; in __media_pipeline_entity_iter_next() 1071 if (link->source->entity == entity) in __media_entity_remove_link() 1080 if (link->source->entity == entity) in __media_entity_remove_link() 1364 link->sink->entity == sink->entity && in media_entity_find_link() 1417 if (local_pad->entity == entity) { in media_entity_remote_pad_unique() [all …]
|
H 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 …]
|
/openbmc/linux/drivers/staging/media/imx/ |
H A D | imx-media-dev-common.c | 55 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 …]
|
/openbmc/libpldm/src/dsp/ |
H A D | pdr.c | 558 node->entity.entity_type = entity->entity_type; in pldm_entity_association_tree_add_entity() 611 if (prev->entity.entity_type == entity->entity_type) { in pldm_entity_association_tree_add_entity() 628 entity->entity_instance_num = node->entity.entity_instance_num; in pldm_entity_association_tree_add_entity() 655 entity->entity_type = node->entity.entity_type; in entity_association_tree_visit() 656 entity->entity_instance_num = node->entity.entity_instance_num; in entity_association_tree_visit() 657 entity->entity_container_id = node->entity.entity_container_id; in entity_association_tree_visit() 806 entity->entity_type = htole16(curr->entity.entity_type); in entity_association_pdr_add_children() 818 entity->entity_type = htole16(node->entity.entity_type); in entity_association_pdr_add_children() 974 is_type = tree_node->entity.entity_type == entity.entity_type; in find_entity_ref_in_tree() 1176 if (node->entity.entity_type == entity->entity_type && in entity_association_tree_find() [all …]
|
/openbmc/linux/drivers/media/usb/au0828/ |
H 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 …]
|
/openbmc/linux/drivers/net/wwan/t7xx/ |
H A D | t7xx_pci.c | 157 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in t7xx_pci_pm_entity_register() 298 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_suspend() 302 ret = entity->suspend(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_suspend() 323 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_suspend() 325 entity->suspend_late(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_suspend() 332 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_suspend() 337 entity->resume(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_suspend() 488 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_resume() 490 entity->resume_early(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_resume() 501 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_resume() [all …]
|
/openbmc/linux/include/drm/ |
H A D | gpu_scheduler.h | 354 struct drm_sched_entity *entity; member 529 struct drm_sched_entity *entity, 559 struct drm_sched_entity *entity); 563 struct drm_sched_entity *entity); 565 struct drm_sched_entity *entity); 569 int drm_sched_entity_init(struct drm_sched_entity *entity, 575 void drm_sched_entity_fini(struct drm_sched_entity *entity); 576 void drm_sched_entity_destroy(struct drm_sched_entity *entity); 582 bool drm_sched_entity_is_ready(struct drm_sched_entity *entity); 583 int drm_sched_entity_error(struct drm_sched_entity *entity); [all …]
|