Home
last modified time | relevance | path

Searched +full:min +full:- +full:div (Results 1 – 25 of 264) sorted by relevance

1234567891011

/linux/tools/perf/pmu-events/arch/x86/tigerlake/
H A Dfloating-point.json12-bit packed double precision floating-point instructions retired; some instructions will count twi…
16-bit packed double precision floating-point instructions retired; some instructions will count twi…
21-bit packed single precision floating-point instructions retired; some instructions will count twi…
25-bit packed single precision floating-point instructions retired; some instructions will count twi…
30-bit packed double precision floating-point instructions retired; some instructions will count twi…
34-bit packed double precision floating-point instructions retired; some instructions will count twi…
39-bit packed single precision floating-point instructions retired; some instructions will count twi…
43-bit packed single precision floating-point instructions retired; some instructions will count twi…
48-bit packed single and 256-bit packed double precision FP instructions retired; some instructions …
52-bit packed single precision and 256-bit packed double precision floating-point instructions reti…
[all …]
/linux/tools/perf/pmu-events/arch/x86/rocketlake/
H A Dfloating-point.json12-bit packed double precision floating-point instructions retired; some instructions will count twi…
16-bit packed double precision floating-point instructions retired; some instructions will count twi…
21-bit packed single precision floating-point instructions retired; some instructions will count twi…
25-bit packed single precision floating-point instructions retired; some instructions will count twi…
30-bit packed double precision floating-point instructions retired; some instructions will count twi…
34-bit packed double precision floating-point instructions retired; some instructions will count twi…
39-bit packed single precision floating-point instructions retired; some instructions will count twi…
43-bit packed single precision floating-point instructions retired; some instructions will count twi…
48-bit packed single and 256-bit packed double precision FP instructions retired; some instructions …
52-bit packed single precision and 256-bit packed double precision floating-point instructions reti…
[all …]
/linux/tools/perf/pmu-events/arch/x86/icelakex/
H A Dfloating-point.json12-bit packed double precision floating-point instructions retired; some instructions will count twi…
16-bit packed double precision floating-point instructions retired; some instructions will count twi…
21-bit packed single precision floating-point instructions retired; some instructions will count twi…
25-bit packed single precision floating-point instructions retired; some instructions will count twi…
30-bit packed double precision floating-point instructions retired; some instructions will count twi…
34-bit packed double precision floating-point instructions retired; some instructions will count twi…
39-bit packed single precision floating-point instructions retired; some instructions will count twi…
43-bit packed single precision floating-point instructions retired; some instructions will count twi…
48-bit packed single and 256-bit packed double precision FP instructions retired; some instructions …
52-bit packed single precision and 256-bit packed double precision floating-point instructions reti…
[all …]
/linux/tools/perf/pmu-events/arch/x86/icelake/
H A Dfloating-point.json12-bit packed double precision floating-point instructions retired; some instructions will count twi…
16-bit packed double precision floating-point instructions retired; some instructions will count twi…
21-bit packed single precision floating-point instructions retired; some instructions will count twi…
25-bit packed single precision floating-point instructions retired; some instructions will count twi…
30-bit packed double precision floating-point instructions retired; some instructions will count twi…
34-bit packed double precision floating-point instructions retired; some instructions will count twi…
39-bit packed single precision floating-point instructions retired; some instructions will count twi…
43-bit packed single precision floating-point instructions retired; some instructions will count twi…
48-bit packed single and 256-bit packed double precision FP instructions retired; some instructions …
52-bit packed single precision and 256-bit packed double precision floating-point instructions reti…
[all …]
/linux/drivers/clk/ti/
H A Ddivider.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * Tero Kristo <t-kristo@ti.com>
10 #include <linux/clk-provider.h>
26 for (clkt = table; clkt->div; clkt++) in _get_table_div()
27 if (clkt->val == val) in _get_table_div()
28 return clkt->div; in _get_table_div()
38 if (divider->table) { in _setup_mask()
41 for (clkt = divider->table; clkt->div; clkt++) in _setup_mask()
42 if (clkt->val > max_val) in _setup_mask()
43 max_val = clkt->val; in _setup_mask()
[all …]
/linux/tools/perf/pmu-events/arch/x86/broadwellx/
H A Dfloating-point.json3-bit packed double precision floating-point instructions retired; some instructions will count twi…
7-bit packed double precision floating-point instructions retired; some instructions will count twi…
12-bit packed single precision floating-point instructions retired; some instructions will count twi…
16-bit packed single precision floating-point instructions retired; some instructions will count twi…
21-bit packed double precision floating-point instructions retired; some instructions will count twi…
25-bit packed double precision floating-point instructions retired; some instructions will count twi…
30-bit packed single precision floating-point instructions retired; some instructions will count twi…
34-bit packed single precision floating-point instructions retired; some instructions will count twi…
39-bit packed single and 256-bit packed double precision FP instructions retired; some instructions …
43-bit packed single precision and 256-bit packed double precision floating-point instructions reti…
[all …]
/linux/tools/perf/pmu-events/arch/x86/broadwellde/
H A Dfloating-point.json3-bit packed double precision floating-point instructions retired; some instructions will count twi…
7-bit packed double precision floating-point instructions retired; some instructions will count twi…
12-bit packed single precision floating-point instructions retired; some instructions will count twi…
16-bit packed single precision floating-point instructions retired; some instructions will count twi…
21-bit packed double precision floating-point instructions retired; some instructions will count twi…
25-bit packed double precision floating-point instructions retired; some instructions will count twi…
30-bit packed single precision floating-point instructions retired; some instructions will count twi…
34-bit packed single precision floating-point instructions retired; some instructions will count twi…
39-bit packed single and 256-bit packed double precision FP instructions retired; some instructions …
43-bit packed single precision and 256-bit packed double precision floating-point instructions reti…
[all …]
/linux/tools/perf/pmu-events/arch/x86/broadwell/
H A Dfloating-point.json3-bit packed double precision floating-point instructions retired; some instructions will count twi…
7-bit packed double precision floating-point instructions retired; some instructions will count twi…
12-bit packed single precision floating-point instructions retired; some instructions will count twi…
16-bit packed single precision floating-point instructions retired; some instructions will count twi…
21-bit packed double precision floating-point instructions retired; some instructions will count twi…
25-bit packed double precision floating-point instructions retired; some instructions will count twi…
30-bit packed single precision floating-point instructions retired; some instructions will count twi…
34-bit packed single precision floating-point instructions retired; some instructions will count twi…
39-bit packed single and 256-bit packed double precision FP instructions retired; some instructions …
43-bit packed single precision and 256-bit packed double precision floating-point instructions reti…
[all …]
/linux/tools/perf/pmu-events/arch/x86/skylakex/
H A Dfloating-point.json3 …"BriefDescription": "Counts once for most SIMD 128-bit packed computational double precision float…
7-bit packed computational double precision floating-point instructions retired; some instructions …
12 …"BriefDescription": "Counts once for most SIMD 128-bit packed computational single precision float…
16-bit packed computational single precision floating-point instructions retired; some instructions …
21 …"BriefDescription": "Counts once for most SIMD 256-bit packed double computational precision float…
25-bit packed double computational precision floating-point instructions retired; some instructions …
30 …"BriefDescription": "Counts once for most SIMD 256-bit packed single computational precision float…
34-bit packed single computational precision floating-point instructions retired; some instructions …
39-bit packed single and 256-bit packed double precision FP instructions retired; some instructions …
43-bit packed single precision and 256-bit packed double precision floating-point instructions reti…
[all …]
/linux/drivers/media/i2c/
H A Daptina-pll.c1 // SPDX-License-Identifier: GPL-2.0-only
13 #include "aptina-pll.h"
24 unsigned int div; in aptina_pll_calculate() local
27 pll->ext_clock, pll->pix_clock); in aptina_pll_calculate()
29 if (pll->ext_clock < limits->ext_clock_min || in aptina_pll_calculate()
30 pll->ext_clock > limits->ext_clock_max) { in aptina_pll_calculate()
32 return -EINVAL; in aptina_pll_calculate()
35 if (pll->pix_clock == 0 || pll->pix_clock > limits->pix_clock_max) { in aptina_pll_calculate()
37 return -EINVAL; in aptina_pll_calculate()
41 div = gcd(pll->pix_clock, pll->ext_clock); in aptina_pll_calculate()
[all …]
/linux/tools/perf/pmu-events/arch/x86/cascadelakex/
H A Dfloating-point.json3 …"BriefDescription": "Counts once for most SIMD 128-bit packed computational double precision float…
7-bit packed computational double precision floating-point instructions retired; some instructions …
12 …"BriefDescription": "Counts once for most SIMD 128-bit packed computational single precision float…
16-bit packed computational single precision floating-point instructions retired; some instructions …
21 …"BriefDescription": "Counts once for most SIMD 256-bit packed double computational precision float…
25-bit packed double computational precision floating-point instructions retired; some instructions …
30 …"BriefDescription": "Counts once for most SIMD 256-bit packed single computational precision float…
34-bit packed single computational precision floating-point instructions retired; some instructions …
39-bit packed single and 256-bit packed double precision FP instructions retired; some instructions …
43-bit packed single precision and 256-bit packed double precision floating-point instructions reti…
[all …]
/linux/drivers/media/platform/st/sti/hva/
H A Dhva-debugfs.c1 // SPDX-License-Identifier: GPL-2.0
11 #include "hva-hw.h"
15 struct hva_streaminfo *stream = &ctx->streaminfo; in format_ctx()
16 struct hva_frameinfo *frame = &ctx->frameinfo; in format_ctx()
17 struct hva_controls *ctrls = &ctx->ctrls; in format_ctx()
18 struct hva_ctx_dbg *dbg = &ctx->dbg; in format_ctx()
21 seq_printf(s, "|-%s\n |\n", ctx->name); in format_ctx()
23 seq_printf(s, " |-[%sframe info]\n", in format_ctx()
24 ctx->flags & HVA_FLAG_FRAMEINFO ? "" : "default "); in format_ctx()
25 seq_printf(s, " | |- pixel format=%4.4s\n" in format_ctx()
[all …]
/linux/tools/perf/pmu-events/arch/x86/skylake/
H A Dfloating-point.json3 …"BriefDescription": "Counts once for most SIMD 128-bit packed computational double precision float…
7-bit packed computational double precision floating-point instructions retired; some instructions …
12 …"BriefDescription": "Counts once for most SIMD 128-bit packed computational single precision float…
16-bit packed computational single precision floating-point instructions retired; some instructions …
21 …"BriefDescription": "Counts once for most SIMD 256-bit packed double computational precision float…
25-bit packed double computational precision floating-point instructions retired; some instructions …
30 …"BriefDescription": "Counts once for most SIMD 256-bit packed single computational precision float…
34-bit packed single computational precision floating-point instructions retired; some instructions …
39-bit packed single and 256-bit packed double precision FP instructions retired; some instructions …
43-bit packed single precision and 256-bit packed double precision floating-point instructions reti…
[all …]
/linux/tools/testing/selftests/power_supply/
H A Dhelpers.sh2 # SPDX-License-Identifier: GPL-2.0
18 if [ -z "$VALUE" ]; then
19 ktap_test_result "$TEST_NAME" [ -f "$PROP_PATH" ]
21 ktap_test_result "$TEST_NAME" grep -q "$VALUE" "$PROP_PATH"
30 *[!0-9]* ) return ;; # Not a number
35 div=1000
38 div=1000000
41 div=1000000
44 div=1000
47 div=1000000
[all …]
/linux/Documentation/devicetree/bindings/clock/ti/
H A Dti,divider-clock.yaml1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
4 $id: http://devicetree.org/schemas/clock/ti/ti,divider-clock.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Tero Kristo <kristo@kernel.org>
13 This clock It assumes a register-mapped adjustable clock rate divider
25 ti,index-starts-at-one - valid divisor values start at 1, not the default
32 ti,index-power-of-two - valid divisor values are powers of two. E.g:
49 Any zero value in this array means the corresponding bit-value is invalid
53 unless the divider array is provided, min and max dividers. Optionally
[all …]
/linux/drivers/clk/at91/
H A Dclk-generated.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * Based on clk-programmable & clk-peripheral drivers by Boris BREZILLON.
10 #include <linux/clk-provider.h>
43 spin_lock_irqsave(gck->lock, flags); in clk_generated_set()
44 regmap_write(gck->regmap, gck->layout->offset, in clk_generated_set()
45 (gck->id & gck->layout->pid_mask)); in clk_generated_set()
46 regmap_update_bits(gck->regmap, gck->layout->offset, in clk_generated_set()
47 AT91_PMC_PCR_GCKDIV_MASK | gck->layout->gckcss_mask | in clk_generated_set()
48 gck->layout->cmd | enable, in clk_generated_set()
49 field_prep(gck->layout->gckcss_mask, gck->parent_id) | in clk_generated_set()
[all …]
H A Dclk-pll.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 #include <linux/clk-provider.h>
20 #define PLL_MUL(reg, layout) (((reg) >> (layout)->mul_shift) & \
21 (layout)->mul_mask)
23 #define PLL_MUL_MASK(layout) ((layout)->mul_mask)
38 u8 div; member
58 struct regmap *regmap = pll->regmap; in clk_pll_prepare()
59 const struct clk_pll_layout *layout = pll->layout; in clk_pll_prepare()
61 pll->characteristics; in clk_pll_prepare()
62 u8 id = pll->id; in clk_pll_prepare()
[all …]
/linux/drivers/clk/renesas/
H A Drcar-gen4-cpg.c1 // SPDX-License-Identifier: GPL-2.0
3 * R-Car Gen4 Clock Pulse Generator
7 * Based on rcar-gen3-cpg.c
9 * Copyright (C) 2015-2018 Glider bvba
15 #include <linux/clk-provider.h>
23 #include "renesas-cpg-mssr.h"
24 #include "rcar-gen4-cpg.h"
25 #include "rcar-cpg-lib.h"
33 #define CPG_PLLECR_PLLST(n) BIT(8 + ((n) < 3 ? (n) - 1 : \
67 #define CPG_SD0CKCR1 0x8a4 /* SD-IF0 Clock Freq. Control Reg. 1 */
[all …]
H A Drcar-gen3-cpg.c1 // SPDX-License-Identifier: GPL-2.0
3 * R-Car Gen3 Clock Pulse Generator
5 * Copyright (C) 2015-2018 Glider bvba
8 * Based on clk-rcar-gen3.c
16 #include <linux/clk-provider.h>
25 #include "renesas-cpg-mssr.h"
26 #include "rcar-cpg-lib.h"
27 #include "rcar-gen3-cpg.h"
59 val = readl(pll_clk->pllcr_reg) & CPG_PLLnCR_STC_MASK; in cpg_pll_clk_recalc_rate()
62 return parent_rate * mult * pll_clk->fixed_mult; in cpg_pll_clk_recalc_rate()
[all …]
/linux/drivers/cpufreq/
H A Dcpufreq-nforce2.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * (C) 2004-2006 Sebastian Witt <se.witt@gmx.net>
25 #define NFORCE2_PLL(mul, div) (0x100000 | (mul << 8) | div) argument
59 "Minimum FSB to use, if not defined: current FSB - 50");
62 * nforce2_calc_fsb - calculate FSB
69 unsigned char mul, div; in nforce2_calc_fsb() local
72 div = pll & 0xff; in nforce2_calc_fsb()
74 if (div > 0) in nforce2_calc_fsb()
75 return NFORCE2_XTAL * mul / div; in nforce2_calc_fsb()
81 * nforce2_calc_pll - calculate PLL value
[all …]
/linux/sound/soc/renesas/rcar/
H A Dadg.c1 // SPDX-License-Identifier: GPL-2.0
3 // Helper routines for R-Car sound ADG.
6 #include <linux/clk-provider.h>
52 (i < adg->clkin_size) && \
53 ((pos) = adg->clkin[i]); \
57 (i < adg->clkout_size) && \
58 ((pos) = adg->clkout[i]); \
60 #define rsnd_priv_to_adg(priv) ((struct rsnd_adg *)(priv)->adg)
80 static u32 rsnd_adg_calculate_brgx(unsigned long div) in rsnd_adg_calculate_brgx() argument
84 if (!div) in rsnd_adg_calculate_brgx()
[all …]
/linux/drivers/pwm/
H A Dpwm-atmel-tcb.c1 // SPDX-License-Identifier: GPL-2.0-only
36 unsigned div; /* PWM clock divider */ member
72 struct atmel_tcb_pwm_device *tcbpwm = &tcbpwmc->pwms[pwm->hwpwm]; in atmel_tcb_pwm_request()
76 ret = clk_prepare_enable(tcbpwmc->clk); in atmel_tcb_pwm_request()
80 tcbpwm->duty = 0; in atmel_tcb_pwm_request()
81 tcbpwm->period = 0; in atmel_tcb_pwm_request()
82 tcbpwm->div = 0; in atmel_tcb_pwm_request()
84 guard(spinlock)(&tcbpwmc->lock); in atmel_tcb_pwm_request()
86 regmap_read(tcbpwmc->regmap, ATMEL_TC_REG(tcbpwmc->channel, CMR), &cmr); in atmel_tcb_pwm_request()
92 if (pwm->hwpwm == 0) in atmel_tcb_pwm_request()
[all …]
/linux/drivers/i2c/busses/
H A Di2c-meson.c1 // SPDX-License-Identifier: GPL-2.0-only
68 * struct meson_i2c - Meson I2C device private data
116 data = readl(i2c->regs + reg); in meson_i2c_set_mask()
119 writel(data, i2c->regs + reg); in meson_i2c_set_mask()
124 i2c->tokens[0] = 0; in meson_i2c_reset_tokens()
125 i2c->tokens[1] = 0; in meson_i2c_reset_tokens()
126 i2c->num_tokens = 0; in meson_i2c_reset_tokens()
131 if (i2c->num_tokens < 8) in meson_i2c_add_token()
132 i2c->tokens[0] |= (token & 0xf) << (i2c->num_tokens * 4); in meson_i2c_add_token()
134 i2c->tokens[1] |= (token & 0xf) << ((i2c->num_tokens % 8) * 4); in meson_i2c_add_token()
[all …]
/linux/drivers/clk/rockchip/
H A Dclk-half-divider.c1 // SPDX-License-Identifier: GPL-2.0
6 #include <linux/clk-provider.h>
11 #define div_mask(width) ((1 << (width)) - 1)
17 return abs(rate - now) < abs(rate - best); in _is_best_half_div()
28 val = readl(divider->reg) >> divider->shift; in clk_half_divider_recalc_rate()
29 val &= div_mask(divider->width); in clk_half_divider_recalc_rate()
54 bestdiv = (bestdiv - 3) / 2; in clk_half_divider_bestdiv()
63 maxdiv = min(ULONG_MAX / rate, maxdiv); in clk_half_divider_bestdiv()
99 int div; in clk_half_divider_round_rate() local
101 div = clk_half_divider_bestdiv(hw, rate, prate, in clk_half_divider_round_rate()
[all …]
/linux/drivers/clk/tegra/
H A Dclk-sdmmc-mux.c1 // SPDX-License-Identifier: GPL-2.0
5 * based on clk-mux.c
9 * Copyright (C) 2011-2012 Mike Turquette, Linaro Ltd <mturquette@linaro.org>
13 #include <linux/clk-provider.h>
50 val = readl_relaxed(sdmmc_mux->reg); in clk_sdmmc_mux_get_parent()
73 val = readl_relaxed(sdmmc_mux->reg); in clk_sdmmc_mux_set_parent()
82 writel(val, sdmmc_mux->reg); in clk_sdmmc_mux_set_parent()
92 int div; in clk_sdmmc_mux_recalc_rate() local
95 val = readl_relaxed(sdmmc_mux->reg); in clk_sdmmc_mux_recalc_rate()
96 div = get_div_field(val); in clk_sdmmc_mux_recalc_rate()
[all …]

1234567891011