Exploit databaseDownload repository ZIP
GH-a4473dcd9930d1ae4c0775adc06b1cfb
satheesh575555/linux-4.19.72_cve-2022-36946
Sources for CVE-2022-36946
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files32
satheesh575555/linux-4.19.72_cve-2022-36946Revision 34cc7d8183fd
- ↑..Parent directory
- Makefile
- regs-mfc-v10.h
- regs-mfc-v6.h
- regs-mfc-v7.h
- regs-mfc-v8.h
- regs-mfc.h
- s5p_mfc.c
- s5p_mfc_cmd.c
- s5p_mfc_cmd.h
- s5p_mfc_cmd_v5.c
- s5p_mfc_cmd_v5.h
- s5p_mfc_cmd_v6.c
- s5p_mfc_cmd_v6.h
- s5p_mfc_common.h
- s5p_mfc_ctrl.c
- s5p_mfc_ctrl.h
- s5p_mfc_debug.h
- s5p_mfc_dec.c
- s5p_mfc_dec.h
- s5p_mfc_enc.c
- s5p_mfc_enc.h
- s5p_mfc_intr.c
- s5p_mfc_intr.h
- s5p_mfc_iommu.h
- s5p_mfc_opr.c
- s5p_mfc_opr.h
- s5p_mfc_opr_v5.c
- s5p_mfc_opr_v5.h
- s5p_mfc_opr_v6.c
- s5p_mfc_opr_v6.h
- s5p_mfc_pm.c
- s5p_mfc_pm.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.h
Text · 2,096 bytes/*
* drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.h
*
* Header file for Samsung MFC (Multi Function Codec - FIMV) driver
* Contains declarations of hw related functions.
*
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
* http://www.samsung.com/
*
* 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.
*/
#ifndef S5P_MFC_OPR_V6_H_
#define S5P_MFC_OPR_V6_H_
#include "s5p_mfc_common.h"
#include "s5p_mfc_opr.h"
#define MFC_CTRL_MODE_CUSTOM MFC_CTRL_MODE_SFR
#define MB_WIDTH(x_size) DIV_ROUND_UP(x_size, 16)
#define MB_HEIGHT(y_size) DIV_ROUND_UP(y_size, 16)
#define S5P_MFC_DEC_MV_SIZE_V6(x, y) (MB_WIDTH(x) * \
(((MB_HEIGHT(y)+1)/2)*2) * 64 + 128)
#define S5P_MFC_DEC_MV_SIZE_V10(x, y) (MB_WIDTH(x) * \
(((MB_HEIGHT(y)+1)/2)*2) * 64 + 512)
#define S5P_MFC_LCU_WIDTH(x_size) DIV_ROUND_UP(x_size, 32)
#define S5P_MFC_LCU_HEIGHT(y_size) DIV_ROUND_UP(y_size, 32)
#define s5p_mfc_dec_hevc_mv_size(x, y) \
(DIV_ROUND_UP(x, 64) * DIV_ROUND_UP(y, 64) * 256 + 512)
/* Definition */
#define ENC_MULTI_SLICE_MB_MAX ((1 << 30) - 1)
#define ENC_MULTI_SLICE_BIT_MIN 2800
#define ENC_INTRA_REFRESH_MB_MAX ((1 << 18) - 1)
#define ENC_VBV_BUF_SIZE_MAX ((1 << 30) - 1)
#define ENC_H264_LOOP_FILTER_AB_MIN -12
#define ENC_H264_LOOP_FILTER_AB_MAX 12
#define ENC_H264_RC_FRAME_RATE_MAX ((1 << 16) - 1)
#define ENC_H263_RC_FRAME_RATE_MAX ((1 << 16) - 1)
#define ENC_H264_PROFILE_MAX 3
#define ENC_H264_LEVEL_MAX 42
#define ENC_MPEG4_VOP_TIME_RES_MAX ((1 << 16) - 1)
#define FRAME_DELTA_H264_H263 1
#define TIGHT_CBR_MAX 10
#define ENC_HEVC_RC_FRAME_RATE_MAX ((1 << 16) - 1)
#define ENC_HEVC_QP_INDEX_MIN -12
#define ENC_HEVC_QP_INDEX_MAX 12
#define ENC_HEVC_LOOP_FILTER_MIN -12
#define ENC_HEVC_LOOP_FILTER_MAX 12
#define ENC_HEVC_LEVEL_MAX 62
#define FRAME_DELTA_DEFAULT 1
struct s5p_mfc_hw_ops *s5p_mfc_init_hw_ops_v6(void);
const struct s5p_mfc_regs *s5p_mfc_init_regs_v6_plus(struct s5p_mfc_dev *dev);
#endif /* S5P_MFC_OPR_V6_H_ */