Home
last modified time | relevance | path

Searched +full:long +full:- +full:term (Results 1 – 25 of 356) sorted by relevance

12345678910>>...15

/linux/include/linux/
H A Dpolynomial.h1 /* SPDX-License-Identifier: GPL-2.0-only */
10 * struct polynomial_term - one term descriptor of a polynomial
11 * @deg: degree of the term.
12 * @coef: multiplication factor of the term.
18 long coef;
19 long divider;
20 long divider_leftover;
24 * struct polynomial - a polynomial descriptor
26 * @terms: polynomial terms, last term must have degree of 0
29 long total_divider;
[all …]
H A Dintel_rapl.h1 /* SPDX-License-Identifier: GPL-2.0 */
57 PL1_ENABLE, /* power limit 1, aka long term */
59 PL2_ENABLE, /* power limit 2, aka short term, instantaneous */
63 TIME_WINDOW1, /* long term */
64 TIME_WINDOW2, /* short term */
86 unsigned long timestamp;
164 * @scale: Scale of 2^-32 Joules for each energy counter increase.
181 /* maximum rapl package domain name: package-%d-die-%d */
185 unsigned int id; /* logical die id, equals physical 1-die systems */
187 unsigned long domain_map; /* bit map of active domains */
[all …]
/linux/lib/
H A Dpolynomial.c1 // SPDX-License-Identifier: GPL-2.0-only
18 * Originally this was part of drivers/hwmon/bt1-pvt.c.
22 * to PVT data and vice-versa are following:
24 * N = 1.8322e-8*(T^4) + 2.343e-5*(T^3) + 8.7018e-3*(T^2) + 3.9269*(T^1) +
26 * T = -1.6743e-11*(N^4) + 8.1542e-8*(N^3) + -1.8201e-4*(N^2) +
27 * 3.1020e-1*(N^1) - 4.838e1
29 * where T = [-48.380, 147.438]C and N = [0, 1023].
38 * N = (18322e-20*(T^4) + 2343e-13*(T^3) + 87018e-9*(T^2) + 39269e-3*T +
40 * T = -16743e-12*(D^4) + 81542e-9*(D^3) - 182010e-6*(D^2) + 310200e-3*D -
42 * where T = [-48380, 147438] mC and N = [0, 1023].
[all …]
/linux/drivers/pinctrl/intel/
H A Dpinctrl-tangier.c1 // SPDX-License-Identifier: GPL-2.0-only
26 #include <linux/pinctrl/pinconf-generic.h>
32 #include "pinctrl-intel.h"
33 #include "pinctrl-tangier.h"
66 #define pin_to_bufno(f, p) ((p) - (f)->pin_base)
74 for (i = 0; i < tp->nfamilies; i++) { in tng_get_family()
75 family = &tp->families[i]; in tng_get_family()
76 if (pin >= family->pin_base && in tng_get_family()
77 pin < family->pin_base + family->npins) in tng_get_family()
81 dev_warn(tp->dev, "failed to find family for pin %u\n", pin); in tng_get_family()
[all …]
/linux/lib/math/
H A Drational-test.c1 // SPDX-License-Identifier: GPL-2.0
8 unsigned long num, den;
9 unsigned long max_num, max_den;
10 unsigned long exp_num, exp_den;
16 { 1230, 10, 100, 20, 100, 1, "Exceeds bounds, semi-convergent term > 1/2 last term" },
17 { 34567,100, 120, 20, 120, 1, "Exceeds bounds, semi-convergent term < 1/2 last term" },
19 { 1, 19, 100, 10, 1, 10, "Closest to smallest non-zero" },
28 strscpy(desc, param->name, KUNIT_PARAM_DESC_SIZE); in get_desc()
36 const struct rational_test_param *param = (const struct rational_test_param *)test->param_value; in rational_test()
37 unsigned long n = 0, d = 0; in rational_test()
[all …]
H A Drational.c1 // SPDX-License-Identifier: GPL-2.0
26 * (1 << 8) - 1, (1 << 5) - 1, &n, &d);
36 unsigned long given_numerator, unsigned long given_denominator, in rational_best_approximation()
37 unsigned long max_numerator, unsigned long max_denominator, in rational_best_approximation()
38 unsigned long *best_numerator, unsigned long *best_denominator) in rational_best_approximation()
49 * a is current term of the continued fraction. in rational_best_approximation()
51 unsigned long n, d, n0, d0, n1, d1, n2, d2; in rational_best_approximation()
58 unsigned long dp, a; in rational_best_approximation()
62 /* Find next term in continued fraction, 'a', via in rational_best_approximation()
71 * convergent), n2/d2, using the term just found and in rational_best_approximation()
[all …]
/linux/drivers/media/v4l2-core/
H A Dv4l2-h264.c1 // SPDX-License-Identifier: GPL-2.0
13 #include <media/v4l2-h264.h>
22 * v4l2_h264_init_reflist_builder() - Initialize a P/B0/B1 reference list
39 max_frame_num = 1 << (sps->log2_max_frame_num_minus4 + 4); in v4l2_h264_init_reflist_builder()
40 cur_frame_num = dec_params->frame_num; in v4l2_h264_init_reflist_builder()
43 if (!(dec_params->flags & V4L2_H264_DECODE_PARAM_FLAG_FIELD_PIC)) { in v4l2_h264_init_reflist_builder()
44 b->cur_pic_order_count = min(dec_params->bottom_field_order_cnt, in v4l2_h264_init_reflist_builder()
45 dec_params->top_field_order_cnt); in v4l2_h264_init_reflist_builder()
46 b->cur_pic_fields = V4L2_H264_FRAME_REF; in v4l2_h264_init_reflist_builder()
47 } else if (dec_params->flags & V4L2_H264_DECODE_PARAM_FLAG_BOTTOM_FIELD) { in v4l2_h264_init_reflist_builder()
[all …]
/linux/Documentation/driver-api/thermal/
H A Dpower_allocator.rst6 -----------
20 --------------
23 Proportional-Integral-Derivative controller (PID controller) with
29 - e = desired_temperature - current_temperature
30 - err_integral is the sum of previous errors
31 - diff_err = e - previous_error
39 | +----------+ +---+
40 | +----->| diff_err |-->| X |------+
41 | | +----------+ +---+ |
47 +---+ | +-------+ +---+ +---+ +---+ +----------+
[all …]
/linux/arch/x86/math-emu/
H A Dpolynom_Xsig.S1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*---------------------------------------------------------------------------+
9 | Australia. E-mail billm@jacobi.maths.monash.edu.au |
12 | void polynomial_Xsig(Xsig *accum, unsigned long long x, |
13 | unsigned long long terms[], int n) |
16 | terms[0] + (terms[1] + (terms[2] + ... + (terms[n-1]*x)*x)*x)*x) ... )*x |
24 +---------------------------------------------------------------------------*/
31 #define SUM_MS -20(%ebp) /* sum ms long */
32 #define SUM_MIDDLE -24(%ebp) /* sum middle long */
33 #define SUM_LS -28(%ebp) /* sum ls long */
[all …]
/linux/tools/perf/util/
H A Dpmu.c1 // SPDX-License-Identifier: GPL-2.0
24 #include <util/pmu-bison.h>
25 #include <util/pmu-flex.h>
26 #include "parse-events.h"
27 #include "print-events.h"
50 * struct perf_pmu_alias - An event either read from sysfs or builtin in
51 * pmu-events.c, created by parsing the pmu-event
721 struct parse_events_term *term, *cloned; pmu_alias_terms() local
1224 struct evsel_config_term *term = evsel__get_config_term(evsel, CFG_CHG); evsel__set_config_if_unset() local
1318 pmu_resolve_param_term(struct parse_events_term * term,struct parse_events_terms * head_terms,__u64 * value) pmu_resolve_param_term() argument
1367 pmu_config_term(const struct perf_pmu * pmu,struct perf_event_attr * attr,struct parse_events_term * term,struct parse_events_terms * head_terms,bool zero,struct parse_events_error * err) pmu_config_term() argument
1493 struct parse_events_term *term; perf_pmu__config_terms() local
1522 pmu_find_alias(struct perf_pmu * pmu,struct parse_events_term * term) pmu_find_alias() argument
1611 struct parse_events_term *term, *h; perf_pmu__check_alias() local
1827 struct parse_events_term *term; format_alias() local
[all...]
H A Dbpf-filter.y1 %parse-param {struct list_head *expr_head}
14 #include "bpf-filter.h"
19 /* To indicate if the current term needs a pathname or not */
32 unsigned long num;
35 enum perf_bpf_filter_term term;
55 list_add_tail(&$3->list, expr_head);
60 list_add_tail(&$1->list, expr_head);
68 if ($1->op == PBF_OP_GROUP_BEGIN) {
73 list_add_tail(&$1->list, &expr->groups);
75 expr->val++;
[all …]
H A Dbpf-filter.l9 #include "bpf-filter.h"
10 #include "bpf-filter-bison.h"
14 static int sample(enum perf_bpf_filter_term term) in sample() argument
17 perf_bpf_filter_lval.sample.term = term; in sample()
22 static int sample_part(enum perf_bpf_filter_term term, int part) in sample_part() argument
25 perf_bpf_filter_lval.sample.term = term; in sample_part()
30 static int sample_path(enum perf_bpf_filter_term term) in sample_path() argument
33 perf_bpf_filter_lval.sample.term = term; in sample_path()
46 long num; in value()
76 num_dec [0-9]+
[all …]
H A Dbpf-filter.h1 /* SPDX-License-Identifier: GPL-2.0 */
7 #include "bpf_skel/sample-filter.h"
14 enum perf_bpf_filter_term term; member
15 unsigned long val;
21 /* path in BPF-fs for the pinned program and maps */
25 struct perf_bpf_filter_expr *perf_bpf_filter_expr__new(enum perf_bpf_filter_term term,
28 unsigned long val);
41 return -EOPNOTSUPP; in perf_bpf_filter__parse()
46 return -EOPNOTSUPP; in perf_bpf_filter__prepare()
50 return -EOPNOTSUPP; in perf_bpf_filter__destroy()
[all …]
H A Dparse-events.c1 // SPDX-License-Identifier: GPL-2.0
10 #include "term.h"
14 #include <subcmd/parse-options.h>
15 #include "parse-events.h"
21 #include <util/parse-events-bison.h>
22 #include <util/parse-events-fle
159 struct parse_events_term *term; get_config_str() local
194 struct parse_events_term *term; fix_raw() local
778 check_type_val(struct parse_events_term * term,struct parse_events_error * err,enum parse_events__term_val_type type) check_type_val() argument
895 config_term_common(struct perf_event_attr * attr,struct parse_events_term * term,struct parse_events_error * err) config_term_common() argument
1028 config_term_pmu(struct perf_event_attr * attr,struct parse_events_term * term,struct parse_events_error * err) config_term_pmu() argument
1096 config_term_tracepoint(struct perf_event_attr * attr,struct parse_events_term * term,struct parse_events_error * err) config_term_tracepoint() argument
1145 struct parse_events_term *term; config_attr() local
1186 struct parse_events_term *term; get_config_terms() local
1272 struct parse_events_term *term; get_config_chgs() local
1433 struct evsel_config_term *term; config_term_percore() local
1574 struct parse_events_term *term; parse_events_multi_pmu_add() local
2522 parse_events__is_hardcoded_term(struct parse_events_term * term) parse_events__is_hardcoded_term() argument
2531 struct parse_events_term *term; new_term() local
2557 parse_events_term__num(struct parse_events_term ** term,enum parse_events__term_type type_term,const char * config,u64 num,bool no_value,void * loc_term_,void * loc_val_) parse_events_term__num() argument
2578 parse_events_term__str(struct parse_events_term ** term,enum parse_events__term_type type_term,char * config,char * str,void * loc_term_,void * loc_val_) parse_events_term__str() argument
2597 parse_events_term__term(struct parse_events_term ** term,enum parse_events__term_type term_lhs,enum parse_events__term_type term_rhs,void * loc_term,void * loc_val) parse_events_term__term() argument
2608 parse_events_term__clone(struct parse_events_term ** new,const struct parse_events_term * term) parse_events_term__clone() argument
2630 parse_events_term__delete(struct parse_events_term * term) parse_events_term__delete() argument
2642 struct parse_events_term *term; parse_events_terms__copy() local
2664 struct parse_events_term *term, *h; parse_events_terms__exit() local
2682 struct parse_events_term *term; parse_events_terms__to_strbuf() local
[all...]
/linux/drivers/infiniband/sw/siw/
H A Dsiw_qp_rx.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
4 /* Copyright (c) 2008-2019, IBM Corporation */
44 (void *)(uintptr_t)umem->fp_addr); in siw_rx_umem()
46 srx->skb_copied += copied; in siw_rx_umem()
47 srx->skb_new -= copied; in siw_rx_umem()
49 return -EFAULT; in siw_rx_umem()
52 bytes = min(len, (int)PAGE_SIZE - pg_off); in siw_rx_umem()
57 rv = skb_copy_bits(srx->skb, srx->skb_offset, dest + pg_off, in siw_rx_umem()
62 srx->skb_copied += copied; in siw_rx_umem()
63 srx->skb_new -= copied; in siw_rx_umem()
[all …]
H A Dsiw_qp.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
4 /* Copyright (c) 2008-2019, IBM Corporation */
30 * per-RDMAP message basis. Please keep order of initializer. All MPA len
36 .ctrl.mpa_len = htons(sizeof(struct iwarp_rdma_write) - 2),
44 .ctrl.mpa_len = htons(sizeof(struct iwarp_rdma_rreq) - 2),
51 .ctrl.mpa_len = htons(sizeof(struct iwarp_rdma_rresp) - 2),
59 .ctrl.mpa_len = htons(sizeof(struct iwarp_send) - 2),
66 .ctrl.mpa_len = htons(sizeof(struct iwarp_send_inv) - 2),
73 .ctrl.mpa_len = htons(sizeof(struct iwarp_send) - 2),
80 .ctrl.mpa_len = htons(sizeof(struct iwarp_send_inv) - 2),
[all …]
/linux/Documentation/devicetree/bindings/input/
H A Diqs626a.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Jeff LaBundy <jeff@labundy.com>
13 The Azoteq IQS626A is a 14-channel capacitive touch controller that features
14 additional Hall-effect and inductive sensing capabilities.
19 - $ref: touchscreen/touchscreen.yaml#
31 "#address-cells":
34 "#size-cells":
37 azoteq,suspend-mode:
[all …]
H A Diqs269a.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Jeff LaBundy <jeff@labundy.com>
13 - $ref: input.yaml#
16 The Azoteq IQS269A is an 8-channel capacitive touch controller that features
17 additional Hall-effect and inductive sensing capabilities.
24 - azoteq,iqs269a
25 - azoteq,iqs269a-00
26 - azoteq,iqs269a-d0
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-class-thermal61 E.g. it can be one of critical, hot, passive, `active[0-*]`
84 The trip point in this thermal zone which `cdev[0-*]` is
85 associated with; -1 means the cooling device is not
92 The influence of `cdev[0-*]` in this thermal zone. This value
122 The derivative term of the power allocator governor's PID
124 Documentation/driver-api/thermal/power_allocator.rst
130 The integral term of the power allocator governor's PID
131 controller. This term allows the PID controller to compensate
132 for long term drift. For more information see
133 Documentation/driver-api/thermal/power_allocator.rst
[all …]
/linux/drivers/pwm/
H A Dpwm-ep93xx.c1 // SPDX-License-Identifier: GPL-2.0-or-later
9 * platform device ep93xx-pwm.1 - PWMOUT1 (EGPIO14)
12 * platform device ep93xx-pwm.0 - PWMOUT
15 * platform device ep93xx-pwm.0 - PWMOUT
16 * platform device ep93xx-pwm.1 - PWMOUT1 (EGPIO14)
50 bool enabled = state->enabled; in ep93xx_pwm_apply()
51 void __iomem *base = ep93xx_pwm->base; in ep93xx_pwm_apply()
52 unsigned long long c; in ep93xx_pwm_apply()
53 unsigned long period_cycles; in ep93xx_pwm_apply()
54 unsigned long duty_cycles; in ep93xx_pwm_apply()
[all …]
/linux/drivers/net/wireless/zydas/zd1211rw/
H A Dzd_mac.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /* ZD1211 USB-WLAN driver for Linux
4 * Copyright (C) 2005-2007 Ulrich Kunitz <kune@deine-taler.de>
5 * Copyright (C) 2006-2007 Daniel Drake <dsd@gentoo.org>
30 * of short or long preambles in 802.11b (CCK mode) or the use of 802.11a or
33 * The term zd-rate is used for the combination of the modulation type flag
44 * codeing for the 1 and 2 MBit/s rate. We stay with the term here to remain
45 * consistent with uses the term at other places.
52 * with the modulation type flag and call the resulting values zd-rates.
156 unsigned long last_update;
[all …]
/linux/drivers/scsi/arm/
H A Deesox.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 1997-2005 Russell King
12 * 01-10-1997 RMK Created, READONLY version
13 * 15-02-1998 RMK READ/WRITE version
15 * 14-03-1998 RMK Updated DMA support
17 * 15-04-1998 RMK Only do PIO if FAS216 will allow it.
18 * 27-06-1998 RMK Changed asm/delay.h to linux/delay.h
19 * 02-04-2000 RMK 0.0.3 Fixed NO_IRQ/NO_DMA problem, updated for new
31 #include <linux/dma-mapping.h>
66 * Use term=0,1,0,0,0 to turn terminators on/off
[all …]
/linux/Documentation/core-api/
H A Dpin_user_pages.rst1 .. SPDX-License-Identifier: GPL-2.0
35 In other words, use pin_user_pages*() for DMA-pinned pages, and
54 flags the caller provides. The caller is required to pass in a non-null struct
72 --------
79 but the caller passed in a non-null struct pages* array, then the function
84 --------
89 Tracking dma-pinned pages
92 Some of the key design constraints, and solutions, for tracking dma-pinned
98 * False positives (reporting that a page is dma-pinned, when in fact it is not)
104 * Given the above, we can overload the page->_refcount field by using, sort of,
[all …]
/linux/arch/arm/boot/dts/nvidia/
H A Dtegra124-jetson-tk1-emc.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 #include <dt-bindings/clock/tegra124-car.h>
7 emc-timings-3 {
8 nvidia,ram-code = <3>;
10 timing-12750000 {
11 clock-frequency = <12750000>;
12 nvidia,parent-clock-frequency = <408000000>;
14 clock-names = "emc-parent";
17 timing-20400000 {
18 clock-frequency = <20400000>;
[all …]
H A Dtegra124-apalis-emc.dtsi1 // SPDX-License-Identifier: GPL-2.0 OR X11
3 * Copyright 2016-2019 Toradex AG
7 #include <dt-bindings/clock/tegra124-car.h>
11 emc-timings-1 {
12 nvidia,ram-code = <1>;
14 timing-12750000 {
15 clock-frequency = <12750000>;
16 nvidia,parent-clock-frequency = <408000000>;
18 clock-names = "emc-parent";
21 timing-20400000 {
[all …]

12345678910>>...15