/linux/include/linux/ |
H A D | clk-provider.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (c) 2010-2011 Jeremy Kerr <jeremy.kerr@canonical.com> 4 * Copyright (C) 2011-2012 Linaro Ltd <mturquette@linaro.org> 14 * top-level framework. custom flags for dealing with hardware specifics 20 #define CLK_SET_PARENT_GATE BIT(1) /* must be gated across re-parent */ 26 #define CLK_SET_RATE_NO_REPARENT BIT(7) /* don't re-parent on rate change */ 31 /* parents need enable during gate/ungate, set rate and re-parent */ 42 * struct clk_rate_request - Structure encoding the clk constraints that 77 * struct clk_duty - Structure encoding the duty cycle ratio of a clock 88 * struct clk_ops - Callback operations for hardware clocks; these are to [all …]
|
/linux/drivers/media/platform/st/sti/hva/ |
H A D | hva-v4l2.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include <media/v4l2-event.h> 13 #include <media/v4l2-ioctl.h> 14 #include <media/videobuf2-dma-contig.h> 17 #include "hva-hw.h" 86 * of a stream is estimated to ((width x height x 3 / 2) / 2) in estimated_stream_size() 93 struct hva_frameinfo *frameinfo = &ctx->frameinfo; in set_default_params() 94 struct hva_streaminfo *streaminfo = &ctx->streaminfo; in set_default_params() 96 frameinfo->pixelformat = V4L2_PIX_FMT_NV12; in set_default_params() 97 frameinfo->width = HVA_DEFAULT_WIDTH; in set_default_params() [all …]
|
/linux/drivers/media/platform/samsung/exynos4-is/ |
H A D | fimc-core.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (C) 2010 - 2012 Samsung Electronics Co., Ltd. 21 #include <media/media-entity.h> 22 #include <media/videobuf2-v4l2.h> 23 #include <media/v4l2-ctrls.h> 24 #include <media/v4l2-device.h> 25 #include <media/v4l2-mem2mem.h> 26 #include <media/v4l2-mediabus.h> 27 #include <media/drv-intf/exynos-fimc.h> 35 #define FIMC_DRIVER_NAME "exynos4-fimc" [all …]
|
/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/include/media/ |
H A D | v4l2-common.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 6 internal low-level v4l2 drivers. 18 #include <media/v4l2-dev.h> 20 /* Common printk constructs for v4l-i2c drivers. These macros create a unique 24 printk(level "%s %d-%04x: " fmt, name, i2c_adapter_id(adapter), addr , ## arg) 27 v4l_printk(level, (client)->dev.driver->name, (client)->adapter, \ 28 (client)->addr, fmt , ## arg) 54 /* ------------------------------------------------------------------------- */ 58 printk(level "%s: " fmt, (dev)->name , ## arg) 78 * v4l2_ctrl_query_fill- Fill in a struct v4l2_queryctrl [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/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/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 54 * @irq: IRQ used by GPIO device 78 return bitmap_bitremap(bit, chip->hw_map, chip->sw_map, 64); in xgpio_from_bit() 83 return bitmap_bitremap(gpio, chip->sw_map, chip->hw_map, 64); in xgpio_to_bit() 111 return -EINVAL; in xgpio_regoffset() 117 void __iomem *addr = chip->regs + reg + xgpio_regoffset(chip, bit / 32); in xgpio_read_ch() 124 void __iomem *addr = chip->regs + reg + xgpio_regoffset(chip, bit / 32); in xgpio_write_ch() 131 int bit, lastbit = xgpio_to_bit(chip, chip->gc.ngpio - 1); in xgpio_read_ch_all() [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/mtd/ |
H A D | mtd-physmap.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/mtd/mtd-physmap.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: CFI or JEDEC memory-mapped NOR flash, MTD-RAM (NVRAM...) 10 - Rob Herring <robh@kernel.org> 17 - $ref: mtd.yaml# 18 - $ref: /schemas/memory-controllers/mc-peripheral-props.yaml# 23 - items: 24 - enum: [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 …]
|
/linux/drivers/media/platform/nxp/ |
H A D | imx8mq-mipi-csi2.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * NXP i.MX8MQ SoC series MIPI-CSI2 receiver driver 9 #include <linux/clk-provider.h> 27 #include <media/v4l2-common.h> 28 #include <media/v4l2-device.h> 29 #include <media/v4l2-fwnode.h> 30 #include <media/v4l2-mc.h> 31 #include <media/v4l2-subdev.h> 33 #define MIPI_CSI2_DRIVER_NAME "imx8mq-mipi-csi2" 45 /* i.MX8MQ CSI-2 controller CSR */ [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/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/thunderbolt/ |
H A D | switch.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Thunderbolt driver - switch/port utility functions 12 #include <linux/nvmem-provider.h> 42 if (uuid_equal(&st->uuid, sw->uuid)) in __nvm_get_auth_status() 57 *status = st ? st->status : 0; in nvm_get_auth_status() 64 if (WARN_ON(!sw->uuid)) in nvm_set_auth_status() 75 memcpy(&st->uuid, sw->uuid, sizeof(st->uuid)); in nvm_set_auth_status() 76 INIT_LIST_HEAD(&st->list); in nvm_set_auth_status() 77 list_add_tail(&st->list, &nvm_auth_status_cache); in nvm_set_auth_status() 80 st->status = status; in nvm_set_auth_status() [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/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/sunxi/sun8i-di/ |
H A D | sun8i-di.c | 1 // SPDX-License-Identifier: GPL-2.0 20 #include <media/v4l2-device.h> 21 #include <media/v4l2-ioctl.h> 22 #include <media/v4l2-mem2mem.h> 24 #include "sun8i-di.h" 35 return readl(dev->base + reg); in deinterlace_read() 41 writel(value, dev->base + reg); in deinterlace_write() 47 writel(readl(dev->base + reg) | bits, dev->base + reg); in deinterlace_set_bits() 53 u32 val = readl(dev->base + reg); in deinterlace_clr_set_bits() 58 writel(val, dev->base + reg); in deinterlace_clr_set_bits() [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/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/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/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 …]
|