| /kernel/linux/linux-5.10/drivers/media/platform/mtk-jpeg/ |
| D | mtk_jpeg_core.c | 137 struct mtk_jpeg_dev *jpeg = video_drvdata(file); in mtk_jpeg_querycap() local 139 strscpy(cap->driver, jpeg->variant->dev_name, sizeof(cap->driver)); in mtk_jpeg_querycap() 140 strscpy(cap->card, jpeg->variant->dev_name, sizeof(cap->card)); in mtk_jpeg_querycap() 142 dev_name(jpeg->dev)); in mtk_jpeg_querycap() 219 struct mtk_jpeg_dev *jpeg = ctx->jpeg; in mtk_jpeg_enum_fmt_vid_cap() local 221 return mtk_jpeg_enum_fmt(jpeg->variant->formats, in mtk_jpeg_enum_fmt_vid_cap() 222 jpeg->variant->num_formats, f, in mtk_jpeg_enum_fmt_vid_cap() 230 struct mtk_jpeg_dev *jpeg = ctx->jpeg; in mtk_jpeg_enum_fmt_vid_out() local 232 return mtk_jpeg_enum_fmt(jpeg->variant->formats, in mtk_jpeg_enum_fmt_vid_out() 233 jpeg->variant->num_formats, f, in mtk_jpeg_enum_fmt_vid_out() [all …]
|
| D | mtk_jpeg_core.h | 17 #define MTK_JPEG_NAME "mtk-jpeg" 48 * mtk_jpeg_variant - mtk jpeg driver variant 51 * @format: jpeg driver's internal color format 53 * @qops: the callback of jpeg vb2_ops 54 * @irq_handler: jpeg irq handler callback 55 * @hw_reset: jpeg hardware reset callback 56 * @m2m_ops: the callback of jpeg v4l2_m2m_ops 57 * @dev_name: jpeg device name 58 * @ioctl_ops: the callback of jpeg v4l2_ioctl_ops 78 * struct mt_jpeg - JPEG IP abstraction [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
| D | jpeg_v2_5.c | 61 adev->jpeg.num_jpeg_inst = JPEG25_MAX_HW_INSTANCES_ARCTURUS; in jpeg_v2_5_early_init() 62 for (i = 0; i < adev->jpeg.num_jpeg_inst; i++) { in jpeg_v2_5_early_init() 63 harvest = RREG32_SOC15(JPEG, i, mmCC_UVD_HARVESTING); in jpeg_v2_5_early_init() 65 adev->jpeg.harvest_config |= 1 << i; in jpeg_v2_5_early_init() 67 if (adev->jpeg.harvest_config == (AMDGPU_JPEG_HARVEST_JPEG0 | in jpeg_v2_5_early_init() 78 * jpeg_v2_5_sw_init - sw init for JPEG block 90 for (i = 0; i < adev->jpeg.num_jpeg_inst; ++i) { in jpeg_v2_5_sw_init() 91 if (adev->jpeg.harvest_config & (1 << i)) in jpeg_v2_5_sw_init() 94 /* JPEG TRAP */ in jpeg_v2_5_sw_init() 96 VCN_2_0__SRCID__JPEG_DECODE, &adev->jpeg.inst[i].irq); in jpeg_v2_5_sw_init() [all …]
|
| D | jpeg_v3_0.c | 52 u32 harvest = RREG32_SOC15(JPEG, 0, mmCC_UVD_HARVESTING); in jpeg_v3_0_early_init() 57 adev->jpeg.num_jpeg_inst = 1; in jpeg_v3_0_early_init() 66 * jpeg_v3_0_sw_init - sw init for JPEG block 78 /* JPEG TRAP */ in jpeg_v3_0_sw_init() 80 VCN_2_0__SRCID__JPEG_DECODE, &adev->jpeg.inst->irq); in jpeg_v3_0_sw_init() 92 ring = &adev->jpeg.inst->ring_dec; in jpeg_v3_0_sw_init() 96 r = amdgpu_ring_init(adev, ring, 512, &adev->jpeg.inst->irq, 0, in jpeg_v3_0_sw_init() 101 adev->jpeg.internal.jpeg_pitch = mmUVD_JPEG_PITCH_INTERNAL_OFFSET; in jpeg_v3_0_sw_init() 102 adev->jpeg.inst->external.jpeg_pitch = SOC15_REG_OFFSET(JPEG, 0, mmUVD_JPEG_PITCH); in jpeg_v3_0_sw_init() 108 * jpeg_v3_0_sw_fini - sw fini for JPEG block [all …]
|
| D | jpeg_v2_0.c | 71 adev->jpeg.num_jpeg_inst = 1; in jpeg_v2_0_early_init() 80 * jpeg_v2_0_sw_init - sw init for JPEG block 92 /* JPEG TRAP */ in jpeg_v2_0_sw_init() 94 VCN_2_0__SRCID__JPEG_DECODE, &adev->jpeg.inst->irq); in jpeg_v2_0_sw_init() 106 ring = &adev->jpeg.inst->ring_dec; in jpeg_v2_0_sw_init() 110 r = amdgpu_ring_init(adev, ring, 512, &adev->jpeg.inst->irq, in jpeg_v2_0_sw_init() 115 adev->jpeg.internal.jpeg_pitch = mmUVD_JPEG_PITCH_INTERNAL_OFFSET; in jpeg_v2_0_sw_init() 116 adev->jpeg.inst->external.jpeg_pitch = SOC15_REG_OFFSET(JPEG, 0, mmUVD_JPEG_PITCH); in jpeg_v2_0_sw_init() 122 * jpeg_v2_0_sw_fini - sw fini for JPEG block 126 * JPEG suspend and free up sw allocation [all …]
|
| D | jpeg_v1_0.c | 41 …ring->ring[(*ptr)++] = PACKETJ(SOC15_REG_OFFSET(JPEG, 0, mmUVD_JRBC_EXTERNAL_REG_BASE), 0, 0, PACK… in jpeg_v1_0_decode_ring_patch_wreg() 60 reg = SOC15_REG_OFFSET(JPEG, 0, mmUVD_LMI_JRBC_RB_MEM_RD_64BIT_BAR_LOW); in jpeg_v1_0_decode_ring_set_patch_ring() 66 reg = SOC15_REG_OFFSET(JPEG, 0, mmUVD_LMI_JRBC_RB_MEM_RD_64BIT_BAR_HIGH); in jpeg_v1_0_decode_ring_set_patch_ring() 78 reg = SOC15_REG_OFFSET(JPEG, 0, mmUVD_JRBC_RB_CNTL); in jpeg_v1_0_decode_ring_set_patch_ring() 84 reg = SOC15_REG_OFFSET(JPEG, 0, mmUVD_JRBC_RB_REF_DATA); in jpeg_v1_0_decode_ring_set_patch_ring() 90 reg = SOC15_REG_OFFSET(JPEG, 0, mmUVD_JRBC_RB_CNTL); in jpeg_v1_0_decode_ring_set_patch_ring() 95 …ring->ring[ptr++] = PACKETJ(SOC15_REG_OFFSET(JPEG, 0, mmUVD_JRBC_RB_COND_RD_TIMER), 0, 0, PACKETJ_… in jpeg_v1_0_decode_ring_set_patch_ring() 97 …ring->ring[ptr++] = PACKETJ(SOC15_REG_OFFSET(JPEG, 0, mmUVD_JRBC_RB_REF_DATA), 0, 0, PACKETJ_TYPE0… in jpeg_v1_0_decode_ring_set_patch_ring() 99 …ring->ring[ptr++] = PACKETJ(SOC15_REG_OFFSET(JPEG, 0, mmUVD_JRBC_EXTERNAL_REG_BASE), 0, 0, PACKETJ… in jpeg_v1_0_decode_ring_set_patch_ring() 117 reg = SOC15_REG_OFFSET(JPEG, 0, mmUVD_JRBC_RB_RPTR); in jpeg_v1_0_decode_ring_set_patch_ring() [all …]
|
| D | amdgpu_jpeg.c | 39 INIT_DELAYED_WORK(&adev->jpeg.idle_work, amdgpu_jpeg_idle_work_handler); in amdgpu_jpeg_sw_init() 40 mutex_init(&adev->jpeg.jpeg_pg_lock); in amdgpu_jpeg_sw_init() 41 atomic_set(&adev->jpeg.total_submission_cnt, 0); in amdgpu_jpeg_sw_init() 50 cancel_delayed_work_sync(&adev->jpeg.idle_work); in amdgpu_jpeg_sw_fini() 52 for (i = 0; i < adev->jpeg.num_jpeg_inst; ++i) { in amdgpu_jpeg_sw_fini() 53 if (adev->jpeg.harvest_config & (1 << i)) in amdgpu_jpeg_sw_fini() 56 amdgpu_ring_fini(&adev->jpeg.inst[i].ring_dec); in amdgpu_jpeg_sw_fini() 59 mutex_destroy(&adev->jpeg.jpeg_pg_lock); in amdgpu_jpeg_sw_fini() 66 cancel_delayed_work_sync(&adev->jpeg.idle_work); in amdgpu_jpeg_suspend() 79 container_of(work, struct amdgpu_device, jpeg.idle_work.work); in amdgpu_jpeg_idle_work_handler() [all …]
|
| /kernel/linux/linux-5.10/drivers/media/platform/s5p-jpeg/ |
| D | jpeg-core.c | 2 /* linux/drivers/media/platform/s5p-jpeg/jpeg-core.c 31 #include "jpeg-core.h" 32 #include "jpeg-hw-s5p.h" 33 #include "jpeg-hw-exynos4.h" 34 #include "jpeg-hw-exynos3250.h" 35 #include "jpeg-regs.h" 590 switch (ctx->jpeg->variant->version) { in s5p_jpeg_to_user_subsampling() 767 struct s5p_jpeg *jpeg = ctx->jpeg; in exynos4_jpeg_parse_decode_h_tbl() local 796 exynos4_jpeg_select_dec_h_tbl(jpeg->regs, c, in exynos4_jpeg_parse_decode_h_tbl() 804 struct s5p_jpeg *jpeg = ctx->jpeg; in exynos4_jpeg_parse_huff_tbl() local [all …]
|
| D | jpeg-regs.h | 2 /* linux/drivers/media/platform/s5p-jpeg/jpeg-regs.h 4 * Register definition file for Samsung JPEG codec driver 18 /* JPEG mode register */ 29 /* JPEG operation status register */ 45 /* JPEG restart interval register upper byte */ 48 /* JPEG restart interval register lower byte */ 51 /* JPEG vertical resolution register upper byte */ 54 /* JPEG vertical resolution register lower byte */ 57 /* JPEG horizontal resolution register upper byte */ 60 /* JPEG horizontal resolution register lower byte */ [all …]
|
| D | jpeg-core.h | 2 /* linux/drivers/media/platform/s5p-jpeg/jpeg-core.h 18 #define S5P_JPEG_M2M_NAME "s5p-jpeg" 22 /* JPEG compression quality setting */ 26 /* JPEG RGB to YCbCr conversion matrix coefficients */ 39 /* a selection of JPEG markers */ 105 * struct s5p_jpeg - JPEG IP abstraction 112 * @regs: JPEG IP registers mapping 113 * @irq: JPEG IP irq 114 * @clocks: JPEG IP clock(s) 115 * @dev: JPEG IP struct device [all …]
|
| D | Makefile | 2 s5p-jpeg-objs := jpeg-core.o jpeg-hw-exynos3250.o jpeg-hw-exynos4.o jpeg-hw-s5p.o 3 obj-$(CONFIG_VIDEO_SAMSUNG_S5P_JPEG) += s5p-jpeg.o
|
| D | jpeg-hw-s5p.c | 2 /* linux/drivers/media/platform/s5p-jpeg/jpeg-hw.h 13 #include "jpeg-core.h" 14 #include "jpeg-regs.h" 15 #include "jpeg-hw-s5p.h" 23 /* no other way but polling for when JPEG IP becomes operational */ in s5p_jpeg_reset()
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/media/ |
| D | exynos-jpeg-codec.txt | 1 Samsung S5P/Exynos SoC series JPEG codec 6 "samsung,s5pv210-jpeg", "samsung,exynos4210-jpeg", 7 "samsung,exynos3250-jpeg", "samsung,exynos5420-jpeg", 8 "samsung,exynos5433-jpeg"; 9 - reg : address and length of the JPEG codec IP register set; 10 - interrupts : specifies the JPEG codec IP interrupt; 12 - "jpeg" for the core gate clock,
|
| D | renesas,jpu.txt | 1 * Renesas JPEG Processing Unit 3 The JPEG processing unit (JPU) incorporates the JPEG codec with an encoding 4 and decoding function conforming to the JPEG baseline process, so that the JPU 5 can encode image data and decode JPEG data quickly. 20 jpeg-codec@fe980000 {
|
| D | mediatek-jpeg-encoder.txt | 1 * MediaTek JPEG Encoder 3 MediaTek JPEG Encoder is the JPEG encode hardware present in MediaTek SoCs 8 - reg : physical base address of the JPEG encoder registers and length of 13 - clock-names: must contain "jpgenc". It is the clock of JPEG encoder.
|
| D | mediatek-jpeg-decoder.txt | 1 * Mediatek JPEG Decoder 3 Mediatek JPEG Decoder is the JPEG decode hardware present in Mediatek SoCs 10 - reg : physical base address of the jpeg decoder registers and length of
|
| /kernel/linux/linux-5.10/Documentation/userspace-api/media/v4l/ |
| D | vidioc-g-jpegcomp.rst | 39 :ref:`JPEG class controls <jpeg-controls>` for image quality and JPEG 47 itself, and it'll be stored in the JPEG-encoded fields (eg; interlacing 52 and the restart interval information (all JPEG-specific stuff) should be 53 stored in the JPEG-encoded fields. These define how the JPEG field is 69 :ref:`V4L2_CID_JPEG_COMPRESSION_QUALITY <jpeg-quality-control>` 89 - See :ref:`jpeg-markers`. Deprecated. If 90 :ref:`V4L2_CID_JPEG_ACTIVE_MARKER <jpeg-active-marker-control>` 98 .. flat-table:: JPEG Markers Flags
|
| D | ext-ctrls-jpeg.rst | 6 JPEG Control Reference 9 The JPEG class includes controls for common features of JPEG encoders 17 JPEG Control IDs 21 The JPEG class descriptor. Calling 83 Specify which JPEG markers are included in compressed stream. This 105 For more details about JPEG specification, refer to :ref:`itu-t81`, 106 :ref:`jfif`, :ref:`w3c-jpeg-jfif`.
|
| D | pixfmt-reserved.rst | 64 - JPEG-Light format (Pegasus Lossless JPEG) used in Divio webcams NW 100 - JPEG compressed RGGB Bayer format used by the gspca driver. 105 - OV511 JPEG format used by the gspca driver. 110 - OV518 JPEG format used by the gspca driver. 115 - Pixart 73xx JPEG format used by the gspca driver. 208 contains interleaved JPEG and UYVY image data, followed by meta 210 actual pointer array follows immediately the interleaved JPEG/UYVY 214 The first plane can start either with JPEG or UYVY data chunk. The 216 multiplied by 2. The size of a JPEG chunk depends on the image and 228 In order to extract UYVY and JPEG frames an application can [all …]
|
| /kernel/linux/linux-5.10/include/media/ |
| D | v4l2-jpeg.h | 3 * V4L2 JPEG helpers header 7 * For reference, see JPEG ITU-T.81 (ISO/IEC 10918-1) 19 * struct v4l2_jpeg_reference - reference into the JPEG buffer 48 * struct v4l2_jpeg_frame_header - JPEG frame header 80 * struct v4l2_jpeg_scan_header - JPEG scan header 91 * struct v4l2_jpeg_header - parsed JPEG header
|
| /kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/ |
| D | 0027_linux_drivers_media.patch | 536 + tristate "IMX8 JPEG Encoder/Decoder" 552 +mxc-jpeg-encdec-objs := mxc-jpeg-hw.o mxc-jpeg.o 553 +obj-$(CONFIG_IMX8_JPEG) += mxc-jpeg-encdec.o 554 diff --git a/drivers/media/platform/imx8/mxc-jpeg-hw.c b/drivers/media/platform/imx8/mxc-jpeg-hw.c 558 +++ b/drivers/media/platform/imx8/mxc-jpeg-hw.c 562 + * i.MX8QXP/i.MX8QM JPEG encoder/decoder v4l2 driver 569 +#include "mxc-jpeg-hw.h" 582 + dev_dbg(dev, " MXC JPEG NEXT_DESCPT_PTR 0x%x\n", 584 + dev_dbg(dev, " MXC JPEG BUF_BASE0 0x%x\n", desc->buf_base0); 585 + dev_dbg(dev, " MXC JPEG BUF_BASE1 0x%x\n", desc->buf_base1); [all …]
|
| /kernel/linux/linux-5.10/drivers/media/usb/gspca/ |
| D | w996Xcf.c | 4 * GSPCA sub driver for W996[78]CF JPEG USB Dual Mode Camera Chip. 149 Upload quantization tables for the JPEG compression. 158 reg_w(sd, 0x39, 0x0010); /* JPEG clock enable */ in w9968cf_upload_quantizationtables() 166 reg_w(sd, 0x39, 0x0012); /* JPEG encoder enable */ in w9968cf_upload_quantizationtables() 384 reg_w(sd, 0x32, y1 & 0xffff); /* JPEG buf 0 low */ in w9968cf_init() 385 reg_w(sd, 0x33, y1 >> 16); /* JPEG buf 0 high */ in w9968cf_init() 387 reg_w(sd, 0x34, y1 & 0xffff); /* JPEG buf 1 low */ in w9968cf_init() 388 reg_w(sd, 0x35, y1 >> 16); /* JPEG bug 1 high */ in w9968cf_init() 390 reg_w(sd, 0x36, 0x0000);/* JPEG restart interval */ in w9968cf_init() 391 reg_w(sd, 0x37, 0x0804);/*JPEG VLE FIFO threshold*/ in w9968cf_init() [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/media/zoran/ |
| D | zr36057.h | 99 #define ZR36057_JMC 0x100 /* JPEG Mode and Control */ 113 #define ZR36057_JPC 0x104 /* JPEG Process Control */ 137 #define ZR36057_JCBA 0x11c /* JPEG Code Base Address */ 139 #define ZR36057_JCFT 0x120 /* JPEG Code FIFO Threshold */ 141 #define ZR36057_JCGI 0x124 /* JPEG Codec Guest ID */
|
| /kernel/linux/linux-5.10/drivers/staging/media/hantro/ |
| D | rk3399_vpu_hw_jpeg_enc.c | 7 * JPEG encoder 9 * The VPU JPEG encoder produces JPEG baseline sequential format. 13 * encoding using internal Huffman tables, as specified in the JPEG 140 /* Switch to JPEG encoder mode before writing registers */ in rk3399_vpu_jpeg_enc_run()
|
| /kernel/linux/linux-5.10/drivers/media/platform/ |
| D | rcar_jpu.c | 7 * This is based on the drivers/media/platform/s5p-jpeg driver by 44 * Align JPEG header end to cache line to make sure we will not have any issues 74 /* JPEG markers */ 105 * JPEG registers and bits 108 /* JPEG code mode register */ 118 /* JPEG code command register */ 124 /* JPEG code quantanization table number register */ 128 /* JPEG code Huffman table number register */ 133 #define JCVSZU 0x1c /* JPEG code vertical size upper register */ 134 #define JCVSZD 0x20 /* JPEG code vertical size lower register */ [all …]
|