| /linux/drivers/video/fbdev/ | 
| H A D | fm2fb.c | 2  *  linux/drivers/video/fm2fb.c -- BSC FrameMaster II/Rainbow II frame buffer5  *	Copyright (C) 1998 Steffen A. Mork (linux-dev@morknet.de)
 32  *	channel, GG the green channel and BB the blue channel.
 35  *	- PAL/NTSC
 36  *	- interlaced/non interlaced
 37  *	- composite sync/sync/sync over green
 40  *	- 768x576 (PAL)
 41  *	- 768x480 (NTSC)
 67  *	JP1  interlace selection (1-2 non interlaced/2-3 interlaced)
 70  *	JP4  modulate composite sync on green output (1-2 composite
 [all …]
 
 | 
| H A D | pxa168fb.c | 2  * linux/drivers/video/pxa168fb.c -- Marvell PXA168 LCD Controller7  *  2009-02-16  adapted from original version for PXA168/910
 27 #include <linux/dma-mapping.h>
 42 	if (var->bits_per_pixel == 8)  in determine_best_pix_fmt()
 48 	if (var->bits_per_pixel == 16 && var->red.length <= 5 &&  in determine_best_pix_fmt()
 49 	    var->green.length <= 6 && var->blue.length <= 5) {  in determine_best_pix_fmt()
 50 		if (var->transp.length == 0) {  in determine_best_pix_fmt()
 51 			if (var->red.offset >= var->blue.offset)  in determine_best_pix_fmt()
 57 		if (var->transp.length == 1 && var->green.length <= 5) {  in determine_best_pix_fmt()
 58 			if (var->red.offset >= var->blue.offset)  in determine_best_pix_fmt()
 [all …]
 
 | 
| H A D | pm2fb.c | 7  * based on 2.4 driver: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
 20  * Multiple boards support has been on the TODO list for ages.
 71  * support on TVP4010 and similar where there is no RAMDAC - see
 72  * comment in set_video) always request +ve sync regardless of what
 74  * fixed-frequency monitor which absolutely has to have -ve sync. So
 75  * these flags allow the user to specify that requests for +ve sync
 76  * should be silently turned in -ve sync.
 [all …]
 
 | 
| H A D | atafb.c | 2  * linux/drivers/video/atafb.c -- Atari builtin chipset frame buffer device11  *   - 03 Jan 95: Original version by Martin Schaller: The TT driver and
 13  *   - 09 Jan 95: Roman: I've added the hardware abstraction (hw_switch)
 15  *                based on the original TT driver.
 16  *   - 07 May 95: Martin: Added colormap operations for the external driver
 17  *   - 21 May 95: Martin: Added support for overscan
 19  *   -    Jul 95: Guenther Kelleter <guenther@pool.informatik.rwth-aachen.de>:
 23  *   - 27 Dec 95: Guenther: Implemented user definable video modes "user[0-7]"
 24  *                on minor 24...31. "user0" may be set on commandline by
 25  *                "R<x>;<y>;<depth>". (Makes sense only on Falcon)
 [all …]
 
 | 
| H A D | pm3fb.c | 2  *  linux/drivers/video/pm3fb.c -- 3DLabs Permedia3 frame buffer device6  *  Ported to 2.6 kernel on 1 May 2007 by Krzysztof Helt <krzysztof.h1@wp.pl>
 7  *	based on pm2fb.c
 9  *  Based on code written by:
 10  *	   Sven Luther, <luther@dpt-info.u-strasbg.fr>
 13  *  Based on linux/drivers/video/skeletonfb.c:
 15  *  Based on linux/driver/video/pm2fb.c:
 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()
 [all …]
 
 | 
| H A D | gbefb.c | 4  *  Copyright (C) 1999 Silicon Graphics, Inc. - Jeffrey Newquist5  *  Copyright (C) 2002 Vivien Chappelier <vivien.chappelier@linux-mips.org>
 14 #include <linux/dma-mapping.h>
 44 /* macro for fastest write-though access to the framebuffer */
 63 #define TILE_MASK (TILE_SIZE - 1)
 81 static int gbe_turned_on; /* 0 turned off, 1 turned on */
 87 	/* 640x480, 60 Hz, Non-Interlaced (25.175 MHz dotclock) */
 97 	.green		= { 0, 8, 0 },
 102 	.height		= -1,
 103 	.width		= -1,
 [all …]
 
 | 
| H A D | acornfb.c | 1 // SPDX-License-Identifier: GPL-2.0-only5  *  Copyright (C) 1998-2001 Russell King
 14  *  - Blanking 8bpp displays with VIDC
 26 #include <linux/dma-mapping.h>
 32 #include <asm/mach-types.h>
 54  * have.  Allow 1% either way on the nominal for TVs.
 68 	}, {	/* Hi-res mono	*/
 114 	struct fb_var_screeninfo *var = &info->var;  in acornfb_set_timing()
 122 	vidc.h_sync_width	= var->hsync_len - 8;  in acornfb_set_timing()
 123 	vidc.h_border_start	= vidc.h_sync_width + var->left_margin + 8 - 12;  in acornfb_set_timing()
 [all …]
 
 | 
| H A D | cg14.c | 1 // SPDX-License-Identifier: GPL-2.0-only8  * Driver layout based loosely on tgafb.c, see that file for credits.
 111 	u16 hss;	/* Hor Sync Start */
 112 	u16 hsc;	/* Hor Sync Clear */
 113 	u16 csc;	/* Composite Sync Clear */
 116 	u16 vss;	/* Vert Sync Start */
 117 	u16 vsc;	/* Vert Sync Clear */
 171  * go to John Stone (johns@umr.edu) from OpenBSD), red, green and blue
 203 	struct cg14_regs __iomem *regs = par->regs;  in __cg14_reset()
 206 	val = sbus_readb(®s->mcr);  in __cg14_reset()
 [all …]
 
 | 
| H A D | sa1100fb.c | 5  *   Based on acornfb.c Copyright (C) Russell King.13  * Please direct your questions and comments on this driver to the following
 16  *	linux-arm-kernel@lists.arm.linux.org.uk
 26  *	- With the Neponset plugged into an Assabet, LCD powerdown
 29  *	- We don't limit the CPU clock rate nor the mode selection
 33  *	- Linear grayscale palettes and the kernel.
 35  *	  drivers do not expect a linear colourmap, but a colourmap based on
 44  *	- The following must never be specified in a panel definition:
 47  *	- The following should be specified:
 57  *	- Driver appears to be working for Brutus 320x200x8bpp mode.  Other
 [all …]
 
 | 
| H A D | pxafb.c | 5  *  Copyright (C) 2004 Jean-Frederic Clere.8  *   Based on sa1100fb.c Copyright (C) 1999 Eric A. Thomas
 10  *   Based on acornfb.c Copyright (C) Russell King.
 18  * Please direct your questions and comments on this driver to the following
 21  *	linux-arm-kernel@lists.arm.linux.org.uk
 23  * Add support for overlay1 and overlay2 based on pxafb_overlay.c:
 31  *   Copyright (C) 2006-2008 Marvell International Ltd.
 50 #include <linux/dma-mapping.h>
 68 #include <linux/platform_data/video-pxafb.h>
 76 #include "pxa3xx-regs.h"
 [all …]
 
 | 
| H A D | imxfb.c | 1 // SPDX-License-Identifier: GPL-2.0-only6  *   Based on acornfb.c Copyright (C) Russell King.
 8  * Please direct your questions and comments on this driver to the following
 11  *	linux-arm-kernel@lists.arm.linux.org.uk
 28 #include <linux/dma-mapping.h>
 54 #define DRIVER_NAME "imx-fb"
 134 /* Used fb-mode. Can be set on kernel command line, therefore file-static. */
 143 	struct fb_bitfield	green;  member
 198 		.name = "imx1-fb",
 201 		.name = "imx21-fb",
 [all …]
 
 | 
| H A D | pvr2fb.c | 1 // SPDX-License-Identifier: GPL-2.0-only9  * Copyright (c) 2001 - 2008  Paul Mundt <lethal@linux-sh.org>
 11  * This driver is mostly based on the excellent amifb and vfb sources.  It uses
 13  * here are some hacked-up formulas:
 19  *  values, I could just add mode- specific offsets to get the correct mode
 22  *      left_margin = diwstart_h - borderstart_h;
 23  *      right_margin = borderstop_h - (diwstart_h + xres);
 24  *      upper_margin = diwstart_v - borderstart_v;
 25  *      lower_margin = borderstop_v - (diwstart_h + yres);
 27  *      hsync_len = borderstart_h + (hsync_total - borderstop_h);
 [all …]
 
 | 
| H A D | sh7760fb.c | 1 // SPDX-License-Identifier: GPL-2.05  * (c) 2006-2008 MSC Vertriebsges.m.b.H.,
 11  * Thanks to Siegfried Schaefer <s.schaefer at schaefer-edv.de>
 19 #include <linux/dma-mapping.h>
 56 /* wait_for_lps - wait until power supply has reached a certain state. */
 60 	while (--i && ((ioread16(par->base + LDPMMR) & 3) != val))  in wait_for_lps()
 64 		return -ETIMEDOUT;  in wait_for_lps()
 72 	struct sh7760fb_par *par = info->par;  in sh7760fb_blank()
 73 	struct sh7760fb_platdata *pd = par->pd;  in sh7760fb_blank()
 74 	unsigned short cntr = ioread16(par->base + LDCNTR);  in sh7760fb_blank()
 [all …]
 
 | 
| H A D | hgafb.c | 2  * linux/drivers/video/hgafb.c -- Hercules graphics adaptor frame buffer device5  *      Based on skeletonfb.c by Geert Uytterhoeven and
 10  * - Revision 0.1.8 (23 Oct 2002): Ported to new framebuffer api.
 12  * - Revision 0.1.7 (23 Jan 2001): fix crash resulting from MDA only cards
 14  * - Revision 0.1.6 (17 Aug 2000): new style structs
 16  * - Revision 0.1.5 (13 Mar 2000): spinlocks instead of saveflags();cli();etc
 18  * - Revision 0.1.4 (24 Jan 2000): fixed a bug in hga_card_detect() for
 19  *                                  HGA-only systems
 20  * - Revision 0.1.3 (22 Jan 2000): modified for the new fb_info structure
 25  * - Revision 0.1.0  (6 Dec 1999): faster scrolling and minor fixes
 [all …]
 
 | 
| /linux/Documentation/fb/ | 
| H A D | api.rst | 9 ---------------12 with frame buffer devices. In-kernel APIs between device drivers and the frame
 22 ---------------
 36 - FB_CAP_FOURCC
 44 --------------------
 46 Pixels are stored in memory in hardware-dependent formats. Applications need
 52 bits_per_pixel, grayscale, red, green, blue and transp fields.
 58 - FB_TYPE_PACKED_PIXELS
 62 next multiple of 8 bits or packed together into bytes depends on the visual.
 67 - FB_TYPE_PLANES
 [all …]
 
 | 
| /linux/drivers/video/fbdev/mmp/fb/ | 
| H A D | mmpfb.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later10 #include <linux/dma-mapping.h>
 19 	if (var->bits_per_pixel == 8)  in var_to_pixfmt()
 25 	if (var->bits_per_pixel == 16 && var->red.length == 8 &&  in var_to_pixfmt()
 26 			var->green.length == 4 && var->blue.length == 4) {  in var_to_pixfmt()
 27 		if (var->green.offset >= var->blue.offset)  in var_to_pixfmt()
 36 	if (var->bits_per_pixel == 12 && var->red.length == 8 &&  in var_to_pixfmt()
 37 			var->green.length == 2 && var->blue.length == 2) {  in var_to_pixfmt()
 38 		if (var->green.offset >= var->blue.offset)  in var_to_pixfmt()
 47 	if (var->bits_per_pixel == 16 && var->red.length == 16 &&  in var_to_pixfmt()
 [all …]
 
 | 
| /linux/include/uapi/linux/ | 
| H A D | fb.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */24 /* 0x4607-0x460B are defined below */
 52 #define FB_AUX_TEXT_SVGA_GROUP	8	/* 8-15: SVGA tileblit compatible modes */
 140 #define FB_ACCEL_SAVAGE3D_MV    0x82	/* S3 Savage3D-MV               */
 142 #define FB_ACCEL_SAVAGE_MX_MV   0x84	/* S3 Savage/MX-MV              */
 144 #define FB_ACCEL_SAVAGE_IX_MV   0x86	/* S3 Savage/IX-MV              */
 152 #define FB_ACCEL_PROSAVAGE_DDRK 0x8e	/* S3 ProSavage DDR-K           */
 154 #define FB_ACCEL_PUV3_UNIGFX	0xa0	/* PKUnity-v3 Unigfx		*/
 156 #define FB_CAP_FOURCC		1	/* Device supports FOURCC-based formats */
 196 #define FB_NONSTD_HAM		1	/* Hold-And-Modify (HAM)        */
 [all …]
 
 | 
| /linux/drivers/video/fbdev/i810/ | 
| H A D | i810_main.c | 1  /*-*- linux-c -*-2  *  linux/drivers/video/i810_main.c -- Intel 810 frame buffer device
 8  *         Michael Vogt <mvogt@acm.org> - added support for Intel 815 chipsets
 9  *                                        and enabling the power-on state of
 13  *         Fredrik Andersson <krueger@shell.linux.se> - alpha testing of
 16  *         Brad Corrion <bcorrion@web-co.com> - alpha testing of customized
 20  *      DotClock and PLL calculations are partly based on i810_driver.c
 22  *      Watermark calculation and tables are based on i810_wmark.c
 56  * voffset - framebuffer offset in MiB from aperture start address.  In order for
 60  * ---------------------------------------------
 [all …]
 
 | 
| /linux/sound/usb/caiaq/ | 
| H A D | control.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later24 	struct snd_usb_caiaqdev *cdev = caiaqdev(chip->card);  in control_info()
 25 	int pos = kcontrol->private_value;  in control_info()
 29 	uinfo->count = 1;  in control_info()
 32 	switch (cdev->chip.usb_id) {  in control_info()
 37 			uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;  in control_info()
 38 			uinfo->value.integer.min = 0;  in control_info()
 39 			uinfo->value.integer.max = 2;  in control_info()
 54 		uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;  in control_info()
 55 		uinfo->value.integer.min = 0;  in control_info()
 [all …]
 
 | 
| /linux/drivers/video/fbdev/kyro/ | 
| H A D | fbdev.c | 56 	.green		= {  5, 6, 0 },59 	.height		= -1,
 60 	.width		= -1,
 303 	struct kyrofb_info *par = info->par;  in kyro_dev_video_mode_set()
 309 	/* Bring us out of VGA and into Hi-Res mode, if not already. */  in kyro_dev_video_mode_set()
 313 			     info->var.bits_per_pixel,  in kyro_dev_video_mode_set()
 314 			     info->var.xres, info->var.yres,  in kyro_dev_video_mode_set()
 315 			     par->HSP, par->VSP, &par->PIXCLK) < 0)  in kyro_dev_video_mode_set()
 316 		return -EINVAL;  in kyro_dev_video_mode_set()
 322 	/* Turn on display in new mode */  in kyro_dev_video_mode_set()
 [all …]
 
 | 
| /linux/Documentation/input/devices/ | 
| H A D | walkera0701.rst | 2 Walkera WK-0701 transmitter5 Walkera WK-0701 transmitter is supplied with a ready to fly Walkera
 10 http://zub.fei.tuke.sk/walkera-wk0701/
 13 cg-clone http://zub.fei.tuke.sk/GIT/walkera0701-joystick
 19 At back side of transmitter S-video connector can be found. Modulation
 26 Walkera WK-0701 TX S-VIDEO connector::
 29      __   __              S-video:                                  canon25
 35      -------        3 __________________________________|________________ 25 GND
 38 I use green LED and BC109 NPN transistor.
 48 (usually irq7) parport must increase if TX is on.
 [all …]
 
 | 
| /linux/drivers/video/fbdev/core/ | 
| H A D | fbmem.c | 6  *	2001 - Documented with DocBook7  *	- Brad Douglas <brad@neruo.com>
 45 		return ERR_PTR(-ENODEV);  in get_fb_info()
 50 		refcount_inc(&fb_info->count);  in get_fb_info()
 58 	if (!refcount_dec_and_test(&fb_info->count))  in put_fb_info()
 60 	if (fb_info->fbops->fb_destroy)  in put_fb_info()
 61 		fb_info->fbops->fb_destroy(fb_info);  in put_fb_info()
 73 	if (fix->visual == FB_VISUAL_MONO01 ||  in fb_get_color_depth()
 74 	    fix->visual == FB_VISUAL_MONO10)  in fb_get_color_depth()
 77 		if (var->green.length == var->blue.length &&  in fb_get_color_depth()
 [all …]
 
 | 
| H A D | svgalib.c | 2  * Common utility functions for VGA-based graphics cards.4  * Copyright (c) 2006-2007 Ondrej Zajicek <santiago@crfreenet.org>
 10  * Some parts are based on David Boucher's viafb (http://davesdomain.org.uk/viafb/)
 28 	while (regset->regnum != VGA_REGSET_END_VAL) {  in svga_wcrt_multi()
 29 		regval = vga_rcrt(regbase, regset->regnum);  in svga_wcrt_multi()
 30 		bitnum = regset->lowbit;  in svga_wcrt_multi()
 31 		while (bitnum <= regset->highbit) {  in svga_wcrt_multi()
 39 		vga_wcrt(regbase, regset->regnum, regval);  in svga_wcrt_multi()
 49 	while (regset->regnum != VGA_REGSET_END_VAL) {  in svga_wseq_multi()
 50 		regval = vga_rseq(regbase, regset->regnum);  in svga_wseq_multi()
 [all …]
 
 | 
| /linux/drivers/video/fbdev/matrox/ | 
| H A D | matroxfb_crtc2.c | 1 // SPDX-License-Identifier: GPL-2.0-only6  * (c) 1998-2002 Petr Vandrovec <vandrove@vc.cvut.cz>
 31 static int matroxfb_dh_setcolreg(unsigned regno, unsigned red, unsigned green,  in matroxfb_dh_setcolreg()  argument
 38 	if (m2info->fbcon.var.grayscale) {  in matroxfb_dh_setcolreg()
 40 		red = green = blue = (red * 77 + green * 151 + blue * 28) >> 8;  in matroxfb_dh_setcolreg()
 42 	red = CNVT_TOHW(red, m2info->fbcon.var.red.length);  in matroxfb_dh_setcolreg()
 43 	green = CNVT_TOHW(green, m2info->fbcon.var.green.length);  in matroxfb_dh_setcolreg()
 44 	blue = CNVT_TOHW(blue, m2info->fbcon.var.blue.length);  in matroxfb_dh_setcolreg()
 45 	transp = CNVT_TOHW(transp, m2info->fbcon.var.transp.length);  in matroxfb_dh_setcolreg()
 47 	col = (red << m2info->fbcon.var.red.offset)     |  in matroxfb_dh_setcolreg()
 [all …]
 
 | 
| /linux/include/media/i2c/ | 
| H A D | tvp7002.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */2 /* Texas Instruments Triple 8-/10-BIT 165-/110-MSPS Video and Graphics
 6  * Author: Santiago Nunez-Corrales <santiago.nunez@ridgerun.com>
 19  * struct tvp7002_config - Platform dependent data
 21  *		0 - Data clocked out on rising edge of DATACLK signal
 22  *		1 - Data clocked out on falling edge of DATACLK signal
 24  *		0 - Active low HSYNC output, 1 - Active high HSYNC output
 26  *		0 - Active low VSYNC output, 1 - Active high VSYNC output
 27  *@fid_polarity: Active-high Field ID polarity.
 28  *		0 - The field ID output is set to logic 1 for an odd field
 [all …]
 
 |