| /OK3568_Linux_fs/kernel/drivers/gpu/drm/scheduler/ |
| H A D | sched_entity.c | 37 * drm_sched_entity_init - Init a context entity used by scheduler when 40 * @entity: scheduler entity to init 41 * @priority: priority of the entity 43 * entity can be submitted 49 * the entity 53 int drm_sched_entity_init(struct drm_sched_entity *entity, in drm_sched_entity_init() argument 59 if (!(entity && sched_list && (num_sched_list == 0 || sched_list[0]))) in drm_sched_entity_init() 62 memset(entity, 0, sizeof(struct drm_sched_entity)); in drm_sched_entity_init() 63 INIT_LIST_HEAD(&entity->list); in drm_sched_entity_init() 64 entity->rq = NULL; in drm_sched_entity_init() [all …]
|
| H A D | sched_main.c | 44 * The jobs in a entity are always scheduled in the order that they were pushed. 82 * drm_sched_rq_add_entity - add an entity 85 * @entity: scheduler entity 87 * Adds a scheduler entity to the run queue. 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() 96 list_add_tail(&entity->list, &rq->entities); in drm_sched_rq_add_entity() 101 * drm_sched_rq_remove_entity - remove an entity 104 * @entity: scheduler entity 106 * Removes a scheduler entity from the run queue. [all …]
|
| /OK3568_Linux_fs/kernel/block/ |
| H A 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() 52 * @new_entity: if not NULL, pointer to the entity whose activation, 56 * expiration of the in-service entity 60 * extraction of an entity into/from one of the active trees of 65 * reposition an entity in its active tree; see comments on 68 * just activated or requeued entity. 71 * entity->parent may become the next_in_service for its parent 72 * entity. 84 * or repositioning of an entity that does not coincide with in bfq_update_next_in_service() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/usb/uvc/ |
| H A 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 …]
|
| H A D | uvc_ctrl.c | 38 .entity = UVC_GUID_UVC_PROCESSING, 47 .entity = UVC_GUID_UVC_PROCESSING, 56 .entity = UVC_GUID_UVC_PROCESSING, 66 .entity = UVC_GUID_UVC_PROCESSING, 75 .entity = UVC_GUID_UVC_PROCESSING, 84 .entity = UVC_GUID_UVC_PROCESSING, 93 .entity = UVC_GUID_UVC_PROCESSING, 103 .entity = UVC_GUID_UVC_PROCESSING, 113 .entity = UVC_GUID_UVC_PROCESSING, 122 .entity = UVC_GUID_UVC_PROCESSING, [all …]
|
| /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq_3A_server/common/mediactl/ |
| H A D | mediactl.c | 56 for (i = 0; i < pad->entity->num_links; ++i) { in media_entity_remote_source() 57 struct media_link *link = &pad->entity->links[i]; in media_entity_remote_source() 74 /* A match is impossible if the entity name is longer than the maximum in media_get_entity_by_name() 81 struct media_entity *entity = &media->entities[i]; in media_get_entity_by_name() local 83 if (strncmp(entity->info.name, name, length) == 0 && in media_get_entity_by_name() 84 entity->info.name[length] == '\0') { in media_get_entity_by_name() 85 return entity; in media_get_entity_by_name() 89 printf("media get entity by name: %s is null\n", name); in media_get_entity_by_name() 102 struct media_entity *entity = &media->entities[i]; in media_get_entity_by_id() local 104 if ((entity->info.id == id && !next) || in media_get_entity_by_id() [all …]
|
| H A D | mediactl.h | 40 struct media_entity *entity; member 104 * @brief Add an entity to an existing media device 106 * @param desc - description of the entity to be added 107 * @param devnode - device node corresponding to the entity 121 * This function adds a new entity to the given media device and initializes it 122 * from the given entity description and device node name. Only the following 123 * fields of the description are copied over to the new entity: 130 * All other fields of the newly created entity id are initialized to 0, 131 * including the entity ID. 178 * @brief Get information about a media entity [all …]
|
| H A D | v4l2subdev.h | 31 * @param entity - sub-device media entity. 33 * Open the V4L2 subdev device node associated with @a entity. The file 38 int v4l2_subdev_open(struct media_entity *entity); 42 * @param entity - sub-device media entity. 44 * Close the V4L2 subdev device node associated with the @a entity and opened by 47 void v4l2_subdev_close(struct media_entity *entity); 51 * @param entity - subdev-device media entity. 56 * Retrieve the current format on the @a entity @a pad and store it in the 65 int v4l2_subdev_get_format(struct media_entity *entity, 71 * @param entity - subdev-device media entity. [all …]
|
| /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/common/mediactl/ |
| H A D | mediactl.c | 58 for (i = 0; i < pad->entity->num_links; ++i) { in media_entity_remote_source() 59 struct media_link *link = &pad->entity->links[i]; in media_entity_remote_source() 76 /* A match is impossible if the entity name is longer than the maximum in media_get_entity_by_name() 83 struct media_entity *entity = &media->entities[i]; in media_get_entity_by_name() local 85 if (strncmp(entity->info.name, name, length) == 0 && in media_get_entity_by_name() 86 entity->info.name[length] == '\0') { in media_get_entity_by_name() 87 return entity; in media_get_entity_by_name() 91 LOGW("media get entity by name: %s is null\n", name); in media_get_entity_by_name() 104 struct media_entity *entity = &media->entities[i]; in media_get_entity_by_id() local 106 if ((entity->info.id == id && !next) || in media_get_entity_by_id() [all …]
|
| H A D | v4l2subdev.h | 35 * @param entity - sub-device media entity. 37 * Open the V4L2 subdev device node associated with @a entity. The file 42 int v4l2_subdev_open(struct media_entity *entity); 46 * @param entity - sub-device media entity. 48 * Close the V4L2 subdev device node associated with the @a entity and opened by 51 void v4l2_subdev_close(struct media_entity *entity); 55 * @param entity - subdev-device media entity. 60 * Retrieve the current format on the @a entity @a pad and store it in the 69 int v4l2_subdev_get_format(struct media_entity *entity, 75 * @param entity - subdev-device media entity. [all …]
|
| /OK3568_Linux_fs/yocto/poky/meta/recipes-core/libxml/libxml2/ |
| H A D | CVE-2022-40304.patch | 6 Fix dict corruption caused by entity reference cycles 8 When an entity reference cycle is detected, the entity content is 9 cleared by setting its first byte to zero. But the entity content might 14 Stop storing entity content, orig, ExternalID and SystemID in a dict. 32 @@ -112,36 +112,19 @@ xmlFreeEntity(xmlEntityPtr entity) 33 if ((entity->children) && (entity->owner == 1) && 34 (entity == (xmlEntityPtr) entity->children->parent)) 35 xmlFreeNodeList(entity->children); 37 - if ((entity->name != NULL) && (!xmlDictOwns(dict, entity->name))) 38 - xmlFree((char *) entity->name); [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/platform/vsp1/ |
| H A D | vsp1_entity.c | 3 * vsp1_entity.c -- R-Car VSP1 Base Entity 13 #include <media/media-entity.h> 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() [all …]
|
| H A D | vsp1_entity.h | 3 * vsp1_entity.h -- R-Car VSP1 Base Entity 44 * struct vsp1_route - Entity routing configuration 45 * @type: Entity type this routing entry is associated with 46 * @index: Entity index this routing entry is associated with 49 * @output: Target node value for entity output 51 * Each $vsp1_route entry describes routing configuration for the entity 53 * holds output routing configuration for the entity, and the @inputs array 54 * store the target node value for each input of the entity. The @output field 55 * stores the target node value of the entity output when used as a source for 67 * struct vsp1_entity_operations - Entity operations [all …]
|
| H A 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 …]
|
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/media/mc/ |
| H A D | mc-entity.c | 3 * Media entity 14 #include <media/media-entity.h> 21 return "entity"; in gobj_type() 100 "%s id %u: entity '%s'\n", in dev_dbg_obj() 126 pad->entity->name, pad->index); in dev_dbg_obj() 197 int media_entity_pads_init(struct media_entity *entity, u16 num_pads, in media_entity_pads_init() argument 200 struct media_device *mdev = entity->graph_obj.mdev; in media_entity_pads_init() 206 entity->num_pads = num_pads; in media_entity_pads_init() 207 entity->pads = pads; in media_entity_pads_init() 213 pads[i].entity = entity; in media_entity_pads_init() [all …]
|
| H A D | mc-device.c | 25 #include <media/media-entity.h> 84 struct media_entity *entity; in find_entity() local 89 media_device_for_each_entity(entity, mdev) { in find_entity() 90 if (((media_entity_id(entity) == id) && !next) || in find_entity() 91 ((media_entity_id(entity) > id) && next)) { in find_entity() 92 return entity; in find_entity() 122 * do the wrong thing if the entity function doesn't belong to in media_device_enum_entities() 147 upad->entity = media_entity_id(kpad->entity); in media_device_kpad_to_upad() 155 struct media_entity *entity; in media_device_enum_links() local 157 entity = find_entity(mdev, links->entity); in media_device_enum_links() [all …]
|
| /OK3568_Linux_fs/kernel/include/media/ |
| H A D | media-entity.h | 3 * Media entity 27 * @MEDIA_GRAPH_ENTITY: Identify a media entity 69 * @bmap: Bit map in which each bit represents one entity at struct 84 * @stack.entity: pointer to &struct media_entity at the graph. 91 struct media_entity *entity; member 114 * @list: Linked list associated with an entity or an interface that 126 * @entity: Part of a union. Used only if the second object (gobj1) is 127 * an entity. 144 struct media_entity *entity; member 184 * @entity: Entity this pad belongs to [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/v4l2-core/ |
| H A D | v4l2-mc.c | 16 #include <media/media-entity.h> 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() [all …]
|
| /OK3568_Linux_fs/external/camera_engine_rkaiq/rk_stream/stream_cfg/ |
| H A D | MediaInfo.cpp | 153 // sensor entity name format SHOULD be like this: in parse_module_info() 163 LOGE_RKSTREAM("%d:parse sensor entity name %s error at %d, please check sensor driver !", in parse_module_info() 174 LOGE_RKSTREAM("%d:parse sensor entity name %s error at %d, please check sensor driver !", in parse_module_info() 183 LOGE_RKSTREAM("%d:parse sensor entity name %s error at %d, please check sensor driver !", in parse_module_info() 192 LOGE_RKSTREAM("%d:parse sensor entity name %s error at %d, please check sensor driver !", in parse_module_info() 201 LOGE_RKSTREAM("%d:parse sensor entity name %s error at %d, please check sensor driver !", in parse_module_info() 219 media_entity *entity = NULL; in get_ispp_subdevs() local 272 entity = media_get_entity_by_name(device, "rkispp_input_image", strlen("rkispp_input_image")); in get_ispp_subdevs() 273 if(entity) { in get_ispp_subdevs() 274 entity_name = media_entity_get_devname (entity); in get_ispp_subdevs() [all …]
|
| /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/include/common/mediactl/ |
| H A D | mediactl.h | 40 struct media_entity *entity; member 104 * @brief Add an entity to an existing media device 106 * @param desc - description of the entity to be added 107 * @param devnode - device node corresponding to the entity 121 * This function adds a new entity to the given media device and initializes it 122 * from the given entity description and device node name. Only the following 123 * fields of the description are copied over to the new entity: 130 * All other fields of the newly created entity id are initialized to 0, 131 * including the entity ID. 178 * @brief Get information about a media entity [all …]
|
| /OK3568_Linux_fs/external/camera_engine_rkaiq/media_enquiry/media_enquiry/ |
| H A D | media_enquiry.cpp | 144 media_entity *entity = NULL; in get_isp_dev_info_by_name() local 170 entity =media_get_entity_by_name(device, "rkisp_mainpath", strlen("rkisp_mainpath")); in get_isp_dev_info_by_name() 171 if (entity) { in get_isp_dev_info_by_name() 172 pipeline->entities[pipeline->entity_num] = entity; in get_isp_dev_info_by_name() 177 entity =media_get_entity_by_name(device, "rkisp_selfpath", strlen("rkisp_selfpath")); in get_isp_dev_info_by_name() 178 if (entity) { in get_isp_dev_info_by_name() 179 pipeline->entities[pipeline->entity_num] = entity; in get_isp_dev_info_by_name() 185 entity =media_get_entity_by_name(device, "rkisp-isp-subdev", strlen("rkisp-isp-subdev")); in get_isp_dev_info_by_name() 186 if (entity) { in get_isp_dev_info_by_name() 187 pipeline->entities[pipeline->entity_num] = entity; in get_isp_dev_info_by_name() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/media/imx/ |
| H A D | imx-media-dev-common.c | 64 * Continues upstream from the pad entity's sink pads. 70 struct media_entity *entity = srcpad->entity; in imx_media_add_vdev_to_pad() local 77 /* skip this entity if not a v4l2_subdev */ in imx_media_add_vdev_to_pad() 78 if (!is_media_entity_v4l2_subdev(entity)) in imx_media_add_vdev_to_pad() 81 sd = media_entity_to_v4l2_subdev(entity); in imx_media_add_vdev_to_pad() 86 entity->name, srcpad->index); in imx_media_add_vdev_to_pad() 89 * just skip this entity. in imx_media_add_vdev_to_pad() 101 vdev->vfd->entity.name, entity->name, srcpad->index); in imx_media_add_vdev_to_pad() 111 /* move upstream from this entity's sink pads */ in imx_media_add_vdev_to_pad() 112 for (i = 0; i < entity->num_pads; i++) { in imx_media_add_vdev_to_pad() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/driver-api/media/ |
| H A D | mc-core.rst | 21 An entity is a basic media hardware building block. It can correspond to 27 A pad is a connection endpoint through which an entity can interact with 28 other entities. Data (not restricted to video) produced by an entity 29 flows from the entity's output to one or more entity inputs. Pads should 33 on the same entity or on different entities. Data flows from a source 53 instance, defined in ``include/media/media-entity.h``. The structure is usually 58 Drivers initialize entity pads by calling 71 ``include/media/media-entity.h``. Currently, only one type of interface is 83 defined in ``include/media/media-entity.h``. Each entity stores its pads in 84 a pads array managed by the entity driver. Drivers usually embed the array in [all …]
|
| /OK3568_Linux_fs/external/camera_engine_rkaiq/media_enquiry/media_enquiry/mediactl/ |
| H A D | v4l2subdev.c | 42 int v4l2_subdev_open(struct media_entity *entity) in v4l2_subdev_open() argument 44 if (entity->fd != -1) in v4l2_subdev_open() 47 entity->fd = open(entity->devname, O_RDWR); in v4l2_subdev_open() 48 if (entity->fd == -1) { in v4l2_subdev_open() 50 media_dbg(entity->media, in v4l2_subdev_open() 52 entity->devname); in v4l2_subdev_open() 59 void v4l2_subdev_close(struct media_entity *entity) in v4l2_subdev_close() argument 61 close(entity->fd); in v4l2_subdev_close() 62 entity->fd = -1; in v4l2_subdev_close() 65 int v4l2_subdev_get_format(struct media_entity *entity, in v4l2_subdev_get_format() argument [all …]
|