Home
last modified time | relevance | path

Searched +full:n +full:- +full:factor (Results 1 – 25 of 818) sorted by relevance

12345678910>>...33

/openbmc/linux/drivers/s390/block/
H A Ddasd_proc.c1 // SPDX-License-Identifier: GPL-2.0
42 device = dasd_device_from_devindex((unsigned long) v - 1); in dasd_devices_show()
45 if (device->block) in dasd_devices_show()
46 block = device->block; in dasd_devices_show()
52 seq_printf(m, "%s", dev_name(&device->cdev->dev)); in dasd_devices_show()
54 if (device->discipline != NULL) in dasd_devices_show()
55 seq_printf(m, "(%s)", device->discipline->name); in dasd_devices_show()
59 if (block->gdp) in dasd_devices_show()
61 MAJOR(disk_devt(block->gdp)), in dasd_devices_show()
62 MINOR(disk_devt(block->gdp))); in dasd_devices_show()
[all …]
/openbmc/linux/drivers/clk/mmp/
H A Dclk-frac.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * mmp factor clock operation source file
9 #include <linux/clk-provider.h>
16 * It is M/N clock
19 * numerator/denominator = Fin / (Fout * factor)
27 struct mmp_clk_factor *factor = to_clk_factor(hw); in clk_factor_round_rate() local
31 for (i = 0; i < factor->ftbl_cnt; i++) { in clk_factor_round_rate()
34 rate *= factor->ftbl[i].den; in clk_factor_round_rate()
35 do_div(rate, factor->ftbl[i].num * factor->masks->factor); in clk_factor_round_rate()
40 if ((i == 0) || (i == factor->ftbl_cnt)) { in clk_factor_round_rate()
[all …]
/openbmc/linux/drivers/iio/afe/
H A Diio-rescale.c1 // SPDX-License-Identifier: GPL-2.0
33 *val *= rescale->numerator; in rescale_process_scale()
34 if (rescale->denominator == 1) in rescale_process_scale()
36 *val2 = rescale->denominator; in rescale_process_scale()
44 if (!check_mul_overflow(*val, rescale->numerator, &_val) && in rescale_process_scale()
45 !check_mul_overflow(*val2, rescale->denominator, &_val2)) { in rescale_process_scale()
53 tmp = div_s64(tmp, rescale->denominator); in rescale_process_scale()
54 tmp *= rescale->numerator; in rescale_process_scale()
82 * *val = 1 and *val2 = -0.5 yields -1.5 not -0.5. in rescale_process_scale()
86 tmp = (s64)abs(*val) * abs(rescale->numerator); in rescale_process_scale()
[all …]
/openbmc/linux/drivers/crypto/caam/
H A Dcaampkc.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * caam - Freescale FSL CAAM support for Public Key Cryptography descriptors
17 * caam_priv_key_form - CAAM RSA private key representation
20 * 1. The first representation consists of the pair (n, d), where the
22 * n the RSA modulus
27 * p the first prime factor of the RSA modulus n
28 * q the second prime factor of the RSA modulus n
33 * p the first prime factor of the RSA modulus n
34 * q the second prime factor of the RSA modulus n
49 * caam_rsa_key - CAAM RSA key structure. Keys are allocated in DMA zone.
[all …]
/openbmc/linux/drivers/media/platform/allegro-dvt/
H A Dnal-hevc.h1 /* SPDX-License-Identifier: GPL-2.0 */
14 #include <linux/v4l2-controls.h>
60 * struct nal_hevc_vps - Video parameter set
63 * Rec. ITU-T H.265 (02/2018) 7.3.2.1 Video parameter set RBSP syntax
135 * struct nal_hevc_vui_parameters - VUI parameters
137 * C struct representation of the VUI parameters as defined by Rec. ITU-T
198 * struct nal_hevc_sps - Sequence parameter set
201 * Rec. ITU-T H.265 (02/2018) 7.3.2.2 Sequence parameter set RBSP syntax
324 * nal_hevc_profile() - Get profile_idc for v4l2 hevc profile
328 * in Rec. ITU-T H.265 (02/2018) A.3.
[all …]
/openbmc/u-boot/arch/arm/mach-omap2/
H A Dutils.c1 // SPDX-License-Identifier: GPL-2.0+
12 static void do_cancel_out(u32 *num, u32 *den, u32 factor) in do_cancel_out() argument
15 if (((*num)/factor*factor == (*num)) && in do_cancel_out()
16 ((*den)/factor*factor == (*den))) { in do_cancel_out()
17 (*num) /= factor; in do_cancel_out()
18 (*den) /= factor; in do_cancel_out()
48 printf("Warning: fastboot.cpu: unknown CPU rev: %u\n", cpu_rev); in omap_set_fastboot_cpu()
71 printf("Warning: fastboot.secure: unknown CPU sec: %u\n", dev); in omap_set_fastboot_secure()
83 printf("Warning: fastboot.board_rev: unknown board revision\n"); in omap_set_fastboot_board_rev()
97 if (!dev_desc || dev_desc->type == DEV_TYPE_UNKNOWN) { in omap_mmc_get_part_size()
[all …]
/openbmc/linux/drivers/clk/mediatek/
H A Dclk-mt6765.c1 // SPDX-License-Identifier: GPL-2.0
7 #include <linux/clk-provider.h>
15 #include "clk-gate.h"
16 #include "clk-mtk.h"
17 #include "clk-mux.h"
18 #include "clk-pll.h"
20 #include <dt-bindings/clock/mt6765-clk.h>
83 FACTOR(CLK_TOP_SYSPLL, "syspll_ck", "mainpll", 1, 1),
84 FACTOR(CLK_TOP_SYSPLL_D2, "syspll_d2", "mainpll", 1, 2),
85 FACTOR(CLK_TOP_SYSPLL1_D2, "syspll1_d2", "syspll_d2", 1, 2),
[all …]
H A Dclk-mt6797.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Author: Kevin Chen <kevin-cw.chen@mediatek.com>
10 #include "clk-gate.h"
11 #include "clk-mtk.h"
12 #include "clk-pll.h"
14 #include <dt-bindings/clock/mt6797-clk.h>
25 FACTOR(CLK_TOP_SYSPLL_CK, "syspll_ck", "mainpll", 1, 1),
26 FACTOR(CLK_TOP_SYSPLL_D2, "syspll_d2", "mainpll", 1, 2),
27 FACTOR(CLK_TOP_SYSPLL1_D2, "syspll1_d2", "syspll_d2", 1, 2),
28 FACTOR(CLK_TOP_SYSPLL1_D4, "syspll1_d4", "syspll_d2", 1, 4),
[all …]
H A Dclk-mt2701.c1 // SPDX-License-Identifier: GPL-2.0-only
7 #include <linux/clk-provider.h>
11 #include "clk-cpumux.h"
12 #include "clk-gate.h"
13 #include "clk-mtk.h"
14 #include "clk-pll.h"
16 #include <dt-bindings/clock/mt2701-clk.h>
57 FACTOR(CLK_TOP_SYSPLL, "syspll_ck", "mainpll", 1, 1),
58 FACTOR(CLK_TOP_SYSPLL_D2, "syspll_d2", "mainpll", 1, 2),
59 FACTOR(CLK_TOP_SYSPLL_D3, "syspll_d3", "mainpll", 1, 3),
[all …]
/openbmc/linux/tools/testing/selftests/syscall_user_dispatch/
H A Dsud_benchmark.c1 // SPDX-License-Identifier: GPL-2.0-only
37 * requires some per-architecture support (i.e. knowledge about the
39 * a small trampoline is open-coded for x86_64. Other architectures
65 int factor; variable
77 return (t2.tv_sec - t1.tv_sec) + 1.0e-9 * (t2.tv_nsec - t1.tv_nsec); in one_sysinfo_step()
84 printf("Calibrating test set to last ~%d seconds...\n", CALIBRATE_TO_SECS); in calibrate_set()
88 factor += CALIBRATE_TO_SECS; in calibrate_set()
91 printf("test iterations = %d\n", CALIBRATION_STEP * factor); in calibrate_set()
99 for (i = 0; i < factor; ++i) in perf_syscall()
100 partial += one_sysinfo_step()/(CALIBRATION_STEP*factor); in perf_syscall()
[all …]
/openbmc/linux/drivers/clk/actions/
H A Dowl-factor.c1 // SPDX-License-Identifier: GPL-2.0+
3 // OWL factor clock driver
6 // Author: David Liu <liuwei@actions-semi.com>
11 #include <linux/clk-provider.h>
14 #include "owl-factor.h"
21 for (clkt = table; clkt->div; clkt++) in _get_table_maxval()
22 if (clkt->val > maxval) in _get_table_maxval()
23 maxval = clkt->val; in _get_table_maxval()
32 for (clkt = table; clkt->div; clkt++) { in _get_table_div_mul()
33 if (clkt->val == val) { in _get_table_div_mul()
[all …]
/openbmc/linux/drivers/media/test-drivers/vivid/
H A Dvivid-vid-out.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * vivid-vid-out.c - video output support functions.
12 #include <linux/v4l2-dv-timings.h>
13 #include <media/v4l2-common.h>
14 #include <media/v4l2-event.h>
15 #include <media/v4l2-dv-timings.h>
16 #include <media/v4l2-rect.h>
18 #include "vivid-core.h"
19 #include "vivid-vid-common.h"
20 #include "vivid-kthread-out.h"
[all …]
/openbmc/linux/drivers/clk/ti/
H A Dfixed-factor.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * TI Fixed Factor Clock
7 * Tero Kristo <t-kristo@ti.com>
10 #include <linux/clk-provider.h>
23 * of_ti_fixed_factor_clk_setup - Setup function for TI fixed factor clock
26 * Sets up a simple fixed factor clock based on device tree info.
36 if (of_property_read_u32(node, "ti,clock-div", &div)) { in of_ti_fixed_factor_clk_setup()
37 pr_err("%pOFn must have a clock-div property\n", node); in of_ti_fixed_factor_clk_setup()
41 if (of_property_read_u32(node, "ti,clock-mult", &mult)) { in of_ti_fixed_factor_clk_setup()
42 pr_err("%pOFn must have a clock-mult property\n", node); in of_ti_fixed_factor_clk_setup()
[all …]
/openbmc/linux/drivers/media/platform/ti/vpe/
H A Dsc.c1 // SPDX-License-Identifier: GPL-2.0-only
23 struct device *dev = &sc->pdev->dev; in sc_dump_regs()
25 #define DUMPREG(r) dev_dbg(dev, "%-35s %08x\n", #r, \ in sc_dump_regs()
26 ioread32(sc->base + CFG_##r)) in sc_dump_regs()
28 dev_dbg(dev, "SC Registers @ %pa:\n", &sc->res->start); in sc_dump_regs()
84 idx = HS_LT_9_16_SCALE + sixteenths - 8; in sc_set_hs_coeffs()
99 coeff_h += SC_NUM_TAPS_MEM_ALIGN - SC_H_NUM_TAPS; in sc_set_hs_coeffs()
102 sc->load_coeff_h = true; in sc_set_hs_coeffs()
127 idx = VS_LT_9_16_SCALE + sixteenths - 8; in sc_set_vs_coeffs()
140 coeff_v += SC_NUM_TAPS_MEM_ALIGN - SC_V_NUM_TAPS; in sc_set_vs_coeffs()
[all …]
/openbmc/qemu/crypto/
H A Drsakey.h25 #include "qemu/host-utils.h"
43 QCryptoAkCipherMPI n; member
48 /* The first factor */
50 /* The second factor */
52 /* The first factor's exponent */
54 /* The second factor's exponent */
64 * n INTEGER
76 * n INTEGER
/openbmc/linux/tools/testing/selftests/kvm/x86_64/
H A Dvmx_nested_tsc_scaling_test.c1 // SPDX-License-Identifier: GPL-2.0-only
18 /* L2 is scaled up (from L1's perspective) by this factor */
21 #define TSC_OFFSET_L2 ((uint64_t) -33125236320908)
42 thresh_low = expected - tolerance; in compare_tsc_freq()
69 tsc_freq = tsc_end - tsc_start; in check_tsc_freq()
154 * We set L1's scale factor to be a random number from 2 to 10. in main()
155 * Ideally we would do the same for L2's factor but that one is in main()
161 printf("L1's scale down factor is: %"PRIu64"\n", l1_scale_factor); in main()
162 printf("L2's scale up factor is: %llu\n", L2_SCALE_FACTOR); in main()
168 l0_tsc_freq = tsc_end - tsc_start; in main()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/hwmon/
H A Dti,tmp421.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Guenter Roeck <linux@roeck-us.net>
19 - ti,tmp421
20 - ti,tmp422
21 - ti,tmp423
22 - ti,tmp441
23 - ti,tmp442
27 '#address-cells':
[all …]
H A Dti,tmp464.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Guenter Roeck <linux@roeck-us.net>
20 - ti,tmp464
21 - ti,tmp468
26 '#address-cells':
29 '#size-cells':
33 - compatible
34 - reg
[all …]
H A Dti,tmp401.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Guenter Roeck <linux@roeck-us.net>
24 - ti,tmp401
25 - ti,tmp411
26 - ti,tmp431
27 - ti,tmp432
28 - ti,tmp435
33 ti,extended-range-enable:
[all …]
/openbmc/linux/drivers/clk/
H A Dclk-fixed-factor.c1 // SPDX-License-Identifier: GPL-2.0
6 #include <linux/clk-provider.h>
16 * prepare - clk_prepare only ensures that parents are prepared
17 * enable - clk_enable only ensures that parents are enabled
18 * rate - rate is fixed. clk->rate = parent->rate / div * mult
19 * parent - fixed parent. No clk_set_parent support
28 rate = (unsigned long long int)parent_rate * fix->mult; in clk_factor_recalc_rate()
29 do_div(rate, fix->div); in clk_factor_recalc_rate()
41 best_parent = (rate / fix->mult) * fix->div; in clk_factor_round_rate()
45 return (*prate / fix->div) * fix->mult; in clk_factor_round_rate()
[all …]
/openbmc/linux/drivers/clk/sunxi/
H A Dclk-factors.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Adjustable factor-based clock implementation
8 #include <linux/clk-provider.h>
16 #include "clk-factors.h"
19 * DOC: basic adjustable factor-based clock
22 * prepare - clk_prepare only ensures that parents are prepared
23 * enable - clk_enable only ensures that parents are enabled
24 * rate - rate is adjustable.
25 * clk->rate = (parent->rate * N * (K + 1) >> P) / (M + 1)
26 * parent - fixed parent. No clk_set_parent support
[all …]
/openbmc/linux/drivers/iio/adc/
H A Dad7292.c1 // SPDX-License-Identifier: GPL-2.0
92 st->d8[0] = AD7292_RD_FLAG_MSK(addr); in ad7292_spi_reg_read()
94 ret = spi_write_then_read(st->spi, st->d8, 1, &st->d16, 2); in ad7292_spi_reg_read()
98 return be16_to_cpu(st->d16); in ad7292_spi_reg_read()
104 unsigned int shift = 16 - (8 * len); in ad7292_spi_subreg_read()
107 st->d8[0] = AD7292_RD_FLAG_MSK(addr); in ad7292_spi_subreg_read()
108 st->d8[1] = sub_addr; in ad7292_spi_subreg_read()
110 ret = spi_write_then_read(st->spi, st->d8, 2, &st->d16, len); in ad7292_spi_subreg_read()
114 return (be16_to_cpu(st->d16) >> shift); in ad7292_spi_subreg_read()
124 .tx_buf = &st->d8, in ad7292_single_conversion()
[all …]
/openbmc/linux/drivers/thermal/
H A Damlogic_thermal.c1 // SPDX-License-Identifier: GPL-2.0+
10 * U = ---------, Uptat = ---------
11 * 2^16 1 + n * U
13 * Temperature = A * ( Uptat + u_efuse / 2^16 )- B
15 * A B m n : calibration parameters
71 * @n: calibration parameters
79 int n; member
113 pdata->data->calibration_parameters; in amlogic_thermal_code_to_millicelsius()
115 s64 factor, Uptat, uefuse; in amlogic_thermal_code_to_millicelsius() local
117 uefuse = pdata->trim_info & TSENSOR_TRIM_SIGN_MASK ? in amlogic_thermal_code_to_millicelsius()
[all …]
/openbmc/linux/drivers/gpu/drm/sprd/
H A Dmegacores_pll.c1 // SPDX-License-Identifier: GPL-2.0
22 #define AVERAGE(a, b) (min(a, b) + abs((b) - (a)) / 2)
34 const unsigned long long factor = 100; in dphy_calc_pll_param() local
38 pll->potential_fvco = pll->freq / khz; in dphy_calc_pll_param()
39 pll->ref_clk = PHY_REF_CLK / khz; in dphy_calc_pll_param()
42 if (pll->potential_fvco >= VCO_BAND_LOW && in dphy_calc_pll_param()
43 pll->potential_fvco <= VCO_BAND_HIGH) { in dphy_calc_pll_param()
44 pll->fvco = pll->potential_fvco; in dphy_calc_pll_param()
45 pll->out_sel = BIT(i); in dphy_calc_pll_param()
48 pll->potential_fvco <<= 1; in dphy_calc_pll_param()
[all …]
/openbmc/linux/drivers/md/
H A Dmd-autodetect.c1 // SPDX-License-Identifier: GPL-2.0
41 * Parse the command-line parameters given our kernel, but do not
43 * md_setup_drive after the low-level disk drivers have initialised.
49 * instead of just one. -- KTK
50 * 18May2000: Added support for persistent-superblock arrays:
51 * md=n,0,factor,fault,device-list uses RAID0 for device n
52 * md=n,-1,factor,fault,device-list uses LINEAR for device n
53 * md=n,device-list reads a RAID superblock from the devices
54 * elements in device-list are read by name_to_kdev_t so can be
56 * 2001-06-03: Dave Cinege <dcinege@psychosis.com>
[all …]

12345678910>>...33