Home
last modified time | relevance | path

Searched +full:m +full:- +full:den (Results 1 – 25 of 34) sorted by relevance

12

/linux/drivers/clk/qcom/
H A Dclk-rcg2.c1 // SPDX-License-Identifier: GPL-2.0
12 #include <linux/clk-provider.h>
23 #include "clk-rcg.h"
49 #define RCG_CFG_OFFSET(rcg) ((rcg)->cmd_rcgr + (rcg)->cfg_off + CFG_REG)
50 #define RCG_M_OFFSET(rcg) ((rcg)->cmd_rcgr + (rcg)->cfg_off + M_REG)
51 #define RCG_N_OFFSET(rcg) ((rcg)->cmd_rcgr + (rcg)->cfg_off + N_REG)
52 #define RCG_D_OFFSET(rcg) ((rcg)->cmd_rcgr + (rcg)->cfg_off + D_REG)
73 ret = regmap_read(rcg->clkr.regmap, rcg->cmd_rcgr + CMD_REG, &cmd); in clk_rcg2_is_enabled()
90 if (cfg == rcg->parent_map[i].cfg) in __clk_rcg2_get_parent()
104 ret = regmap_read(rcg->clkr.regmap, RCG_CFG_OFFSET(rcg), &cfg); in clk_rcg2_get_parent()
[all …]
H A Dclk-rcg.c1 // SPDX-License-Identifier: GPL-2.0-only
10 #include <linux/clk-provider.h>
15 #include "clk-rcg.h"
20 ns >>= s->src_sel_shift; in ns_to_src()
30 mask <<= s->src_sel_shift; in src_to_ns()
33 ns |= src << s->src_sel_shift; in src_to_ns()
44 ret = regmap_read(rcg->clkr.regmap, rcg->ns_reg, &ns); in clk_rcg_get_parent()
47 ns = ns_to_src(&rcg->s, ns); in clk_rcg_get_parent()
49 if (ns == rcg->s.parent_map[i].cfg) in clk_rcg_get_parent()
60 bank &= BIT(rcg->mux_sel_bit); in reg_to_bank()
[all …]
/linux/drivers/clk/spacemit/
H A Dccu_ddn.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (c) 2024-2025 Haylen Chu <heylenay@4d2.org>
6 * DDN stands for "Divider Denominator Numerator", it's M/N clock with a
10 * 2 * ------------- = -------
16 * Fout = ----- * -------------
20 #include <linux/clk-provider.h>
26 unsigned long den, unsigned int pre_div) in ccu_ddn_calc_rate() argument
28 return prate * den / pre_div / num; in ccu_ddn_calc_rate()
33 unsigned long *num, unsigned long *den) in ccu_ddn_calc_best_rate() argument
35 rational_best_approximation(rate, prate / ddn->pre_div, in ccu_ddn_calc_best_rate()
[all …]
/linux/include/linux/
H A Djiffies.h1 /* SPDX-License-Identifier: GPL-2.0 */
47 /* Suppose we want to divide two numbers NOM and DEN: NOM/DEN, then we can
49 * (NOM << LSH) / DEN
53 * - (NOM / DEN) fits in (32 - LSH) bits.
54 * - (NOM % DEN) fits in (32 - LSH) bits.
56 #define SH_DIV(NOM,DEN,LSH) ( (((NOM) / (DEN)) << (LSH)) \ argument
57 + ((((NOM) % (DEN)) << (LSH)) + (DEN) / 2) / (DEN))
75 * The 64-bit value is not atomic on 32-bit systems - you MUST NOT read it
79 * jiffies and jiffies_64 are at the same address for little-endian systems
80 * and for 64-bit big-endian systems.
[all …]
H A Dmpi.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /* mpi.h - Multi Precision Integers
42 #define mpi_get_nlimbs(a) ((a)->nlimbs)
44 /*-- mpiutil.c --*/
51 /*-- mpicoder.c --*/
61 /*-- mpi-mod.c --*/
64 /*-- mpi-pow.c --*/
67 /*-- mpi-cmp.c --*/
71 /*-- mpi-sub-ui.c --*/
74 /*-- mpi-bit.c --*/
[all …]
/linux/drivers/clk/spear/
H A Dclk-vco-pll.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * VCO-PLL clock implementation
9 #define pr_fmt(fmt) "clk-vco-pll: " fmt
11 #include <linux/clk-provider.h>
18 * DOC: VCO-PLL clock
23 * vco = (2 * M[15:8] * Fin)/N
26 * vco = (2 * M[15:0] * Fin)/(256 * N)
31 * mode, m & n" and "pll needs to program p", both share common enable/disable
37 * configures m, n and p.
65 /* Calculates pll clk rate for specific value of mode, m, n and p */
[all …]
/linux/Documentation/devicetree/bindings/clock/
H A Dsilabs,si5341.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Mike Looijmans <mike.looijmans@topic.nl>
18 https://www.silabs.com/documents/public/data-sheets/Si5341-40-D-DataSheet.pdf
20 https://www.silabs.com/documents/public/reference-manuals/Si5341-40-D-RM.pdf
22 https://www.silabs.com/documents/public/reference-manuals/Si5345-44-42-D-RM.pdf
33 chip at boot, in case you have a (pre-)programmed device. If the PLL is not
42 - silabs,si5340
43 - silabs,si5341
[all …]
/linux/Documentation/translations/zh_TW/arch/arm64/
H A Dbooting.txt1 SPDX-License-Identifier: GPL-2.0
11 M: Will Deacon <will.deacon@arm.com>
15 ---------------------------------------------------------------------
30 ---------------------------------------------------------------------
40 AArch64 異常模型由多個異常級(EL0 - EL3)組成,對於 EL0 和 EL1 異常級
58 -----------------
69 ---------------
81 -------------
91 -------------
111 - 自 v3.17 起,除非另有說明,所有域都是小端模式。
[all …]
/linux/Documentation/translations/zh_CN/arch/arm64/
H A Dbooting.txt9 M: Will Deacon <will.deacon@arm.com>
12 ---------------------------------------------------------------------
26 ---------------------------------------------------------------------
36 AArch64 异常模型由多个异常级(EL0 - EL3)组成,对于 EL0 和 EL1 异常级
54 -----------------
65 ---------------
77 -------------
87 -------------
107 - 自 v3.17 起,除非另有说明,所有域都是小端模式。
109 - code0/code1 负责跳转到 stext.
[all …]
/linux/drivers/video/fbdev/matrox/
H A Dmatroxfb_maven.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * (c) 1998-2002 Petr Vandrovec <vandrove@vc.cvut.cz>
71 0, WLMAX - BLMIN, 1, 379 - BLMIN,
91 0, ARRAY_SIZE(maven_gamma) - 1, 1, 3,
110 -EINVAL: id not found, return failure
111 -ENOENT: id not found, create fake disabled control */
118 return -EINVAL; in get_ctrl_id()
120 return -ENOENT; in get_ctrl_id()
126 return -EINVAL; in get_ctrl_id()
136 return (int*)((char*)(md->primary_head) + maven_controls[idx].control); in get_ctrl_ptr()
[all …]
/linux/drivers/video/fbdev/aty/
H A Dradeonfb.h1 /* SPDX-License-Identifier: GPL-2.0 */
19 #include <linux/i2c-algo-bit.h>
45 CHIP_FAMILY_RS200, /* U2 (IGP330M/340M/350M) or A4 (IGP330/340/345/350),
62 #define IS_RV100_VARIANT(rinfo) (((rinfo)->family == CHIP_FAMILY_RV100) || \
63 ((rinfo)->family == CHIP_FAMILY_RV200) || \
64 ((rinfo)->family == CHIP_FAMILY_RS100) || \
65 ((rinfo)->family == CHIP_FAMILY_RS200) || \
66 ((rinfo)->family == CHIP_FAMILY_RV250) || \
67 ((rinfo)->family == CHIP_FAMILY_RV280) || \
68 ((rinfo)->family == CHIP_FAMILY_RS300))
[all …]
H A Dradeon_base.c38 * NON-INFRINGEMENT. IN NO EVENT SHALL ATI, VA LINUX SYSTEMS AND/OR
101 /* Radeon Xpress 200m */
115 /* IGP330M/340M/350M (U2) */
263 static int default_dynclk = -2;
283 if (rinfo->no_schedule || oops_in_progress) in _radeon_msleep()
291 /* Called if (rinfo->errata & CHIP_ERRATA_PLL_DUMMYREADS) is set */ in radeon_pll_errata_after_index_slow()
298 if (rinfo->errata & CHIP_ERRATA_PLL_DELAY) { in radeon_pll_errata_after_data_slow()
302 if (rinfo->errata & CHIP_ERRATA_R300_CG) { in radeon_pll_errata_after_data_slow()
317 spin_lock_irqsave(&rinfo->reg_lock, flags); in _OUTREGP()
322 spin_unlock_irqrestore(&rinfo->reg_lock, flags); in _OUTREGP()
[all …]
/linux/drivers/staging/media/meson/vdec/
H A Dcodec_vp9.c1 // SPDX-License-Identifier: GPL-2.0+
7 #include <media/v4l2-mem2mem.h>
8 #include <media/videobuf2-dma-contig.h>
104 #define NONE -1
112 * Defines, declarations, sub-functions for vp9 de-block loop
114 * - struct segmentation is for loop filter only (removed something)
115 * - function "vp9_loop_filter_init" and "vp9_loop_filter_frame_init" will
117 * - vp9_loop_filter_init run once before decoding start
118 * - vp9_loop_filter_frame_init run before every frame decoding start
119 * - set video format to VP9 is in vp9_loop_filter_init
[all …]
/linux/drivers/video/fbdev/
H A Dcirrusfb.c2 * drivers/video/cirrusfb.c - driver for Cirrus Logic chipsets
4 * Copyright 1999-2001 Jeff Garzik <jgarzik@pobox.com>
29 * Format this code with GNU indent '-kr -i8 -pcs' options.
103 * per-board-type information, used for enumerating and abstracting
104 * chip-specific information
108 * is required at runtime. Maybe separate into an init-only and
109 * a run-time table?
114 /* for 1/4bpp, 8bpp 15/16bpp, 24bpp, 32bpp - numbers from xorg code */
262 CHIP(PCI_DEVICE_ID_CIRRUS_5430, BT_ALPINE), /* GD-5440 is same id */
375 /*--- Interface used by the world ------------------------------------------*/
[all …]
/linux/drivers/hwtracing/coresight/
H A Dcoresight-priv.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2011-2012, The Linux Foundation. All rights reserved.
19 * Coresight management registers (0xf00-0xfcc)
20 * 0xfa0 - 0xfa4: Management registers in PFTv1.0
36 * See PSCI - ARM DEN 0022D, Section: 6.8.1 Debug and Trace save and restore.
94 * struct cs_buffer - keep track of a recording session' specifics
200 #define __CS_AMBA_UCI_ID(pid, m, uci_ptr) \ argument
203 .mask = m, \
225 struct amba_cs_uci_id *uci_id = id->data; in coresight_get_uci_data()
230 return uci_id->data; in coresight_get_uci_data()
[all …]
/linux/drivers/thermal/qcom/
H A Dtsens.c1 // SPDX-License-Identifier: GPL-2.0
11 #include <linux/nvmem-consumer.h>
26 * struct tsens_irq_data - IRQ status and temperature violations
81 if (priv->num_sensors > MAX_SENSORS) in tsens_read_calibration()
82 return -EINVAL; in tsens_read_calibration()
88 ret = nvmem_cell_read_variable_le_u32(priv->dev, name, &mode); in tsens_read_calibration()
89 if (ret == -ENOENT) in tsens_read_calibration()
90 dev_warn(priv->dev, "Please migrate to separate nvmem cells for calibration data\n"); in tsens_read_calibration()
94 dev_dbg(priv->dev, "calibration mode is %d\n", mode); in tsens_read_calibration()
100 ret = nvmem_cell_read_variable_le_u32(priv->dev, name, &base1); in tsens_read_calibration()
[all …]
/linux/drivers/media/v4l2-core/
H A Dv4l2-vp9.c1 // SPDX-License-Identifier: GPL-2.0
12 #include <media/v4l2-vp9.h>
131 /* 8x8 -> 4x4 */
136 /* 16x16 -> 8x8 */
141 /* 32x32 -> 16x16 */
146 /* 64x64 -> 32x32 */
1053 /* 8x8 -> 4x4 */
1058 /* 16x16 -> 8x8 */
1063 /* 32x32 -> 16x16 */
1068 /* 64x64 -> 32x32 */
[all …]
/linux/tools/power/cpupower/po/
H A Dde.po3 # Copyright (C) 2004-2009 Dominik Brodowski <linux@dominikbrodowski.net>
8 "Project-Id-Version: cpufrequtils 006\n"
9 "Report-Msgid-Bugs-To: \n"
10 "POT-Creation-Date: 2011-03-08 17:03+0100\n"
11 "PO-Revision-Date: 2019-06-02 15:23+0200\n"
12 "Last-Translator: Benjamin Weis <benjamin.weis@gmx.com>\n"
13 "Language-Team: NONE\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
[all …]
/linux/drivers/gpu/drm/
H A Ddrm_modes.c2 * Copyright © 1997-2003 by The XFree86 Project, Inc.
4 * Copyright © 2007-2008 Intel Corporation
6 * Copyright 2005-2006 Luc Verhaegen
53 * drm_mode_debug_printmodeline - print a mode to dmesg
65 * drm_mode_create - create a new display mode
87 * drm_mode_destroy - remove a mode
103 * drm_mode_probed_add - add a mode to a connector's probed_mode list
114 WARN_ON(!mutex_is_locked(&connector->dev->mode_config.mutex)); in drm_mode_probed_add()
116 list_add_tail(&mode->head, &connector->probed_modes); in drm_mode_probed_add()
127 * - https://web.archive.org/web/20220406232708/http://www.kolumbus.fi/pami1/video/pal_ntsc.html
[all …]
/linux/drivers/clk/
H A Dclk-si5341.c1 // SPDX-License-Identifier: GPL-2.0
15 #include <linux/clk-provider.h>
127 /* Input dividers (48-bit) */
138 ((output)->data->reg_output_offset[(output)->index])
143 ((output)->data->reg_rdiv_offset[(output)->index])
220 * using only the XTAL input, without pre-divider.
364 /* Read and interpret a 44-bit followed by a 32-bit value in the regmap */
416 err = si5341_decode_44_32(data->regmap, SI5341_PLL_M_NUM, in si5341_clk_recalc_rate()
425 * Though m_num is 64-bit, only the upper bits are actually used. While in si5341_clk_recalc_rate()
427 * the left. To avoid 96-bit division here, we just shift them back so in si5341_clk_recalc_rate()
[all …]
/linux/Documentation/arch/arm64/
H A Dbooting.rst13 (EL0 - EL3), with EL0, EL1 and EL2 having a secure and a non-secure
33 ---------------------------
49 -------------------------
53 The device tree blob (dtb) must be placed on an 8-byte boundary and must
56 any 2M region which must be mapped with any specific attributes.
62 ------------------------------
74 ------------------------
78 The decompressed kernel image contains a 64-byte header as follows::
94 - As of v3.17, all fields are little endian unless stated otherwise.
96 - code0/code1 are responsible for branching to stext.
[all …]
/linux/sound/pci/
H A Dsonicvibes.c1 // SPDX-License-Identifier: GPL-2.0-or-later
18 #include <linux/dma-mapping.h>
37 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
61 #define SV_REG(sonic, x) ((sonic)->enh_port + SV_REG_##x)
64 #define SV_ENHANCED 0x01 /* audio mode select - enhanced mode */
68 #define SV_INTA 0x20 /* INTA driving - shoul
472 unsigned int r, m = 0, n = 0; snd_sonicvibes_pll() local
510 unsigned int r, m, n; snd_sonicvibes_setpll() local
545 unsigned int rate, div, r, m, n; snd_sonicvibes_hw_constraint_dac_rate() local
[all...]
/linux/sound/usb/
H A Dmixer_quirks.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Quirks and vendor-specific extensions for mixer interfaces
52 * See the quirks for M-Audio FTUs or Ebox-44.
72 return -ENOMEM; in snd_create_std_mono_ctl_offset()
74 snd_usb_mixer_elem_init_std(&cval->head, mixer, unitid); in snd_create_std_mono_ctl_offset()
75 cval->val_type = val_type; in snd_create_std_mono_ctl_offset()
76 cval->channels = 1; in snd_create_std_mono_ctl_offset()
77 cval->control = control; in snd_create_std_mono_ctl_offset()
78 cval->cmask = cmask; in snd_create_std_mono_ctl_offset()
79 cval->idx_off = idx_off; in snd_create_std_mono_ctl_offset()
[all …]
/linux/drivers/net/wireless/broadcom/b43legacy/
H A Dphy.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>,
8 Michael Buesch <m@bues.ch>
14 driver Copyright(c) 2003 - 2004 Intel Corporation.
46 -7, -7, -7, -7,
47 -7, -7, -7, -7,
48 -7, -7, -7, -7,
65 5, -7, -20, -20,
66 -20, -20, -20, -20,
67 -20, -20, -20, -20,
[all …]
/linux/
H A DCREDITS1 This is at least a partial credits-file of people that have
4 scripts. The fields are: name (N), email (E), web-address
6 snail-mail address (S).
10 ----------
51 D: in-kernel DRM Maintainer
76 E: tim_alpaerts@toyota-motor-europe.com
80 S: B-2610 Wilrijk-Antwerpen
85 W: http://www-stu.christs.cam.ac.uk/~aia21/
106 D: Maintainer of ide-cd and Uniform CD-ROM driver,
107 D: ATAPI CD-Changer support, Major 2.1.x CD-ROM update.
[all …]

12