| /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" 89 * of a stream is estimated to ((width x height x 3 / 2) / 2) in estimated_stream_size() 96 struct hva_frameinfo *frameinfo = &ctx->frameinfo; in set_default_params() 97 struct hva_streaminfo *streaminfo = &ctx->streaminfo; in set_default_params() 99 frameinfo->pixelformat = V4L2_PIX_FMT_NV12; in set_default_params() 100 frameinfo->width = HVA_DEFAULT_WIDTH; in set_default_params() [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/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/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 7 Image Cropping, Insertion and Scaling -- the CROP API 13 <selection-api>`. The new API should be preferred in most cases, 16 equivalent in the SELECTION API. See :ref:`selection-vs-crop` for a 35 device the source is the video signal, and the cropping ioctls determine 41 On a video output device the source are the images passed in by the 48 Source and target rectangles are defined even if the device does not 63 .. _crop-scale: 65 .. kernel-figure:: crop.svg 75 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/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 13 #include <linux/nvmem-provider.h> 43 if (uuid_equal(&st->uuid, sw->uuid)) in __nvm_get_auth_status() 58 *status = st ? st->status : 0; in nvm_get_auth_status() 65 if (WARN_ON(!sw->uuid)) in nvm_set_auth_status() 76 memcpy(&st->uuid, sw->uuid, sizeof(st->uuid)); in nvm_set_auth_status() 77 INIT_LIST_HEAD(&st->list); in nvm_set_auth_status() 78 list_add_tail(&st->list, &nvm_auth_status_cache); in nvm_set_auth_status() 81 st->status = status; in nvm_set_auth_status() [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/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/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/drivers/media/platform/sunxi/sun8i-rotate/ |
| H A D | sun8i_rotate.c | 1 // SPDX-License-Identifier: GPL-2.0 18 #include <media/v4l2-device.h> 19 #include <media/v4l2-event.h> 20 #include <media/v4l2-ioctl.h> 21 #include <media/v4l2-mem2mem.h> 23 #include "sun8i-formats.h" 24 #include "sun8i-rotate.h" 28 return readl(dev->base + reg); in rotate_read() 33 writel(value, dev->base + reg); in rotate_write() 38 writel(readl(dev->base + reg) | bits, dev->base + reg); in rotate_set_bits() [all …]
|
| /linux/drivers/media/test-drivers/ |
| H A D | vim2m.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * A virtual v4l2-mem2mem example device. 5 * This is a virtual device driver for testing mem-to-mem vb2 framework. 6 * It simulates a device that uses memory buffers for both source and 9 * The device is capable of multi-instance, multi-buffer-per-transaction 12 * Copyright (c) 2009-2010 Samsung Electronics Co., Ltd. 23 #include <media/v4l2-mem2mem.h> 24 #include <media/v4l2-device.h> 25 #include <media/v4l2-ioctl.h> 26 #include <media/v4l2-ctrls.h> [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/gpu/drm/tests/ |
| H A D | drm_framebuffer_test.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <kunit/device.h> 36 .cmd = { .width = 600, .height = 600, .pixel_format = DRM_FORMAT_ABGR8888, 41 .cmd = { .width = MAX_WIDTH, .height = MAX_HEIGHT, .pixel_format = DRM_FORMAT_ABGR8888, 46 .cmd = { .width = MAX_WIDTH, .height = MAX_HEIGHT, .pixel_format = DRM_FORMAT_ABGR8888, 51 .cmd = { .width = MAX_WIDTH, .height = MAX_HEIGHT, .pixel_format = DRM_FORMAT_ABGR8888, 52 .handles = { 1, 0, 0 }, .pitches = { 4 * MAX_WIDTH - 1, 0, 0 }, 55 { .buffer_created = 0, .name = "ABGR8888 Invalid width", 56 .cmd = { .width = MAX_WIDTH + 1, .height = MAX_HEIGHT, .pixel_format = DRM_FORMAT_ABGR8888, 61 .cmd = { .width = MAX_WIDTH, .height = MAX_HEIGHT, .pixel_format = DRM_FORMAT_ABGR8888, [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/drivers/media/platform/imagination/ |
| H A D | e5010-jpeg-enc.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/ 9 * Author: David Huang <d-huang@ti.com> 14 #include <linux/dma-mapping.h> 22 #include <media/v4l2-common.h> 23 #include <media/v4l2-ctrls.h> 24 #include <media/v4l2-device.h> 25 #include <media/v4l2-event.h> 26 #include <media/v4l2-ioctl.h> 27 #include <media/v4l2-jpeg.h> [all …]
|