Home
last modified time | relevance | path

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

12345678910>>...41

/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/drivers/iio/afe/
H A Diio-rescale.c1 // SPDX-License-Identifier: GPL-2.0
46 return iio_read_channel_raw(rescale->source, val); in rescale_read_raw()
49 ret = iio_read_channel_scale(rescale->source, val, val2); in rescale_read_raw()
52 *val *= rescale->numerator; in rescale_read_raw()
53 *val2 *= rescale->denominator; in rescale_read_raw()
56 *val *= rescale->numerator; in rescale_read_raw()
57 if (rescale->denominator == 1) in rescale_read_raw()
59 *val2 = rescale->denominator; in rescale_read_raw()
63 tmp = div_s64(tmp, rescale->denominator); in rescale_read_raw()
64 tmp *= rescale->numerator; in rescale_read_raw()
[all …]
/OK3568_Linux_fs/kernel/drivers/clk/mediatek/
H A Dclk-mt8173.c1 // SPDX-License-Identifier: GPL-2.0-only
11 #include "clk-mtk.h"
12 #include "clk-gate.h"
13 #include "clk-cpumux.h"
15 #include <dt-bindings/clock/mt8173-clk.h>
36 FACTOR(CLK_TOP_ARMCA7PLL_754M, "armca7pll_754m", "armca7pll", 1, 2),
37 FACTOR(CLK_TOP_ARMCA7PLL_502M, "armca7pll_502m", "armca7pll", 1, 3),
39 FACTOR(CLK_TOP_MAIN_H546M, "main_h546m", "mainpll", 1, 2),
40 FACTOR(CLK_TOP_MAIN_H364M, "main_h364m", "mainpll", 1, 3),
41 FACTOR(CLK_TOP_MAIN_H218P4M, "main_h218p4m", "mainpll", 1, 5),
[all …]
H A Dclk-mt6765.c1 // SPDX-License-Identifier: GPL-2.0
7 #include <linux/clk-provider.h>
15 #include "clk-mtk.h"
16 #include "clk-gate.h"
17 #include "clk-mux.h"
19 #include <dt-bindings/clock/mt6765-clk.h>
82 FACTOR(CLK_TOP_SYSPLL, "syspll_ck", "mainpll", 1, 1),
83 FACTOR(CLK_TOP_SYSPLL_D2, "syspll_d2", "mainpll", 1, 2),
84 FACTOR(CLK_TOP_SYSPLL1_D2, "syspll1_d2", "syspll_d2", 1, 2),
85 FACTOR(CLK_TOP_SYSPLL1_D4, "syspll1_d4", "syspll_d2", 1, 4),
[all …]
H A Dclk-mt8135.c1 // SPDX-License-Identifier: GPL-2.0-only
12 #include <dt-bindings/clock/mt8135-clk.h>
14 #include "clk-mtk.h"
15 #include "clk-gate.h"
20 FACTOR(CLK_TOP_DSI0_LNTC_DSICLK, "dsi0_lntc_dsiclk", "clk_null", 1, 1),
21 FACTOR(CLK_TOP_HDMITX_CLKDIG_CTS, "hdmitx_clkdig_cts", "clk_null", 1, 1),
22 FACTOR(CLK_TOP_CLKPH_MCK, "clkph_mck", "clk_null", 1, 1),
23 FACTOR(CLK_TOP_CPUM_TCK_IN, "cpum_tck_in", "clk_null", 1, 1),
27 FACTOR(CLK_TOP_MAINPLL_806M, "mainpll_806m", "mainpll", 1, 2),
28 FACTOR(CLK_TOP_MAINPLL_537P3M, "mainpll_537p3m", "mainpll", 1, 3),
[all …]
H A Dclk-mt2712.c1 // SPDX-License-Identifier: GPL-2.0-only
16 #include "clk-mtk.h"
17 #include "clk-gate.h"
19 #include <dt-bindings/clock/mt2712-clk.h>
39 FACTOR(CLK_TOP_SYS_26M, "sys_26m", "clk26m", 1,
41 FACTOR(CLK_TOP_CLK26M_D2, "clk26m_d2", "sys_26m", 1,
46 FACTOR(CLK_TOP_ARMCA35PLL, "armca35pll_ck", "armca35pll", 1,
48 FACTOR(CLK_TOP_ARMCA35PLL_600M, "armca35pll_600m", "armca35pll_ck", 1,
50 FACTOR(CLK_TOP_ARMCA35PLL_400M, "armca35pll_400m", "armca35pll_ck", 1,
52 FACTOR(CLK_TOP_ARMCA72PLL, "armca72pll_ck", "armca72pll", 1,
[all …]
H A Dclk-mt8516.c1 // SPDX-License-Identifier: GPL-2.0
14 #include "clk-mtk.h"
15 #include "clk-gate.h"
17 #include <dt-bindings/clock/mt8516-clk.h>
28 FACTOR(CLK_TOP_DMPLL, "dmpll_ck", "mempll", 1, 1),
29 FACTOR(CLK_TOP_MAINPLL_D2, "mainpll_d2", "mainpll", 1, 2),
30 FACTOR(CLK_TOP_MAINPLL_D4, "mainpll_d4", "mainpll", 1, 4),
31 FACTOR(CLK_TOP_MAINPLL_D8, "mainpll_d8", "mainpll", 1, 8),
32 FACTOR(CLK_TOP_MAINPLL_D16, "mainpll_d16", "mainpll", 1, 16),
33 FACTOR(CLK_TOP_MAINPLL_D11, "mainpll_d11", "mainpll", 1, 11),
[all …]
H A Dclk-mt8167.c1 // SPDX-License-Identifier: GPL-2.0
15 #include "clk-mtk.h"
16 #include "clk-gate.h"
18 #include <dt-bindings/clock/mt8167-clk.h>
32 FACTOR(CLK_TOP_DMPLL, "dmpll_ck", "mempll", 1, 1),
33 FACTOR(CLK_TOP_MAINPLL_D2, "mainpll_d2", "mainpll", 1, 2),
34 FACTOR(CLK_TOP_MAINPLL_D4, "mainpll_d4", "mainpll", 1, 4),
35 FACTOR(CLK_TOP_MAINPLL_D8, "mainpll_d8", "mainpll", 1, 8),
36 FACTOR(CLK_TOP_MAINPLL_D16, "mainpll_d16", "mainpll", 1, 16),
37 FACTOR(CLK_TOP_MAINPLL_D11, "mainpll_d11", "mainpll", 1, 11),
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/host_include/mbedtls/
H A Drsa_internal.h4 * \brief Context-independent RSA helper functions
6 * This module declares some RSA-related helper functions useful when
13 * End-users of Mbed TLS who are not providing their own alternative RSA
23 * (1) Parameter-generating helpers. These are:
24 * - mbedtls_rsa_deduce_primes
25 * - mbedtls_rsa_deduce_private_exponent
26 * - mbedtls_rsa_deduce_crt
30 * (2) Parameter-checking helpers. These are:
31 * - mbedtls_rsa_validate_params
32 * - mbedtls_rsa_validate_crt
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/include/mbedtls/
H A Drsa_internal.h4 * \brief Context-independent RSA helper functions
6 * This module declares some RSA-related helper functions useful when
13 * End-users of Mbed TLS who are not providing their own alternative RSA
23 * (1) Parameter-generating helpers. These are:
24 * - mbedtls_rsa_deduce_primes
25 * - mbedtls_rsa_deduce_private_exponent
26 * - mbedtls_rsa_deduce_crt
30 * (2) Parameter-checking helpers. These are:
31 * - mbedtls_rsa_validate_params
32 * - mbedtls_rsa_validate_crt
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/host_include/mbedtls/
H A Drsa_internal.h4 * \brief Context-independent RSA helper functions
6 * This module declares some RSA-related helper functions useful when
13 * End-users of Mbed TLS who are not providing their own alternative RSA
23 * (1) Parameter-generating helpers. These are:
24 * - mbedtls_rsa_deduce_primes
25 * - mbedtls_rsa_deduce_private_exponent
26 * - mbedtls_rsa_deduce_crt
30 * (2) Parameter-checking helpers. These are:
31 * - mbedtls_rsa_validate_params
32 * - mbedtls_rsa_validate_crt
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/include/mbedtls/
H A Drsa_internal.h4 * \brief Context-independent RSA helper functions
6 * This module declares some RSA-related helper functions useful when
13 * End-users of Mbed TLS who are not providing their own alternative RSA
23 * (1) Parameter-generating helpers. These are:
24 * - mbedtls_rsa_deduce_primes
25 * - mbedtls_rsa_deduce_private_exponent
26 * - mbedtls_rsa_deduce_crt
30 * (2) Parameter-checking helpers. These are:
31 * - mbedtls_rsa_validate_params
32 * - mbedtls_rsa_validate_crt
[all …]
/OK3568_Linux_fs/kernel/drivers/crypto/caam/
H A Dcaampkc.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * caam - Freescale FSL CAAM support for Public Key Cryptography descriptors
18 * caam_priv_key_form - CAAM RSA private key representation
21 * 1. The first representation consists of the pair (n, d), where the
23 * n the RSA modulus
28 * p the first prime factor of the RSA modulus n
29 * q the second prime factor of the RSA modulus n
34 * p the first prime factor of the RSA modulus n
35 * q the second prime factor of the RSA modulus n
50 * caam_rsa_key - CAAM RSA key structure. Keys are allocated in DMA zone.
[all …]
/OK3568_Linux_fs/kernel/drivers/clk/mmp/
H A Dclk-frac.c2 * mmp factor clock operation source file
12 #include <linux/clk-provider.h>
19 * It is M/N clock
22 * numerator/denominator = Fin / (Fout * factor)
30 struct mmp_clk_factor *factor = to_clk_factor(hw); in clk_factor_round_rate() local
34 for (i = 0; i < factor->ftbl_cnt; i++) { in clk_factor_round_rate()
37 rate *= factor->ftbl[i].den; in clk_factor_round_rate()
38 do_div(rate, factor->ftbl[i].num * factor->masks->factor); in clk_factor_round_rate()
43 if ((i == 0) || (i == factor->ftbl_cnt)) { in clk_factor_round_rate()
46 if ((drate - prev_rate) > (rate - drate)) in clk_factor_round_rate()
[all …]
/OK3568_Linux_fs/buildroot/dl/sox/git/src/
H A Dstretch.c7 * - stretch factor f
8 * - window size w
9 * - input step i
11 * - steady state of window s, ss = s*w
32 * FIXME: maybe shift could be allowed > 1.0 with factor < 1.0 ???
34 double factor; /* strech factor. 1.0 means copy. */ member
52 double * fade_coefs; /* fading, 1.0 -> 0.0 */
61 priv_t * p = (priv_t *) effp->priv; in getopts()
62 --argc, ++argv; in getopts()
65 p->factor = 1.0; /* default is no change */ in getopts()
[all …]
H A Dtempo.c17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
28 double factor; /* 1 for no change, < 1 for slower, > 1 for faster. */ member
47 /* Waveform Similarity by least squares; works across multi-channels */
53 #define _ diff += sqr(a[i] - b[i]), ++i; /* Loop optimisation */ in difference()
54 do {_ _ _ _ _ _ _ _} while (i < length); /* N.B. length ≡ 0 (mod 8) */ in difference()
62 float * f = t->overlap_buf; in tempo_best_overlap_position()
63 size_t j, best_pos, prev_best_pos = (t->search + 1) >> 1, step = 64; in tempo_best_overlap_position()
64 size_t i = best_pos = t->quick_search? prev_best_pos : 0; in tempo_best_overlap_position()
65 float diff, least_diff = difference(new_win + t->channels * i, f, t->channels * t->overlap); in tempo_best_overlap_position()
68 if (t->quick_search) do { /* hierarchical search */ in tempo_best_overlap_position()
[all …]
/OK3568_Linux_fs/kernel/fs/btrfs/
H A Dmisc.h1 /* SPDX-License-Identifier: GPL-2.0 */
35 static inline u64 div_factor(u64 num, int factor) in div_factor() argument
37 if (factor == 10) in div_factor()
39 num *= factor; in div_factor()
43 static inline u64 div_factor_fine(u64 num, int factor) in div_factor_fine() argument
45 if (factor == 100) in div_factor_fine()
47 num *= factor; in div_factor_fine()
52 static inline bool is_power_of_two_u64(u64 n) in is_power_of_two_u64() argument
54 return n != 0 && (n & (n - 1)) == 0; in is_power_of_two_u64()
57 static inline bool has_single_bit_set(u64 n) in has_single_bit_set() argument
[all …]
/OK3568_Linux_fs/u-boot/arch/arm/mach-omap2/
H A Dutils.c5 * SPDX-License-Identifier: GPL-2.0+
10 static void do_cancel_out(u32 *num, u32 *den, u32 factor) in do_cancel_out() argument
13 if (((*num)/factor*factor == (*num)) && in do_cancel_out()
14 ((*den)/factor*factor == (*den))) { in do_cancel_out()
15 (*num) /= factor; in do_cancel_out()
16 (*den) /= factor; in do_cancel_out()
40 printf("Warning: fastboot.cpu: unknown CPU rev: %u\n", cpu_rev); in omap_set_fastboot_cpu()
63 printf("Warning: fastboot.secure: unknown CPU sec: %u\n", dev); in omap_set_fastboot_secure()
75 printf("Warning: fastboot.board_rev: unknown board revision\n"); in omap_set_fastboot_board_rev()
89 if (!dev_desc || dev_desc->type == DEV_TYPE_UNKNOWN) { in omap_mmc_get_part_size()
[all …]
/OK3568_Linux_fs/buildroot/dl/sox/git/test/
H A Dmodel.c2 model.c -- program to help test DSP filter and rate-conversion code.
18 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
38 # define MINSAMPL -0x8000
42 # define MINSAMPL -0x800000
57 fprintf(stderr,"Usage: ./model rate0,rate1 [-l len] [-f freq] <in-file>\n"); exit(-1); in Usage()
60 static int ReadN(int fd, SAMPL *v, int n) in ReadN() argument
65 r = read(fd, (char*)(v), n*sizeof(SAMPL)); in ReadN()
66 }while(r==-1 && errno==EINTR); in ReadN()
67 if (r==-1 || r%sizeof(SAMPL)) { in ReadN()
68 perror("Error reading input"); exit(-1); in ReadN()
[all …]
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/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>
15 #include "owl-factor.h"
22 for (clkt = table; clkt->div; clkt++) in _get_table_maxval()
23 if (clkt->val > maxval) in _get_table_maxval()
24 maxval = clkt->val; in _get_table_maxval()
33 for (clkt = table; clkt->div; clkt++) { in _get_table_div_mul()
34 if (clkt->val == val) { in _get_table_div_mul()
[all …]
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/pci/runtime/binary/src/
H A Dbinary.c1 // SPDX-License-Identifier: GPL-2.0
55 if (info->enable.dvs_envelope) { in ia_css_binary_dvs_env()
57 binary_dvs_env->width = max(dvs_env->width, SH_CSS_MIN_DVS_ENVELOPE); in ia_css_binary_dvs_env()
58 binary_dvs_env->height = max(dvs_env->height, SH_CSS_MIN_DVS_ENVELOPE); in ia_css_binary_dvs_env()
72 bool binary_supports_yuv_ds = info->enable.ds & 2; in ia_css_binary_internal_res()
81 isp_tmp_internal_width = in_info->res.width in ia_css_binary_internal_res()
82 + info->pipeline.left_cropping + binary_dvs_env.width; in ia_css_binary_internal_res()
83 isp_tmp_internal_height = in_info->res.height in ia_css_binary_internal_res()
84 + info->pipeline.top_cropping + binary_dvs_env.height; in ia_css_binary_internal_res()
89 (bds_out_info->res.width >= out_info->res.width)) { in ia_css_binary_internal_res()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/positioning/
H A Dqdoublevector2d_p.h14 ** and conditions see https://www.qt.io/terms-conditions. For further
15 ** information use the contact form at https://www.qt.io/contact-us.
23 ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
33 ** be met: https://www.gnu.org/licenses/gpl-2.0.html and
34 ** https://www.gnu.org/licenses/gpl-3.0.html.
44 // W A R N I N G
45 // -------------
91 inline QDoubleVector2D &operator-=(const QDoubleVector2D &vector);
92 inline QDoubleVector2D &operator*=(double factor);
104 …friend Q_DECL_CONSTEXPR inline const QDoubleVector2D operator-(const QDoubleVector2D &v1, const QD…
[all …]

12345678910>>...41