/linux/drivers/media/platform/samsung/exynos4-is/ |
H A D | fimc-core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2010-2012 Samsung Electronics Co., Ltd. 24 #include <media/v4l2-ioctl.h> 25 #include <media/videobuf2-v4l2.h> 26 #include <media/videobuf2-dma-contig.h> 28 #include "fimc-core.h" 29 #include "fimc-reg.h" 30 #include "media-dev.h" 39 .depth = { 16 }, 40 .color = FIMC_FMT_RGB565, [all …]
|
/linux/drivers/media/platform/samsung/exynos-gsc/ |
H A D | gsc-core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) 2011 - 2012 Samsung Electronics Co., Ltd. 6 * Samsung EXYNOS5 SoC series G-Scaler driver 23 #include <media/v4l2-ioctl.h> 25 #include "gsc-core.h" 30 .depth = { 16 }, 31 .color = GSC_RGB, 36 .depth = { 32 }, 37 .color = GSC_RGB, 42 .depth = { 16 }, [all …]
|
H A D | gsc-regs.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) 2011 - 2012 Samsung Electronics Co., Ltd. 6 * Samsung EXYNOS5 SoC series G-Scaler driver 12 #include "gsc-core.h" 16 writel(GSC_SW_RESET_SRESET, dev->regs + GSC_SW_RESET); in gsc_hw_set_sw_reset() 25 cfg = readl(dev->regs + GSC_SW_RESET); in gsc_wait_reset() 31 return -EBUSY; in gsc_wait_reset() 38 cfg = readl(dev->regs + GSC_IRQ); in gsc_hw_set_frm_done_irq_mask() 43 writel(cfg, dev->regs + GSC_IRQ); in gsc_hw_set_frm_done_irq_mask() 50 cfg = readl(dev->regs + GSC_IRQ); in gsc_hw_set_gsc_irq_enable() [all …]
|
/linux/drivers/video/fbdev/i810/ |
H A D | i810_accel.c | 1 /*-*- linux-c -*- 2 * linux/drivers/video/i810_accel.c -- Hardware Acceleration 26 i810_writel(par->cur_tail, par->iring.virtual, n); \ 27 par->cur_tail += 4; \ 28 par->cur_tail &= RING_SIZE_MASK; \ 51 * wait_for_space - check ring buffer free space 61 struct i810fb_par *par = info->par; in wait_for_space() 63 u8 __iomem *mmio = par->mmio_start_virtual; in wait_for_space() 65 tail = par->cur_tail; in wait_for_space() 66 while (count--) { in wait_for_space() [all …]
|
/linux/drivers/video/fbdev/ |
H A D | skeletonfb.c | 2 * linux/drivers/video/skeletonfb.c -- Skeleton for a frame buffer device 61 * Even less warranty that it actually works :-) 107 * This allows when one display changes it video resolution (info->var) 136 * xxxfb_open - Optional function. Called when the framebuffer is 155 * xxxfb_release - Optional function. Called when the framebuffer 174 * xxxfb_check_var - Optional function. Validates a var passed in. 191 * function must return -EINVAL. 196 * a copy of the currently working var (info->var). Better is to not 204 * contents of info->var must be left untouched at all times after 216 * xxxfb_set_par - Optional function. Alters the hardware state. [all …]
|
H A D | pm2fb.c | 8 * Copyright (c) 1998-2000 Ilario Nardinocchi (nardinoc@CS.UniBO.IT) 14 * I have a Creative Graphics Blaster Exxtreme card - pm2fb on x86. I 16 * hopefully other big-endian) devices now work, thanks to a lot of 71 * support on TVP4010 and similar where there is no RAMDAC - see 74 * fixed-frequency monitor which absolutely has to have -ve sync. So 76 * should be silently turned in -ve sync. 128 .height = -1, 129 .width = -1, 147 return fb_readl(p->v_regs + off); in pm2_RD() 152 fb_writel(v, p->v_regs + off); in pm2_WR() [all …]
|
H A D | ocfb.c | 12 #include <linux/dma-mapping.h> 36 #define OCFB_CTRL_PC 0x00000800 /* 8-bit Pseudo Color Enable*/ 37 #define OCFB_CTRL_CD8 0x00000000 /* Color Depth 8 */ 38 #define OCFB_CTRL_CD16 0x00000200 /* Color Depth 16 */ 39 #define OCFB_CTRL_CD24 0x00000400 /* Color Depth 24 */ 40 #define OCFB_CTRL_CD32 0x00000600 /* Color Depth 32 */ 89 if (fbdev->little_endian) in ocfb_readreg() 90 return ioread32(fbdev->regs + offset); in ocfb_readreg() 92 return ioread32be(fbdev->regs + offset); in ocfb_readreg() 97 if (fbdev->little_endian) in ocfb_writereg() [all …]
|
H A D | pm3fb.c | 2 * linux/drivers/video/pm3fb.c -- 3DLabs Permedia3 frame buffer device 10 * Sven Luther, <luther@dpt-info.u-strasbg.fr> 16 * Copyright (C) 1998-1999 Ilario Nardinocchi (nardinoc@CS.UniBO.IT) 97 return fb_readl(par->v_regs + off); in PM3_READ_REG() 102 fb_writel(v, par->v_regs + off); in PM3_WRITE_REG() 161 ? reqclock - freq in pm3fb_calculate_clock() 162 : freq - reqclock; in pm3fb_calculate_clock() 176 if (var->bits_per_pixel == 16) in pm3fb_depth() 177 return var->red.length + var->green.length in pm3fb_depth() 178 + var->blue.length; in pm3fb_depth() [all …]
|
/linux/drivers/video/fbdev/aty/ |
H A D | mach64_accel.c | 1 // SPDX-License-Identifier: GPL-2.0 54 par->fifo_space = 0; in aty_reset_engine() 73 pitch_value = info->fix.line_length / (info->var.bits_per_pixel / 8); in aty_init_engine() 74 vxres = info->var.xres_virtual; in aty_init_engine() 76 if (info->var.bits_per_pixel == 24) { in aty_init_engine() 77 /* In 24 bpp, the engine is in 8 bpp - this requires that all */ in aty_init_engine() 89 /* Ensure that vga page pointers are set to zero - the upper */ in aty_init_engine() 95 /* ---- Setup standard engine context ---- */ in aty_init_engine() 97 /* All GUI registers here are FIFOed - therefore, wait for */ in aty_init_engine() 142 aty_st_le32(SC_BOTTOM, par->crtc.vyres - 1, par); in aty_init_engine() [all …]
|
/linux/drivers/gpu/drm/tiny/ |
H A D | ofdrm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 81 return -EINVAL; in display_get_validated_int() 90 return -EINVAL; in display_get_validated_int0() 96 u32 depth, bool big_endian) in display_get_validated_format() argument 101 switch (depth) { in display_get_validated_format() 107 format = drm_mode_legacy_fb_format(16, depth); in display_get_validated_format() 113 drm_err(dev, "unsupported framebuffer depth %u\n", depth); in display_get_validated_format() 114 return ERR_PTR(-EINVAL); in display_get_validated_format() 118 * DRM formats assume little-endian byte order. Update the format in display_get_validated_format() 119 * if the scanout buffer uses big-endian ordering. in display_get_validated_format() [all …]
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_fb.c | 1 // SPDX-License-Identifier: MIT 6 #include <linux/dma-fence.h> 7 #include <linux/dma-resv.h> 23 #define check_array_bounds(i915, a, i) drm_WARN_ON(&(i915)->drm, (i) >= ARRAY_SIZE(a)) 27 * "The Color Control Surface (CCS) contains the compression status of 28 * the cache-line pairs. The compression state of the cache-line pair 29 * is specified by 2 bits in the CCS. Each CCS cache-line represents 30 * an area on the main surface of 16 x16 sets of 128 byte Y-tiled 31 * cache-line-pairs. CCS is always Y tiled." 40 { .format = DRM_FORMAT_XRGB8888, .depth = 24, .num_planes = 2, [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/dce60/ |
H A D | dce60_hw_sequencer.c | 56 struct resource_context *res_ctx = &context->res_ctx; in dce60_should_enable_fbc() 57 unsigned int underlay_idx = dc->res_pool->underlay_pipe_index; in dce60_should_enable_fbc() 60 ASSERT(dc->fbc_compressor); in dce60_should_enable_fbc() 63 if (!dc->ctx->fbc_gpu_addr) in dce60_should_enable_fbc() 67 if (context->stream_count != 1) in dce60_should_enable_fbc() 70 for (i = 0; i < dc->res_pool->pipe_count; i++) { in dce60_should_enable_fbc() 71 if (res_ctx->pipe_ctx[i].stream) { in dce60_should_enable_fbc() 73 pipe_ctx = &res_ctx->pipe_ctx[i]; in dce60_should_enable_fbc() 79 if (pipe_ctx->pipe_idx != underlay_idx) { in dce60_should_enable_fbc() 86 if (i == dc->res_pool->pipe_count) in dce60_should_enable_fbc() [all …]
|
/linux/tools/perf/ui/stdio/ |
H A D | hist.c | 1 // SPDX-License-Identifier: GPL-2.0 18 #include "../../util/block-info.h" 33 static size_t ipchain__fprintf_graph_line(FILE *fp, int depth, int depth_mask, in ipchain__fprintf_graph_line() argument 39 for (i = 0; i < depth; i++) in ipchain__fprintf_graph_line() 52 int depth, int depth_mask, int period, in ipchain__fprintf_graph() argument 62 for (i = 0; i < depth; i++) { in ipchain__fprintf_graph() 67 if (!period && i == depth - 1) { in ipchain__fprintf_graph() 68 ret += fprintf(fp, "--"); in ipchain__fprintf_graph() 70 ret += fprintf(fp, "--"); in ipchain__fprintf_graph() 105 strcpy(rem_sq_bracket->name, "[...]"); in init_rem_hits() [all …]
|
/linux/drivers/video/fbdev/core/ |
H A D | fb_logo.c | 1 // SPDX-License-Identifier: GPL-2.0 9 int fb_logo_count __read_mostly = -1; 13 return n < 0 ? d >> -n : d << n; in safe_shift() 24 const unsigned char *clut = logo->clut; in fb_set_logocmap() 33 for (i = 0; i < logo->clutsize; i += n) { in fb_set_logocmap() 34 n = logo->clutsize - i; in fb_set_logocmap() 60 const unsigned char *clut = logo->clut; in fb_set_logo_truepalette() 67 redmask = mask[info->var.red.length < 8 ? info->var.red.length : 8]; in fb_set_logo_truepalette() 68 greenmask = mask[info->var.green.length < 8 ? info->var.green.length : 8]; in fb_set_logo_truepalette() 69 bluemask = mask[info->var.blue.length < 8 ? info->var.blue.length : 8]; in fb_set_logo_truepalette() [all …]
|
H A D | cfbimgblt.c | 2 * Generic BitBLT function for frame buffer with packed pixels of any depth. 13 * image can be a bitmap where each 0 represents the background color and 14 * each 1 represents the foreground color. Great for font handling. It can 15 * also be a color image. This is determined by image_depth. The color image 18 * framebuffer depth. But not every card has this. All images must be rounded 23 * Incorporate mask tables similar to fbcon-cfb*.c in 2.4 API. This speeds 82 u32 color = 0, val, shift; in color_imageblit() local 83 int i, n, bpp = p->var.bits_per_pixel; in color_imageblit() 84 u32 null_bits = 32 - bpp; in color_imageblit() 85 u32 *palette = (u32 *) p->pseudo_palette; in color_imageblit() [all …]
|
H A D | sysimgblt.c | 2 * Generic 1-bit or 8-bit source to 1-32 bit destination expansion 3 * for frame buffer located in system RAM with packed pixels of any depth. 57 u32 color = 0, val, shift; in color_imageblit() local 58 int i, n, bpp = p->var.bits_per_pixel; in color_imageblit() 59 u32 null_bits = 32 - bpp; in color_imageblit() 60 u32 *palette = (u32 *) p->pseudo_palette; in color_imageblit() 61 const u8 *src = image->data; in color_imageblit() 64 for (i = image->height; i--; ) { in color_imageblit() 65 n = image->width; in color_imageblit() 76 while (n--) { in color_imageblit() [all …]
|
/linux/drivers/media/platform/nxp/imx-jpeg/ |
H A D | mxc-jpeg.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * Copyright 2018-2019 NXP 8 #include <media/v4l2-ctrls.h> 9 #include <media/v4l2-device.h> 10 #include <media/v4l2-fh.h> 15 #define MXC_JPEG_NAME "mxc-jpeg" 43 * struct mxc_jpeg_fmt - driver's internal color format data 47 * @nc: number of color components 48 * @depth: number of bits per pixel 62 int depth; member [all …]
|
/linux/Documentation/devicetree/bindings/display/samsung/ |
H A D | samsung,exynos5-dp.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/display/samsung/samsung,exynos5-dp.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Inki Dae <inki.dae@samsung.com> 11 - Seung-Woo Kim <sw0312.kim@samsung.com> 12 - Kyungmin Park <kyungmin.park@samsung.com> 13 - Krzysztof Kozlowski <krzk@kernel.org> 17 const: samsung,exynos5-dp 25 clock-names: [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/ltc/ |
H A D | base.c | 31 struct nvkm_ltc *ltc = device->ltc; in nvkm_ltc_tags_clear() 32 const u32 limit = first + count - 1; in nvkm_ltc_tags_clear() 34 BUG_ON((first > limit) || (limit >= ltc->num_tags)); in nvkm_ltc_tags_clear() 36 mutex_lock(<c->mutex); in nvkm_ltc_tags_clear() 37 ltc->func->cbc_clear(ltc, first, limit); in nvkm_ltc_tags_clear() 38 ltc->func->cbc_wait(ltc); in nvkm_ltc_tags_clear() 39 mutex_unlock(<c->mutex); in nvkm_ltc_tags_clear() 43 nvkm_ltc_zbc_color_get(struct nvkm_ltc *ltc, int index, const u32 color[4]) in nvkm_ltc_zbc_color_get() 45 memcpy(ltc->zbc_color[index], color, sizeof(ltc->zbc_color[index])); in nvkm_ltc_zbc_color_get() 46 ltc->func->zbc_clear_color(ltc, index, color); in nvkm_ltc_zbc_color_get() [all …]
|
H A D | gm107.c | 32 struct nvkm_device *device = ltc->subdev.device; in gm107_ltc_cbc_clear() 41 struct nvkm_device *device = ltc->subdev.device; in gm107_ltc_cbc_wait() 43 for (c = 0; c < ltc->ltc_nr; c++) { in gm107_ltc_cbc_wait() 44 for (s = 0; s < ltc->lts_nr; s++) { in gm107_ltc_cbc_wait() 53 gm107_ltc_zbc_clear_color(struct nvkm_ltc *ltc, int i, const u32 color[4]) in gm107_ltc_zbc_clear_color() 55 struct nvkm_device *device = ltc->subdev.device; in gm107_ltc_zbc_clear_color() 57 nvkm_wr32(device, 0x17e33c, color[0]); in gm107_ltc_zbc_clear_color() 58 nvkm_wr32(device, 0x17e340, color[1]); in gm107_ltc_zbc_clear_color() 59 nvkm_wr32(device, 0x17e344, color[2]); in gm107_ltc_zbc_clear_color() 60 nvkm_wr32(device, 0x17e348, color[3]); in gm107_ltc_zbc_clear_color() [all …]
|
/linux/Documentation/devicetree/bindings/display/bridge/ |
H A D | adi,adv7511.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Laurent Pinchart <laurent.pinchart@ideasonboard.com> 14 transmitters compatible with HDMI 1.4 and DVI 1.0. They support color 21 - adi,adv7511 22 - adi,adv7511w 23 - adi,adv7513 37 reg-names: 40 needing a non-default address. [all …]
|
/linux/include/media/drv-intf/ |
H A D | exynos-fimc.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (C) 2010 - 2013 Samsung Electronics Co., Ltd. 12 #include <media/media-entity.h> 13 #include <media/v4l2-dev.h> 14 #include <media/v4l2-mediabus.h> 37 /* Camera MIPI-CSI2 serial bus */ 43 /* FIFO link from FIMC-IS */ 62 * struct fimc_source_info - video source description required for the host 66 * @sensor_bus_type: image sensor bus type, MIPI, ITU-R BT.601 etc. 88 * struct fimc_fmt - color format data structure [all …]
|
/linux/Documentation/arch/m68k/ |
H A D | kernel-options.rst | 9 Author: Roman.Hodek@informatik.uni-erlangen.de (Roman Hodek) 11 Update: jds@kom.auc.dk (Jes Sorensen) and faq@linux-m68k.org (Chris Lawrence) 58 ---------- 76 /dev/ram: -> 0x0100 (initial ramdisk) 77 /dev/hda: -> 0x0300 (first IDE disk) 78 /dev/hdb: -> 0x0340 (second IDE disk) 79 /dev/sda: -> 0x0800 (first SCSI disk) 80 /dev/sdb: -> 0x0810 (second SCSI disk) 81 /dev/sdc: -> 0x0820 (third SCSI disk) 82 /dev/sdd: -> 0x0830 (forth SCSI disk) [all …]
|
/linux/drivers/firmware/ |
H A D | sysfb_simplefb.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (c) 2012-2013 David Herrmann <dh.herrmann@gmail.com> 8 * simple-framebuffer probing 9 * Try to convert "screen_info" into a "simple-framebuffer" compatible mode. 26 /* try parsing screen_info into a simple-framebuffer mode struct */ 34 type = si->orig_video_isVGA; in sysfb_parse_mode() 39 * The meaning of depth and bpp for direct-color formats is in sysfb_parse_mode() 42 * - DRM format info specifies depth as the number of color in sysfb_parse_mode() 44 * - Linux' EFI platform code computes lfb_depth from the in sysfb_parse_mode() 45 * individual color channels, including the reserved bits. in sysfb_parse_mode() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/dce/ |
H A D | dce_transform.c | 2 * Copyright 2012-16 Advanced Micro Devices, Inc. 33 (xfm_dce->regs->reg) 37 xfm_dce->xfm_shift->field_name, xfm_dce->xfm_mask->field_name 40 xfm_dce->base.ctx 42 xfm_dce->base.ctx->logger 86 /* 00 - BITS2:0 Bypass */ 88 /* 01 - hard coded coefficient TV RGB */ 90 /* 04 - programmable OUTPUT CSC coefficient */ 122 if (data->taps.h_taps + data->taps.v_taps <= 2) { in setup_scaling_configuration() 124 if (xfm_dce->xfm_mask->SCL_PSCL_EN != 0) in setup_scaling_configuration() [all …]
|