/linux/arch/arc/include/asm/ |
H A D | delay.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) 5 * Delay routines using pre computed loops_per_jiffy value. 8 * -Rewrote in "C" to avoid dealing with availability of H/w MPY 9 * -Also reduced the num of MPY operations from 3 to 2 17 #include <asm-generic/types.h> 38 * -we have precomputed @loops_per_jiffy 39 * -1 sec has HZ jiffies 43 * -Mathematically if we multiply and divide a number by same value the 45 * -> (loops_per_N_usec * 2^32 ) / 2^32 [all …]
|
/linux/arch/m68k/include/asm/ |
H A D | delay.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 11 * Delay routines, using a pre-computed "loops_per_jiffy" value. 49 * The simpler m68k and ColdFire processors do not have a 32*32->64 50 * multiply instruction. So we need to handle them a little differently. 51 * We use a bit of shifting and a single 32*32->32 multiply to get close. 108 * The simpler m68k and ColdFire processors do not have a 32*32->64 109 * multiply instruction. So we need to handle them a little differently. 110 * We use a bit of shifting and a single 32*32->32 multiply to get close. 112 * multiply and shift.
|
/linux/tools/perf/pmu-events/arch/arm64/fujitsu/monaka/ |
H A D | spec_operation.json | 16 "BriefDescription": "This event counts every speculatively executed micro-operation." 20 … "BriefDescription": "This event counts architecturally executed load-exclusive instructions." 24 … "BriefDescription": "This event counts architecturally executed store-exclusive instructions." 28 …"BriefDescription": "This event counts architecturally executed memory-reading instructions, as de… 32 …"BriefDescription": "This event counts architecturally executed memory-writing instructions, as de… 36 …ription": "This event counts architecturally executed memory-reading instructions and memory-writi… 40 …"BriefDescription": "This event counts architecturally executed integer data-processing instructio… 44 …"BriefDescription": "This event counts architecturally executed Advanced SIMD data-processing inst… 48 …"BriefDescription": "This event counts architecturally executed floating-point data-processing ins… 68 …ch instructions that includes software change of the PC other than exception-generating instructio… [all …]
|
/linux/arch/arm64/crypto/ |
H A D | aes-neon.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * linux/arch/arm64/crypto/aes-neon.S - AES cipher for ARMv8 NEON 5 * Copyright (C) 2013 - 2017 Linaro Ltd. <ard.biesheuvel@linaro.org> 22 /* special case for the neon-bs driver calling into this one for CTS */ 27 /* multiply by polynomial 'x' in GF(2^8) */ 35 /* multiply by polynomial 'x^2' in GF(2^8) */ 49 ld1 {v16.16b-v19.16b}, [\temp], #64 50 ld1 {v20.16b-v23.16b}, [\temp], #64 51 ld1 {v24.16b-v27.16b}, [\temp], #64 52 ld1 {v28.16b-v31.16b}, [\temp] [all …]
|
/linux/arch/powerpc/include/asm/ |
H A D | sfp-machine.h | 1 /* Machine-dependent software floating-point definitions. PPC version. 18 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 26 denominator, which also happens to be the hardware I have :-> 27 That is, a SPARC without hardware multiply and divide. 37 #define __ll_lowpart(t) ((UWtype) (t) & (__ll_B - 1)) 43 * in op-2.h] or a call to add_ssaaaa (see below). 48 /* We need to know how to multiply and divide. If the host word size 50 * codes the multiply with whatever gcc does to 'a * b'. 52 * function that can multiply two 1W values and get a 2W result. 57 * _FP_DIV_HELP_ldiv (see op-1.h). [all …]
|
/linux/lib/crypto/x86/ |
H A D | sha1-ssse3-and-avx.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * This is a SIMD SHA-1 implementation. It requires the Intel(R) Supplemental 17 …* http://software.intel.com/en-us/articles/improving-the-performance-of-the-secure-hash-algorith… 61 /* we keep window of 64 w[i]+K pre-calculated values in a circular buffer */ 66 * This macro implements the SHA-1 function's body for single 64-byte block 83 shl $6, CNT # multiply by 64 108 * This macro implements 80 rounds of SHA-1 for one 64-byte block 163 add $64, BUFFER_PTR # move to the next 64-byte block 249 * RR does two rounds of SHA-1 back to back with W[] pre-calc 298 .set i, ((\r) % 80) # pre-compute for the next iteration [all …]
|
H A D | poly1305-x86_64-cryptogams.pl | 2 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 4 # Copyright (C) 2017-2018 Samuel Neves <sneves@dei.uc.pt>. All Rights Reserved. 5 # Copyright (C) 2017-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. 6 # Copyright (C) 2006-2017 CRYPTOGAMS by <appro@openssl.org>. All Rights Reserved. 35 # Skylake-X system performance. Since we are likely to suppress 36 # AVX512F capability flag [at least on Skylake-X], conversion serves 43 # IALU/gcc-4.8(*) AVX(**) AVX2 AVX-512 44 # P4 4.46/+120% - 45 # Core 2 2.41/+90% - 46 # Westmere 1.88/+120% - [all …]
|
/linux/Documentation/process/ |
H A D | stable-api-nonsense.rst | 8 Greg Kroah-Hartman <greg@kroah.com> 20 will not break. I have old programs that were built on a pre 0.9something 27 ----------------- 38 ----- 41 to worry about the in-kernel interfaces changing. For the majority of 59 ----------------------- 64 - Depending on the version of the C compiler you use, different kernel 71 - Depending on what kernel build options you select, a wide range of 74 - different structures can contain different fields 75 - Some functions may not be implemented at all, (i.e. some locks [all …]
|
/linux/arch/arm/nwfpe/ |
H A D | fpopcode.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 45 P pre/post index bit: 0 = postindex, 1 = preindex 66 +-------------------------+---+---+---------+---------+ 68 +-------------------------+---+---+---------+---------+ 74 +-------------------------+---+---+---------+---------+ 80 +---+---+---------------------------------+ 82 +---+---+---------------------------------+ 87 +---+---+---------------------------------+ 92 +---+---+---+---+----------+-----------------------+-----------------------+ 94 +---+---+---+---+----------+-----------------------+-----------------------+ [all …]
|
/linux/Documentation/devicetree/bindings/net/ |
H A D | snps,dwmac.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Alexandre Torgue <alexandre.torgue@foss.st.com> 11 - Giuseppe Cavallaro <peppe.cavallaro@st.com> 12 - Jose Abreu <joabreu@synopsys.com> 23 - snps,dwmac 24 - snps,dwmac-3.40a 25 - snps,dwmac-3.50a 26 - snps,dwmac-3.610 [all …]
|
/linux/drivers/media/i2c/ |
H A D | ar0521.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * - Przemysłowy Instytut Automatyki i Pomiarów PIAP 12 #include <media/v4l2-ctrls.h> 13 #include <media/v4l2-fwnode.h> 14 #include <media/v4l2-subdev.h> 130 u16 pre; member 145 return &container_of(ctrl->handler, struct ar0521_dev, in ctrl_to_sd() 146 ctrls.handler)->sd; in ctrl_to_sd() 156 return div_u64(v + d - 1, d); in div64_round_up() 161 switch (sensor->fmt.code) { in ar0521_code_to_bpp() [all …]
|
/linux/arch/m68k/ifpsp060/src/ |
H A D | pfpsp.S | 3 M68000 Hi-Performance Microprocessor Division 5 Production Release P1.00 -- October 10, 1994 97 mov.l %d0,-(%sp) 98 mov.l (_060FPSP_TABLE-0x80+_off_done,%pc),%d0 99 pea.l (_060FPSP_TABLE-0x80,%pc,%d0) 105 mov.l %d0,-(%sp) 106 mov.l (_060FPSP_TABLE-0x80+_off_ovfl,%pc),%d0 107 pea.l (_060FPSP_TABLE-0x80,%pc,%d0) 113 mov.l %d0,-(%sp) 114 mov.l (_060FPSP_TABLE-0x80+_off_unfl,%pc),%d0 [all …]
|
H A D | fpsp.S | 3 M68000 Hi-Performance Microprocessor Division 5 Production Release P1.00 -- October 10, 1994 98 mov.l %d0,-(%sp) 99 mov.l (_060FPSP_TABLE-0x80+_off_done,%pc),%d0 100 pea.l (_060FPSP_TABLE-0x80,%pc,%d0) 106 mov.l %d0,-(%sp) 107 mov.l (_060FPSP_TABLE-0x80+_off_ovfl,%pc),%d0 108 pea.l (_060FPSP_TABLE-0x80,%pc,%d0) 114 mov.l %d0,-(%sp) 115 mov.l (_060FPSP_TABLE-0x80+_off_unfl,%pc),%d0 [all …]
|
H A D | isp.S | 3 M68000 Hi-Performance Microprocessor Division 5 Production Release P1.00 -- October 10, 1994 98 mov.l %d0,-(%sp) 99 mov.l (_060ISP_TABLE-0x80+_off_chk,%pc),%d0 100 pea.l (_060ISP_TABLE-0x80,%pc,%d0) 106 mov.l %d0,-(%sp) 107 mov.l (_060ISP_TABLE-0x80+_off_divbyzero,%pc),%d0 108 pea.l (_060ISP_TABLE-0x80,%pc,%d0) 114 mov.l %d0,-(%sp) 115 mov.l (_060ISP_TABLE-0x80+_off_trace,%pc),%d0 [all …]
|
/linux/drivers/ptp/ |
H A D | ptp_vmclock.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Virtual PTP 1588 clock for use with LM-safe VMclock device. 21 #include <uapi/linux/vmclock-abi.h> 55 (le32_to_cpu((_c)->size) >= (offsetof(struct vmclock_abi, _f) + \ 56 sizeof((_c)->_f))) 59 * Multiply a 64-bit count by a 64-bit tick 'period' in units of seconds >> 64 62 * The result is a 128-bit value, the top 64 bits of which are seconds, and 79 if (likely(clk->time_type == VMCLOCK_TIME_UTC)) in tai_adjust() 82 if (clk->time_type == VMCLOCK_TIME_TAI && in tai_adjust() 83 (le64_to_cpu(clk->flags) & VMCLOCK_FLAG_TAI_OFFSET_VALID)) { in tai_adjust() [all …]
|
/linux/drivers/md/ |
H A D | dm-ps-historical-service-time.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Keeps a time-weighted exponential moving average of the historical 20 * ns, and the weighting is pre-calculated. 25 #include "dm-path-selector.h" 32 #define DM_MSG_PREFIX "multipath historical-service-time" 70 * fixed_power - compute: x^n, in O(log n) time 94 result += 1UL << (frac_bits - 1); in fixed_power() 101 x += 1UL << (frac_bits - 1); in fixed_power() 111 * a_1 = a_0 * e + a * (1 - e) 119 * a_n = a_0 * e^n + a * (1 - e^n), [all …]
|
/linux/arch/powerpc/include/asm/book3s/64/ |
H A D | mmu-hash.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 13 #include <asm/asm-const.h> 46 #define SLB_VSID_N ASM_CONST(0x0000000000000200) /* no-execute */ 167 * taken as such, concurrent access on pre POWER5 hardware could result 192 return -1; in shift_to_mmu_psize() 211 return -1; in ap_to_shift() 285 lp = (l >> LP_SHIFT) & ((1 << LP_BITS) - 1); in __hpte_page_size() 315 * to use 4k pages when they create cache-inhibited mappings. 330 * The AVA field omits the low-order 23 bits of the 78 bits VA. in hpte_encode_avpn() 332 * low-order b of these bits are part of the byte offset in hpte_encode_avpn() [all …]
|
/linux/tools/testing/selftests/hid/tests/ |
H A D | test_mouse.py | 2 # SPDX-License-Identifier: GPL-2.0 3 # -*- coding: utf-8 -*- 18 # workaround https://gitlab.freedesktop.org/libevdev/python-libevdev/issues/6 128 0x15, 0x81, # ....Logical Minimum (-127) 42 157 x = max(-127, min(127, x)) 158 y = max(-127, min(127, y)) 186 0x15, 0x81, # ..Logical Minimum (-127) 38 193 0x15, 0x81, # .Logical Minimum (-127) 51 224 0x16, 0x01, 0x80, # ..Logical Minimum (-32767) 28 231 0x15, 0x81, # ..Logical Minimum (-127) 44 [all …]
|
/linux/arch/x86/math-emu/ |
H A D | README | 1 +---------------------------------------------------------------------------+ 2 | wm-FPU-emu an FPU emulator for 80386 and 80486SX microprocessors. | 6 | Australia. E-mail billm@melbpc.org.au | 21 +---------------------------------------------------------------------------+ 25 wm-FPU-emu is an FPU emulator for Linux. It is derived from wm-emu387 27 msdos); wm-emu387 was in turn based upon emu387 which was written by 31 My target FPU for wm-FPU-emu is that described in the Intel486 40 wm-FPU-emu does not implement all of the behaviour of the 80486 FPU, 52 --Bill Metzenthen 56 ----------------------- Internals of wm-FPU-emu ----------------------- [all …]
|
/linux/drivers/media/usb/dvb-usb/ |
H A D | af9005-fe.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * USB1.1 DVB-T receiver. 9 * see Documentation/driver-api/media/drivers/dvb-usb.rst for more information 12 #include "af9005-script.h" 85 return -EINVAL; in af9005_read_word_agc() 93 struct af9005_fe_state *state = fe->demodulator_priv; in af9005_is_fecmon_available() 99 ret = af9005_read_register_bits(state->d, xd_p_fec_vtb_rsd_mon_en, in af9005_is_fecmon_available() 106 af9005_read_register_bits(state->d, in af9005_is_fecmon_available() 124 struct af9005_fe_state *state = fe->demodulator_priv; in af9005_get_post_vit_err_cw_count() 136 af9005_read_register_bits(state->d, xd_r_fec_rsd_ber_rdy, in af9005_get_post_vit_err_cw_count() [all …]
|
/linux/drivers/iio/adc/ |
H A D | pac1921.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * IIO driver for PAC1921 High-Side Power/Current Monitor 75 /* f7bb9932-86ee-4516-a236-7a7a742e55cb */ 81 * Pre-computed scale factors for BUS voltage 97 * Pre-computed scales for SENSE voltage 130 * contains integration periods, in microsecs unit, based on table 4-5 from 131 * datasheet considering power integration mode, 14-Bit resolution and post 224 if (!priv->first_integr_started) in pac1921_data_ready() 227 if (!priv->first_integr_done) { in pac1921_data_ready() 235 t_ready = priv->integr_started_time_jiffies + in pac1921_data_ready() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/bios/ |
H A D | command_table.c | 2 * Copyright 2012-15 Advanced Micro Devices, Inc. 38 …(amdgpu_atom_execute_table(((struct amdgpu_device *)bp->base.ctx->driver_context)->mode_info.atom_… 43 …amdgpu_atom_parse_cmd_header(((struct amdgpu_device *)bp->base.ctx->driver_context)->mode_info.ato… 47 bios_cmd_table_para_revision(bp->base.ctx->driver_context, \ 89 if (amdgpu_atom_parse_cmd_header(adev->mode_info.atom_context, in bios_cmd_table_para_revision() 125 bp->cmd_tbl.dig_encoder_control = encoder_control_digx_v3; in init_dig_encoder_control() 128 bp->cmd_tbl.dig_encoder_control = encoder_control_digx_v4; in init_dig_encoder_control() 132 bp->cmd_tbl.dig_encoder_control = encoder_control_digx_v5; in init_dig_encoder_control() 153 struct cmd_tbl *cmd_tbl = &bp->cmd_tbl; in init_encoder_control_dig_v1() 156 cmd_tbl->encoder_control_dig1 = encoder_control_dig1_v1; in init_encoder_control_dig_v1() [all …]
|
/linux/net/sctp/ |
H A D | sm_sideeffect.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 1999-2001 Motorola, Inc. 15 * lksctp developers <linux-sctp@vger.kernel.org> 69 asoc->last_ecne_tsn = lowest_tsn; in sctp_do_ecn_ce_work() 70 asoc->need_ecne = 1; in sctp_do_ecn_ce_work() 101 if (TSN_lt(asoc->last_cwr_tsn, lowest_tsn)) { in sctp_do_ecn_ecne_work() 113 asoc->last_cwr_tsn = lowest_tsn; in sctp_do_ecn_ecne_work() 119 repl = sctp_make_cwr(asoc, asoc->last_cwr_tsn, chunk); in sctp_do_ecn_ecne_work() 131 /* Turn off ECNE getting auto-prepended to every outgoing in sctp_do_ecn_cwr_work() 134 asoc->need_ecne = 0; in sctp_do_ecn_cwr_work() [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/dvm/ |
H A D | lib.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright(c) 2008 - 2014, 2022 Intel Corporation. All rights reserved. 12 #include "iwl-io.h" 13 #include "iwl-agn-hw.h" 14 #include "iwl-trans.h" 15 #include "iwl-modparams.h" 31 if (WARN_ONCE(test_bit(STATUS_SCAN_HW, &priv->status), in iwlagn_send_tx_power() 33 return -EAGAIN; in iwlagn_send_tx_power() 35 /* half dBm need to multiply */ in iwlagn_send_tx_power() 36 tx_power_cmd.global_lmt = (s8)(2 * priv->tx_power_user_lmt); in iwlagn_send_tx_power() [all …]
|
/linux/tools/perf/pmu-events/arch/x86/broadwell/ |
H A D | bdw-metrics.json | 4 "MetricExpr": "cstate_pkg@c2\\-residency@ / TSC", 11 "MetricExpr": "cstate_core@c3\\-residency@ / TSC", 18 "MetricExpr": "cstate_pkg@c3\\-residency@ / TSC", 25 "MetricExpr": "cstate_core@c6\\-residency@ / TSC", 32 "MetricExpr": "cstate_pkg@c6\\-residency@ / TSC", 39 "MetricExpr": "cstate_core@c7\\-residency@ / TSC", 46 "MetricExpr": "cstate_pkg@c7\\-residency@ / TSC", 59 "MetricExpr": "((msr@aperf@ - cycles) / msr@aperf@ if msr@smi@ > 0 else 0)", 78 …sible; which incur a few cycles load re-issue. However; the short re-issue duration is often hidde… 96 …er-cases for operations that cannot be handled natively by the execution pipeline. For example; wh… [all …]
|