| /linux/drivers/clk/ |
| H A D | clk-divider.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2011-2012 Mike Turquette, Linaro Ltd <mturquette@linaro.org> 10 #include <linux/clk-provider.h> 11 #include <linux/device.h> 23 * prepare - clk_prepare only ensures that parents are prepared 24 * enable - clk_enable only ensures that parents are enabled 25 * rate - rate is adjustable. clk->rate = ceiling(parent->rate / divisor) 26 * parent - fixed parent. No clk_set_parent support 31 if (divider->flags & CLK_DIVIDER_BIG_ENDIAN) in clk_div_readl() 32 return ioread32be(divider->reg); in clk_div_readl() [all …]
|
| /linux/samples/vfio-mdev/ |
| H A D | mdpy-fb.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Framebuffer driver for mdpy (mediated virtual pci display device). 5 * See mdpy-defs.h for device specs 26 #include "mdpy-defs.h" 29 .id = "mdpy-fb", 36 .height = -1, 37 .width = -1, 61 u32 *pal = info->pseudo_palette; in mdpy_fb_setcolreg() 62 u32 cr = red >> (16 - info->var.red.length); in mdpy_fb_setcolreg() 63 u32 cg = green >> (16 - info->var.green.length); in mdpy_fb_setcolreg() [all …]
|
| /linux/drivers/gpio/ |
| H A D | gpio-xilinx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2008 - 2013 Xilinx, Inc. 45 * struct xgpio_instance - Stores information about GPIO device 53 * @irq: IRQ used by GPIO device 82 return -EINVAL; in xgpio_regoffset() 88 void __iomem *addr = chip->regs + reg + xgpio_regoffset(chip, bit / 32); in xgpio_read_ch() 96 void __iomem *addr = chip->regs + reg + xgpio_regoffset(chip, bit / 32); in xgpio_write_ch() 104 unsigned long lastbit = find_nth_bit(chip->map, 64, chip->gc.ngpio - 1); in xgpio_read_ch_all() 113 unsigned long lastbit = find_nth_bit(chip->map, 64, chip->gc.ngpio - 1); in xgpio_write_ch_all() 121 * xgpio_get - Read the specified signal of the GPIO device. [all …]
|
| /linux/drivers/media/usb/stk1160/ |
| H A D | stk1160-v4l.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * <elezegarcia--a.t--gmail.com> 10 * <rmthomas--a.t--sciolus.org> 19 #include <media/v4l2-device.h> 20 #include <media/v4l2-common.h> 21 #include <media/v4l2-ioctl.h> 22 #include <media/v4l2-fh.h> 23 #include <media/v4l2-event.h> 24 #include <media/videobuf2-vmalloc.h> 29 #include "stk1160-reg.h" [all …]
|
| /linux/drivers/dma/ |
| H A D | fsldma.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright (C) 2007-2010 Freescale Semiconductor, Inc. All rights reserved. 12 #include <linux/device.h> 108 u32 mr; /* 0x00 - Mode Register */ 109 u32 sr; /* 0x04 - Status Register */ 110 u64 cdar; /* 0x08 - Current descriptor address register */ 111 u64 sar; /* 0x10 - Source Address Register */ 112 u64 dar; /* 0x18 - Destination Address Register */ 113 u32 bcr; /* 0x20 - Byte Count Register */ 114 u64 ndar; /* 0x24 - Next Descriptor Address Register */ [all …]
|
| /linux/Documentation/devicetree/bindings/memory-controllers/ |
| H A D | ti-aemif.txt | 1 * Device tree bindings for Texas instruments AEMIF controller 4 provide a glue-less interface to a variety of asynchronous memory devices like 11 Davinci DM646x - http://www.ti.com/lit/ug/sprueq7c/sprueq7c.pdf 12 OMAP-L138 (DA850) - http://www.ti.com/lit/ug/spruh77a/spruh77a.pdf 13 Kestone - http://www.ti.com/lit/ug/sprugz3a/sprugz3a.pdf 17 - compatible: "ti,davinci-aemif" 18 "ti,keystone-aemif" 19 "ti,da850-aemif" 21 - reg: contains offset/length value for AEMIF control registers 24 - #address-cells: Must be 2. The partition number has to be encoded in the [all …]
|
| /linux/Documentation/userspace-api/media/v4l/ |
| H A D | crop.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 6 Image Cropping, Insertion and Scaling -- the CROP API 12 <selection-api>`. The new API should be preferred in most cases, 15 equivalent in the SELECTION API. See :ref:`selection-vs-crop` for a 34 device the source is the video signal, and the cropping ioctls determine 40 On a video output device the source are the images passed in by the 47 Source and target rectangles are defined even if the device does not 62 .. _crop-scale: 64 .. kernel-figure:: crop.svg 74 For capture devices the coordinates of the top left corner, width and [all …]
|
| H A D | vidioc-enum-framesizes.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 13 VIDIOC_ENUM_FRAMESIZES - Enumerate frame sizes 30 that contains an index and pixel format and receives a frame width 36 This ioctl allows applications to enumerate all frame sizes (i. e. width 37 and height in pixels) that the device supports for the given pixel 44 depend on the type of frame sizes the device supports. Here are the 47 - **Discrete:** The function returns success if the given index value 48 (zero-based) is valid. The application should increase the index by 54 - **Step-wise:** The function returns success if the given index value 60 - **Continuous:** This is a special case of the step-wise type above. [all …]
|
| /linux/Documentation/devicetree/bindings/memory-controllers/ddr/ |
| H A D | jedec,lpddr2.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/memory-controllers/ddr/jedec,lpddr2.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: LPDDR2 SDRAM compliant to JEDEC JESD209-2 10 - Krzysztof Kozlowski <krzk@kernel.org> 13 - $ref: jedec,lpddr-props.yaml# 18 - items: 19 - enum: 20 - elpida,ECB240ABACN [all …]
|
| /linux/drivers/accessibility/braille/ |
| H A D | braille_console.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Minimalistic braille device kernel support. 5 * By default, shows console messages on the braille device. 8 * Copyright (C) Samuel Thibault <samuel.thibault@ens-lyon.org> 25 MODULE_AUTHOR("samuel.thibault@ens-lyon.org"); 26 MODULE_DESCRIPTION("braille device"); 29 * Braille device support part. 44 #define WIDTH 40 macro 46 static u16 console_buf[WIDTH]; 56 static int lastVC = -1; [all …]
|
| /linux/drivers/media/platform/ti/omap3isp/ |
| H A D | ispresizer.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * TI OMAP3 ISP - Resizer module 14 #include <linux/device.h> 42 * "TRM ES3.1, table 12-46" 59 * 7-tap mode is for scale factors 0.25x to 0.5x. 60 * 4-tap mode is for scale factors 0.5x to 4.0x. 64 /* For 8-phase 4-tap horizontal filter: */ 75 /* For 8-phase 4-tap vertical filter: */ 86 /* For 4-phase 7-tap horizontal filter: */ 94 /* For 4-phase 7-tap vertical filter: */ [all …]
|
| /linux/drivers/video/fbdev/ |
| H A D | tgafb.c | 2 * linux/drivers/video/tgafb.c -- DEC 21030 TGA frame buffer device 19 #include <linux/device.h> 37 #define TGA_BUS_TC(dev) (dev->bus == &tc_bus_type) 59 static int tgafb_register(struct device *dev); 60 static void tgafb_unregister(struct device *dev); 118 return tgafb_register(&pdev->dev); in tgafb_pci_register() 123 tgafb_unregister(&pdev->dev); in tgafb_pci_unregister() 131 static int tgafb_tc_register(struct device *); 132 static int tgafb_tc_unregister(struct device *); 135 { "DEC ", "PMAGD-AA" }, [all …]
|
| /linux/drivers/media/platform/st/sti/delta/ |
| H A D | delta.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 11 #include <media/v4l2-device.h> 12 #include <media/v4l2-mem2mem.h> 14 #include "delta-cfg.h" 17 * enum delta_state - state of decoding instance 46 * struct delta_streaminfo - information about stream to decode 49 * @width: width of video stream 69 u32 width; member 89 * struct delta_au - access unit structure. 112 * struct delta_frameinfo - information about decoded frame [all …]
|
| /linux/drivers/media/platform/xilinx/ |
| H A D | xilinx-vip.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2013-2015 Ideas on Board 6 * Copyright (C) 2013-2015 Xilinx, Inc. 18 #include <dt-bindings/media/xilinx-vip.h> 20 #include "xilinx-vip.h" 22 /* ----------------------------------------------------------------------------- 48 * xvip_get_format_by_code - Retrieve format information for a media bus code 62 if (format->code == code) in xvip_get_format_by_code() 66 return ERR_PTR(-EINVAL); in xvip_get_format_by_code() 71 * xvip_get_format_by_fourcc - Retrieve format information for a 4CC [all …]
|
| /linux/drivers/mtd/maps/ |
| H A D | pismo.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * PISMO memory driver - http://www.pismoworld.org/ 15 #include <linux/mtd/plat-ram.h> 22 u8 width; member 26 char device[32]; member 39 u8 width; member 52 struct i2c_client *client = to_i2c_client(pdev->dev.parent); in pismo_set_vpp() 55 pismo->vpp(pismo->vpp_data, on); in pismo_set_vpp() 58 static unsigned int pismo_width_to_bytes(unsigned int width) in pismo_width_to_bytes() argument 60 width &= 15; in pismo_width_to_bytes() [all …]
|
| /linux/drivers/hwtracing/stm/ |
| H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0 14 #include <linux/device.h> 30 * The SRCU here makes sure that STM device doesn't disappear from under a 36 static ssize_t masters_show(struct device *dev, in masters_show() 43 ret = sprintf(buf, "%u %u\n", stm->data->sw_start, stm->data->sw_end); in masters_show() 50 static ssize_t channels_show(struct device *dev, in channels_show() 57 ret = sprintf(buf, "%u\n", stm->data->sw_nchannels); in channels_show() 64 static ssize_t hw_override_show(struct device *dev, in hw_override_show() 71 ret = sprintf(buf, "%u\n", stm->data->hw_override); in hw_override_show() 93 * stm_find_device() - find stm device by name [all …]
|
| /linux/drivers/net/ethernet/netronome/nfp/nfpcore/ |
| H A D | nfp6000_pcie.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 /* Copyright (C) 2015-2018 Netronome Systems, Inc. */ 98 #define NFP_PCIE_P2C_FIXED_SIZE(bar) (1 << (bar)->bitsize) 99 #define NFP_PCIE_P2C_BULK_SIZE(bar) (1 << (bar)->bitsize) 100 #define NFP_PCIE_P2C_GENERAL_TARGET_OFFSET(bar, x) ((x) << ((bar)->bitsize - 2)) 101 #define NFP_PCIE_P2C_GENERAL_TOKEN_OFFSET(bar, x) ((x) << ((bar)->bitsize - 4)) 102 #define NFP_PCIE_P2C_GENERAL_SIZE(bar) (1 << ((bar)->bitsize - 4)) 116 * struct nfp_bar - describes BAR configuration and usage 144 struct device *dev; 176 return NFP_PCIE_BAR_PCIE2CPP_MapType_of(bar->barcfg); in nfp_bar_maptype() [all …]
|
| /linux/include/video/ |
| H A D | sticore.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 struct device; 43 #define sti_onscreen_x(sti) (sti->glob_cfg->onscreen_x) 44 #define sti_onscreen_y(sti) (sti->glob_cfg->onscreen_y) 47 #define sti_font_x(sti) (PTR_STI(sti->font)->width) 48 #define sti_font_y(sti) (PTR_STI(sti->font)->height) 86 s16 onscreen_x; /* screen width in pixels */ 88 s16 offscreen_x; /* offset width in pixels */ 90 s16 total_x; /* frame buffer width in pixels */ 103 u32 reset : 1; /* hard reset the device? */ [all …]
|
| /linux/drivers/staging/media/meson/vdec/ |
| H A D | vdec_helpers.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 #include <media/v4l2-mem2mem.h> 9 #include <media/v4l2-event.h> 10 #include <media/videobuf2-dma-contig.h> 19 return readl_relaxed(core->dos_base + reg); in amvdec_read_dos() 25 writel_relaxed(val, core->dos_base + reg); in amvdec_write_dos() 43 return readl_relaxed(core->esparser_base + reg); in amvdec_read_parser() 49 writel_relaxed(val, core->esparser_base + reg); in amvdec_write_parser() 54 u32 amvdec_am21c_body_size(u32 width, u32 height) in amvdec_am21c_body_size() argument 56 u32 width_64 = ALIGN(width, 64) / 64; in amvdec_am21c_body_size() [all …]
|
| /linux/Documentation/devicetree/bindings/misc/ |
| H A D | xlnx,sd-fec.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/misc/xlnx,sd-fec.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Cvetic, Dragan <dragan.cvetic@amd.com> 11 - Erim, Salih <salih.erim@amd.com> 15 which provides high-throughput LDPC and Turbo Code implementations. 17 customer specified Quasi-cyclic (QC) codes. The Turbo decode functionality 23 const: xlnx,sd-fec-1.1 33 - description: Main processing clock for processing core [all …]
|
| /linux/drivers/clk/nuvoton/ |
| H A D | clk-ma35d1-divider.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Author: Chi-Fang Li <cfli0@nuvoton.com> 7 #include <linux/clk-provider.h> 8 #include <linux/device.h> 12 #include "clk-ma35d1.h" 18 u8 width; member 35 val = readl_relaxed(dclk->reg) >> dclk->shift; in ma35d1_clkdiv_recalc_rate() 36 val &= clk_div_mask(dclk->width); in ma35d1_clkdiv_recalc_rate() 38 return divider_recalc_rate(hw, parent_rate, val, dclk->table, in ma35d1_clkdiv_recalc_rate() 39 CLK_DIVIDER_ROUND_CLOSEST, dclk->width); in ma35d1_clkdiv_recalc_rate() [all …]
|
| /linux/drivers/clk/hisilicon/ |
| H A D | clk.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 5 * Copyright (c) 2012-2013 Hisilicon Limited. 6 * Copyright (c) 2012-2013 Linaro Limited. 15 #include <linux/clk-provider.h> 51 u8 width; member 64 u8 width; member 77 u8 width; member 90 u8 width; member 106 struct clk *hisi_register_clkgate_sep(struct device *, const char *, 110 struct clk *hi6220_register_clkdiv(struct device *dev, const char *name, [all …]
|
| /linux/arch/arm/include/asm/mach/ |
| H A D | flash.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 15 * name: flash device name (eg, as used with mtdparts=) 16 * width: width of mapped device 17 * init: method called at driver/device initialisation 18 * exit: method called at driver/device removal 27 unsigned int width; member
|
| /linux/drivers/gpu/drm/imx/ipuv3/ |
| H A D | imx-drm-core.c | 1 // SPDX-License-Identifier: GPL-2.0+ 9 #include <linux/device.h> 10 #include <linux/dma-buf.h> 14 #include <video/imx-ipu-v3.h> 28 #include "imx-drm.h" 29 #include "ipuv3-plane.h" 48 * Check modeset again in case crtc_state->mode_changed is in imx_drm_atomic_check() 49 * updated in plane's ->atomic_check callback. in imx_drm_atomic_check() 71 struct drm_device *dev = state->dev; in imx_drm_atomic_commit_tail() 91 * The flip done wait is only strictly required by imx-drm if a deferred in imx_drm_atomic_commit_tail() [all …]
|
| /linux/arch/powerpc/boot/dts/ |
| H A D | media5200.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Freescale Media5200 board Device Tree Source 12 &gpt0 { fsl,has-wdt; }; 24 stdout-path = &console; 29 timebase-frequency = <33000000>; // 33 MHz, these were configured by U-Boot 30 bus-frequency = <132000000>; // 132 MHz 31 clock-frequency = <396000000>; // 396 MHz 40 bus-frequency = <132000000>;// 132 MHz 64 compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart"; 68 phy-handle = <&phy0>; [all …]
|