/Linux-v4.19/block/ |
D | bfq-wf2q.c | 39 static unsigned int bfq_class_idx(struct bfq_entity *entity) in bfq_class_idx() argument 41 struct bfq_queue *bfqq = bfq_entity_to_bfqq(entity); in bfq_class_idx() 153 struct bfq_entity *group_entity = bfqq->entity.parent; in bfq_bfqq_to_bfqg() 156 group_entity = &bfqq->bfqd->root_group->entity; in bfq_bfqq_to_bfqg() 158 return container_of(group_entity, struct bfq_group, entity); in bfq_bfqq_to_bfqg() 210 static bool bfq_no_longer_next_in_service(struct bfq_entity *entity) in bfq_no_longer_next_in_service() argument 214 if (bfq_entity_to_bfqq(entity)) in bfq_no_longer_next_in_service() 217 bfqg = container_of(entity, struct bfq_group, entity); in bfq_no_longer_next_in_service() 249 static bool bfq_no_longer_next_in_service(struct bfq_entity *entity) in bfq_no_longer_next_in_service() argument 265 struct bfq_queue *bfq_entity_to_bfqq(struct bfq_entity *entity) in bfq_entity_to_bfqq() argument [all …]
|
D | bfq-cgroup.c | 243 struct bfq_entity *group_entity = bfqq->entity.parent; in bfqq_group() 246 entity) : in bfqq_group() 346 void bfq_init_entity(struct bfq_entity *entity, struct bfq_group *bfqg) in bfq_init_entity() argument 348 struct bfq_queue *bfqq = bfq_entity_to_bfqq(entity); in bfq_init_entity() 350 entity->weight = entity->new_weight; in bfq_init_entity() 351 entity->orig_weight = entity->new_weight; in bfq_init_entity() 361 entity->parent = bfqg->my_entity; /* NULL for root group */ in bfq_init_entity() 362 entity->sched_data = &bfqg->sched_data; in bfq_init_entity() 460 struct bfq_entity *entity = &bfqg->entity; in bfq_pd_init() local 463 entity->orig_weight = entity->weight = entity->new_weight = d->weight; in bfq_pd_init() [all …]
|
D | bfq-iosched.h | 267 struct bfq_entity entity; member 787 struct bfq_entity entity; member 815 struct bfq_queue *bfq_entity_to_bfqq(struct bfq_entity *entity); 828 void bfq_weights_tree_add(struct bfq_data *bfqd, struct bfq_entity *entity, 831 struct bfq_entity *entity, 860 void bfq_init_entity(struct bfq_entity *entity, struct bfq_group *bfqg); 882 #define for_each_entity(entity) \ argument 883 for (; entity ; entity = entity->parent) 891 #define for_each_entity_safe(entity, parent) \ argument 892 for (; entity && ({ parent = entity->parent; 1; }); entity = parent) [all …]
|
/Linux-v4.19/drivers/media/usb/uvc/ |
D | uvc_entity.c | 23 struct uvc_entity *entity) in uvc_mc_create_links() argument 30 sink = (UVC_ENTITY_TYPE(entity) == UVC_TT_STREAMING) in uvc_mc_create_links() 31 ? (entity->vdev ? &entity->vdev->entity : NULL) in uvc_mc_create_links() 32 : &entity->subdev.entity; in uvc_mc_create_links() 36 for (i = 0; i < entity->num_pads; ++i) { in uvc_mc_create_links() 41 if (!(entity->pads[i].flags & MEDIA_PAD_FL_SINK)) in uvc_mc_create_links() 44 remote = uvc_entity_by_id(chain->dev, entity->baSourceID[i]); in uvc_mc_create_links() 49 ? (remote->vdev ? &remote->vdev->entity : NULL) in uvc_mc_create_links() 50 : &remote->subdev.entity; in uvc_mc_create_links() 67 void uvc_mc_cleanup_entity(struct uvc_entity *entity) in uvc_mc_cleanup_entity() argument [all …]
|
D | uvc_ctrl.c | 43 .entity = UVC_GUID_UVC_PROCESSING, 52 .entity = UVC_GUID_UVC_PROCESSING, 61 .entity = UVC_GUID_UVC_PROCESSING, 71 .entity = UVC_GUID_UVC_PROCESSING, 80 .entity = UVC_GUID_UVC_PROCESSING, 89 .entity = UVC_GUID_UVC_PROCESSING, 98 .entity = UVC_GUID_UVC_PROCESSING, 108 .entity = UVC_GUID_UVC_PROCESSING, 118 .entity = UVC_GUID_UVC_PROCESSING, 127 .entity = UVC_GUID_UVC_PROCESSING, [all …]
|
/Linux-v4.19/drivers/gpu/drm/scheduler/ |
D | gpu_scheduler.c | 61 static bool drm_sched_entity_is_ready(struct drm_sched_entity *entity); 90 struct drm_sched_entity *entity) in drm_sched_rq_add_entity() argument 92 if (!list_empty(&entity->list)) in drm_sched_rq_add_entity() 95 list_add_tail(&entity->list, &rq->entities); in drm_sched_rq_add_entity() 108 struct drm_sched_entity *entity) in drm_sched_rq_remove_entity() argument 110 if (list_empty(&entity->list)) in drm_sched_rq_remove_entity() 113 list_del_init(&entity->list); in drm_sched_rq_remove_entity() 114 if (rq->current_entity == entity) in drm_sched_rq_remove_entity() 129 struct drm_sched_entity *entity; in drm_sched_rq_select_entity() local 133 entity = rq->current_entity; in drm_sched_rq_select_entity() [all …]
|
/Linux-v4.19/drivers/media/platform/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 76 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, cfg, fse->which); in uds_enum_frame_size() 139 format = vsp1_entity_get_pad_format(&uds->entity, config, in uds_enum_frame_size() 142 mutex_lock(&uds->entity.lock); in uds_enum_frame_size() 162 mutex_unlock(&uds->entity.lock); in uds_enum_frame_size() 187 format = vsp1_entity_get_pad_format(&uds->entity, config, in uds_try_format() 211 mutex_lock(&uds->entity.lock); in uds_set_format() 213 config = vsp1_entity_get_pad_config(&uds->entity, cfg, fmt->which); in uds_set_format() [all …]
|
D | vsp1_brx.c | 103 return v4l2_subdev_get_try_compose(&brx->entity.subdev, cfg, pad); in brx_get_compose() 122 format = vsp1_entity_get_pad_format(&brx->entity, config, in brx_try_format() 143 mutex_lock(&brx->entity.lock); in brx_set_format() 145 config = vsp1_entity_get_pad_config(&brx->entity, cfg, fmt->which); in brx_set_format() 153 format = vsp1_entity_get_pad_format(&brx->entity, config, fmt->pad); in brx_set_format() 157 if (fmt->pad != brx->entity.source_pad) { in brx_set_format() 171 for (i = 0; i <= brx->entity.source_pad; ++i) { in brx_set_format() 172 format = vsp1_entity_get_pad_format(&brx->entity, in brx_set_format() 179 mutex_unlock(&brx->entity.lock); in brx_set_format() 190 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, cfg, fse->which); in sru_enum_frame_size() 134 format = vsp1_entity_get_pad_format(&sru->entity, config, SRU_PAD_SINK); in sru_enum_frame_size() 136 mutex_lock(&sru->entity.lock); in sru_enum_frame_size() 162 mutex_unlock(&sru->entity.lock); in sru_enum_frame_size() 187 format = vsp1_entity_get_pad_format(&sru->entity, config, in sru_try_format() 227 mutex_lock(&sru->entity.lock); in sru_set_format() 229 config = vsp1_entity_get_pad_config(&sru->entity, cfg, fmt->which); in sru_set_format() 237 format = vsp1_entity_get_pad_format(&sru->entity, config, fmt->pad); in sru_set_format() 242 format = vsp1_entity_get_pad_format(&sru->entity, config, in sru_set_format() 250 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() 95 mutex_lock(&uif->entity.lock); in uif_get_selection() 97 config = vsp1_entity_get_pad_config(&uif->entity, cfg, sel->which); in uif_get_selection() 106 format = vsp1_entity_get_pad_format(&uif->entity, config, in uif_get_selection() 115 sel->r = *vsp1_entity_get_pad_selection(&uif->entity, config, in uif_get_selection() 125 mutex_unlock(&uif->entity.lock); in uif_get_selection() 143 mutex_lock(&uif->entity.lock); in uif_set_selection() 145 config = vsp1_entity_get_pad_config(&uif->entity, cfg, sel->which); in uif_set_selection() [all …]
|
D | vsp1_drv.c | 63 vsp1_pipeline_frame_end(wpf->entity.pipe); in vsp1_irq_handler() 92 struct media_entity *entity = &sink->subdev.entity; in vsp1_create_sink_links() local 114 for (pad = 0; pad < entity->num_pads; ++pad) { in vsp1_create_sink_links() 115 if (!(entity->pads[pad].flags & MEDIA_PAD_FL_SINK)) in vsp1_create_sink_links() 118 ret = media_create_pad_link(&source->subdev.entity, in vsp1_create_sink_links() 120 entity, pad, flags); in vsp1_create_sink_links() 134 struct vsp1_entity *entity; in vsp1_uapi_create_links() local 138 list_for_each_entry(entity, &vsp1->entities, list_dev) { in vsp1_uapi_create_links() 139 if (entity->type == VSP1_ENTITY_LIF || in vsp1_uapi_create_links() 140 entity->type == VSP1_ENTITY_RPF) in vsp1_uapi_create_links() [all …]
|
D | vsp1_video.c | 56 if (!remote || !is_media_entity_v4l2_subdev(remote->entity)) in vsp1_video_remote_subdev() 62 return media_entity_to_v4l2_subdev(remote->entity); in vsp1_video_remote_subdev() 202 format = vsp1_entity_get_pad_format(&pipe->output->entity, in vsp1_video_calculate_partition() 203 pipe->output->entity.config, in vsp1_video_calculate_partition() 257 struct vsp1_device *vsp1 = pipe->output->entity.vsp1; in vsp1_video_pipeline_setup_partitions() 259 struct vsp1_entity *entity; in vsp1_video_pipeline_setup_partitions() local 267 format = vsp1_entity_get_pad_format(&pipe->output->entity, in vsp1_video_pipeline_setup_partitions() 268 pipe->output->entity.config, in vsp1_video_pipeline_setup_partitions() 277 list_for_each_entry(entity, &pipe->entities, list_pipe) { in vsp1_video_pipeline_setup_partitions() 280 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 62 struct vsp1_rwpf *rpf = to_rwpf(&entity->subdev); in rpf_configure_stream() 90 sink_format = vsp1_entity_get_pad_format(&rpf->entity, in rpf_configure_stream() 91 rpf->entity.config, in rpf_configure_stream() 93 source_format = vsp1_entity_get_pad_format(&rpf->entity, in rpf_configure_stream() 94 rpf->entity.config, in rpf_configure_stream() 157 if (entity->vsp1->info->gen == 3) { in rpf_configure_stream() 209 auto_fld = &auto_fld[rpf->entity.index]; in vsp1_rpf_configure_autofld() 222 cmd->flags |= VI6_DL_EXT_AUTOFLD_INT | BIT(16 + rpf->entity.index); in vsp1_rpf_configure_autofld() [all …]
|
D | vsp1_rwpf.c | 22 return v4l2_subdev_get_try_crop(&rwpf->entity.subdev, config, in vsp1_rwpf_get_crop() 68 mutex_lock(&rwpf->entity.lock); in vsp1_rwpf_set_format() 70 config = vsp1_entity_get_pad_config(&rwpf->entity, cfg, fmt->which); in vsp1_rwpf_set_format() 82 format = vsp1_entity_get_pad_format(&rwpf->entity, config, fmt->pad); in vsp1_rwpf_set_format() 104 if (rwpf->entity.type == VSP1_ENTITY_RPF) { in vsp1_rwpf_set_format() 116 format = vsp1_entity_get_pad_format(&rwpf->entity, config, in vsp1_rwpf_set_format() 126 mutex_unlock(&rwpf->entity.lock); in vsp1_rwpf_set_format() 143 if (rwpf->entity.type == VSP1_ENTITY_WPF || sel->pad != RWPF_PAD_SINK) in vsp1_rwpf_get_selection() 146 mutex_lock(&rwpf->entity.lock); in vsp1_rwpf_get_selection() 148 config = vsp1_entity_get_pad_config(&rwpf->entity, cfg, sel->which); in vsp1_rwpf_get_selection() [all …]
|
D | vsp1_drm.c | 128 crop = &vsp1->drm->inputs[rpf->entity.index].crop; in vsp1_du_pipeline_setup_rpf() 138 ret = v4l2_subdev_call(&rpf->entity.subdev, pad, set_fmt, NULL, in vsp1_du_pipeline_setup_rpf() 146 format.format.code, rpf->entity.index); in vsp1_du_pipeline_setup_rpf() 154 ret = v4l2_subdev_call(&rpf->entity.subdev, pad, set_selection, NULL, in vsp1_du_pipeline_setup_rpf() 162 rpf->entity.index); in vsp1_du_pipeline_setup_rpf() 170 ret = v4l2_subdev_call(&rpf->entity.subdev, pad, get_fmt, NULL, in vsp1_du_pipeline_setup_rpf() 178 format.format.code, rpf->entity.index); in vsp1_du_pipeline_setup_rpf() 182 ret = v4l2_subdev_call(&rpf->entity.subdev, pad, set_fmt, NULL, in vsp1_du_pipeline_setup_rpf() 188 ret = vsp1_du_insert_uif(vsp1, pipe, uif, &rpf->entity, RWPF_PAD_SOURCE, in vsp1_du_pipeline_setup_rpf() 207 sel.r = vsp1->drm->inputs[rpf->entity.index].compose; in vsp1_du_pipeline_setup_rpf() [all …]
|
/Linux-v4.19/drivers/media/ |
D | media-entity.c | 135 pad->entity->name, pad->index); in dev_dbg_obj() 206 int media_entity_pads_init(struct media_entity *entity, u16 num_pads, in media_entity_pads_init() argument 209 struct media_device *mdev = entity->graph_obj.mdev; in media_entity_pads_init() 215 entity->num_pads = num_pads; in media_entity_pads_init() 216 entity->pads = pads; in media_entity_pads_init() 222 pads[i].entity = entity; in media_entity_pads_init() 226 &entity->pads[i].graph_obj); in media_entity_pads_init() 241 media_entity_other(struct media_entity *entity, struct media_link *link) in media_entity_other() argument 243 if (link->source->entity == entity) in media_entity_other() 244 return link->sink->entity; in media_entity_other() [all …]
|
D | media-device.c | 90 struct media_entity *entity; in find_entity() local 95 media_device_for_each_entity(entity, mdev) { in find_entity() 96 if (((media_entity_id(entity) == id) && !next) || in find_entity() 97 ((media_entity_id(entity) > id) && next)) { in find_entity() 98 return entity; in find_entity() 153 upad->entity = media_entity_id(kpad->entity); in media_device_kpad_to_upad() 161 struct media_entity *entity; in media_device_enum_links() local 163 entity = find_entity(mdev, links->entity); in media_device_enum_links() 164 if (entity == NULL) in media_device_enum_links() 170 for (p = 0; p < entity->num_pads; p++) { in media_device_enum_links() [all …]
|
/Linux-v4.19/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-v4.19/include/media/ |
D | media-entity.h | 98 struct media_entity *entity; member 151 struct media_entity *entity; member 170 struct media_entity *entity; member 194 int (*link_setup)(struct media_entity *entity, 340 static inline u32 media_entity_id(struct media_entity *entity) in media_entity_id() argument 342 return entity->graph_obj.id; in media_entity_id() 389 static inline bool is_media_entity_v4l2_video_device(struct media_entity *entity) in is_media_entity_v4l2_video_device() argument 391 return entity && entity->obj_type == MEDIA_ENTITY_TYPE_VIDEO_DEVICE; in is_media_entity_v4l2_video_device() 402 static inline bool is_media_entity_v4l2_subdev(struct media_entity *entity) in is_media_entity_v4l2_subdev() argument 404 return entity && entity->obj_type == MEDIA_ENTITY_TYPE_V4L2_SUBDEV; in is_media_entity_v4l2_subdev() [all …]
|
/Linux-v4.19/drivers/media/platform/xilinx/ |
D | xilinx-vipp.c | 44 struct media_entity *entity; member 58 struct xvip_graph_entity *entity; in xvip_graph_find_entity() local 60 list_for_each_entry(entity, &xdev->entities, list) { in xvip_graph_find_entity() 61 if (entity->node == node) in xvip_graph_find_entity() 62 return entity; in xvip_graph_find_entity() 69 struct xvip_graph_entity *entity) in xvip_graph_build_one() argument 72 struct media_entity *local = entity->entity; in xvip_graph_build_one() 85 ep = of_graph_get_next_endpoint(entity->node, ep); in xvip_graph_build_one() 140 remote = ent->entity; in xvip_graph_build_one() 243 if (link.remote_port >= ent->entity->num_pads) { in xvip_graph_build_dma() [all …]
|
/Linux-v4.19/drivers/isdn/hardware/eicon/ |
D | um_idi.h | 14 int divas_um_idi_delete_entity(int adapter_nr, void *entity); 25 int diva_um_idi_read(void *entity, 30 int diva_um_idi_write(void *entity, 35 int diva_user_mode_idi_ind_ready(void *entity, void *os_handle); 36 void *diva_um_id_get_os_context(void *entity); 38 int divas_um_idi_entity_assigned(void *entity); 39 int divas_um_idi_entity_start_remove(void *entity); 41 void diva_um_idi_start_wdog(void *entity); 42 void diva_um_idi_stop_wdog(void *entity);
|
/Linux-v4.19/drivers/media/usb/au0828/ |
D | au0828-core.c | 232 struct media_entity *entity, *mixer = NULL, *decoder = NULL; in au0828_media_graph_notify() local 240 media_device_for_each_entity(entity, dev->media_dev) { in au0828_media_graph_notify() 241 if (entity->function == MEDIA_ENT_F_AUDIO_MIXER) in au0828_media_graph_notify() 242 mixer = entity; in au0828_media_graph_notify() 243 else if (entity->function == MEDIA_ENT_F_ATV_DECODER) in au0828_media_graph_notify() 244 decoder = entity; in au0828_media_graph_notify() 257 media_device_for_each_entity(entity, dev->media_dev) { in au0828_media_graph_notify() 258 if (entity->function == MEDIA_ENT_F_AUDIO_MIXER) in au0828_media_graph_notify() 259 mixer = entity; in au0828_media_graph_notify() 280 static int au0828_enable_source(struct media_entity *entity, in au0828_enable_source() argument [all …]
|
/Linux-v4.19/drivers/staging/media/imx/ |
D | imx-media-dev.c | 231 struct media_entity *entity = srcpad->entity; in imx_media_add_vdev_to_pad() local 239 if (!is_media_entity_v4l2_subdev(entity)) in imx_media_add_vdev_to_pad() 242 sd = media_entity_to_v4l2_subdev(entity); in imx_media_add_vdev_to_pad() 247 entity->name, srcpad->index); in imx_media_add_vdev_to_pad() 262 vdev->vfd->entity.name, entity->name, srcpad->index); in imx_media_add_vdev_to_pad() 273 for (i = 0; i < entity->num_pads; i++) { in imx_media_add_vdev_to_pad() 274 struct media_pad *pad = &entity->pads[i]; in imx_media_add_vdev_to_pad() 279 list_for_each_entry(link, &entity->links, list) { in imx_media_add_vdev_to_pad() 300 struct media_entity *entity; in imx_media_alloc_pad_vdev_lists() local 305 entity = &sd->entity; in imx_media_alloc_pad_vdev_lists() [all …]
|