Home
last modified time | relevance | path

Searched refs:jpeg (Results 1 – 25 of 55) sorted by relevance

123

/Linux-v5.15/drivers/media/platform/mtk-jpeg/
Dmtk_jpeg_core.c137 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 …]
Dmtk_jpeg_core.h154 struct mtk_jpeg_dev *jpeg; member
/Linux-v5.15/drivers/media/platform/s5p-jpeg/
Djpeg-core.c590 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
832 writel(word, jpeg->regs + in exynos4_jpeg_parse_huff_tbl()
846 writel(word, jpeg->regs + in exynos4_jpeg_parse_huff_tbl()
853 writel(word, jpeg->regs + in exynos4_jpeg_parse_huff_tbl()
863 struct s5p_jpeg *jpeg = ctx->jpeg; in exynos4_jpeg_parse_decode_q_tbl() local
878 exynos4_jpeg_set_dec_components(jpeg->regs, components); in exynos4_jpeg_parse_decode_q_tbl()
888 exynos4_jpeg_select_dec_q_tbl(jpeg->regs, c, x); in exynos4_jpeg_parse_decode_q_tbl()
[all …]
DMakefile2 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
Djpeg-core.h227 struct s5p_jpeg *jpeg; member
/Linux-v5.15/drivers/gpu/drm/amd/amdgpu/
Damdgpu_jpeg.c39 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 for (i = 0; i < adev->jpeg.num_jpeg_inst; ++i) { in amdgpu_jpeg_sw_fini()
51 if (adev->jpeg.harvest_config & (1 << i)) in amdgpu_jpeg_sw_fini()
54 amdgpu_ring_fini(&adev->jpeg.inst[i].ring_dec); in amdgpu_jpeg_sw_fini()
57 mutex_destroy(&adev->jpeg.jpeg_pg_lock); in amdgpu_jpeg_sw_fini()
64 cancel_delayed_work_sync(&adev->jpeg.idle_work); in amdgpu_jpeg_suspend()
77 container_of(work, struct amdgpu_device, jpeg.idle_work.work); in amdgpu_jpeg_idle_work_handler()
81 for (i = 0; i < adev->jpeg.num_jpeg_inst; ++i) { in amdgpu_jpeg_idle_work_handler()
[all …]
Djpeg_v2_5.c61 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()
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()
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()
96 VCN_2_0__SRCID__JPEG_DECODE, &adev->jpeg.inst[i].irq); in jpeg_v2_5_sw_init()
109 for (i = 0; i < adev->jpeg.num_jpeg_inst; ++i) { in jpeg_v2_5_sw_init()
110 if (adev->jpeg.harvest_config & (1 << i)) in jpeg_v2_5_sw_init()
113 ring = &adev->jpeg.inst[i].ring_dec; in jpeg_v2_5_sw_init()
[all …]
Djpeg_v3_0.c60 adev->jpeg.num_jpeg_inst = 1; in jpeg_v3_0_early_init()
83 VCN_2_0__SRCID__JPEG_DECODE, &adev->jpeg.inst->irq); in jpeg_v3_0_sw_init()
95 ring = &adev->jpeg.inst->ring_dec; in jpeg_v3_0_sw_init()
99 r = amdgpu_ring_init(adev, ring, 512, &adev->jpeg.inst->irq, 0, in jpeg_v3_0_sw_init()
104 adev->jpeg.internal.jpeg_pitch = mmUVD_JPEG_PITCH_INTERNAL_OFFSET; in jpeg_v3_0_sw_init()
105 adev->jpeg.inst->external.jpeg_pitch = SOC15_REG_OFFSET(JPEG, 0, mmUVD_JPEG_PITCH); in jpeg_v3_0_sw_init()
140 struct amdgpu_ring *ring = &adev->jpeg.inst->ring_dec; in jpeg_v3_0_hw_init()
168 if (adev->jpeg.cur_state != AMD_PG_STATE_GATE && in jpeg_v3_0_hw_fini()
326 struct amdgpu_ring *ring = &adev->jpeg.inst->ring_dec; in jpeg_v3_0_start()
493 if(state == adev->jpeg.cur_state) in jpeg_v3_0_set_powergating_state()
[all …]
Djpeg_v2_0.c71 adev->jpeg.num_jpeg_inst = 1; in jpeg_v2_0_early_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()
151 struct amdgpu_ring *ring = &adev->jpeg.inst->ring_dec; in jpeg_v2_0_hw_init()
177 if (adev->jpeg.cur_state != AMD_PG_STATE_GATE && in jpeg_v2_0_hw_fini()
334 struct amdgpu_ring *ring = &adev->jpeg.inst->ring_dec; in jpeg_v2_0_start()
717 if (state == adev->jpeg.cur_state) in jpeg_v2_0_set_powergating_state()
[all …]
Djpeg_v1_0.c440 amdgpu_fence_process(&adev->jpeg.inst->ring_dec); in jpeg_v1_0_process_interrupt()
462 adev->jpeg.num_jpeg_inst = 1; in jpeg_v1_0_early_init()
483 r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_VCN, 126, &adev->jpeg.inst->irq); in jpeg_v1_0_sw_init()
487 ring = &adev->jpeg.inst->ring_dec; in jpeg_v1_0_sw_init()
489 r = amdgpu_ring_init(adev, ring, 512, &adev->jpeg.inst->irq, in jpeg_v1_0_sw_init()
494 adev->jpeg.internal.jpeg_pitch = adev->jpeg.inst->external.jpeg_pitch = in jpeg_v1_0_sw_init()
511 amdgpu_ring_fini(&adev->jpeg.inst[0].ring_dec); in jpeg_v1_0_sw_fini()
524 struct amdgpu_ring *ring = &adev->jpeg.inst->ring_dec; in jpeg_v1_0_start()
582 adev->jpeg.inst->ring_dec.funcs = &jpeg_v1_0_decode_ring_vm_funcs; in jpeg_v1_0_set_dec_ring_funcs()
593 adev->jpeg.inst->irq.funcs = &jpeg_v1_0_irq_funcs; in jpeg_v1_0_set_irq_funcs()
Dvcn_v1_0.c210 ring = &adev->jpeg.inst->ring_dec; in vcn_v1_0_hw_init()
1217 adev->vcn.inst[inst_idx].pause_state.jpeg, in vcn_v1_0_pause_dpg_mode()
1218 new_state->fw_based, new_state->jpeg); in vcn_v1_0_pause_dpg_mode()
1270 if (adev->vcn.inst[inst_idx].pause_state.jpeg != new_state->jpeg) { in vcn_v1_0_pause_dpg_mode()
1273 adev->vcn.inst[inst_idx].pause_state.jpeg, in vcn_v1_0_pause_dpg_mode()
1274 new_state->fw_based, new_state->jpeg); in vcn_v1_0_pause_dpg_mode()
1279 if (new_state->jpeg == VCN_DPG_STATE__PAUSE) { in vcn_v1_0_pause_dpg_mode()
1301 ring = &adev->jpeg.inst->ring_dec; in vcn_v1_0_pause_dpg_mode()
1327 adev->vcn.inst[inst_idx].pause_state.jpeg = new_state->jpeg; in vcn_v1_0_pause_dpg_mode()
1799 if (amdgpu_fence_count_emitted(&adev->jpeg.inst->ring_dec)) in vcn_v1_0_idle_work_handler()
[all …]
/Linux-v5.15/drivers/media/platform/imx-jpeg/
Dmxc-jpeg.c314 static void print_mxc_buf(struct mxc_jpeg_dev *jpeg, struct vb2_buffer *buf, in print_mxc_buf() argument
331 v4l2_dbg(3, debug, &jpeg->v4l2_dev, in print_mxc_buf()
461 static bool mxc_jpeg_alloc_slot_data(struct mxc_jpeg_dev *jpeg, in mxc_jpeg_alloc_slot_data() argument
468 if (jpeg->slot_data[slot].desc) in mxc_jpeg_alloc_slot_data()
472 desc = dma_alloc_coherent(jpeg->dev, in mxc_jpeg_alloc_slot_data()
474 &jpeg->slot_data[slot].desc_handle, in mxc_jpeg_alloc_slot_data()
478 jpeg->slot_data[slot].desc = desc; in mxc_jpeg_alloc_slot_data()
481 cfg_desc = dma_alloc_coherent(jpeg->dev, in mxc_jpeg_alloc_slot_data()
483 &jpeg->slot_data[slot].cfg_desc_handle, in mxc_jpeg_alloc_slot_data()
487 jpeg->slot_data[slot].cfg_desc = cfg_desc; in mxc_jpeg_alloc_slot_data()
[all …]
DMakefile2 mxc-jpeg-encdec-objs := mxc-jpeg-hw.o mxc-jpeg.o
3 obj-$(CONFIG_VIDEO_IMX8_JPEG) += mxc-jpeg-encdec.o
/Linux-v5.15/Documentation/devicetree/bindings/media/
Dexynos-jpeg-codec.txt6 "samsung,s5pv210-jpeg", "samsung,exynos4210-jpeg",
7 "samsung,exynos3250-jpeg", "samsung,exynos5420-jpeg",
8 "samsung,exynos5433-jpeg";
12 - "jpeg" for the core gate clock,
Drenesas,jpu.txt20 jpeg-codec@fe980000 {
Dmediatek-jpeg-decoder.txt10 - reg : physical base address of the jpeg decoder registers and length of
/Linux-v5.15/Documentation/userspace-api/media/v4l/
Dvidioc-g-jpegcomp.rst39 :ref:`JPEG class controls <jpeg-controls>` for image quality and JPEG
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>`
Dcommon.rst48 ext-ctrls-jpeg
/Linux-v5.15/drivers/media/platform/
DMakefile24 obj-$(CONFIG_VIDEO_IMX8_JPEG) += imx-jpeg/
32 obj-$(CONFIG_VIDEO_SAMSUNG_S5P_JPEG) += s5p-jpeg/
80 obj-$(CONFIG_VIDEO_MEDIATEK_JPEG) += mtk-jpeg/
Daspeed-video.c235 struct aspeed_video_addr jpeg; member
952 aspeed_video_write(video, VE_JPEG_ADDR, video->jpeg.dma); in aspeed_video_init_regs()
1295 if (video->jpeg.virt) in aspeed_video_update_subsampling()
1296 aspeed_video_init_jpeg_table(video->jpeg.virt, video->yuv420); in aspeed_video_update_subsampling()
1658 if (!aspeed_video_alloc_buf(video, &video->jpeg, in aspeed_video_init()
1665 aspeed_video_init_jpeg_table(video->jpeg.virt, video->yuv420); in aspeed_video_init()
1748 dma_free_coherent(video->dev, VE_JPEG_HEADER_SIZE, video->jpeg.virt, in aspeed_video_remove()
1749 video->jpeg.dma); in aspeed_video_remove()
/Linux-v5.15/Documentation/userspace-api/media/drivers/
Dmeye-uapi.rst48 Takes a snapshot in an uncompressed or compressed jpeg format.
50 jpeg snapshot) the size of the image. The image data is
/Linux-v5.15/drivers/media/platform/coda/
DMakefile3 …a-vpu-objs := coda-common.o coda-bit.o coda-gdi.o coda-h264.o coda-mpeg2.o coda-mpeg4.o coda-jpeg.o
/Linux-v5.15/drivers/media/v4l2-core/
DMakefile30 obj-$(CONFIG_V4L2_JPEG_HELPER) += v4l2-jpeg.o
DKconfig47 # Used by drivers that need v4l2-jpeg.ko
/Linux-v5.15/arch/arm/boot/dts/
Dexynos5420.dtsi816 jpeg_0: jpeg@11f50000 {
817 compatible = "samsung,exynos5420-jpeg";
820 clock-names = "jpeg";
825 jpeg_1: jpeg@11f60000 {
826 compatible = "samsung,exynos5420-jpeg";
829 clock-names = "jpeg";
1150 bus_jpeg: bus-jpeg {
1157 bus_jpeg_apb: bus-jpeg-apb {

123