/linux-6.6.21/drivers/gpu/drm/scheduler/ |
D | sched_entity.c | 59 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() 74 entity->sched_list = num_sched_list > 1 ? sched_list : NULL; in drm_sched_entity_init() 75 RCU_INIT_POINTER(entity->last_scheduled, NULL); in drm_sched_entity_init() [all …]
|
D | sched_main.c | 88 static inline void drm_sched_rq_remove_fifo_locked(struct drm_sched_entity *entity) in drm_sched_rq_remove_fifo_locked() argument 90 struct drm_sched_rq *rq = entity->rq; in drm_sched_rq_remove_fifo_locked() 92 if (!RB_EMPTY_NODE(&entity->rb_tree_node)) { in drm_sched_rq_remove_fifo_locked() 93 rb_erase_cached(&entity->rb_tree_node, &rq->rb_tree_root); in drm_sched_rq_remove_fifo_locked() 94 RB_CLEAR_NODE(&entity->rb_tree_node); in drm_sched_rq_remove_fifo_locked() 98 void drm_sched_rq_update_fifo(struct drm_sched_entity *entity, ktime_t ts) in drm_sched_rq_update_fifo() argument 105 spin_lock(&entity->rq_lock); in drm_sched_rq_update_fifo() 106 spin_lock(&entity->rq->lock); in drm_sched_rq_update_fifo() 108 drm_sched_rq_remove_fifo_locked(entity); in drm_sched_rq_update_fifo() 110 entity->oldest_job_waiting = ts; in drm_sched_rq_update_fifo() [all …]
|
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.6.21/block/ |
D | bfq-wf2q.c | 30 static unsigned int bfq_class_idx(struct bfq_entity *entity) in bfq_class_idx() argument 32 struct bfq_queue *bfqq = bfq_entity_to_bfqq(entity); in bfq_class_idx() 194 static bool bfq_no_longer_next_in_service(struct bfq_entity *entity) in bfq_no_longer_next_in_service() argument 198 if (bfq_entity_to_bfqq(entity)) in bfq_no_longer_next_in_service() 201 bfqg = container_of(entity, struct bfq_group, entity); in bfq_no_longer_next_in_service() 221 static void bfq_inc_active_entities(struct bfq_entity *entity) in bfq_inc_active_entities() argument 223 struct bfq_sched_data *sd = entity->sched_data; in bfq_inc_active_entities() 230 static void bfq_dec_active_entities(struct bfq_entity *entity) in bfq_dec_active_entities() argument 232 struct bfq_sched_data *sd = entity->sched_data; in bfq_dec_active_entities() 246 static bool bfq_no_longer_next_in_service(struct bfq_entity *entity) in bfq_no_longer_next_in_service() argument [all …]
|
D | bfq-cgroup.c | 305 struct bfq_entity *group_entity = bfqq->entity.parent; in bfqq_group() 308 entity) : in bfqq_group() 417 void bfq_init_entity(struct bfq_entity *entity, struct bfq_group *bfqg) in bfq_init_entity() argument 419 struct bfq_queue *bfqq = bfq_entity_to_bfqq(entity); in bfq_init_entity() 421 entity->weight = entity->new_weight; in bfq_init_entity() 422 entity->orig_weight = entity->new_weight; in bfq_init_entity() 432 entity->parent = bfqg->my_entity; /* NULL for root group */ in bfq_init_entity() 433 entity->sched_data = &bfqg->sched_data; 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() [all …]
|
/linux-6.6.21/drivers/media/usb/uvc/ |
D | uvc_entity.c | 18 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 …]
|
D | uvc_ctrl.c | 41 .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 …]
|
/linux-6.6.21/drivers/media/platform/renesas/vsp1/ |
D | vsp1_entity.c | 23 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 77 if (entity->ops->configure_stream) in vsp1_entity_configure_stream() [all …]
|
D | vsp1_uds.c | 33 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 config = vsp1_entity_get_pad_config(&uds->entity, sd_state, in uds_enum_frame_size() 140 format = vsp1_entity_get_pad_format(&uds->entity, config, in uds_enum_frame_size() 143 mutex_lock(&uds->entity.lock); in uds_enum_frame_size() 163 mutex_unlock(&uds->entity.lock); in uds_enum_frame_size() 188 format = vsp1_entity_get_pad_format(&uds->entity, sd_state, in uds_try_format() 212 mutex_lock(&uds->entity.lock); in uds_set_format() 214 config = vsp1_entity_get_pad_config(&uds->entity, sd_state, in uds_set_format() [all …]
|
D | vsp1_brx.c | 103 return v4l2_subdev_get_try_compose(&brx->entity.subdev, sd_state, pad); in brx_get_compose() 122 format = vsp1_entity_get_pad_format(&brx->entity, sd_state, in brx_try_format() 143 mutex_lock(&brx->entity.lock); in brx_set_format() 145 config = vsp1_entity_get_pad_config(&brx->entity, sd_state, in brx_set_format() 154 format = vsp1_entity_get_pad_format(&brx->entity, config, fmt->pad); in brx_set_format() 158 if (fmt->pad != brx->entity.source_pad) { in brx_set_format() 172 for (i = 0; i <= brx->entity.source_pad; ++i) { in brx_set_format() 173 format = vsp1_entity_get_pad_format(&brx->entity, in brx_set_format() 180 mutex_unlock(&brx->entity.lock); in brx_set_format() 191 if (sel->pad == brx->entity.source_pad) in brx_get_selection() [all …]
|
D | vsp1_sru.c | 130 config = vsp1_entity_get_pad_config(&sru->entity, sd_state, in sru_enum_frame_size() 135 format = vsp1_entity_get_pad_format(&sru->entity, config, SRU_PAD_SINK); in sru_enum_frame_size() 137 mutex_lock(&sru->entity.lock); in sru_enum_frame_size() 163 mutex_unlock(&sru->entity.lock); in sru_enum_frame_size() 188 format = vsp1_entity_get_pad_format(&sru->entity, sd_state, in sru_try_format() 228 mutex_lock(&sru->entity.lock); in sru_set_format() 230 config = vsp1_entity_get_pad_config(&sru->entity, sd_state, in sru_set_format() 239 format = vsp1_entity_get_pad_format(&sru->entity, config, fmt->pad); in sru_set_format() 244 format = vsp1_entity_get_pad_format(&sru->entity, config, in sru_set_format() 252 mutex_unlock(&sru->entity.lock); in sru_set_format() [all …]
|
D | vsp1_wpf.c | 32 vsp1_dl_body_write(dlb, reg + wpf->entity.index * VI6_WPF_OFFSET, data); in vsp1_wpf_write() 68 sink_format = vsp1_entity_get_pad_format(&wpf->entity, in vsp1_wpf_set_rotation() 69 wpf->entity.config, in vsp1_wpf_set_rotation() 71 source_format = vsp1_entity_get_pad_format(&wpf->entity, 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() 136 struct vsp1_device *vsp1 = wpf->entity.vsp1; in wpf_init_controls() 141 if (wpf->entity.index != 0) { in wpf_init_controls() 181 wpf->entity.index); in wpf_init_controls() [all …]
|
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() 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 config = vsp1_entity_get_pad_config(&uif->entity, sd_state, in uif_get_selection() 108 format = vsp1_entity_get_pad_format(&uif->entity, config, in uif_get_selection() 117 sel->r = *vsp1_entity_get_pad_selection(&uif->entity, config, in uif_get_selection() 127 mutex_unlock(&uif->entity.lock); in uif_get_selection() 145 mutex_lock(&uif->entity.lock); in uif_set_selection() 147 config = vsp1_entity_get_pad_config(&uif->entity, sd_state, in uif_set_selection() [all …]
|
D | vsp1_drv.c | 63 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 …]
|
D | vsp1_video.c | 54 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() 200 format = vsp1_entity_get_pad_format(&pipe->output->entity, in vsp1_video_calculate_partition() 201 pipe->output->entity.config, in vsp1_video_calculate_partition() 255 struct vsp1_device *vsp1 = pipe->output->entity.vsp1; in vsp1_video_pipeline_setup_partitions() 257 struct vsp1_entity *entity; in vsp1_video_pipeline_setup_partitions() local 265 format = vsp1_entity_get_pad_format(&pipe->output->entity, in vsp1_video_pipeline_setup_partitions() 266 pipe->output->entity.config, in vsp1_video_pipeline_setup_partitions() 275 list_for_each_entry(entity, &pipe->entities, list_pipe) { in vsp1_video_pipeline_setup_partitions() 278 if (!entity->ops->max_width) in vsp1_video_pipeline_setup_partitions() [all …]
|
D | vsp1_rpf.c | 42 vsp1_dl_body_write(dlb, reg + rpf->entity.index * VI6_RPF_OFFSET, in vsp1_rpf_write() 58 static void rpf_configure_stream(struct vsp1_entity *entity, in rpf_configure_stream() argument 63 struct vsp1_rwpf *rpf = to_rwpf(&entity->subdev); in rpf_configure_stream() 91 sink_format = vsp1_entity_get_pad_format(&rpf->entity, in rpf_configure_stream() 92 rpf->entity.config, in rpf_configure_stream() 94 source_format = vsp1_entity_get_pad_format(&rpf->entity, 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() [all …]
|
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() 84 format = vsp1_entity_get_pad_format(&rwpf->entity, config, fmt->pad); 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() 145 if (rwpf->entity.type == VSP1_ENTITY_WPF || sel->pad != RWPF_PAD_SINK) in vsp1_rwpf_get_selection() 148 mutex_lock(&rwpf->entity.lock); in vsp1_rwpf_get_selection() 150 config = vsp1_entity_get_pad_config(&rwpf->entity, sd_state, in vsp1_rwpf_get_selection() [all …]
|
/linux-6.6.21/include/media/ |
D | media-entity.h | 92 struct media_entity *entity; member 187 struct media_entity *entity; member 237 struct media_entity *entity; member 277 int (*get_fwnode_pad)(struct media_entity *entity, 279 int (*link_setup)(struct media_entity *entity, 283 bool (*has_pad_interdep)(struct media_entity *entity, unsigned int pad0, 385 #define media_entity_for_each_pad(entity, iter) \ argument 386 for (iter = (entity)->pads; \ 387 iter < &(entity)->pads[(entity)->num_pads]; \ 433 static inline u32 media_entity_id(struct media_entity *entity) in media_entity_id() argument [all …]
|
/linux-6.6.21/drivers/media/v4l2-core/ |
D | v4l2-mc.c | 25 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 …]
|
/linux-6.6.21/drivers/media/mc/ |
D | mc-entity.c | 123 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() 204 entity->num_pads = num_pads; in media_entity_pads_init() 205 entity->pads = pads; in media_entity_pads_init() 210 media_entity_for_each_pad(entity, iter) { in media_entity_pads_init() 211 iter->entity = entity; in media_entity_pads_init() 253 static bool media_entity_has_pad_interdep(struct media_entity *entity, in media_entity_has_pad_interdep() argument 256 if (pad0 >= entity->num_pads || pad1 >= entity->num_pads) in media_entity_has_pad_interdep() 259 if (entity->pads[pad0].flags & entity->pads[pad1].flags & in media_entity_has_pad_interdep() [all …]
|
D | mc-device.c | 83 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 …]
|
/linux-6.6.21/drivers/staging/media/imx/ |
D | imx-media-dev-common.c | 55 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 …]
|
/linux-6.6.21/drivers/media/usb/au0828/ |
D | au0828-core.c | 216 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 …]
|
/linux-6.6.21/drivers/net/wwan/t7xx/ |
D | t7xx_pci.c | 154 struct md_pm_entity *entity; in t7xx_pci_pm_entity_register() local 157 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in t7xx_pci_pm_entity_register() 158 if (entity->id == pm_entity->id) { in t7xx_pci_pm_entity_register() 164 list_add_tail(&pm_entity->entity, &t7xx_dev->md_pm_entities); in t7xx_pci_pm_entity_register() 171 struct md_pm_entity *entity, *tmp_entity; in t7xx_pci_pm_entity_unregister() local 174 list_for_each_entry_safe(entity, tmp_entity, &t7xx_dev->md_pm_entities, entity) { in t7xx_pci_pm_entity_unregister() 175 if (entity->id == pm_entity->id) { in t7xx_pci_pm_entity_unregister() 176 list_del(&pm_entity->entity); in t7xx_pci_pm_entity_unregister() 278 struct md_pm_entity *entity; in __t7xx_pci_pm_suspend() local 298 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_suspend() [all …]
|
/linux-6.6.21/include/drm/ |
D | gpu_scheduler.h | 354 struct drm_sched_entity *entity; member 529 struct drm_sched_entity *entity, 546 void drm_sched_entity_modify_sched(struct drm_sched_entity *entity, 559 struct drm_sched_entity *entity); 563 struct drm_sched_entity *entity); 565 struct drm_sched_entity *entity); 567 void drm_sched_rq_update_fifo(struct drm_sched_entity *entity, ktime_t ts); 569 int drm_sched_entity_init(struct drm_sched_entity *entity, 574 long drm_sched_entity_flush(struct drm_sched_entity *entity, long timeout); 575 void drm_sched_entity_fini(struct drm_sched_entity *entity); [all …]
|