/drivers/media/usb/uvc/ |
H A D | uvc_entity.c | 27 struct uvc_entity *entity) 34 sink = (UVC_ENTITY_TYPE(entity) == UVC_TT_STREAMING) 35 ? (entity->vdev ? &entity->vdev->entity : NULL) 36 : &entity->subdev.entity; 40 for (i = 0; i < entity->num_pads; ++i) { 45 if (!(entity->pads[i].flags & MEDIA_PAD_FL_SINK)) 48 remote = uvc_entity_by_id(chain->dev, entity 26 uvc_mc_register_entity(struct uvc_video_chain *chain, struct uvc_entity *entity) argument 74 uvc_mc_cleanup_entity(struct uvc_entity *entity) argument 82 uvc_mc_init_entity(struct uvc_entity *entity) argument 106 struct uvc_entity *entity; local [all...] |
H A D | uvc_ctrl.c | 42 .entity = UVC_GUID_UVC_PROCESSING, 51 .entity = UVC_GUID_UVC_PROCESSING, 60 .entity = UVC_GUID_UVC_PROCESSING, 70 .entity = UVC_GUID_UVC_PROCESSING, 79 .entity = UVC_GUID_UVC_PROCESSING, 88 .entity = UVC_GUID_UVC_PROCESSING, 97 .entity = UVC_GUID_UVC_PROCESSING, 107 .entity = UVC_GUID_UVC_PROCESSING, 117 .entity = UVC_GUID_UVC_PROCESSING, 126 .entity 833 uvc_entity_match_guid(const struct uvc_entity *entity, const __u8 guid[16]) argument 859 __uvc_find_control(struct uvc_entity *entity, __u32 v4l2_id, struct uvc_control_mapping **mapping, struct uvc_control **control, int next) argument 895 struct uvc_entity *entity; local 1389 uvc_ctrl_commit_entity(struct uvc_device *dev, struct uvc_entity *entity, int rollback) argument 1444 struct uvc_entity *entity; local 1597 u8 entity; member in struct:uvc_ctrl_fixup 1722 struct uvc_entity *entity; local 1853 struct uvc_entity *entity; local 1960 struct uvc_entity *entity; local 2038 uvc_ctrl_prune_entity(struct uvc_device *dev, struct uvc_entity *entity) argument 2138 struct uvc_entity *entity; local 2206 struct uvc_entity *entity; local [all...] |
/drivers/isdn/hardware/eicon/ |
H A D | um_idi.h | 13 int divas_um_idi_delete_entity(int adapter_nr, void *entity); 24 int diva_um_idi_read(void *entity, 29 int diva_um_idi_write(void *entity, 34 int diva_user_mode_idi_ind_ready(void *entity, void *os_handle); 35 void *diva_um_id_get_os_context(void *entity); 37 int divas_um_idi_entity_assigned(void *entity); 38 int divas_um_idi_entity_start_remove(void *entity); 40 void diva_um_idi_start_wdog(void *entity); 41 void diva_um_idi_stop_wdog(void *entity);
|
H A D | divasi.c | 80 static int remove_entity(void *entity); 468 DBG_ERR(("entity removal watchdog")) 472 ** If application exits without entity removal this function will remove 473 ** entity and block until removal is complete 475 static int remove_entity(void *entity) argument 480 diva_um_idi_stop_wdog(entity); 482 if (!entity) { 483 DBG_FTL(("Zero entity on remove")) 489 diva_um_id_get_os_context(entity))) { 490 DBG_FTL(("Zero entity o 555 diva_um_idi_start_wdog(void *entity) argument 567 diva_um_idi_stop_wdog(void *entity) argument [all...] |
/drivers/media/ |
H A D | media-entity.c | 2 * Media entity 26 #include <media/media-entity.h> 30 * media_entity_init - Initialize a media entity 37 * entity driver, while the total number of links depends on hardware design 38 * and is an extrinsic property unknown to the entity driver. However, in most 39 * use cases the entity driver can guess the number of links which can safely 42 * For those reasons the links array can be preallocated based on the entity 50 * The pads array is managed by the entity driver and passed to 51 * media_entity_init() where its pointer will be stored in the entity structure. 54 media_entity_init(struct media_entity *entity, u1 argument 83 media_entity_cleanup(struct media_entity *entity) argument 94 media_entity_other(struct media_entity *entity, struct media_link *link) argument 103 stack_push(struct media_entity_graph *graph, struct media_entity *entity) argument 117 struct media_entity *entity; local 138 media_entity_graph_walk_start(struct media_entity_graph *graph, struct media_entity *entity) argument 177 struct media_entity *entity = stack_top(graph); local 225 media_entity_pipeline_start(struct media_entity *entity, struct media_pipeline *pipe) argument 337 media_entity_pipeline_stop(struct media_entity *entity) argument 370 media_entity_get(struct media_entity *entity) argument 391 media_entity_put(struct media_entity *entity) argument 405 media_entity_add_link(struct media_entity *entity) argument 467 __media_entity_remove_links(struct media_entity *entity) argument 505 media_entity_remove_links(struct media_entity *entity) argument [all...] |
H A D | media-device.c | 31 #include <media/media-entity.h> 70 struct media_entity *entity; local 77 media_device_for_each_entity(entity, mdev) { 78 if ((entity->id == id && !next) || 79 (entity->id > id && next)) { 81 return entity; 123 upad->entity = kpad->entity->id; 131 struct media_entity *entity; local 133 entity 275 __u32 entity; member in struct:media_links_enum32 410 struct media_entity *entity; local 426 media_device_register_entity(struct media_device *mdev, struct media_entity *entity) argument 452 media_device_unregister_entity(struct media_entity *entity) argument [all...] |
/drivers/media/platform/vsp1/ |
H A D | vsp1_hsit.h | 16 #include <media/media-entity.h> 27 struct vsp1_entity entity; member in struct:vsp1_hsit 33 return container_of(subdev, struct vsp1_hsit, entity.subdev);
|
H A D | vsp1_lif.h | 16 #include <media/media-entity.h> 27 struct vsp1_entity entity; member in struct:vsp1_lif 32 return container_of(subdev, struct vsp1_lif, entity.subdev);
|
H A D | vsp1_lut.h | 16 #include <media/media-entity.h> 27 struct vsp1_entity entity; member in struct:vsp1_lut 33 return container_of(subdev, struct vsp1_lut, entity.subdev);
|
H A D | vsp1_entity.c | 17 #include <media/media-entity.h> 25 bool vsp1_entity_is_streaming(struct vsp1_entity *entity) argument 29 mutex_lock(&entity->lock); 30 streaming = entity->streaming; 31 mutex_unlock(&entity->lock); 36 int vsp1_entity_set_streaming(struct vsp1_entity *entity, bool streaming) argument 40 mutex_lock(&entity->lock); 41 entity->streaming = streaming; 42 mutex_unlock(&entity->lock); 47 if (!entity 65 vsp1_entity_get_pad_format(struct vsp1_entity *entity, struct v4l2_subdev_fh *fh, unsigned int pad, u32 which) argument 121 vsp1_entity_link_setup(struct media_entity *entity, const struct media_pad *local, const struct media_pad *remote, u32 flags) argument 180 vsp1_entity_init(struct vsp1_device *vsp1, struct vsp1_entity *entity, unsigned int num_pads) argument 224 vsp1_entity_destroy(struct vsp1_entity *entity) argument [all...] |
H A D | vsp1_sru.h | 16 #include <media/media-entity.h> 28 struct vsp1_entity entity; member in struct:vsp1_sru 35 return container_of(subdev, struct vsp1_sru, entity.subdev);
|
H A D | vsp1_uds.h | 16 #include <media/media-entity.h> 27 struct vsp1_entity entity; member in struct:vsp1_uds 33 return container_of(subdev, struct vsp1_uds, entity.subdev);
|
H A D | vsp1_wpf.c | 31 return vsp1_read(wpf->entity.vsp1, 32 reg + wpf->entity.index * VI6_WPF_OFFSET); 37 vsp1_write(wpf->entity.vsp1, 38 reg + wpf->entity.index * VI6_WPF_OFFSET, data); 51 if (!vsp1_entity_is_streaming(&wpf->entity)) 76 struct vsp1_pipeline *pipe = to_vsp1_pipeline(&subdev->entity); 78 struct vsp1_device *vsp1 = wpf->entity.vsp1; 85 ret = vsp1_entity_set_streaming(&wpf->entity, enable); 90 vsp1_write(vsp1, VI6_WPF_IRQ_ENB(wpf->entity.index), 0); 103 ? VI6_WPF_SRCRPF_RPF_ACT_MST(input->entity [all...] |
H A D | vsp1_bru.h | 16 #include <media/media-entity.h> 29 struct vsp1_entity entity; member in struct:vsp1_bru 41 return container_of(subdev, struct vsp1_bru, entity.subdev);
|
H A D | vsp1_rpf.c | 31 return vsp1_read(rpf->entity.vsp1, 32 reg + rpf->entity.index * VI6_RPF_OFFSET); 37 vsp1_write(rpf->entity.vsp1, 38 reg + rpf->entity.index * VI6_RPF_OFFSET, data); 51 if (!vsp1_entity_is_streaming(&rpf->entity)) 59 pipe = to_vsp1_pipeline(&rpf->entity.subdev.entity); 60 vsp1_pipeline_propagate_alpha(pipe, &rpf->entity, ctrl->val); 85 ret = vsp1_entity_set_streaming(&rpf->entity, enable); 127 if (rpf->entity [all...] |
H A D | vsp1_entity.h | 43 * Each $vsp1_route entry describes routing configuration for the entity 45 * holds output routing configuration for the entity, and the @inputs array 46 * store the target node value for each input of the entity. 85 int vsp1_entity_init(struct vsp1_device *vsp1, struct vsp1_entity *entity, 87 void vsp1_entity_destroy(struct vsp1_entity *entity); 93 vsp1_entity_get_pad_format(struct vsp1_entity *entity, 99 bool vsp1_entity_is_streaming(struct vsp1_entity *entity); 100 int vsp1_entity_set_streaming(struct vsp1_entity *entity, bool streaming);
|
H A D | vsp1_bru.c | 32 return vsp1_read(bru->entity.vsp1, reg); 37 vsp1_write(bru->entity.vsp1, reg, data); 49 if (!vsp1_entity_is_streaming(&bru->entity)) 72 struct vsp1_pipeline *pipe = to_vsp1_pipeline(&subdev->entity); 79 ret = vsp1_entity_set_streaming(&bru->entity, enable); 86 format = &bru->entity.formats[BRU_PAD_SOURCE]; 249 fmt->format = *vsp1_entity_get_pad_format(&bru->entity, fh, fmt->pad, 271 format = vsp1_entity_get_pad_format(&bru->entity, fh, 291 format = vsp1_entity_get_pad_format(&bru->entity, fh, fmt->pad, 311 format = vsp1_entity_get_pad_format(&bru->entity, f [all...] |
H A D | vsp1_drv.c | 51 pipe = to_vsp1_pipeline(&wpf->entity.subdev.entity); 76 * - from an entity to itself (no loops are allowed) 80 struct media_entity *entity = &sink->subdev.entity; local 100 for (pad = 0; pad < entity->num_pads; ++pad) { 101 if (!(entity->pads[pad].flags & MEDIA_PAD_FL_SINK)) 104 ret = media_entity_create_link(&source->subdev.entity, 106 entity, pad, flags); 111 source->sink = entity; 120 struct vsp1_entity *entity; local 136 struct vsp1_entity *entity; local [all...] |
H A D | vsp1_uds.c | 34 return vsp1_read(uds->entity.vsp1, 35 reg + uds->entity.index * VI6_UDS_OFFSET); 40 vsp1_write(uds->entity.vsp1, 41 reg + uds->entity.index * VI6_UDS_OFFSET, data); 129 input = &uds->entity.formats[UDS_PAD_SINK]; 130 output = &uds->entity.formats[UDS_PAD_SOURCE]; 135 dev_dbg(uds->entity.vsp1->dev, "hscale %u vscale %u\n", hscale, vscale); 232 fmt->format = *vsp1_entity_get_pad_format(&uds->entity, fh, fmt->pad, 259 format = vsp1_entity_get_pad_format(&uds->entity, fh, 282 format = vsp1_entity_get_pad_format(&uds->entity, f [all...] |
H A D | vsp1_video.c | 22 #include <media/media-entity.h> 164 media_entity_type(remote->entity) != MEDIA_ENT_T_V4L2_SUBDEV) 170 return media_entity_to_v4l2_subdev(remote->entity); 314 struct vsp1_entity *entity; local 322 pad = media_entity_remote_pad(&input->entity.pads[RWPF_PAD_SOURCE]); 329 if (media_entity_type(pad->entity) != MEDIA_ENT_T_V4L2_SUBDEV) 332 entity = to_vsp1_entity(media_entity_to_v4l2_subdev(pad->entity)); 337 if (entity->type == VSP1_ENTITY_BRU) { 338 struct vsp1_bru *bru = to_bru(&entity 411 struct media_entity *entity = &video->video.entity; local 519 struct vsp1_entity *entity; local 677 struct vsp1_entity *entity; local 807 struct vsp1_entity *entity; local [all...] |
H A D | vsp1_rwpf.h | 16 #include <media/media-entity.h> 28 struct vsp1_entity entity; member in struct:vsp1_rwpf 46 return container_of(subdev, struct vsp1_rwpf, entity.subdev);
|
/drivers/media/platform/exynos4-is/ |
H A D | common.h | 11 #include <media/media-entity.h> 14 struct v4l2_subdev *fimc_find_remote_sensor(struct media_entity *entity);
|
H A D | common.c | 16 /* Called with the media graph mutex held or entity->stream_count > 0. */ 17 struct v4l2_subdev *fimc_find_remote_sensor(struct media_entity *entity) argument 19 struct media_pad *pad = &entity->pads[0]; 26 media_entity_type(pad->entity) != MEDIA_ENT_T_V4L2_SUBDEV) 29 sd = media_entity_to_v4l2_subdev(pad->entity); 35 pad = &sd->entity.pads[0];
|
/drivers/staging/media/omap4iss/ |
H A D | iss.c | 144 ret = v4l2_subdev_call(media_entity_to_v4l2_subdev(link->sink->entity), 370 * To achieve this use the entity use_count field to track the number of users. 387 * @entity: The entity 391 static int iss_pipeline_pm_use_count(struct media_entity *entity) argument 396 media_entity_graph_walk_start(&graph, entity); 398 while ((entity = media_entity_graph_walk_next(&graph))) { 399 if (media_entity_type(entity) == MEDIA_ENT_T_DEVNODE) 400 use += entity->use_count; 407 * iss_pipeline_pm_power_one - Apply power change to an entity 417 iss_pipeline_pm_power_one(struct media_entity *entity, int change) argument 451 iss_pipeline_pm_power(struct media_entity *entity, int change) argument 491 omap4iss_pipeline_pm_use(struct media_entity *entity, int use) argument 577 struct media_entity *entity; local 631 struct media_entity *entity; local [all...] |
/drivers/media/platform/omap3isp/ |
H A D | isp.c | 538 pipe = to_isp_pipeline(&isp->isp_ccp2.subdev.entity); 544 pipe = to_isp_pipeline(&isp->isp_csi2a.subdev.entity); 550 pipe = to_isp_pipeline(&isp->isp_ccdc.subdev.entity); 556 pipe = to_isp_pipeline(&isp->isp_prev.subdev.entity); 565 pipe = to_isp_pipeline(&isp->isp_res.subdev.entity); 651 * To achieve this use the entity use_count field to track the number of users. 668 * @entity: The entity 672 static int isp_pipeline_pm_use_count(struct media_entity *entity) argument 677 media_entity_graph_walk_start(&graph, entity); 698 isp_pipeline_pm_power_one(struct media_entity *entity, int change) argument 731 isp_pipeline_pm_power(struct media_entity *entity, int change) argument 771 omap3isp_pipeline_pm_use(struct media_entity *entity, int use) argument 859 struct media_entity *entity; local 959 struct media_entity *entity; local [all...] |