| /linux/drivers/clk/meson/ |
| H A D | s4-pll.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR MIT) 5 * Copyright (c) 2022-2023 Amlogic, inc. All rights reserved 9 #include <linux/clk-provider.h> 13 #include "clk-mpll.h" 14 #include "clk-pll.h" 15 #include "clk-regmap.h" 16 #include "meson-clkc-utils.h" 17 #include <dt-bindings/clock/amlogic,s4-pll-clkc.h> 50 * in the kernel phase. Write of fixed PLL-related register will cause the system to crash. 55 .data = &(struct meson_clk_pll_data){ [all …]
|
| H A D | axg.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * AmLogic Meson-AXG Clock Controller Driver 12 #include <linux/clk-provider.h> 18 #include "clk-regmap.h" 19 #include "clk-pll.h" 20 #include "clk-mpll.h" 21 #include "meson-clkc-utils.h" 23 #include <dt-bindings/clock/axg-clkc.h> 112 .data = &(struct meson_clk_pll_data){ 116 .width = 1, [all …]
|
| H A D | c3-pll.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <linux/clk-provider.h> 11 #include "clk-regmap.h" 12 #include "clk-pll.h" 13 #include "meson-clkc-utils.h" 14 #include <dt-bindings/clock/amlogic,c3-pll-clkc.h> 38 .data = &(struct clk_regmap_gate_data) { 79 .data = &(struct clk_regmap_gate_data) { 107 .data = &(struct clk_regmap_gate_data) { 135 .data = &(struct clk_regmap_gate_data) { [all …]
|
| H A D | a1-pll.c | 1 // SPDX-License-Identifier: GPL-2.0+ 10 #include <linux/clk-provider.h> 13 #include "clk-pll.h" 14 #include "clk-regmap.h" 15 #include "meson-clkc-utils.h" 27 #include <dt-bindings/clock/amlogic,a1-pll-clkc.h> 30 .data = &(struct meson_clk_pll_data){ 34 .width = 1, 39 .width = 8, 44 .width = 5, [all …]
|
| H A D | a1-peripherals.c | 1 // SPDX-License-Identifier: GPL-2.0+ 10 #include <linux/clk-provider.h> 13 #include "clk-dualdiv.h" 14 #include "clk-regmap.h" 15 #include "meson-clkc-utils.h" 17 #include <dt-bindings/clock/amlogic,a1-peripherals-clkc.h> 50 .data = &(struct clk_regmap_gate_data){ 65 .data = &(struct clk_regmap_gate_data){ 80 .data = &(struct clk_regmap_gate_data){ 95 .data = &(struct clk_regmap_gate_data){ [all …]
|
| /linux/drivers/staging/axis-fifo/ |
| H A D | axis-fifo.txt | 1 Xilinx AXI-Stream FIFO v4.1 IP core 3 This IP core has read and write AXI-Stream FIFOs, the contents of which can 4 be accessed from the AXI4 memory-mapped interface. This is useful for 5 transferring data from a processor into the FPGA fabric. The driver creates 11 Currently supports only store-forward mode with a 32-bit 12 AXI4-Lite interface. DOES NOT support: 13 - cut-through mode 14 - AXI4 (non-lite) 17 - compatible: Should be one of: 18 "xlnx,axi-fifo-mm-s-4.1" [all …]
|
| /linux/drivers/staging/media/atomisp/pci/runtime/frame/src/ |
| H A D | frame.c | 1 // SPDX-License-Identifier: GPL-2.0 25 unsigned int width, 62 unsigned int width, 68 static struct ia_css_frame *frame_create(unsigned int width, 89 return -EINVAL; in ia_css_frame_allocate_from_info() 93 ia_css_frame_allocate(frame, info->res.width, info->res.height, in ia_css_frame_allocate_from_info() 94 info->format, info->padded_width, in ia_css_frame_allocate_from_info() 95 info->raw_bit_depth); in ia_css_frame_allocate_from_info() 102 unsigned int width, in ia_css_frame_allocate() argument 110 if (!frame || width == 0 || height == 0) in ia_css_frame_allocate() [all …]
|
| /linux/drivers/clk/hisilicon/ |
| H A D | clkdivider-hi6220.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <linux/clk-provider.h> 19 #define div_mask(width) ((1 << (width)) - 1) argument 22 * struct hi6220_clk_divider - divider clock for hi6220 24 * @hw: handle between common and hardware-specific interfaces 27 * @width: width of the divider bit field 36 u8 width; member 51 val = readl_relaxed(dclk->reg) >> dclk->shift; in hi6220_clkdiv_recalc_rate() 52 val &= div_mask(dclk->width); in hi6220_clkdiv_recalc_rate() 54 return divider_recalc_rate(hw, parent_rate, val, dclk->table, in hi6220_clkdiv_recalc_rate() [all …]
|
| /linux/drivers/gpu/drm/panel/ |
| H A D | panel-simple.c | 17 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 27 #include <linux/media-bus-format.h> 47 * struct panel_desc - Describes a simple panel. 79 * @size.width: Width (in mm) of the active display area. 81 unsigned int width; member 95 * become ready and start receiving video data 104 * video data. 178 for (i = 0; i < panel->desc->num_timings; i++) { in panel_simple_get_timings_modes() 179 const struct display_timing *dt = &panel->desc->timings[i]; in panel_simple_get_timings_modes() 183 mode = drm_mode_create(connector->dev); in panel_simple_get_timings_modes() [all …]
|
| /linux/sound/core/ |
| H A D | pcm_misc.c | 1 // SPDX-License-Identifier: LGPL-2.0+ 3 * PCM Interface - misc routines 14 #define SND_PCM_FORMAT_UNKNOWN (-1) 20 unsigned char width; /* bit width */ member 21 unsigned char phys; /* physical bit width */ 22 signed char le; /* 0 = big-endian, 1 = little-endian, -1 = others */ 23 signed char signd; /* 0 = unsigned, 1 = signed, -1 = others */ 24 unsigned char silence[8]; /* silence data to fill */ 37 .width = 8, .phys = 8, .le = -1, .signd = 1, 41 .width = 8, .phys = 8, .le = -1, .signd = 0, [all …]
|
| /linux/drivers/video/fbdev/ |
| H A D | atafb.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 int dx, int height, int width); 8 int sy, int sx, int height, int width); 10 int dy, int dx, u32 width, 11 const u8 *data, u32 bgcolor, u32 fgcolor); 14 int dx, int height, int width); 16 int sy, int sx, int height, int width); 18 int dy, int dx, u32 width, 19 const u8 *data, u32 bgcolor, u32 fgcolor); 22 int dx, int height, int width); [all …]
|
| H A D | tgafb.c | 2 * linux/drivers/video/tgafb.c -- DEC 21030 TGA frame buffer device 37 #define TGA_BUS_TC(dev) (dev->bus == &tc_bus_type) 118 return tgafb_register(&pdev->dev); in tgafb_pci_register() 123 tgafb_unregister(&pdev->dev); in tgafb_pci_unregister() 135 { "DEC ", "PMAGD-AA" }, 169 * tgafb_check_var - Optional function. Validates a var passed in. 176 struct tga_par *par = (struct tga_par *)info->par; in tgafb_check_var() 178 if (!var->pixclock) in tgafb_check_var() 179 return -EINVAL; in tgafb_check_var() 181 if (par->tga_type == TGA_TYPE_8PLANE) { in tgafb_check_var() [all …]
|
| H A D | atafb_iplan2p4.c | 2 * linux/drivers/video/iplan2p4.c -- Low level frame buffer operations for 25 int height, int width) in atafb_iplan2p4_copyarea() argument 47 /* odd->odd or even->even */ in atafb_iplan2p4_copyarea() 50 src = (u8 *)info->screen_base + sy * next_line + (sx & ~15) / (8 / BPL); in atafb_iplan2p4_copyarea() 51 dst = (u8 *)info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL); in atafb_iplan2p4_copyarea() 53 memmove32_col(dst, src, 0xff00ff, height, next_line - BPL * 2); in atafb_iplan2p4_copyarea() 56 width -= 8; in atafb_iplan2p4_copyarea() 58 w = width >> 4; in atafb_iplan2p4_copyarea() 63 l = next_line - w * 4; in atafb_iplan2p4_copyarea() 64 for (j = height; j > 0; j--) { in atafb_iplan2p4_copyarea() [all …]
|
| H A D | atafb_iplan2p2.c | 2 * linux/drivers/video/iplan2p2.c -- Low level frame buffer operations for 25 int height, int width) in atafb_iplan2p2_copyarea() argument 47 /* odd->odd or even->even */ in atafb_iplan2p2_copyarea() 50 src = (u8 *)info->screen_base + sy * next_line + (sx & ~15) / (8 / BPL); in atafb_iplan2p2_copyarea() 51 dst = (u8 *)info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL); in atafb_iplan2p2_copyarea() 53 memmove32_col(dst, src, 0xff00ff, height, next_line - BPL * 2); in atafb_iplan2p2_copyarea() 56 width -= 8; in atafb_iplan2p2_copyarea() 58 w = width >> 4; in atafb_iplan2p2_copyarea() 63 l = next_line - w * 4; in atafb_iplan2p2_copyarea() 64 for (j = height; j > 0; j--) { in atafb_iplan2p2_copyarea() [all …]
|
| H A D | atafb_iplan2p8.c | 2 * linux/drivers/video/iplan2p8.c -- Low level frame buffer operations for 32 int height, int width) in atafb_iplan2p8_copyarea() argument 54 /* odd->odd or even->even */ in atafb_iplan2p8_copyarea() 57 src = (u8 *)info->screen_base + sy * next_line + (sx & ~15) / (8 / BPL); in atafb_iplan2p8_copyarea() 58 dst = (u8 *)info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL); in atafb_iplan2p8_copyarea() 60 memmove32_col(dst, src, 0xff00ff, height, next_line - BPL * 2); in atafb_iplan2p8_copyarea() 63 width -= 8; in atafb_iplan2p8_copyarea() 65 w = width >> 4; in atafb_iplan2p8_copyarea() 70 l = next_line - w * 4; in atafb_iplan2p8_copyarea() 71 for (j = height; j > 0; j--) { in atafb_iplan2p8_copyarea() [all …]
|
| /linux/drivers/video/fbdev/core/ |
| H A D | bitblit.c | 2 * linux/drivers/video/console/bitblit.c -- BitBlitting Operation 28 int i, offset = (vc->vc_font.height < 10) ? 1 : 2; in update_attr() 29 int width = DIV_ROUND_UP(vc->vc_font.width, 8); in update_attr() local 30 unsigned int cellsize = vc->vc_font.height * width; in update_attr() 33 offset = cellsize - (offset * width); in update_attr() 47 int sx, int dy, int dx, int height, int width) in bit_bmove() argument 51 area.sx = sx * vc->vc_font.width; in bit_bmove() 52 area.sy = sy * vc->vc_font.height; in bit_bmove() 53 area.dx = dx * vc->vc_font.width; in bit_bmove() 54 area.dy = dy * vc->vc_font.height; in bit_bmove() [all …]
|
| 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 …]
|
| /linux/drivers/net/ethernet/microchip/vcap/ |
| H A D | vcap_api.c | 1 // SPDX-License-Identifier: GPL-2.0+ 53 itr->offset = offset; in vcap_iter_set() 54 itr->sw_width = sw_width; in vcap_iter_set() 55 itr->regs_per_sw = DIV_ROUND_UP(sw_width, 32); in vcap_iter_set() 56 itr->tg = tg; in vcap_iter_set() 62 * A typegroup table ends with an all-zero terminator. in vcap_iter_skip_tg() 64 while (itr->tg->width && itr->offset >= itr->tg->offset) { in vcap_iter_skip_tg() 65 itr->offset += itr->tg->width; in vcap_iter_skip_tg() 66 itr->tg++; /* next typegroup */ in vcap_iter_skip_tg() 75 sw_idx = itr->offset / itr->sw_width; in vcap_iter_update() [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 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() 61 if (width > 2) in pismo_width_to_bytes() [all …]
|
| /linux/include/video/ |
| H A D | sticore.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 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) 63 u32 cache : 1; /* map to data cache */ 81 u32 *future_ptr; /* pointer to future data */ 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 */ [all …]
|
| /linux/drivers/net/wireless/intel/iwlwifi/mld/ |
| H A D | phy.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright (C) 2024-2025 Intel Corporation 9 #include "fw/api/phy-ctxt.h" 14 unsigned long used = mld->used_phy_ids; in iwl_mld_allocate_fw_phy_id() 17 mld->used_phy_ids |= BIT(id); in iwl_mld_allocate_fw_phy_id() 21 return -ENOSPC; in iwl_mld_allocate_fw_phy_id() 34 if (vif->type != NL80211_IFTYPE_AP) in iwl_mld_chanctx_fils_enabled() 37 return cfg80211_channel_is_psc(ctx->def.chan) || in iwl_mld_chanctx_fils_enabled() 38 (ctx->def.chan->band == NL80211_BAND_6GHZ && in iwl_mld_chanctx_fils_enabled() 39 ctx->def.width >= NL80211_CHAN_WIDTH_80); in iwl_mld_chanctx_fils_enabled() [all …]
|
| /linux/drivers/accessibility/braille/ |
| H A D | braille_console.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 * Copyright (C) Samuel Thibault <samuel.thibault@ens-lyon.org> 25 MODULE_AUTHOR("samuel.thibault@ens-lyon.org"); 44 #define WIDTH 40 macro 46 static u16 console_buf[WIDTH]; 56 static int lastVC = -1; 60 /* Very VisioBraille-specific */ 63 static u16 lastwrite[WIDTH]; in braille_write() 64 unsigned char data[1 + 1 + 2*WIDTH + 2 + 1], csum = 0, *c; in braille_write() local 71 if (!memcmp(lastwrite, buf, WIDTH * sizeof(*buf))) in braille_write() [all …]
|
| /linux/Documentation/devicetree/bindings/auxdisplay/ |
| H A D | hit,hd44780.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Geert Uytterhoeven <geert@linux-m68k.org> 15 interface, which can be used in either 4-bit or 8-bit mode. By using a 24 data-gpios: 26 GPIO pins connected to the data signal lines DB0-DB7 (8-bit mode) or 27 DB4-DB7 (4-bit mode) of the LCD Controller's bus interface. 29 - maxItems: 4 30 - maxItems: 8 [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/dce110/ |
| H A D | dce110_transform_v.c | 2 * Copyright 2012-15 Advanced Micro Devices, Inc. 34 xfm->ctx->logger 53 luma_viewport->x = scl_data->viewport.x - scl_data->viewport.x % 2; in calculate_viewport() 54 luma_viewport->y = scl_data->viewport.y - scl_data->viewport.y % 2; in calculate_viewport() 55 luma_viewport->width = in calculate_viewport() 56 scl_data->viewport.width - scl_data->viewport.width % 2; in calculate_viewport() 57 luma_viewport->height = in calculate_viewport() 58 scl_data->viewport.height - scl_data->viewport.height % 2; in calculate_viewport() 59 chroma_viewport->x = luma_viewport->x; in calculate_viewport() 60 chroma_viewport->y = luma_viewport->y; in calculate_viewport() [all …]
|
| /linux/drivers/video/fbdev/mb862xx/ |
| H A D | mb862xxfb_accel.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Fujitsu Carmine/Coral-P(A)/Lime framebuffer driver acceleration support 23 static void mb862xxfb_write_fifo(u32 count, u32 *data, struct fb_info *info) in mb862xxfb_write_fifo() argument 25 struct mb862xxfb_par *par = info->par; in mb862xxfb_write_fifo() 31 outreg(geo, GDC_GEO_REG_INPUT_FIFO, data[total]); in mb862xxfb_write_fifo() 33 free--; in mb862xxfb_write_fifo() 50 if (area->sx >= area->dx && area->sy >= area->dy) in mb86290fb_copyarea() 52 else if (area->sx >= area->dx && area->sy <= area->dy) in mb86290fb_copyarea() 54 else if (area->sx <= area->dx && area->sy >= area->dy) in mb86290fb_copyarea() 59 cmd[3] = (area->sy << 16) | area->sx; in mb86290fb_copyarea() [all …]
|