Exploit databaseDownload repository ZIP
GH-9a497cc26994d431b276e9e3b7a8f75c
satheesh575555/linux-4.19.72_cve-2023-0386
Sources for CVE-2023-0386
19 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files30
satheesh575555/linux-4.19.72_cve-2023-0386Revision ef9a4a9fbf2b
- ↑..Parent directory
- vdec/
- venc/
- Makefile
- mtk_vcodec_dec.c
- mtk_vcodec_dec.h
- mtk_vcodec_dec_drv.c
- mtk_vcodec_dec_pm.c
- mtk_vcodec_dec_pm.h
- mtk_vcodec_drv.h
- mtk_vcodec_enc.c
- mtk_vcodec_enc.h
- mtk_vcodec_enc_drv.c
- mtk_vcodec_enc_pm.c
- mtk_vcodec_enc_pm.h
- mtk_vcodec_intr.c
- mtk_vcodec_intr.h
- mtk_vcodec_util.c
- mtk_vcodec_util.h
- vdec_drv_base.h
- vdec_drv_if.c
- vdec_drv_if.h
- vdec_ipi_msg.h
- vdec_vpu_if.c
- vdec_vpu_if.h
- venc_drv_base.h
- venc_drv_if.c
- venc_drv_if.h
- venc_ipi_msg.h
- venc_vpu_if.c
- venc_vpu_if.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
drivers/media/platform/mtk-vcodec/venc_vpu_if.h
Text · 1,893 bytes/*
* Copyright (c) 2016 MediaTek Inc.
* Author: PoChun Lin <[email protected]>
*
* This program is free software; you can redistribute it and/or
* modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef _VENC_VPU_IF_H_
#define _VENC_VPU_IF_H_
#include "mtk_vpu.h"
#include "venc_drv_if.h"
/*
* struct venc_vpu_inst - encoder VPU driver instance
* @wq_hd: wait queue used for vpu cmd trigger then wait vpu interrupt done
* @signaled: flag used for checking vpu interrupt done
* @failure: flag to show vpu cmd succeeds or not
* @state: enum venc_ipi_msg_enc_state
* @bs_size: bitstream size for skip frame case usage
* @is_key_frm: key frame flag
* @inst_addr: VPU instance addr
* @vsi: driver structure allocated by VPU side and shared to AP side for
* control and info share
* @id: the id of inter-processor interrupt
* @ctx: context for v4l2 layer integration
* @dev: device for v4l2 layer integration
*/
struct venc_vpu_inst {
wait_queue_head_t wq_hd;
int signaled;
int failure;
int state;
int bs_size;
int is_key_frm;
unsigned int inst_addr;
void *vsi;
enum ipi_id id;
struct mtk_vcodec_ctx *ctx;
struct platform_device *dev;
};
int vpu_enc_init(struct venc_vpu_inst *vpu);
int vpu_enc_set_param(struct venc_vpu_inst *vpu,
enum venc_set_param_type id,
struct venc_enc_param *param);
int vpu_enc_encode(struct venc_vpu_inst *vpu, unsigned int bs_mode,
struct venc_frm_buf *frm_buf,
struct mtk_vcodec_mem *bs_buf,
unsigned int *bs_size);
int vpu_enc_deinit(struct venc_vpu_inst *vpu);
#endif