Lines Matching +full:1000 +full:base +full:- +full:t
1 // SPDX-License-Identifier: GPL-2.0-only
2 /* linux/drivers/media/platform/exynos3250-jpeg/jpeg-hw.h
14 #include "jpeg-core.h"
15 #include "jpeg-regs.h"
16 #include "jpeg-hw-exynos3250.h"
21 int count = 1000; in exynos3250_jpeg_reset()
25 while (reg != 0 && --count > 0) { in exynos3250_jpeg_reset()
32 count = 1000; in exynos3250_jpeg_reset()
34 while (reg != 1 && --count > 0) { in exynos3250_jpeg_reset()
60 void exynos3250_jpeg_clk_set(void __iomem *base) in exynos3250_jpeg_clk_set() argument
64 reg = readl(base + EXYNOS3250_JPGCMOD) & ~EXYNOS3250_HALF_EN_MASK; in exynos3250_jpeg_clk_set()
66 writel(reg | EXYNOS3250_HALF_EN, base + EXYNOS3250_JPGCMOD); in exynos3250_jpeg_clk_set()
182 void exynos3250_jpeg_qtbl(void __iomem *regs, unsigned int t, unsigned int n) in exynos3250_jpeg_qtbl() argument
187 reg &= ~EXYNOS3250_QT_NUM_MASK(t); in exynos3250_jpeg_qtbl()
188 reg |= (n << EXYNOS3250_QT_NUM_SHIFT(t)) & in exynos3250_jpeg_qtbl()
189 EXYNOS3250_QT_NUM_MASK(t); in exynos3250_jpeg_qtbl()
193 void exynos3250_jpeg_htbl_ac(void __iomem *regs, unsigned int t) in exynos3250_jpeg_htbl_ac() argument
198 reg &= ~EXYNOS3250_HT_NUM_AC_MASK(t); in exynos3250_jpeg_htbl_ac()
200 reg |= (0 << EXYNOS3250_HT_NUM_AC_SHIFT(t)) & in exynos3250_jpeg_htbl_ac()
201 EXYNOS3250_HT_NUM_AC_MASK(t); in exynos3250_jpeg_htbl_ac()
205 void exynos3250_jpeg_htbl_dc(void __iomem *regs, unsigned int t) in exynos3250_jpeg_htbl_dc() argument
210 reg &= ~EXYNOS3250_HT_NUM_DC_MASK(t); in exynos3250_jpeg_htbl_dc()
212 reg |= (0 << EXYNOS3250_HT_NUM_DC_SHIFT(t)) & in exynos3250_jpeg_htbl_dc()
213 EXYNOS3250_HT_NUM_DC_MASK(t); in exynos3250_jpeg_htbl_dc()
323 writel(img_addr->y, regs + EXYNOS3250_LUMA_BASE); in exynos3250_jpeg_imgadr()
324 writel(img_addr->cb, regs + EXYNOS3250_CHROMA_BASE); in exynos3250_jpeg_imgadr()
325 writel(img_addr->cr, regs + EXYNOS3250_CHROMA_CR_BASE); in exynos3250_jpeg_imgadr()
390 void exynos3250_jpeg_coef(void __iomem *base, unsigned int mode) in exynos3250_jpeg_coef() argument
394 base + EXYNOS3250_JPG_COEF(1)); in exynos3250_jpeg_coef()
396 base + EXYNOS3250_JPG_COEF(2)); in exynos3250_jpeg_coef()
398 base + EXYNOS3250_JPG_COEF(3)); in exynos3250_jpeg_coef()
401 base + EXYNOS3250_JPG_COEF(1)); in exynos3250_jpeg_coef()
403 base + EXYNOS3250_JPG_COEF(2)); in exynos3250_jpeg_coef()
405 base + EXYNOS3250_JPG_COEF(3)); in exynos3250_jpeg_coef()