/linux-6.12.1/include/linux/ |
D | polynomial.h | 1 /* 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 …]
|
D | intel_rapl.h | 1 /* 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-6.12.1/lib/ |
D | polynomial.c | 1 // 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-6.12.1/lib/math/ |
D | rational-test.c | 1 // 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 …]
|
D | rational.c | 1 // 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-6.12.1/drivers/pinctrl/intel/ |
D | pinctrl-tangier.c | 1 // 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-6.12.1/drivers/media/v4l2-core/ |
D | v4l2-h264.c | 1 // 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-6.12.1/Documentation/driver-api/thermal/ |
D | power_allocator.rst | 6 ----------- 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-6.12.1/arch/x86/math-emu/ |
D | polynom_Xsig.S | 1 /* 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-6.12.1/tools/perf/util/ |
D | pmu.c | 1 // SPDX-License-Identifier: GPL-2.0 22 #include <util/pmu-bison.h> 23 #include <util/pmu-flex.h> 24 #include "parse-events.h" 25 #include "print-events.h" 48 * struct perf_pmu_alias - An event either read from sysfs or builtin in 49 * pmu-events.c, created by parsing the pmu-events json files. 52 /** @name: Name of the event like "mem-loads". */ 56 /** @long_desc: Optional long description. */ 78 * <sysfs>/bus/event_source/devices/<pmu_name>/events/<name>.per-pkg or [all …]
|
D | bpf-filter.y | 1 %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 …]
|
D | bpf-filter.l | 9 #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 …]
|
D | bpf-filter.h | 1 /* 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 …]
|
D | parse-events.c | 1 // 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-flex.h> 26 #include "util/parse-branch-options.h" 29 #include "util/bpf-filter.h" 42 .symbol = "cpu-cycles", 50 .symbol = "cache-references", [all …]
|
/linux-6.12.1/drivers/infiniband/sw/siw/ |
D | siw_qp_rx.c | 1 // 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 …]
|
D | siw_qp.c | 1 // 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-6.12.1/Documentation/devicetree/bindings/input/ |
D | iqs269a.yaml | 1 # 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 …]
|
D | iqs626a.yaml | 1 # 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 …]
|
/linux-6.12.1/Documentation/ABI/testing/ |
D | sysfs-class-thermal | 61 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-6.12.1/drivers/pwm/ |
D | pwm-ep93xx.c | 1 // 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-6.12.1/tools/testing/selftests/mm/ |
D | gup_longterm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * GUP long-term page pinning tests. 54 * R/W long-term pinning. For these filesystems, we can be fairly sure in fs_is_unknown() 121 /* Fault in the page such that GUP-fast can pin it directly. */ in do_test() 129 * long-term R/O pinning by mapping the page R/O. in do_test() 156 * expected to work. Otherwise, we expect long-term R/W pinning in do_test() 182 * TODO: if the kernel ever supports long-term R/W pinning on in do_test() 391 "R/W longterm GUP-fast pin in MAP_SHARED file mapping", 399 "R/O longterm GUP-fast pin in MAP_SHARED file mapping", 407 "R/W longterm GUP-fast pin in MAP_PRIVATE file mapping", [all …]
|
/linux-6.12.1/drivers/net/wireless/zydas/zd1211rw/ |
D | zd_mac.h | 1 /* 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-6.12.1/drivers/scsi/arm/ |
D | eesox.c | 1 // 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-6.12.1/Documentation/core-api/ |
D | pin_user_pages.rst | 1 .. 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-6.12.1/arch/arm/boot/dts/nvidia/ |
D | tegra124-apalis-emc.dtsi | 1 // 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 …]
|