Home
last modified time | relevance | path

Searched +full:constant +full:- +full:on +full:- +full:time (Results 1 – 25 of 528) sorted by relevance

12345678910>>...22

/linux/drivers/md/dm-vdo/
H A Dcpu.h1 /* SPDX-License-Identifier: GPL-2.0-only */
12 * uds_prefetch_address() - Minimize cache-miss latency by attempting to move data into a CPU cache
16 * @for_write: must be constant at compile time--false if for reading, true if for writing
21 * for_write won't be a constant if we are compiled with optimization turned off, in which in uds_prefetch_address()
23 * constant, it can be passed as the second, mandatorily constant argument to prefetch(), in uds_prefetch_address()
24 * at least currently on llvm 12. in uds_prefetch_address()
35 * uds_prefetch_range() - Minimize cache-miss latency by attempting to move a range of addresses
40 * @for_write: must be constant at compile time--false if for reading, true if for writing
53 while (cache_lines-- > 0) { in uds_prefetch_range()
H A Dmemory-alloc.h1 /* SPDX-License-Identifier: GPL-2.0-only */
13 #include "thread-registry.h"
19 * Allocate storage based on element counts, sizes, and alignment.
22 * optionally preceded by one object of another type (i.e., a struct with trailing variable-length
25 * Why is this inline? The sizes and alignment will always be constant, when invoked through the
26 * macros below, and often the count will be a compile-time constant 1 or the number of extra bytes
27 * will be a compile-time constant 0. So at least some of the arithmetic can usually be optimized
28 * away, and the run-time selection between allocation functions always can. In many cases, it'll
29 * boil down to just a function call with a constant size.
46 if ((size > 0) && (count > ((SIZE_MAX - extra) / size))) { in __vdo_do_allocation()
[all …]
/linux/include/asm-generic/
H A Ddelay.h1 /* SPDX-License-Identifier: GPL-2.0 */
8 /* Undefined functions to get compile-time errors */
19 * constant microseconds/nanoseconds value to a value which can be used by the
26 * The maximum constant udelay/ndelay value picked out of thin air to prevent
27 * too long constant udelays/ndelays.
32 * udelay - Inserting a delay based on microseconds with busy waiting
38 * When inserting delays in non atomic context which are shorter than the time
49 * reasons (https://lists.openwall.net/linux-kernel/2011/01/09/56):
51 * #. computed loops_per_jiffy too low (due to the time taken to execute the
53 * #. cache behaviour affecting the time it takes to execute the loop function.
[all …]
H A Daccess_ok.h1 /* SPDX-License-Identifier: GPL-2.0 */
7 * These definitions work on most architectures, but overrides can
13 * override this to a constant.
21 * 'size' is a compile-time constant for most callers, so optimize for
22 * this case to turn the check into a single comparison against a constant
24 * On architectures with separate user address space (m68k, s390, parisc,
29 * for constant 'size' and 'limit' values.
40 return (size <= limit) && (addr <= (limit - size)); in __access_ok()
/linux/include/linux/
H A Djiffies.h1 /* SPDX-License-Identifier: GPL-2.0 */
10 #include <linux/time.h>
53 * - (NOM / DEN) fits in (32 - LSH) bits.
54 * - (NOM % DEN) fits in (32 - LSH) bits.
64 /* TICK_USEC is the time between ticks in usec */
67 /* USER_TICK_USEC is the time between ticks in usec assuming fake USER_HZ */
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.
81 * On 32-bit big-endian systems, jiffies is the lower 32 bits of jiffies_64
[all …]
H A Dcompiler.h1 /* SPDX-License-Identifier: GPL-2.0 */
13 * to disable branch tracing on a per file basis.
90 * This version is i.e. to prevent dead stores elimination on @ptr
129 * KENTRY - kernel entry point
169 * data_race - mark an expression as containing intentional data races
176 * be plain C-language accesses and those in the diagnostic code should
221 /* Require C Strings (i.e. NUL-terminated) lack the "nonstring" attribute. */
224 "must be C-string (NUL-terminated)")
227 "must be non-C-string (not NUL-terminated)")
262 * offset_to_ptr - convert a relative memory offset to an absolute pointer
[all …]
/linux/Documentation/trace/postprocess/
H A Dtrace-pagealloc-postprocess.pl4 # to extract some high-level information on what is going on. The accuracy of the parser
7 # Example usage: trace-pagealloc-postprocess.pl < /sys/kernel/tracing/trace_pipe
9 # --prepend-parent Report on the parent proc and PID
10 # --read-procstat If the trace lacks process info, get it from /proc
11 # --ignore-pid Aggregate processes of the same name together
19 use constant MM_PAGE_ALLOC => 1;
20 use constant MM_PAGE_FREE => 2;
21 use constant MM_PAGE_FREE_BATCHED => 3;
22 use constant MM_PAGE_PCPU_DRAIN => 4;
23 use constant MM_PAGE_ALLOC_ZONE_LOCKED => 5;
[all …]
H A Dtrace-vmscan-postprocess.pl3 # page reclaim. It makes an attempt to extract some high-level information on
4 # what is going on. The accuracy of the parser may vary
6 # Example usage: trace-vmscan-postprocess.pl < /sys/kernel/tracing/trace_pipe
8 # --read-procstat If the trace lacks process info, get it from /proc
9 # --ignore-pid Aggregate processes of the same name together
17 use constant MM_VMSCAN_DIRECT_RECLAIM_BEGIN => 1;
18 use constant MM_VMSCAN_DIRECT_RECLAIM_END => 2;
19 use constant MM_VMSCAN_KSWAPD_WAKE => 3;
20 use constant MM_VMSCAN_KSWAPD_SLEEP => 4;
21 use constant MM_VMSCAN_LRU_SHRINK_ACTIVE => 5;
[all …]
/linux/tools/include/linux/
H A Dcompiler.h1 /* SPDX-License-Identifier: GPL-2.0 */
28 * compiletime_assert - break build and emit msg if condition is false
29 * @condition: a compile-time constant condition to check
77 * This returns a constant expression while determining if an argument is
78 * a constant expression, most importantly without evaluating the argument.
79 * Glory to Martin Uecker <Martin.Uecker@med.uni-goettinge
[all...]
H A Dbuild_bug.h1 /* SPDX-License-Identifier: GPL-2.0 */
10 * e.g. in a structure initializer (or where-ever else comma expressions
19 /* Force a compilation error if a constant expression is not a power of 2 */
21 BUILD_BUG_ON(((n) & ((n) - 1)) != 0)
23 BUILD_BUG_ON((n) == 0 || (((n) & ((n) - 1)) != 0))
28 * has side-effects.
33 * BUILD_BUG_ON_MSG - break compile if a condition is true & emit supplied
42 * BUILD_BUG_ON - break compile if a condition is true.
45 * If you have some code which relies on certain constants being equal, or
46 * some other compile-time-evaluated condition, you should use BUILD_BUG_ON to
[all …]
/linux/kernel/time/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
28 # Architecture can handle broadcast in a driver-agnostic way
35 depends on GENERIC_CLOCKEVENTS
40 depends on GENERIC_CLOCKEVENTS_BROADCAST
42 # Automatically adjust the min. reprogramming time for
68 tristate "KUnit test for kernel/time functions" if !KUNIT_ALL_TESTS
69 depends on KUNIT
83 Tracks idle state on behalf of RCU.
103 bool "Periodic timer ticks (constant rate, no dynticks)"
105 This option keeps the tick running periodically at a constant
[all …]
H A Dntp.c1 // SPDX-License-Identifier: GPL-2.0
5 * This code was mainly moved from kernel/timer.c and kernel/time.c
16 #include <linux/time.h>
27 * struct ntp_data - Structure holding all NTP related state
33 * @time_offset: Time adjustment in nanoseconds
34 * @time_constant: PLL time constant
39 * @time_reftime: Time at last adjustment in seconds
41 * @ntp_tick_adj: Constant boot-param configurable NTP tick adjustment (upscaled)
91 [ 0 ... TIMEKEEPERS_MAX - 1 ] = {
111 * The following variables are used when a pulse-per-second (PPS) signal
[all …]
/linux/Documentation/driver-api/thermal/
H A Dcpu-cooling-api.rst22 --------------------------------------------
30 "thermal-cpufreq-%x". This api can support multiple instances of cpufreq
42 the name "thermal-cpufreq-%x" linking it with a device tree node, in
54 This interface function unregisters the "thermal-cpufreq-%x" cooling device.
63 supported currently). This power model requires that the operating-points of
70 The dynamic power consumption of a processor depends on many factors.
73 - The time the processor spends running, consuming dynamic power, as
74 compared to the time in idle states where dynamic consumption is
76 - The voltage and frequency levels as a result of DVFS. The DVFS
78 - In running time the 'execution' behaviour (instruction types, memory
[all …]
/linux/drivers/pwm/
H A Dpwm-brcmstb.c1 // SPDX-License-Identifier: GPL-2.0-or-later
41 * Maximum control word value allowed when variable-frequency PWM is used as a
42 * clock for the constant-frequency PMW.
63 return __raw_readl(p->base + offset); in brcmstb_pwm_readl()
65 return readl_relaxed(p->base + offset); in brcmstb_pwm_readl()
72 __raw_writel(value, p->base + offset); in brcmstb_pwm_writel()
74 writel_relaxed(value, p->base + offset); in brcmstb_pwm_writel()
86 * W = cword, if cword < 2 ^ 15 else 16-bit 2's complement of cword
88 * Fv = W x 2 ^ -16 x 27Mhz (reference clock)
90 * The period is: (period + 1) / Fv and "on" time is on / (period + 1)
[all …]
/linux/Documentation/leds/
H A Dledtrig-oneshot.rst2 One-shot LED Trigger
6 no clear trap points to put standard led-on and led-off settings. Using this
8 happened, then the trigger turns the LED on and then keeps it off for a
9 specified amount of time.
13 event, while in the latter it keeps blinking at constant rate, as to signal
16 A one-shot LED only stays in a constant state when there are no events. An
18 on (inverted) when not rearmed.
20 The trigger can be activated from user space on led class devices as shown
26 Documentation/ABI/testing/sysfs-class-led-trigger-oneshot
28 Example use-case: network devices, initialization::
[all …]
/linux/lib/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
16 depends on RAID6_PQ
19 Benchmark all available RAID6 PQ functions on init and choose the
31 converting bitfields between a CPU-usable representation and a
33 - Is little endian (bytes are reversed within a 32-bit group)
34 - The least-significant 32-bit word comes first (within a 64-bit
36 - The most significant bit of a byte is at its right (bit 0 of a
45 depends on PACKING && KUNIT
50 For more information on KUnit and unit tests in general,
51 please refer to the KUnit documentation in Documentation/dev-tools/kunit/.
[all …]
H A Ddhry.h1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
6 * -----------------------------
19 * Phone: [+49]-9131-7-20330
20 * (8-17 Central European Time)
25 * pp. 1013 - 1030, together with the statistics
26 * on which the distribution of statements etc. is based.
29 * - strcpy, strcmp (inside the measurement loop)
30 * - printf, scanf (outside the measurement loop)
31 * In addition, Berkeley UNIX system calls "times ()" or "time ()"
32 * are used for execution time measurement. For measurements
[all …]
/linux/drivers/tty/serial/
H A Dip22zilog.h1 /* SPDX-License-Identifier: GPL-2.0 */
28 /* Conversion routines to/from brg time constants from/to bits
32 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2)
60 #define RES_RxINT_FC 0x20 /* Reset RxINT on First Character */
76 #define RxINT_FCERR 0x8 /* Rx Int on First Character Only or Error */
77 #define INT_ALL_Rx 0x10 /* Int on all Rx Characters or error */
78 #define INT_ERR_Rx 0x18 /* Int on error only */
81 #define WT_RDY_RT 0x20 /* Wait/Ready on R/T */
126 #define SDLC_CRC 0x4 /* SDLC/CRC-16 */
136 /* Write Register 6 (Sync bits 0-7/SDLC Address Field) */
[all …]
H A Dsunzilog.h1 /* SPDX-License-Identifier: GPL-2.0 */
20 /* Conversion routines to/from brg time constants from/to bits
24 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2)
52 #define RES_RxINT_FC 0x20 /* Reset RxINT on First Character */
68 #define RxINT_FCERR 0x8 /* Rx Int on First Character Only or Error */
69 #define INT_ALL_Rx 0x10 /* Int on all Rx Characters or error */
70 #define INT_ERR_Rx 0x18 /* Int on error only */
73 #define WT_RDY_RT 0x20 /* Wait/Ready on R/T */
118 #define SDLC_CRC 0x4 /* SDLC/CRC-16 */
128 /* Write Register 6 (Sync bits 0-7/SDLC Address Field) */
[all …]
H A Dzs.h1 /* SPDX-License-Identifier: GPL-2.0 */
28 unsigned int tty_break; /* Set on BREAK condition. */
38 * Per-SCC state for locking and the interrupt handler.
50 * Conversion routines to/from brg time constants from/to bits per second.
53 #define ZS_BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2)
81 #define RES_RxINT_FC 0x20 /* Reset RxINT on First Character */
96 #define RxINT_FCERR 0x8 /* Rx Int on First Character Only or Error */
97 #define RxINT_ALL 0x10 /* Int on all Rx Characters or error */
98 #define RxINT_ERR 0x18 /* Int on error only */
101 #define WT_RDY_RT 0x20 /* Wait/Ready on R/T */
[all …]
/linux/Documentation/virt/kvm/
H A Dhalt-polling.rst1 .. SPDX-License-Identifier: GPL-2.0
9 for some time period after the guest has elected to no longer run by cedeing.
15 very quickly by at least saving us a trip through the scheduler, normally on
16 the order of a few micro-seconds, although performance benefits are workload
18 interval or some other task on the runqueue is runnable the scheduler is
19 invoked. Thus halt polling is especially useful on workloads with very short
20 wakeup periods where the time spent halt polling is minimised and the time
27 The powerpc kvm-hv specific case is implemented in:
34 The maximum time for which to poll before invoking the scheduler, referred to
35 as the halt polling interval, is increased and decreased based on the perceived
[all …]
/linux/kernel/cgroup/
H A Dcpuset-v1.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 #include "cgroup-internal.h"
4 #include "cpuset-internal.h"
15 * Frequency meter - How fast is some event occurring?
17 * These routines manage a digitally filtered, constant time based,
19 * fmeter_init() - initialize a frequency meter.
20 * fmeter_markevent() - called each time the event happens.
21 * fmeter_getrate() - returns the recent rate of such events.
22 * fmeter_update() - internal routine used to update fmeter.
28 * The filter works on the number of events marked per unit time.
[all …]
/linux/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/
H A Dsmu11_driver_if_sienna_cichlid.h53 #define MAX_GFXCLK_DPM_LEVEL (NUM_GFXCLK_DPM_LEVELS - 1)
54 #define MAX_SMNCLK_DPM_LEVEL (NUM_SMNCLK_DPM_LEVELS - 1)
55 #define MAX_SOCCLK_DPM_LEVEL (NUM_SOCCLK_DPM_LEVELS - 1)
56 #define MAX_MP0CLK_DPM_LEVEL (NUM_MP0CLK_DPM_LEVELS - 1)
57 #define MAX_DCLK_DPM_LEVEL (NUM_DCLK_DPM_LEVELS - 1)
58 #define MAX_VCLK_DPM_LEVEL (NUM_VCLK_DPM_LEVELS - 1)
59 #define MAX_DCEFCLK_DPM_LEVEL (NUM_DCEFCLK_DPM_LEVELS - 1)
60 #define MAX_DISPCLK_DPM_LEVEL (NUM_DISPCLK_DPM_LEVELS - 1)
61 #define MAX_PIXCLK_DPM_LEVEL (NUM_PIXCLK_DPM_LEVELS - 1)
62 #define MAX_PHYCLK_DPM_LEVEL (NUM_PHYCLK_DPM_LEVELS - 1)
[all …]
/linux/tools/thermal/tmon/
H A Dtmon.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
30 #include <sys/time.h>
111 /* REVISIT: the idea is to group sensors if possible, e.g. on intel mid
113 * on DPTF enabled systems, we might have PCH, TSKN, TAMB, etc.
127 double ki; /* Time-constant for I action from Dialog Box */
128 double kd; /* Time-constant for D action from Dialog Box */
/linux/drivers/net/hamradio/
H A Dz8530.h1 /* SPDX-License-Identifier: GPL-2.0 */
28 #define RES_RxINT_FC 0x20 /* Reset RxINT on First Character */
44 #define RxINT_FCERR 0x8 /* Rx Int on First Character Only or Error */
45 #define INT_ALL_Rx 0x10 /* Int on all Rx Characters or error */
46 #define INT_ERR_Rx 0x18 /* Int on error only */
48 #define WT_RDY_RT 0x20 /* Wait/Ready on R/T */
91 #define SDLC_CRC 0x4 /* SDLC/CRC-16 */
100 /* Write Register 6 (Sync bits 0-7/SDLC Address Field) */
102 /* Write Register 7 (Sync bits 8-15/SDLC 01111110) */
112 #define NORESET 0 /* No reset on write to R9 */
[all …]

12345678910>>...22